diff --git a/locust/env.py b/locust/env.py index 248ed875b6..911aba5514 100644 --- a/locust/env.py +++ b/locust/env.py @@ -99,6 +99,8 @@ def __init__( """List of the available Tasks per User Classes to pick from in the Task Picker""" self.dispatcher_class = dispatcher_class """A user dispatcher class that decides how users are spawned, default :class:`UsersDispatcher `""" + self.worker_logs: dict[str, list[str]] = {} + """Captured logs from all connected workers""" self._remove_user_classes_with_weight_zero() self._validate_user_class_name_uniqueness() @@ -209,6 +211,10 @@ def update_user_class(self, user_settings): if key == "tasks": user_class.tasks = [task for task in user_tasks if task.__name__ in value] + def update_worker_logs(self, worker_log_report): + if worker_log_report.get("worker_id", None): + self.worker_logs[worker_log_report.get("worker_id")] = worker_log_report.get("logs", []) + def _filter_tasks_by_tags(self) -> None: """ Filter the tasks on all the user_classes recursively, according to the tags and diff --git a/locust/log.py b/locust/log.py index b4f864fd39..b3465c8dff 100644 --- a/locust/log.py +++ b/locust/log.py @@ -75,6 +75,17 @@ def setup_logging(loglevel, logfile=None): logging.config.dictConfig(LOGGING_CONFIG) +def get_logs(): + log_reader_handler = next( + (handler for handler in logging.getLogger("root").handlers if handler.name == "log_reader"), None + ) + + if log_reader_handler: + return log_reader_handler.logs + + return [] + + def greenlet_exception_logger(logger, level=logging.CRITICAL): """ Return a function that can be used as argument to Greenlet.link_exception() that will log the diff --git a/locust/runners.py b/locust/runners.py index 81bca2f050..5c183d11b4 100644 --- a/locust/runners.py +++ b/locust/runners.py @@ -39,7 +39,7 @@ from . import argument_parser from .dispatch import UsersDispatcher from .exception import RPCError, RPCReceiveError, RPCSendError -from .log import greenlet_exception_logger +from .log import get_logs, greenlet_exception_logger from .rpc import ( Message, rpc, @@ -66,6 +66,7 @@ "missing", ] WORKER_REPORT_INTERVAL = 3.0 +WORKER_LOG_REPORT_INTERVAL = 10 CPU_MONITOR_INTERVAL = 5.0 CPU_WARNING_THRESHOLD = 90 HEARTBEAT_INTERVAL = 1 @@ -1116,6 +1117,8 @@ def client_listener(self) -> NoReturn: # a worker finished spawning (this happens multiple times during rampup) self.clients[msg.node_id].state = STATE_RUNNING self.clients[msg.node_id].user_classes_count = msg.data["user_classes_count"] + elif msg.type == "logs": + self.environment.update_worker_logs(msg.data) elif msg.type == "quit": if msg.node_id in self.clients: client = self.clients[msg.node_id] @@ -1212,6 +1215,7 @@ def __init__(self, environment: Environment, master_host: str, master_port: int) self.client_id = socket.gethostname() + "_" + uuid4().hex self.master_host = master_host self.master_port = master_port + self.logs: list[str] = [] self.worker_cpu_warning_emitted = False self._users_dispatcher: UsersDispatcher | None = None self.client = rpc.Client(master_host, master_port, self.client_id) @@ -1220,6 +1224,7 @@ def __init__(self, environment: Environment, master_host: str, master_port: int) self.greenlet.spawn(self.heartbeat).link_exception(greenlet_exception_handler) self.greenlet.spawn(self.heartbeat_timeout_checker).link_exception(greenlet_exception_handler) self.greenlet.spawn(self.stats_reporter).link_exception(greenlet_exception_handler) + self.greenlet.spawn(self.logs_reporter).link_exception(greenlet_exception_handler) # register listener that adds the current number of spawned users to the report that is sent to the master node def on_report_to_master(client_id: str, data: dict[str, Any]): @@ -1417,6 +1422,11 @@ def stats_reporter(self) -> NoReturn: logger.error(f"Temporary connection lost to master server: {e}, will retry later.") gevent.sleep(WORKER_REPORT_INTERVAL) + def logs_reporter(self) -> NoReturn: + while True: + self._send_logs() + gevent.sleep(WORKER_LOG_REPORT_INTERVAL) + def send_message(self, msg_type: str, data: dict[str, Any] | None = None, client_id: str | None = None) -> None: """ Sends a message to master node @@ -1433,6 +1443,13 @@ def _send_stats(self) -> None: self.environment.events.report_to_master.fire(client_id=self.client_id, data=data) self.client.send(Message("stats", data, self.client_id)) + def _send_logs(self) -> None: + current_logs = get_logs() + + if len(current_logs) > len(self.logs): + self.logs = current_logs + self.send_message("logs", {"worker_id": self.client_id, "logs": current_logs}) + def connect_to_master(self): self.retry += 1 self.client.send(Message("client_ready", __version__, self.client_id)) diff --git a/locust/test/test_web.py b/locust/test/test_web.py index a9a0b6c1b8..5b50e8c8e8 100644 --- a/locust/test/test_web.py +++ b/locust/test/test_web.py @@ -1020,7 +1020,7 @@ def test_logs(self): response = requests.get("http://127.0.0.1:%i/logs" % self.web_port) - self.assertIn(log_line, response.json().get("logs")) + self.assertIn(log_line, response.json().get("master")) def test_template_args(self): class MyUser(User): diff --git a/locust/web.py b/locust/web.py index 6063673925..3c5f16ea57 100644 --- a/locust/web.py +++ b/locust/web.py @@ -33,7 +33,7 @@ from . import argument_parser from . import stats as stats_module from .html import BUILD_PATH, ROOT_PATH, STATIC_PATH, get_html_report -from .log import greenlet_exception_logger +from .log import get_logs, greenlet_exception_logger from .runners import STATE_MISSING, STATE_RUNNING, MasterRunner from .stats import StatsCSV, StatsCSVFileWriter, StatsErrorDict, sort_stats from .user.inspectuser import get_ratio @@ -490,16 +490,7 @@ def tasks() -> dict[str, dict[str, dict[str, float]]]: @app.route("/logs") @self.auth_required_if_enabled def logs(): - log_reader_handler = [ - handler for handler in logging.getLogger("root").handlers if handler.name == "log_reader" - ] - - if log_reader_handler: - logs = log_reader_handler[0].logs - else: - logs = [] - - return jsonify({"logs": logs}) + return jsonify({"master": get_logs(), "workers": self.environment.worker_logs}) @app.route("/login") def login(): diff --git a/locust/webui/dist/assets/index-cb7618a5.js b/locust/webui/dist/assets/index-6b52989e.js similarity index 67% rename from locust/webui/dist/assets/index-cb7618a5.js rename to locust/webui/dist/assets/index-6b52989e.js index 18f7121428..9755939a3d 100644 --- a/locust/webui/dist/assets/index-cb7618a5.js +++ b/locust/webui/dist/assets/index-6b52989e.js @@ -1,4 +1,4 @@ -function oq(e,t){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();function dv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function sq(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var _F={exports:{}},a1={},wF={exports:{}},ut={};/** +function sq(e,t){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();function dv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function lq(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var AF={exports:{}},a1={},MF={exports:{}},ut={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function oq(e,t){for(var r=0;r>>1,j=N[G];if(0>>1;Gi(X,E))Wi(ee,X)?(N[G]=ee,N[W]=E,G=W):(N[G]=X,N[U]=E,G=U);else if(Wi(ee,E))N[G]=ee,N[W]=E,G=W;else break e}}return F}function i(N,F){var E=N.sortIndex-F.sortIndex;return E!==0?E:N.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,f=null,d=3,h=!1,p=!1,v=!1,g=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(N){for(var F=r(u);F!==null;){if(F.callback===null)n(u);else if(F.startTime<=N)n(u),F.sortIndex=F.expirationTime,t(l,F);else break;F=r(u)}}function S(N){if(v=!1,x(N),!p)if(r(l)!==null)p=!0,z(_);else{var F=r(u);F!==null&&V(S,F.startTime-N)}}function _(N,F){p=!1,v&&(v=!1,m(C),C=-1),h=!0;var E=d;try{for(x(F),f=r(l);f!==null&&(!(f.expirationTime>F)||N&&!M());){var G=f.callback;if(typeof G=="function"){f.callback=null,d=f.priorityLevel;var j=G(f.expirationTime<=F);F=e.unstable_now(),typeof j=="function"?f.callback=j:f===r(l)&&n(l),x(F)}else n(l);f=r(l)}if(f!==null)var B=!0;else{var U=r(u);U!==null&&V(S,U.startTime-F),B=!1}return B}finally{f=null,d=E,h=!1}}var b=!1,w=null,C=-1,A=5,T=-1;function M(){return!(e.unstable_now()-TN||125G?(N.sortIndex=E,t(u,N),r(l)===null&&N===r(u)&&(v?(m(C),C=-1):v=!0,V(S,E-G))):(N.sortIndex=j,t(l,N),p||h||(p=!0,z(_))),N},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(N){var F=d;return function(){var E=d;d=F;try{return N.apply(this,arguments)}finally{d=E}}}})(EF);LF.exports=EF;var Iq=LF.exports;/** + */(function(e){function t(N,F){var E=N.length;N.push(F);e:for(;0>>1,j=N[G];if(0>>1;Gi(X,E))Wi(ee,X)?(N[G]=ee,N[W]=E,G=W):(N[G]=X,N[U]=E,G=U);else if(Wi(ee,E))N[G]=ee,N[W]=E,G=W;else break e}}return F}function i(N,F){var E=N.sortIndex-F.sortIndex;return E!==0?E:N.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,f=null,d=3,h=!1,p=!1,v=!1,g=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(N){for(var F=r(u);F!==null;){if(F.callback===null)n(u);else if(F.startTime<=N)n(u),F.sortIndex=F.expirationTime,t(l,F);else break;F=r(u)}}function S(N){if(v=!1,x(N),!p)if(r(l)!==null)p=!0,z(_);else{var F=r(u);F!==null&&V(S,F.startTime-N)}}function _(N,F){p=!1,v&&(v=!1,m(C),C=-1),h=!0;var E=d;try{for(x(F),f=r(l);f!==null&&(!(f.expirationTime>F)||N&&!M());){var G=f.callback;if(typeof G=="function"){f.callback=null,d=f.priorityLevel;var j=G(f.expirationTime<=F);F=e.unstable_now(),typeof j=="function"?f.callback=j:f===r(l)&&n(l),x(F)}else n(l);f=r(l)}if(f!==null)var B=!0;else{var U=r(u);U!==null&&V(S,U.startTime-F),B=!1}return B}finally{f=null,d=E,h=!1}}var b=!1,w=null,C=-1,A=5,T=-1;function M(){return!(e.unstable_now()-TN||125G?(N.sortIndex=E,t(u,N),r(l)===null&&N===r(u)&&(v?(m(C),C=-1):v=!0,V(S,E-G))):(N.sortIndex=j,t(l,N),p||h||(p=!0,z(_))),N},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(N){var F=d;return function(){var E=d;d=F;try{return N.apply(this,arguments)}finally{d=E}}}})(BF);zF.exports=BF;var Pq=zF.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ function oq(e,t){for(var r=0;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vw=Object.prototype.hasOwnProperty,Pq=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,CP={},TP={};function Dq(e){return Vw.call(TP,e)?!0:Vw.call(CP,e)?!1:Pq.test(e)?TP[e]=!0:(CP[e]=!0,!1)}function Rq(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Lq(e,t,r,n){if(t===null||typeof t>"u"||Rq(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function hn(e,t,r,n,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var Nr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Nr[e]=new hn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Nr[t]=new hn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Nr[e]=new hn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Nr[e]=new hn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Nr[e]=new hn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Nr[e]=new hn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Nr[e]=new hn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Nr[e]=new hn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Nr[e]=new hn(e,5,!1,e.toLowerCase(),null,!1,!1)});var n2=/[\-:]([a-z])/g;function i2(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(n2,i2);Nr[t]=new hn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(n2,i2);Nr[t]=new hn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(n2,i2);Nr[t]=new hn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Nr[e]=new hn(e,1,!1,e.toLowerCase(),null,!1,!1)});Nr.xlinkHref=new hn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Nr[e]=new hn(e,1,!1,e.toLowerCase(),null,!0,!0)});function a2(e,t,r,n){var i=Nr.hasOwnProperty(t)?Nr[t]:null;(i!==null?i.type!==0:n||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Gw=Object.prototype.hasOwnProperty,Dq=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,MP={},kP={};function Rq(e){return Gw.call(kP,e)?!0:Gw.call(MP,e)?!1:Dq.test(e)?kP[e]=!0:(MP[e]=!0,!1)}function Lq(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Eq(e,t,r,n){if(t===null||typeof t>"u"||Lq(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function hn(e,t,r,n,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var Nr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Nr[e]=new hn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Nr[t]=new hn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Nr[e]=new hn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Nr[e]=new hn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Nr[e]=new hn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Nr[e]=new hn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Nr[e]=new hn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Nr[e]=new hn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Nr[e]=new hn(e,5,!1,e.toLowerCase(),null,!1,!1)});var i2=/[\-:]([a-z])/g;function a2(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(i2,a2);Nr[t]=new hn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(i2,a2);Nr[t]=new hn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(i2,a2);Nr[t]=new hn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Nr[e]=new hn(e,1,!1,e.toLowerCase(),null,!1,!1)});Nr.xlinkHref=new hn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Nr[e]=new hn(e,1,!1,e.toLowerCase(),null,!0,!0)});function o2(e,t,r,n){var i=Nr.hasOwnProperty(t)?Nr[t]:null;(i!==null?i.type!==0:n||!(2s||i[o]!==a[s]){var l=` -`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{uS=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?nh(e):""}function Eq(e){switch(e.tag){case 5:return nh(e.type);case 16:return nh("Lazy");case 13:return nh("Suspense");case 19:return nh("SuspenseList");case 0:case 2:case 15:return e=cS(e.type,!1),e;case 11:return e=cS(e.type.render,!1),e;case 1:return e=cS(e.type,!0),e;default:return""}}function jw(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Oc:return"Fragment";case Ec:return"Portal";case Gw:return"Profiler";case o2:return"StrictMode";case Hw:return"Suspense";case Ww:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case BF:return(e.displayName||"Context")+".Consumer";case zF:return(e._context.displayName||"Context")+".Provider";case s2:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case l2:return t=e.displayName||null,t!==null?t:jw(e.type)||"Memo";case Zo:t=e._payload,e=e._init;try{return jw(e(t))}catch{}}return null}function Oq(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return jw(t);case 8:return t===o2?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Is(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function FF(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Nq(e){var t=FF(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Qv(e){e._valueTracker||(e._valueTracker=Nq(e))}function VF(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=FF(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function gy(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Uw(e,t){var r=t.checked;return Kt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function MP(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Is(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function GF(e,t){t=t.checked,t!=null&&a2(e,"checked",t,!1)}function qw(e,t){GF(e,t);var r=Is(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Yw(e,t.type,r):t.hasOwnProperty("defaultValue")&&Yw(e,t.type,Is(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function kP(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Yw(e,t,r){(t!=="number"||gy(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var ih=Array.isArray;function Qc(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Jv.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function lp(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Th={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},zq=["Webkit","ms","Moz","O"];Object.keys(Th).forEach(function(e){zq.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Th[t]=Th[e]})});function UF(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Th.hasOwnProperty(e)&&Th[e]?(""+t).trim():t+"px"}function qF(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=UF(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var Bq=Kt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Kw(e,t){if(t){if(Bq[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ae(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ae(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ae(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ae(62))}}function Qw(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Jw=null;function u2(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var eC=null,Jc=null,ef=null;function DP(e){if(e=gv(e)){if(typeof eC!="function")throw Error(ae(280));var t=e.stateNode;t&&(t=c1(t),eC(e.stateNode,e.type,t))}}function YF(e){Jc?ef?ef.push(e):ef=[e]:Jc=e}function XF(){if(Jc){var e=Jc,t=ef;if(ef=Jc=null,DP(e),t)for(e=0;e>>=0,e===0?32:31-(Xq(e)/Zq|0)|0}var eg=64,tg=4194304;function ah(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Sy(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,a=e.pingedLanes,o=r&268435455;if(o!==0){var s=o&~i;s!==0?n=ah(s):(a&=o,a!==0&&(n=ah(a)))}else o=r&~i,o!==0?n=ah(o):a!==0&&(n=ah(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function pv(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ji(t),e[t]=r}function eY(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=Mh),FP=String.fromCharCode(32),VP=!1;function v3(e,t){switch(e){case"keyup":return kY.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function g3(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nc=!1;function PY(e,t){switch(e){case"compositionend":return g3(t);case"keypress":return t.which!==32?null:(VP=!0,FP);case"textInput":return e=t.data,e===FP&&VP?null:e;default:return null}}function DY(e,t){if(Nc)return e==="compositionend"||!m2&&v3(e,t)?(e=h3(),Lm=p2=is=null,Nc=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=jP(r)}}function S3(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?S3(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function b3(){for(var e=window,t=gy();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=gy(e.document)}return t}function y2(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function FY(e){var t=b3(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&S3(r.ownerDocument.documentElement,r)){if(n!==null&&y2(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,a=Math.min(n.start,i);n=n.end===void 0?a:Math.min(n.end,i),!e.extend&&a>n&&(i=n,n=a,a=i),i=UP(r,a);var o=UP(r,n);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,zc=null,oC=null,Ih=null,sC=!1;function qP(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;sC||zc==null||zc!==gy(n)||(n=zc,"selectionStart"in n&&y2(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Ih&&pp(Ih,n)||(Ih=n,n=wy(oC,"onSelect"),0Fc||(e.current=hC[Fc],hC[Fc]=null,Fc--)}function Ot(e,t){Fc++,hC[Fc]=e.current,e.current=t}var Ps={},Xr=Us(Ps),Cn=Us(!1),yu=Ps;function mf(e,t){var r=e.type.contextTypes;if(!r)return Ps;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Tn(e){return e=e.childContextTypes,e!=null}function Ty(){Ft(Cn),Ft(Xr)}function eD(e,t,r){if(Xr.current!==Ps)throw Error(ae(168));Ot(Xr,t),Ot(Cn,r)}function P3(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(ae(108,Oq(e)||"Unknown",i));return Kt({},r,n)}function Ay(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ps,yu=Xr.current,Ot(Xr,e),Ot(Cn,Cn.current),!0}function tD(e,t,r){var n=e.stateNode;if(!n)throw Error(ae(169));r?(e=P3(e,t,yu),n.__reactInternalMemoizedMergedChildContext=e,Ft(Cn),Ft(Xr),Ot(Xr,e)):Ft(Cn),Ot(Cn,r)}var no=null,f1=!1,CS=!1;function D3(e){no===null?no=[e]:no.push(e)}function QY(e){f1=!0,D3(e)}function qs(){if(!CS&&no!==null){CS=!0;var e=0,t=Ct;try{var r=no;for(Ct=1;e>=o,i-=o,io=1<<32-ji(t)+i|r<C?(A=w,w=null):A=w.sibling;var T=d(m,w,x[C],S);if(T===null){w===null&&(w=A);break}e&&w&&T.alternate===null&&t(m,w),y=a(T,y,C),b===null?_=T:b.sibling=T,b=T,w=A}if(C===x.length)return r(m,w),Wt&&Tl(m,C),_;if(w===null){for(;CC?(A=w,w=null):A=w.sibling;var M=d(m,w,T.value,S);if(M===null){w===null&&(w=A);break}e&&w&&M.alternate===null&&t(m,w),y=a(M,y,C),b===null?_=M:b.sibling=M,b=M,w=A}if(T.done)return r(m,w),Wt&&Tl(m,C),_;if(w===null){for(;!T.done;C++,T=x.next())T=f(m,T.value,S),T!==null&&(y=a(T,y,C),b===null?_=T:b.sibling=T,b=T);return Wt&&Tl(m,C),_}for(w=n(m,w);!T.done;C++,T=x.next())T=h(w,m,C,T.value,S),T!==null&&(e&&T.alternate!==null&&w.delete(T.key===null?C:T.key),y=a(T,y,C),b===null?_=T:b.sibling=T,b=T);return e&&w.forEach(function(k){return t(m,k)}),Wt&&Tl(m,C),_}function g(m,y,x,S){if(typeof x=="object"&&x!==null&&x.type===Oc&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Kv:e:{for(var _=x.key,b=y;b!==null;){if(b.key===_){if(_=x.type,_===Oc){if(b.tag===7){r(m,b.sibling),y=i(b,x.props.children),y.return=m,m=y;break e}}else if(b.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Zo&&lD(_)===b.type){r(m,b.sibling),y=i(b,x.props),y.ref=md(m,b,x),y.return=m,m=y;break e}r(m,b);break}else t(m,b);b=b.sibling}x.type===Oc?(y=ou(x.props.children,m.mode,S,x.key),y.return=m,m=y):(S=Vm(x.type,x.key,x.props,null,m.mode,S),S.ref=md(m,y,x),S.return=m,m=S)}return o(m);case Ec:e:{for(b=x.key;y!==null;){if(y.key===b)if(y.tag===4&&y.stateNode.containerInfo===x.containerInfo&&y.stateNode.implementation===x.implementation){r(m,y.sibling),y=i(y,x.children||[]),y.return=m,m=y;break e}else{r(m,y);break}else t(m,y);y=y.sibling}y=RS(x,m.mode,S),y.return=m,m=y}return o(m);case Zo:return b=x._init,g(m,y,b(x._payload),S)}if(ih(x))return p(m,y,x,S);if(dd(x))return v(m,y,x,S);lg(m,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,y!==null&&y.tag===6?(r(m,y.sibling),y=i(y,x),y.return=m,m=y):(r(m,y),y=DS(x,m.mode,S),y.return=m,m=y),o(m)):r(m,y)}return g}var xf=$3(!0),F3=$3(!1),mv={},Pa=Us(mv),yp=Us(mv),xp=Us(mv);function ql(e){if(e===mv)throw Error(ae(174));return e}function M2(e,t){switch(Ot(xp,t),Ot(yp,e),Ot(Pa,mv),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Zw(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Zw(t,e)}Ft(Pa),Ot(Pa,t)}function Sf(){Ft(Pa),Ft(yp),Ft(xp)}function V3(e){ql(xp.current);var t=ql(Pa.current),r=Zw(t,e.type);t!==r&&(Ot(yp,e),Ot(Pa,r))}function k2(e){yp.current===e&&(Ft(Pa),Ft(yp))}var Yt=Us(0);function Ry(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var TS=[];function I2(){for(var e=0;er?r:4,e(!0);var n=AS.transition;AS.transition={};try{e(!1),t()}finally{Ct=r,AS.transition=n}}function n4(){return wi().memoizedState}function rX(e,t,r){var n=bs(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},i4(e))a4(t,r);else if(r=O3(e,t,r,n),r!==null){var i=sn();Ui(r,e,n,i),o4(r,t,n)}}function nX(e,t,r){var n=bs(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(i4(e))a4(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,r);if(i.hasEagerState=!0,i.eagerState=s,Xi(s,o)){var l=t.interleaved;l===null?(i.next=i,T2(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=O3(e,t,i,n),r!==null&&(i=sn(),Ui(r,e,n,i),o4(r,t,n))}}function i4(e){var t=e.alternate;return e===Zt||t!==null&&t===Zt}function a4(e,t){Ph=Ly=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function o4(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,f2(e,r)}}var Ey={readContext:_i,useCallback:Vr,useContext:Vr,useEffect:Vr,useImperativeHandle:Vr,useInsertionEffect:Vr,useLayoutEffect:Vr,useMemo:Vr,useReducer:Vr,useRef:Vr,useState:Vr,useDebugValue:Vr,useDeferredValue:Vr,useTransition:Vr,useMutableSource:Vr,useSyncExternalStore:Vr,useId:Vr,unstable_isNewReconciler:!1},iX={readContext:_i,useCallback:function(e,t){return fa().memoizedState=[e,t===void 0?null:t],e},useContext:_i,useEffect:cD,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,zm(4194308,4,Q3.bind(null,t,e),r)},useLayoutEffect:function(e,t){return zm(4194308,4,e,t)},useInsertionEffect:function(e,t){return zm(4,2,e,t)},useMemo:function(e,t){var r=fa();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=fa();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=rX.bind(null,Zt,e),[n.memoizedState,e]},useRef:function(e){var t=fa();return e={current:e},t.memoizedState=e},useState:uD,useDebugValue:E2,useDeferredValue:function(e){return fa().memoizedState=e},useTransition:function(){var e=uD(!1),t=e[0];return e=tX.bind(null,e[1]),fa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Zt,i=fa();if(Wt){if(r===void 0)throw Error(ae(407));r=r()}else{if(r=t(),Ar===null)throw Error(ae(349));Su&30||W3(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,cD(U3.bind(null,n,a,e),[e]),n.flags|=2048,_p(9,j3.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=fa(),t=Ar.identifierPrefix;if(Wt){var r=ao,n=io;r=(n&~(1<<32-ji(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Sp++,0")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{cS=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?nh(e):""}function Oq(e){switch(e.tag){case 5:return nh(e.type);case 16:return nh("Lazy");case 13:return nh("Suspense");case 19:return nh("SuspenseList");case 0:case 2:case 15:return e=fS(e.type,!1),e;case 11:return e=fS(e.type.render,!1),e;case 1:return e=fS(e.type,!0),e;default:return""}}function Uw(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Oc:return"Fragment";case Ec:return"Portal";case Hw:return"Profiler";case s2:return"StrictMode";case Ww:return"Suspense";case jw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case GF:return(e.displayName||"Context")+".Consumer";case VF:return(e._context.displayName||"Context")+".Provider";case l2:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case u2:return t=e.displayName||null,t!==null?t:Uw(e.type)||"Memo";case Zo:t=e._payload,e=e._init;try{return Uw(e(t))}catch{}}return null}function Nq(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Uw(t);case 8:return t===s2?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Is(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function WF(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function zq(e){var t=WF(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Qv(e){e._valueTracker||(e._valueTracker=zq(e))}function jF(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=WF(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function gy(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function qw(e,t){var r=t.checked;return Kt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function PP(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Is(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function UF(e,t){t=t.checked,t!=null&&o2(e,"checked",t,!1)}function Yw(e,t){UF(e,t);var r=Is(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Xw(e,t.type,r):t.hasOwnProperty("defaultValue")&&Xw(e,t.type,Is(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function DP(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Xw(e,t,r){(t!=="number"||gy(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var ih=Array.isArray;function Qc(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Jv.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function lp(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Th={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Bq=["Webkit","ms","Moz","O"];Object.keys(Th).forEach(function(e){Bq.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Th[t]=Th[e]})});function ZF(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Th.hasOwnProperty(e)&&Th[e]?(""+t).trim():t+"px"}function KF(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=ZF(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var $q=Kt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Qw(e,t){if(t){if($q[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ae(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ae(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ae(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ae(62))}}function Jw(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var eC=null;function c2(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var tC=null,Jc=null,ef=null;function EP(e){if(e=gv(e)){if(typeof tC!="function")throw Error(ae(280));var t=e.stateNode;t&&(t=c1(t),tC(e.stateNode,e.type,t))}}function QF(e){Jc?ef?ef.push(e):ef=[e]:Jc=e}function JF(){if(Jc){var e=Jc,t=ef;if(ef=Jc=null,EP(e),t)for(e=0;e>>=0,e===0?32:31-(Zq(e)/Kq|0)|0}var eg=64,tg=4194304;function ah(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Sy(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,a=e.pingedLanes,o=r&268435455;if(o!==0){var s=o&~i;s!==0?n=ah(s):(a&=o,a!==0&&(n=ah(a)))}else o=r&~i,o!==0?n=ah(o):a!==0&&(n=ah(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function pv(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ji(t),e[t]=r}function tY(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=Mh),HP=String.fromCharCode(32),WP=!1;function x3(e,t){switch(e){case"keyup":return IY.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function S3(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nc=!1;function DY(e,t){switch(e){case"compositionend":return S3(t);case"keypress":return t.which!==32?null:(WP=!0,HP);case"textInput":return e=t.data,e===HP&&WP?null:e;default:return null}}function RY(e,t){if(Nc)return e==="compositionend"||!y2&&x3(e,t)?(e=m3(),Lm=v2=is=null,Nc=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=YP(r)}}function C3(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?C3(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function T3(){for(var e=window,t=gy();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=gy(e.document)}return t}function x2(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function VY(e){var t=T3(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&C3(r.ownerDocument.documentElement,r)){if(n!==null&&x2(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,a=Math.min(n.start,i);n=n.end===void 0?a:Math.min(n.end,i),!e.extend&&a>n&&(i=n,n=a,a=i),i=XP(r,a);var o=XP(r,n);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,zc=null,sC=null,Ih=null,lC=!1;function ZP(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;lC||zc==null||zc!==gy(n)||(n=zc,"selectionStart"in n&&x2(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Ih&&pp(Ih,n)||(Ih=n,n=wy(sC,"onSelect"),0Fc||(e.current=pC[Fc],pC[Fc]=null,Fc--)}function Ot(e,t){Fc++,pC[Fc]=e.current,e.current=t}var Ps={},Xr=qs(Ps),Cn=qs(!1),Su=Ps;function mf(e,t){var r=e.type.contextTypes;if(!r)return Ps;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Tn(e){return e=e.childContextTypes,e!=null}function Ty(){Ft(Cn),Ft(Xr)}function nD(e,t,r){if(Xr.current!==Ps)throw Error(ae(168));Ot(Xr,t),Ot(Cn,r)}function E3(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(ae(108,Nq(e)||"Unknown",i));return Kt({},r,n)}function Ay(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ps,Su=Xr.current,Ot(Xr,e),Ot(Cn,Cn.current),!0}function iD(e,t,r){var n=e.stateNode;if(!n)throw Error(ae(169));r?(e=E3(e,t,Su),n.__reactInternalMemoizedMergedChildContext=e,Ft(Cn),Ft(Xr),Ot(Xr,e)):Ft(Cn),Ot(Cn,r)}var no=null,f1=!1,TS=!1;function O3(e){no===null?no=[e]:no.push(e)}function JY(e){f1=!0,O3(e)}function Ys(){if(!TS&&no!==null){TS=!0;var e=0,t=Ct;try{var r=no;for(Ct=1;e>=o,i-=o,io=1<<32-ji(t)+i|r<C?(A=w,w=null):A=w.sibling;var T=d(m,w,x[C],S);if(T===null){w===null&&(w=A);break}e&&w&&T.alternate===null&&t(m,w),y=a(T,y,C),b===null?_=T:b.sibling=T,b=T,w=A}if(C===x.length)return r(m,w),Wt&&Al(m,C),_;if(w===null){for(;CC?(A=w,w=null):A=w.sibling;var M=d(m,w,T.value,S);if(M===null){w===null&&(w=A);break}e&&w&&M.alternate===null&&t(m,w),y=a(M,y,C),b===null?_=M:b.sibling=M,b=M,w=A}if(T.done)return r(m,w),Wt&&Al(m,C),_;if(w===null){for(;!T.done;C++,T=x.next())T=f(m,T.value,S),T!==null&&(y=a(T,y,C),b===null?_=T:b.sibling=T,b=T);return Wt&&Al(m,C),_}for(w=n(m,w);!T.done;C++,T=x.next())T=h(w,m,C,T.value,S),T!==null&&(e&&T.alternate!==null&&w.delete(T.key===null?C:T.key),y=a(T,y,C),b===null?_=T:b.sibling=T,b=T);return e&&w.forEach(function(k){return t(m,k)}),Wt&&Al(m,C),_}function g(m,y,x,S){if(typeof x=="object"&&x!==null&&x.type===Oc&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Kv:e:{for(var _=x.key,b=y;b!==null;){if(b.key===_){if(_=x.type,_===Oc){if(b.tag===7){r(m,b.sibling),y=i(b,x.props.children),y.return=m,m=y;break e}}else if(b.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Zo&&fD(_)===b.type){r(m,b.sibling),y=i(b,x.props),y.ref=md(m,b,x),y.return=m,m=y;break e}r(m,b);break}else t(m,b);b=b.sibling}x.type===Oc?(y=lu(x.props.children,m.mode,S,x.key),y.return=m,m=y):(S=Vm(x.type,x.key,x.props,null,m.mode,S),S.ref=md(m,y,x),S.return=m,m=S)}return o(m);case Ec:e:{for(b=x.key;y!==null;){if(y.key===b)if(y.tag===4&&y.stateNode.containerInfo===x.containerInfo&&y.stateNode.implementation===x.implementation){r(m,y.sibling),y=i(y,x.children||[]),y.return=m,m=y;break e}else{r(m,y);break}else t(m,y);y=y.sibling}y=LS(x,m.mode,S),y.return=m,m=y}return o(m);case Zo:return b=x._init,g(m,y,b(x._payload),S)}if(ih(x))return p(m,y,x,S);if(dd(x))return v(m,y,x,S);lg(m,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,y!==null&&y.tag===6?(r(m,y.sibling),y=i(y,x),y.return=m,m=y):(r(m,y),y=RS(x,m.mode,S),y.return=m,m=y),o(m)):r(m,y)}return g}var xf=H3(!0),W3=H3(!1),mv={},Pa=qs(mv),yp=qs(mv),xp=qs(mv);function Xl(e){if(e===mv)throw Error(ae(174));return e}function k2(e,t){switch(Ot(xp,t),Ot(yp,e),Ot(Pa,mv),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Kw(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Kw(t,e)}Ft(Pa),Ot(Pa,t)}function Sf(){Ft(Pa),Ft(yp),Ft(xp)}function j3(e){Xl(xp.current);var t=Xl(Pa.current),r=Kw(t,e.type);t!==r&&(Ot(yp,e),Ot(Pa,r))}function I2(e){yp.current===e&&(Ft(Pa),Ft(yp))}var Yt=qs(0);function Ry(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var AS=[];function P2(){for(var e=0;er?r:4,e(!0);var n=MS.transition;MS.transition={};try{e(!1),t()}finally{Ct=r,MS.transition=n}}function s4(){return wi().memoizedState}function nX(e,t,r){var n=bs(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},l4(e))u4(t,r);else if(r=$3(e,t,r,n),r!==null){var i=sn();Ui(r,e,n,i),c4(r,t,n)}}function iX(e,t,r){var n=bs(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(l4(e))u4(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,r);if(i.hasEagerState=!0,i.eagerState=s,Xi(s,o)){var l=t.interleaved;l===null?(i.next=i,A2(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=$3(e,t,i,n),r!==null&&(i=sn(),Ui(r,e,n,i),c4(r,t,n))}}function l4(e){var t=e.alternate;return e===Zt||t!==null&&t===Zt}function u4(e,t){Ph=Ly=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function c4(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,d2(e,r)}}var Ey={readContext:_i,useCallback:Vr,useContext:Vr,useEffect:Vr,useImperativeHandle:Vr,useInsertionEffect:Vr,useLayoutEffect:Vr,useMemo:Vr,useReducer:Vr,useRef:Vr,useState:Vr,useDebugValue:Vr,useDeferredValue:Vr,useTransition:Vr,useMutableSource:Vr,useSyncExternalStore:Vr,useId:Vr,unstable_isNewReconciler:!1},aX={readContext:_i,useCallback:function(e,t){return fa().memoizedState=[e,t===void 0?null:t],e},useContext:_i,useEffect:hD,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,zm(4194308,4,r4.bind(null,t,e),r)},useLayoutEffect:function(e,t){return zm(4194308,4,e,t)},useInsertionEffect:function(e,t){return zm(4,2,e,t)},useMemo:function(e,t){var r=fa();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=fa();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=nX.bind(null,Zt,e),[n.memoizedState,e]},useRef:function(e){var t=fa();return e={current:e},t.memoizedState=e},useState:dD,useDebugValue:O2,useDeferredValue:function(e){return fa().memoizedState=e},useTransition:function(){var e=dD(!1),t=e[0];return e=rX.bind(null,e[1]),fa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Zt,i=fa();if(Wt){if(r===void 0)throw Error(ae(407));r=r()}else{if(r=t(),Ar===null)throw Error(ae(349));_u&30||Y3(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,hD(Z3.bind(null,n,a,e),[e]),n.flags|=2048,_p(9,X3.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=fa(),t=Ar.identifierPrefix;if(Wt){var r=ao,n=io;r=(n&~(1<<32-ji(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Sp++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[ga]=t,e[mp]=n,v4(e,t,!1,!1),t.stateNode=e;e:{switch(o=Qw(r,n),r){case"dialog":Bt("cancel",e),Bt("close",e),i=n;break;case"iframe":case"object":case"embed":Bt("load",e),i=n;break;case"video":case"audio":for(i=0;i_f&&(t.flags|=128,n=!0,yd(a,!1),t.lanes=4194304)}else{if(!n)if(e=Ry(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),yd(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Wt)return Gr(t),null}else 2*ar()-a.renderingStartTime>_f&&r!==1073741824&&(t.flags|=128,n=!0,yd(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(r=a.last,r!==null?r.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ar(),t.sibling=null,r=Yt.current,Ot(Yt,n?r&1|2:r&1),t):(Gr(t),null);case 22:case 23:return F2(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?zn&1073741824&&(Gr(t),t.subtreeFlags&6&&(t.flags|=8192)):Gr(t),null;case 24:return null;case 25:return null}throw Error(ae(156,t.tag))}function dX(e,t){switch(S2(t),t.tag){case 1:return Tn(t.type)&&Ty(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Sf(),Ft(Cn),Ft(Xr),I2(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return k2(t),null;case 13:if(Ft(Yt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ae(340));yf()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ft(Yt),null;case 4:return Sf(),null;case 10:return C2(t.type._context),null;case 22:case 23:return F2(),null;case 24:return null;default:return null}}var cg=!1,Yr=!1,hX=typeof WeakSet=="function"?WeakSet:Set,we=null;function Wc(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){er(e,t,n)}else r.current=null}function TC(e,t,r){try{r()}catch(n){er(e,t,n)}}var xD=!1;function pX(e,t){if(lC=by,e=b3(),y2(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var o=0,s=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==r||i!==0&&f.nodeType!==3||(s=o+i),f!==a||n!==0&&f.nodeType!==3||(l=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===r&&++u===i&&(s=o),d===a&&++c===n&&(l=o),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(uC={focusedElem:e,selectionRange:r},by=!1,we=t;we!==null;)if(t=we,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,we=e;else for(;we!==null;){t=we;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var v=p.memoizedProps,g=p.memoizedState,m=t.stateNode,y=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:Bi(t.type,v),g);m.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ae(163))}}catch(S){er(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,we=e;break}we=t.return}return p=xD,xD=!1,p}function Dh(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&TC(t,r,a)}i=i.next}while(i!==n)}}function p1(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function AC(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function y4(e){var t=e.alternate;t!==null&&(e.alternate=null,y4(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ga],delete t[mp],delete t[dC],delete t[ZY],delete t[KY])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function x4(e){return e.tag===5||e.tag===3||e.tag===4}function SD(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||x4(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function MC(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Cy));else if(n!==4&&(e=e.child,e!==null))for(MC(e,t,r),e=e.sibling;e!==null;)MC(e,t,r),e=e.sibling}function kC(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(kC(e,t,r),e=e.sibling;e!==null;)kC(e,t,r),e=e.sibling}var Ir=null,Fi=!1;function Oo(e,t,r){for(r=r.child;r!==null;)S4(e,t,r),r=r.sibling}function S4(e,t,r){if(Ia&&typeof Ia.onCommitFiberUnmount=="function")try{Ia.onCommitFiberUnmount(o1,r)}catch{}switch(r.tag){case 5:Yr||Wc(r,t);case 6:var n=Ir,i=Fi;Ir=null,Oo(e,t,r),Ir=n,Fi=i,Ir!==null&&(Fi?(e=Ir,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ir.removeChild(r.stateNode));break;case 18:Ir!==null&&(Fi?(e=Ir,r=r.stateNode,e.nodeType===8?wS(e.parentNode,r):e.nodeType===1&&wS(e,r),dp(e)):wS(Ir,r.stateNode));break;case 4:n=Ir,i=Fi,Ir=r.stateNode.containerInfo,Fi=!0,Oo(e,t,r),Ir=n,Fi=i;break;case 0:case 11:case 14:case 15:if(!Yr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&TC(r,t,o),i=i.next}while(i!==n)}Oo(e,t,r);break;case 1:if(!Yr&&(Wc(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){er(r,t,s)}Oo(e,t,r);break;case 21:Oo(e,t,r);break;case 22:r.mode&1?(Yr=(n=Yr)||r.memoizedState!==null,Oo(e,t,r),Yr=n):Oo(e,t,r);break;default:Oo(e,t,r)}}function bD(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new hX),t.forEach(function(n){var i=wX.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Ri(e,t){var r=t.deletions;if(r!==null)for(var n=0;ni&&(i=o),n&=~a}if(n=i,n=ar()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*gX(n/1960))-n,10e?16:e,as===null)var n=!1;else{if(e=as,as=null,zy=0,ht&6)throw Error(ae(331));var i=ht;for(ht|=4,we=e.current;we!==null;){var a=we,o=a.child;if(we.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lar()-B2?au(e,0):z2|=r),An(e,t)}function k4(e,t){t===0&&(e.mode&1?(t=tg,tg<<=1,!(tg&130023424)&&(tg=4194304)):t=1);var r=sn();e=mo(e,t),e!==null&&(pv(e,t,r),An(e,r))}function _X(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),k4(e,r)}function wX(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(ae(314))}n!==null&&n.delete(t),k4(e,r)}var I4;I4=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Cn.current)wn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return wn=!1,cX(e,t,r);wn=!!(e.flags&131072)}else wn=!1,Wt&&t.flags&1048576&&R3(t,ky,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Bm(e,t),e=t.pendingProps;var i=mf(t,Xr.current);rf(t,r),i=D2(null,t,n,e,i,r);var a=R2();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Tn(n)?(a=!0,Ay(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,A2(t),i.updater=d1,t.stateNode=i,i._reactInternals=t,yC(t,n,e,r),t=bC(null,t,n,!0,a,r)):(t.tag=0,Wt&&a&&x2(t),rn(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Bm(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=TX(n),e=Bi(n,e),i){case 0:t=SC(null,t,n,e,r);break e;case 1:t=gD(null,t,n,e,r);break e;case 11:t=pD(null,t,n,e,r);break e;case 14:t=vD(null,t,n,Bi(n.type,e),r);break e}throw Error(ae(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Bi(n,i),SC(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Bi(n,i),gD(e,t,n,i,r);case 3:e:{if(d4(t),e===null)throw Error(ae(387));n=t.pendingProps,a=t.memoizedState,i=a.element,N3(e,t),Dy(t,n,null,r);var o=t.memoizedState;if(n=o.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=bf(Error(ae(423)),t),t=mD(e,t,n,r,i);break e}else if(n!==i){i=bf(Error(ae(424)),t),t=mD(e,t,n,r,i);break e}else for(Fn=ys(t.stateNode.containerInfo.firstChild),Gn=t,Wt=!0,Vi=null,r=F3(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(yf(),n===i){t=yo(e,t,r);break e}rn(e,t,n,r)}t=t.child}return t;case 5:return V3(t),e===null&&vC(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,cC(n,i)?o=null:a!==null&&cC(n,a)&&(t.flags|=32),f4(e,t),rn(e,t,o,r),t.child;case 6:return e===null&&vC(t),null;case 13:return h4(e,t,r);case 4:return M2(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=xf(t,null,n,r):rn(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Bi(n,i),pD(e,t,n,i,r);case 7:return rn(e,t,t.pendingProps,r),t.child;case 8:return rn(e,t,t.pendingProps.children,r),t.child;case 12:return rn(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,Ot(Iy,n._currentValue),n._currentValue=o,a!==null)if(Xi(a.value,o)){if(a.children===i.children&&!Cn.current){t=yo(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(a.tag===1){l=lo(-1,r&-r),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),gC(a.return,r,t),s.lanes|=r;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(ae(341));o.lanes|=r,s=o.alternate,s!==null&&(s.lanes|=r),gC(o,r,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}rn(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,rf(t,r),i=_i(i),n=n(i),t.flags|=1,rn(e,t,n,r),t.child;case 14:return n=t.type,i=Bi(n,t.pendingProps),i=Bi(n.type,i),vD(e,t,n,i,r);case 15:return u4(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Bi(n,i),Bm(e,t),t.tag=1,Tn(n)?(e=!0,Ay(t)):e=!1,rf(t,r),B3(t,n,i),yC(t,n,i,r),bC(null,t,n,!0,e,r);case 19:return p4(e,t,r);case 22:return c4(e,t,r)}throw Error(ae(156,t.tag))};function P4(e,t){return r3(e,t)}function CX(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gi(e,t,r,n){return new CX(e,t,r,n)}function G2(e){return e=e.prototype,!(!e||!e.isReactComponent)}function TX(e){if(typeof e=="function")return G2(e)?1:0;if(e!=null){if(e=e.$$typeof,e===s2)return 11;if(e===l2)return 14}return 2}function _s(e,t){var r=e.alternate;return r===null?(r=gi(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Vm(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")G2(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Oc:return ou(r.children,i,a,t);case o2:o=8,i|=8;break;case Gw:return e=gi(12,r,t,i|2),e.elementType=Gw,e.lanes=a,e;case Hw:return e=gi(13,r,t,i),e.elementType=Hw,e.lanes=a,e;case Ww:return e=gi(19,r,t,i),e.elementType=Ww,e.lanes=a,e;case $F:return g1(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case zF:o=10;break e;case BF:o=9;break e;case s2:o=11;break e;case l2:o=14;break e;case Zo:o=16,n=null;break e}throw Error(ae(130,e==null?e:typeof e,""))}return t=gi(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function ou(e,t,r,n){return e=gi(7,e,n,t),e.lanes=r,e}function g1(e,t,r,n){return e=gi(22,e,n,t),e.elementType=$F,e.lanes=r,e.stateNode={isHidden:!1},e}function DS(e,t,r){return e=gi(6,e,null,t),e.lanes=r,e}function RS(e,t,r){return t=gi(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function AX(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=dS(0),this.expirationTimes=dS(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=dS(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function H2(e,t,r,n,i,a,o,s,l){return e=new AX(e,t,r,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=gi(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},A2(a),e}function MX(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(E4)}catch(e){console.error(e)}}E4(),RF.exports=Xn;var Gf=RF.exports;const hg=dv(Gf);var ID=Gf;Fw.createRoot=ID.createRoot,Fw.hydrateRoot=ID.hydrateRoot;const RX=O.createContext(null),LS={didCatch:!1,error:null};class LX extends O.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=LS}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var r,n,i=arguments.length,a=new Array(i),o=0;o0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}function Rr(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n3?t.i-4:t.i:Array.isArray(e)?1:b1(e)?2:_1(e)?3:0}function ws(e,t){return Rs(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Gm(e,t){return Rs(e)===2?e.get(t):e[t]}function O4(e,t,r){var n=Rs(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function N4(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function b1(e){return VX&&e instanceof Map}function _1(e){return GX&&e instanceof Set}function Ml(e){return e.o||e.t}function q2(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=B4(e);delete t[$t];for(var r=af(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=NX),Object.freeze(e),t&&Ds(e,function(r,n){return Y2(n,!0)},!0)),e}function NX(){Rr(2)}function X2(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Da(e){var t=NC[e];return t||Rr(18,e),t}function z4(e,t){NC[e]||(NC[e]=t)}function LC(){return Cp}function ES(e,t){t&&(Da("Patches"),e.u=[],e.s=[],e.v=t)}function Fy(e){EC(e),e.p.forEach(zX),e.p=null}function EC(e){e===Cp&&(Cp=e.l)}function PD(e){return Cp={p:[],l:Cp,h:e,m:!0,_:0}}function zX(e){var t=e[$t];t.i===0||t.i===1?t.j():t.g=!0}function OS(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||Da("ES5").S(t,e,n),n?(r[$t].P&&(Fy(t),Rr(4)),Ki(e)&&(e=Vy(t,e),t.l||Gy(t,e)),t.u&&Da("Patches").M(r[$t].t,e,t.u,t.s)):e=Vy(t,r,[]),Fy(t),t.u&&t.v(t.u,t.s),e!==K2?e:void 0}function Vy(e,t,r){if(X2(t))return t;var n=t[$t];if(!n)return Ds(t,function(s,l){return DD(e,n,t,s,l,r)},!0),t;if(n.A!==e)return t;if(!n.P)return Gy(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=q2(n.k):n.o,a=i,o=!1;n.i===3&&(a=new Set(i),i.clear(),o=!0),Ds(a,function(s,l){return DD(e,n,i,s,l,r,o)}),Gy(e,i,!1),r&&e.u&&Da("Patches").N(n,r,e.u,e.s)}return n.o}function DD(e,t,r,n,i,a,o){if(Zi(i)){var s=Vy(e,i,a&&t&&t.i!==3&&!ws(t.R,n)?a.concat(n):void 0);if(O4(r,n,s),!Zi(s))return;e.m=!1}else o&&r.add(i);if(Ki(i)&&!X2(i)){if(!e.h.D&&e._<1)return;Vy(e,i),t&&t.A.l||Gy(e,i)}}function Gy(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Y2(t,r)}function NS(e,t){var r=e[$t];return(r?Ml(r):e)[t]}function RD(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function ns(e){e.P||(e.P=!0,e.l&&ns(e.l))}function zS(e){e.o||(e.o=q2(e.t))}function OC(e,t,r){var n=b1(t)?Da("MapSet").F(t,r):_1(t)?Da("MapSet").T(t,r):e.O?function(i,a){var o=Array.isArray(i),s={i:o?1:0,A:a?a.A:LC(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},l=s,u=Tp;o&&(l=[s],u=sh);var c=Proxy.revocable(l,u),f=c.revoke,d=c.proxy;return s.k=d,s.j=f,d}(t,r):Da("ES5").J(t,r);return(r?r.A:LC()).p.push(n),n}function BX(e){return Zi(e)||Rr(22,e),function t(r){if(!Ki(r))return r;var n,i=r[$t],a=Rs(r);if(i){if(!i.P&&(i.i<4||!Da("ES5").K(i)))return i.t;i.I=!0,n=LD(r,a),i.I=!1}else n=LD(r,a);return Ds(n,function(o,s){i&&Gm(i.t,o)===s||O4(n,o,t(s))}),a===3?new Set(n):n}(e)}function LD(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return q2(e)}function $X(){function e(a,o){var s=i[a];return s?s.enumerable=o:i[a]=s={configurable:!0,enumerable:o,get:function(){var l=this[$t];return Tp.get(l,a)},set:function(l){var u=this[$t];Tp.set(u,a,l)}},s}function t(a){for(var o=a.length-1;o>=0;o--){var s=a[o][$t];if(!s.P)switch(s.i){case 5:n(s)&&ns(s);break;case 4:r(s)&&ns(s)}}}function r(a){for(var o=a.t,s=a.k,l=af(s),u=l.length-1;u>=0;u--){var c=l[u];if(c!==$t){var f=o[c];if(f===void 0&&!ws(o,c))return!0;var d=s[c],h=d&&d[$t];if(h?h.t!==f:!N4(d,f))return!0}}var p=!!o[$t];return l.length!==af(o).length+(p?0:1)}function n(a){var o=a.k;if(o.length!==a.t.length)return!0;var s=Object.getOwnPropertyDescriptor(o,o.length-1);if(s&&!s.get)return!0;for(var l=0;l1?m-1:0),x=1;x1?c-1:0),d=1;d=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var o=Da("Patches").$;return Zi(r)?o(r,n):this.produce(r,function(s){return o(s,n)})},e}(),qn=new WX,yv=qn.produce,$4=qn.produceWithPatches.bind(qn);qn.setAutoFreeze.bind(qn);qn.setUseProxies.bind(qn);var ND=qn.applyPatches.bind(qn);qn.createDraft.bind(qn);qn.finishDraft.bind(qn);function Ap(e){"@babel/helpers - typeof";return Ap=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ap(e)}function jX(e,t){if(Ap(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ap(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function UX(e){var t=jX(e,"string");return Ap(t)==="symbol"?t:String(t)}function qX(e,t,r){return t=UX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function BD(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Ur(1));return r(F4)(e,t)}if(typeof e!="function")throw new Error(Ur(2));var i=e,a=t,o=[],s=o,l=!1;function u(){s===o&&(s=o.slice())}function c(){if(l)throw new Error(Ur(3));return a}function f(v){if(typeof v!="function")throw new Error(Ur(4));if(l)throw new Error(Ur(5));var g=!0;return u(),s.push(v),function(){if(g){if(l)throw new Error(Ur(6));g=!1,u();var y=s.indexOf(v);s.splice(y,1),o=null}}}function d(v){if(!YX(v))throw new Error(Ur(7));if(typeof v.type>"u")throw new Error(Ur(8));if(l)throw new Error(Ur(9));try{l=!0,a=i(a,v)}finally{l=!1}for(var g=o=s,m=0;m"u")throw new Error(Ur(12));if(typeof r(void 0,{type:Hy.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ur(13))})}function w1(e){for(var t=Object.keys(e),r={},n=0;n"u")throw u&&u.type,new Error(Ur(14));f[h]=g,c=c||g!==v}return c=c||a.length!==Object.keys(l).length,c?f:l}}function Wy(){for(var e=arguments.length,t=new Array(e),r=0;r-1){var u=r[l];return l>0&&(r.splice(l,1),r.unshift(u)),u.value}return jy}function i(s,l){n(s)===jy&&(r.unshift({key:s,value:l}),r.length>e&&r.pop())}function a(){return r}function o(){r=[]}return{get:n,put:i,getEntries:a,clear:o}}var JX=function(t,r){return t===r};function eZ(e){return function(r,n){if(r===null||n===null||r.length!==n.length)return!1;for(var i=r.length,a=0;a1?t-1:0),n=1;n0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]-1;return r&&n}function xv(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function Q2(){for(var e=[],t=0;t<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[ga]=t,e[mp]=n,x4(e,t,!1,!1),t.stateNode=e;e:{switch(o=Jw(r,n),r){case"dialog":Bt("cancel",e),Bt("close",e),i=n;break;case"iframe":case"object":case"embed":Bt("load",e),i=n;break;case"video":case"audio":for(i=0;i_f&&(t.flags|=128,n=!0,yd(a,!1),t.lanes=4194304)}else{if(!n)if(e=Ry(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),yd(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Wt)return Gr(t),null}else 2*ar()-a.renderingStartTime>_f&&r!==1073741824&&(t.flags|=128,n=!0,yd(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(r=a.last,r!==null?r.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ar(),t.sibling=null,r=Yt.current,Ot(Yt,n?r&1|2:r&1),t):(Gr(t),null);case 22:case 23:return V2(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?zn&1073741824&&(Gr(t),t.subtreeFlags&6&&(t.flags|=8192)):Gr(t),null;case 24:return null;case 25:return null}throw Error(ae(156,t.tag))}function hX(e,t){switch(b2(t),t.tag){case 1:return Tn(t.type)&&Ty(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Sf(),Ft(Cn),Ft(Xr),P2(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return I2(t),null;case 13:if(Ft(Yt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ae(340));yf()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ft(Yt),null;case 4:return Sf(),null;case 10:return T2(t.type._context),null;case 22:case 23:return V2(),null;case 24:return null;default:return null}}var cg=!1,Yr=!1,pX=typeof WeakSet=="function"?WeakSet:Set,we=null;function Wc(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){er(e,t,n)}else r.current=null}function AC(e,t,r){try{r()}catch(n){er(e,t,n)}}var _D=!1;function vX(e,t){if(uC=by,e=T3(),x2(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var o=0,s=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==r||i!==0&&f.nodeType!==3||(s=o+i),f!==a||n!==0&&f.nodeType!==3||(l=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===r&&++u===i&&(s=o),d===a&&++c===n&&(l=o),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(cC={focusedElem:e,selectionRange:r},by=!1,we=t;we!==null;)if(t=we,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,we=e;else for(;we!==null;){t=we;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var v=p.memoizedProps,g=p.memoizedState,m=t.stateNode,y=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:Bi(t.type,v),g);m.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ae(163))}}catch(S){er(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,we=e;break}we=t.return}return p=_D,_D=!1,p}function Dh(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&AC(t,r,a)}i=i.next}while(i!==n)}}function p1(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function MC(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function _4(e){var t=e.alternate;t!==null&&(e.alternate=null,_4(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ga],delete t[mp],delete t[hC],delete t[KY],delete t[QY])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function w4(e){return e.tag===5||e.tag===3||e.tag===4}function wD(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||w4(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function kC(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Cy));else if(n!==4&&(e=e.child,e!==null))for(kC(e,t,r),e=e.sibling;e!==null;)kC(e,t,r),e=e.sibling}function IC(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(IC(e,t,r),e=e.sibling;e!==null;)IC(e,t,r),e=e.sibling}var Ir=null,Fi=!1;function Oo(e,t,r){for(r=r.child;r!==null;)C4(e,t,r),r=r.sibling}function C4(e,t,r){if(Ia&&typeof Ia.onCommitFiberUnmount=="function")try{Ia.onCommitFiberUnmount(o1,r)}catch{}switch(r.tag){case 5:Yr||Wc(r,t);case 6:var n=Ir,i=Fi;Ir=null,Oo(e,t,r),Ir=n,Fi=i,Ir!==null&&(Fi?(e=Ir,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ir.removeChild(r.stateNode));break;case 18:Ir!==null&&(Fi?(e=Ir,r=r.stateNode,e.nodeType===8?CS(e.parentNode,r):e.nodeType===1&&CS(e,r),dp(e)):CS(Ir,r.stateNode));break;case 4:n=Ir,i=Fi,Ir=r.stateNode.containerInfo,Fi=!0,Oo(e,t,r),Ir=n,Fi=i;break;case 0:case 11:case 14:case 15:if(!Yr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&AC(r,t,o),i=i.next}while(i!==n)}Oo(e,t,r);break;case 1:if(!Yr&&(Wc(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){er(r,t,s)}Oo(e,t,r);break;case 21:Oo(e,t,r);break;case 22:r.mode&1?(Yr=(n=Yr)||r.memoizedState!==null,Oo(e,t,r),Yr=n):Oo(e,t,r);break;default:Oo(e,t,r)}}function CD(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new pX),t.forEach(function(n){var i=CX.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Ri(e,t){var r=t.deletions;if(r!==null)for(var n=0;ni&&(i=o),n&=~a}if(n=i,n=ar()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*mX(n/1960))-n,10e?16:e,as===null)var n=!1;else{if(e=as,as=null,zy=0,ht&6)throw Error(ae(331));var i=ht;for(ht|=4,we=e.current;we!==null;){var a=we,o=a.child;if(we.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lar()-$2?su(e,0):B2|=r),An(e,t)}function R4(e,t){t===0&&(e.mode&1?(t=tg,tg<<=1,!(tg&130023424)&&(tg=4194304)):t=1);var r=sn();e=mo(e,t),e!==null&&(pv(e,t,r),An(e,r))}function wX(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),R4(e,r)}function CX(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(ae(314))}n!==null&&n.delete(t),R4(e,r)}var L4;L4=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Cn.current)wn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return wn=!1,fX(e,t,r);wn=!!(e.flags&131072)}else wn=!1,Wt&&t.flags&1048576&&N3(t,ky,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Bm(e,t),e=t.pendingProps;var i=mf(t,Xr.current);rf(t,r),i=R2(null,t,n,e,i,r);var a=L2();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Tn(n)?(a=!0,Ay(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,M2(t),i.updater=d1,t.stateNode=i,i._reactInternals=t,xC(t,n,e,r),t=_C(null,t,n,!0,a,r)):(t.tag=0,Wt&&a&&S2(t),rn(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Bm(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=AX(n),e=Bi(n,e),i){case 0:t=bC(null,t,n,e,r);break e;case 1:t=xD(null,t,n,e,r);break e;case 11:t=mD(null,t,n,e,r);break e;case 14:t=yD(null,t,n,Bi(n.type,e),r);break e}throw Error(ae(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Bi(n,i),bC(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Bi(n,i),xD(e,t,n,i,r);case 3:e:{if(g4(t),e===null)throw Error(ae(387));n=t.pendingProps,a=t.memoizedState,i=a.element,F3(e,t),Dy(t,n,null,r);var o=t.memoizedState;if(n=o.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=bf(Error(ae(423)),t),t=SD(e,t,n,r,i);break e}else if(n!==i){i=bf(Error(ae(424)),t),t=SD(e,t,n,r,i);break e}else for(Fn=ys(t.stateNode.containerInfo.firstChild),Gn=t,Wt=!0,Vi=null,r=W3(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(yf(),n===i){t=yo(e,t,r);break e}rn(e,t,n,r)}t=t.child}return t;case 5:return j3(t),e===null&&gC(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,fC(n,i)?o=null:a!==null&&fC(n,a)&&(t.flags|=32),v4(e,t),rn(e,t,o,r),t.child;case 6:return e===null&&gC(t),null;case 13:return m4(e,t,r);case 4:return k2(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=xf(t,null,n,r):rn(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Bi(n,i),mD(e,t,n,i,r);case 7:return rn(e,t,t.pendingProps,r),t.child;case 8:return rn(e,t,t.pendingProps.children,r),t.child;case 12:return rn(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,Ot(Iy,n._currentValue),n._currentValue=o,a!==null)if(Xi(a.value,o)){if(a.children===i.children&&!Cn.current){t=yo(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(a.tag===1){l=lo(-1,r&-r),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),mC(a.return,r,t),s.lanes|=r;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(ae(341));o.lanes|=r,s=o.alternate,s!==null&&(s.lanes|=r),mC(o,r,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}rn(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,rf(t,r),i=_i(i),n=n(i),t.flags|=1,rn(e,t,n,r),t.child;case 14:return n=t.type,i=Bi(n,t.pendingProps),i=Bi(n.type,i),yD(e,t,n,i,r);case 15:return h4(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Bi(n,i),Bm(e,t),t.tag=1,Tn(n)?(e=!0,Ay(t)):e=!1,rf(t,r),G3(t,n,i),xC(t,n,i,r),_C(null,t,n,!0,e,r);case 19:return y4(e,t,r);case 22:return p4(e,t,r)}throw Error(ae(156,t.tag))};function E4(e,t){return o3(e,t)}function TX(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gi(e,t,r,n){return new TX(e,t,r,n)}function H2(e){return e=e.prototype,!(!e||!e.isReactComponent)}function AX(e){if(typeof e=="function")return H2(e)?1:0;if(e!=null){if(e=e.$$typeof,e===l2)return 11;if(e===u2)return 14}return 2}function _s(e,t){var r=e.alternate;return r===null?(r=gi(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Vm(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")H2(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Oc:return lu(r.children,i,a,t);case s2:o=8,i|=8;break;case Hw:return e=gi(12,r,t,i|2),e.elementType=Hw,e.lanes=a,e;case Ww:return e=gi(13,r,t,i),e.elementType=Ww,e.lanes=a,e;case jw:return e=gi(19,r,t,i),e.elementType=jw,e.lanes=a,e;case HF:return g1(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case VF:o=10;break e;case GF:o=9;break e;case l2:o=11;break e;case u2:o=14;break e;case Zo:o=16,n=null;break e}throw Error(ae(130,e==null?e:typeof e,""))}return t=gi(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function lu(e,t,r,n){return e=gi(7,e,n,t),e.lanes=r,e}function g1(e,t,r,n){return e=gi(22,e,n,t),e.elementType=HF,e.lanes=r,e.stateNode={isHidden:!1},e}function RS(e,t,r){return e=gi(6,e,null,t),e.lanes=r,e}function LS(e,t,r){return t=gi(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function MX(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=hS(0),this.expirationTimes=hS(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hS(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function W2(e,t,r,n,i,a,o,s,l){return e=new MX(e,t,r,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=gi(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},M2(a),e}function kX(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(B4)}catch(e){console.error(e)}}B4(),NF.exports=Xn;var Gf=NF.exports;const hg=dv(Gf);var RD=Gf;Vw.createRoot=RD.createRoot,Vw.hydrateRoot=RD.hydrateRoot;const LX=O.createContext(null),ES={didCatch:!1,error:null};class EX extends O.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=ES}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var r,n,i=arguments.length,a=new Array(i),o=0;o0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}function Rr(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n3?t.i-4:t.i:Array.isArray(e)?1:b1(e)?2:_1(e)?3:0}function ws(e,t){return Rs(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Gm(e,t){return Rs(e)===2?e.get(t):e[t]}function $4(e,t,r){var n=Rs(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function F4(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function b1(e){return GX&&e instanceof Map}function _1(e){return HX&&e instanceof Set}function kl(e){return e.o||e.t}function Y2(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=G4(e);delete t[$t];for(var r=af(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=zX),Object.freeze(e),t&&Ds(e,function(r,n){return X2(n,!0)},!0)),e}function zX(){Rr(2)}function Z2(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Da(e){var t=zC[e];return t||Rr(18,e),t}function V4(e,t){zC[e]||(zC[e]=t)}function EC(){return Cp}function OS(e,t){t&&(Da("Patches"),e.u=[],e.s=[],e.v=t)}function Fy(e){OC(e),e.p.forEach(BX),e.p=null}function OC(e){e===Cp&&(Cp=e.l)}function LD(e){return Cp={p:[],l:Cp,h:e,m:!0,_:0}}function BX(e){var t=e[$t];t.i===0||t.i===1?t.j():t.g=!0}function NS(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||Da("ES5").S(t,e,n),n?(r[$t].P&&(Fy(t),Rr(4)),Ki(e)&&(e=Vy(t,e),t.l||Gy(t,e)),t.u&&Da("Patches").M(r[$t].t,e,t.u,t.s)):e=Vy(t,r,[]),Fy(t),t.u&&t.v(t.u,t.s),e!==Q2?e:void 0}function Vy(e,t,r){if(Z2(t))return t;var n=t[$t];if(!n)return Ds(t,function(s,l){return ED(e,n,t,s,l,r)},!0),t;if(n.A!==e)return t;if(!n.P)return Gy(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Y2(n.k):n.o,a=i,o=!1;n.i===3&&(a=new Set(i),i.clear(),o=!0),Ds(a,function(s,l){return ED(e,n,i,s,l,r,o)}),Gy(e,i,!1),r&&e.u&&Da("Patches").N(n,r,e.u,e.s)}return n.o}function ED(e,t,r,n,i,a,o){if(Zi(i)){var s=Vy(e,i,a&&t&&t.i!==3&&!ws(t.R,n)?a.concat(n):void 0);if($4(r,n,s),!Zi(s))return;e.m=!1}else o&&r.add(i);if(Ki(i)&&!Z2(i)){if(!e.h.D&&e._<1)return;Vy(e,i),t&&t.A.l||Gy(e,i)}}function Gy(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&X2(t,r)}function zS(e,t){var r=e[$t];return(r?kl(r):e)[t]}function OD(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function ns(e){e.P||(e.P=!0,e.l&&ns(e.l))}function BS(e){e.o||(e.o=Y2(e.t))}function NC(e,t,r){var n=b1(t)?Da("MapSet").F(t,r):_1(t)?Da("MapSet").T(t,r):e.O?function(i,a){var o=Array.isArray(i),s={i:o?1:0,A:a?a.A:EC(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},l=s,u=Tp;o&&(l=[s],u=sh);var c=Proxy.revocable(l,u),f=c.revoke,d=c.proxy;return s.k=d,s.j=f,d}(t,r):Da("ES5").J(t,r);return(r?r.A:EC()).p.push(n),n}function $X(e){return Zi(e)||Rr(22,e),function t(r){if(!Ki(r))return r;var n,i=r[$t],a=Rs(r);if(i){if(!i.P&&(i.i<4||!Da("ES5").K(i)))return i.t;i.I=!0,n=ND(r,a),i.I=!1}else n=ND(r,a);return Ds(n,function(o,s){i&&Gm(i.t,o)===s||$4(n,o,t(s))}),a===3?new Set(n):n}(e)}function ND(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Y2(e)}function FX(){function e(a,o){var s=i[a];return s?s.enumerable=o:i[a]=s={configurable:!0,enumerable:o,get:function(){var l=this[$t];return Tp.get(l,a)},set:function(l){var u=this[$t];Tp.set(u,a,l)}},s}function t(a){for(var o=a.length-1;o>=0;o--){var s=a[o][$t];if(!s.P)switch(s.i){case 5:n(s)&&ns(s);break;case 4:r(s)&&ns(s)}}}function r(a){for(var o=a.t,s=a.k,l=af(s),u=l.length-1;u>=0;u--){var c=l[u];if(c!==$t){var f=o[c];if(f===void 0&&!ws(o,c))return!0;var d=s[c],h=d&&d[$t];if(h?h.t!==f:!F4(d,f))return!0}}var p=!!o[$t];return l.length!==af(o).length+(p?0:1)}function n(a){var o=a.k;if(o.length!==a.t.length)return!0;var s=Object.getOwnPropertyDescriptor(o,o.length-1);if(s&&!s.get)return!0;for(var l=0;l1?m-1:0),x=1;x1?c-1:0),d=1;d=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var o=Da("Patches").$;return Zi(r)?o(r,n):this.produce(r,function(s){return o(s,n)})},e}(),qn=new jX,yv=qn.produce,H4=qn.produceWithPatches.bind(qn);qn.setAutoFreeze.bind(qn);qn.setUseProxies.bind(qn);var $D=qn.applyPatches.bind(qn);qn.createDraft.bind(qn);qn.finishDraft.bind(qn);function Ap(e){"@babel/helpers - typeof";return Ap=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ap(e)}function UX(e,t){if(Ap(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ap(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qX(e){var t=UX(e,"string");return Ap(t)==="symbol"?t:String(t)}function YX(e,t,r){return t=qX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function VD(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Ur(1));return r(W4)(e,t)}if(typeof e!="function")throw new Error(Ur(2));var i=e,a=t,o=[],s=o,l=!1;function u(){s===o&&(s=o.slice())}function c(){if(l)throw new Error(Ur(3));return a}function f(v){if(typeof v!="function")throw new Error(Ur(4));if(l)throw new Error(Ur(5));var g=!0;return u(),s.push(v),function(){if(g){if(l)throw new Error(Ur(6));g=!1,u();var y=s.indexOf(v);s.splice(y,1),o=null}}}function d(v){if(!XX(v))throw new Error(Ur(7));if(typeof v.type>"u")throw new Error(Ur(8));if(l)throw new Error(Ur(9));try{l=!0,a=i(a,v)}finally{l=!1}for(var g=o=s,m=0;m"u")throw new Error(Ur(12));if(typeof r(void 0,{type:Hy.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ur(13))})}function w1(e){for(var t=Object.keys(e),r={},n=0;n"u")throw u&&u.type,new Error(Ur(14));f[h]=g,c=c||g!==v}return c=c||a.length!==Object.keys(l).length,c?f:l}}function Wy(){for(var e=arguments.length,t=new Array(e),r=0;r-1){var u=r[l];return l>0&&(r.splice(l,1),r.unshift(u)),u.value}return jy}function i(s,l){n(s)===jy&&(r.unshift({key:s,value:l}),r.length>e&&r.pop())}function a(){return r}function o(){r=[]}return{get:n,put:i,getEntries:a,clear:o}}var eZ=function(t,r){return t===r};function tZ(e){return function(r,n){if(r===null||n===null||r.length!==n.length)return!1;for(var i=r.length,a=0;a1?t-1:0),n=1;n0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]-1;return r&&n}function xv(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function J2(){for(var e=[],t=0;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?LZ:RZ;X4.useSyncExternalStore=Cf.useSyncExternalStore!==void 0?Cf.useSyncExternalStore:EZ;Y4.exports=X4;var Z4=Y4.exports,K4={exports:{}},Q4={};/** + */var Cf=O;function MZ(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kZ=typeof Object.is=="function"?Object.is:MZ,IZ=Cf.useState,PZ=Cf.useEffect,DZ=Cf.useLayoutEffect,RZ=Cf.useDebugValue;function LZ(e,t){var r=t(),n=IZ({inst:{value:r,getSnapshot:t}}),i=n[0].inst,a=n[1];return DZ(function(){i.value=r,i.getSnapshot=t,HS(i)&&a({inst:i})},[e,r,t]),PZ(function(){return HS(i)&&a({inst:i}),e(function(){HS(i)&&a({inst:i})})},[e]),RZ(r),r}function HS(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!kZ(e,r)}catch{return!0}}function EZ(e,t){return t()}var OZ=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?EZ:LZ;J4.useSyncExternalStore=Cf.useSyncExternalStore!==void 0?Cf.useSyncExternalStore:OZ;Q4.exports=J4;var eV=Q4.exports,tV={exports:{}},rV={};/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * @@ -53,14 +53,14 @@ Error generating stack: `+a.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var A1=O,OZ=Z4;function NZ(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zZ=typeof Object.is=="function"?Object.is:NZ,BZ=OZ.useSyncExternalStore,$Z=A1.useRef,FZ=A1.useEffect,VZ=A1.useMemo,GZ=A1.useDebugValue;Q4.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var a=$Z(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=VZ(function(){function l(h){if(!u){if(u=!0,c=h,h=n(h),i!==void 0&&o.hasValue){var p=o.value;if(i(p,h))return f=p}return f=h}if(p=f,zZ(c,h))return p;var v=n(h);return i!==void 0&&i(p,v)?p:(c=h,f=v)}var u=!1,c,f,d=r===void 0?null:r;return[function(){return l(t())},d===null?void 0:function(){return l(d())}]},[t,r,n,i]);var s=BZ(e,a[0],a[1]);return FZ(function(){o.hasValue=!0,o.value=s},[s]),GZ(s),s};K4.exports=Q4;var HZ=K4.exports;function WZ(e){e()}let J4=WZ;const jZ=e=>J4=e,UZ=()=>J4,UD=Symbol.for("react-redux-context"),qD=typeof globalThis<"u"?globalThis:{};function qZ(){var e;if(!O.createContext)return{};const t=(e=qD[UD])!=null?e:qD[UD]=new Map;let r=t.get(O.createContext);return r||(r=O.createContext(null),t.set(O.createContext,r)),r}const xo=qZ();function eM(e=xo){return function(){return O.useContext(e)}}const eV=eM(),tV=()=>{throw new Error("uSES not initialized!")};let rV=tV;const YZ=e=>{rV=e},XZ=(e,t)=>e===t;function ZZ(e=xo){const t=e===xo?eV:eM(e);return function(n,i={}){const{equalityFn:a=XZ,stabilityCheck:o=void 0,noopCheck:s=void 0}=typeof i=="function"?{equalityFn:i}:i,{store:l,subscription:u,getServerState:c,stabilityCheck:f,noopCheck:d}=t();O.useRef(!0);const h=O.useCallback({[n.name](v){return n(v)}}[n.name],[n,f,o]),p=rV(u.addNestedSub,l.getState,c||l.getState,h,a);return O.useDebugValue(p),p}}const tM=ZZ();function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}var nV={exports:{}},At={};/** @license React v16.13.1 + */var A1=O,NZ=eV;function zZ(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var BZ=typeof Object.is=="function"?Object.is:zZ,$Z=NZ.useSyncExternalStore,FZ=A1.useRef,VZ=A1.useEffect,GZ=A1.useMemo,HZ=A1.useDebugValue;rV.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var a=FZ(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=GZ(function(){function l(h){if(!u){if(u=!0,c=h,h=n(h),i!==void 0&&o.hasValue){var p=o.value;if(i(p,h))return f=p}return f=h}if(p=f,BZ(c,h))return p;var v=n(h);return i!==void 0&&i(p,v)?p:(c=h,f=v)}var u=!1,c,f,d=r===void 0?null:r;return[function(){return l(t())},d===null?void 0:function(){return l(d())}]},[t,r,n,i]);var s=$Z(e,a[0],a[1]);return VZ(function(){o.hasValue=!0,o.value=s},[s]),HZ(s),s};tV.exports=rV;var WZ=tV.exports;function jZ(e){e()}let nV=jZ;const UZ=e=>nV=e,qZ=()=>nV,XD=Symbol.for("react-redux-context"),ZD=typeof globalThis<"u"?globalThis:{};function YZ(){var e;if(!O.createContext)return{};const t=(e=ZD[XD])!=null?e:ZD[XD]=new Map;let r=t.get(O.createContext);return r||(r=O.createContext(null),t.set(O.createContext,r)),r}const xo=YZ();function tM(e=xo){return function(){return O.useContext(e)}}const iV=tM(),aV=()=>{throw new Error("uSES not initialized!")};let oV=aV;const XZ=e=>{oV=e},ZZ=(e,t)=>e===t;function KZ(e=xo){const t=e===xo?iV:tM(e);return function(n,i={}){const{equalityFn:a=ZZ,stabilityCheck:o=void 0,noopCheck:s=void 0}=typeof i=="function"?{equalityFn:i}:i,{store:l,subscription:u,getServerState:c,stabilityCheck:f,noopCheck:d}=t();O.useRef(!0);const h=O.useCallback({[n.name](v){return n(v)}}[n.name],[n,f,o]),p=oV(u.addNestedSub,l.getState,c||l.getState,h,a);return O.useDebugValue(p),p}}const rM=KZ();function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}var sV={exports:{}},At={};/** @license React v16.13.1 * react-is.production.min.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. - */var kr=typeof Symbol=="function"&&Symbol.for,rM=kr?Symbol.for("react.element"):60103,nM=kr?Symbol.for("react.portal"):60106,M1=kr?Symbol.for("react.fragment"):60107,k1=kr?Symbol.for("react.strict_mode"):60108,I1=kr?Symbol.for("react.profiler"):60114,P1=kr?Symbol.for("react.provider"):60109,D1=kr?Symbol.for("react.context"):60110,iM=kr?Symbol.for("react.async_mode"):60111,R1=kr?Symbol.for("react.concurrent_mode"):60111,L1=kr?Symbol.for("react.forward_ref"):60112,E1=kr?Symbol.for("react.suspense"):60113,KZ=kr?Symbol.for("react.suspense_list"):60120,O1=kr?Symbol.for("react.memo"):60115,N1=kr?Symbol.for("react.lazy"):60116,QZ=kr?Symbol.for("react.block"):60121,JZ=kr?Symbol.for("react.fundamental"):60117,eK=kr?Symbol.for("react.responder"):60118,tK=kr?Symbol.for("react.scope"):60119;function Kn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case rM:switch(e=e.type,e){case iM:case R1:case M1:case I1:case k1:case E1:return e;default:switch(e=e&&e.$$typeof,e){case D1:case L1:case N1:case O1:case P1:return e;default:return t}}case nM:return t}}}function iV(e){return Kn(e)===R1}At.AsyncMode=iM;At.ConcurrentMode=R1;At.ContextConsumer=D1;At.ContextProvider=P1;At.Element=rM;At.ForwardRef=L1;At.Fragment=M1;At.Lazy=N1;At.Memo=O1;At.Portal=nM;At.Profiler=I1;At.StrictMode=k1;At.Suspense=E1;At.isAsyncMode=function(e){return iV(e)||Kn(e)===iM};At.isConcurrentMode=iV;At.isContextConsumer=function(e){return Kn(e)===D1};At.isContextProvider=function(e){return Kn(e)===P1};At.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===rM};At.isForwardRef=function(e){return Kn(e)===L1};At.isFragment=function(e){return Kn(e)===M1};At.isLazy=function(e){return Kn(e)===N1};At.isMemo=function(e){return Kn(e)===O1};At.isPortal=function(e){return Kn(e)===nM};At.isProfiler=function(e){return Kn(e)===I1};At.isStrictMode=function(e){return Kn(e)===k1};At.isSuspense=function(e){return Kn(e)===E1};At.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===M1||e===R1||e===I1||e===k1||e===E1||e===KZ||typeof e=="object"&&e!==null&&(e.$$typeof===N1||e.$$typeof===O1||e.$$typeof===P1||e.$$typeof===D1||e.$$typeof===L1||e.$$typeof===JZ||e.$$typeof===eK||e.$$typeof===tK||e.$$typeof===QZ)};At.typeOf=Kn;nV.exports=At;var rK=nV.exports,aM=rK,nK={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},iK={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},aK={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},aV={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},oM={};oM[aM.ForwardRef]=aK;oM[aM.Memo]=aV;function YD(e){return aM.isMemo(e)?aV:oM[e.$$typeof]||nK}var oK=Object.defineProperty,sK=Object.getOwnPropertyNames,XD=Object.getOwnPropertySymbols,lK=Object.getOwnPropertyDescriptor,uK=Object.getPrototypeOf,ZD=Object.prototype;function oV(e,t,r){if(typeof t!="string"){if(ZD){var n=uK(t);n&&n!==ZD&&oV(e,n,r)}var i=sK(t);XD&&(i=i.concat(XD(t)));for(var a=YD(e),o=YD(t),s=0;st(i(...a)))}return r}function FC(e){return function(r){const n=e(r);function i(){return n}return i.dependsOnOwnProps=!1,i}}function QD(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function uV(e,t){return function(n,{displayName:i}){const a=function(s,l){return a.dependsOnOwnProps?a.mapToProps(s,l):a.mapToProps(s,void 0)};return a.dependsOnOwnProps=!0,a.mapToProps=function(s,l){a.mapToProps=e,a.dependsOnOwnProps=QD(e);let u=a(s,l);return typeof u=="function"&&(a.mapToProps=u,a.dependsOnOwnProps=QD(u),u=a(s,l)),u},a}}function uM(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function yK(e){return e&&typeof e=="object"?FC(t=>mK(e,t)):e?typeof e=="function"?uV(e):uM(e,"mapDispatchToProps"):FC(t=>({dispatch:t}))}function xK(e){return e?typeof e=="function"?uV(e):uM(e,"mapStateToProps"):FC(()=>({}))}function SK(e,t,r){return $({},r,e,t)}function bK(e){return function(r,{displayName:n,areMergedPropsEqual:i}){let a=!1,o;return function(l,u,c){const f=e(l,u,c);return a?i(f,o)||(o=f):(a=!0,o=f),o}}}function _K(e){return e?typeof e=="function"?bK(e):uM(e,"mergeProps"):()=>SK}function wK(){const e=UZ();let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let n=t;for(;n;)n.callback(),n=n.next})},get(){let n=[],i=t;for(;i;)n.push(i),i=i.next;return n},subscribe(n){let i=!0,a=r={callback:n,next:null,prev:r};return a.prev?a.prev.next=a:t=a,function(){!i||t===null||(i=!1,a.next?a.next.prev=a.prev:r=a.prev,a.prev?a.prev.next=a.next:t=a.next)}}}}const JD={notify(){},get:()=>[]};function cV(e,t){let r,n=JD;function i(f){return l(),n.subscribe(f)}function a(){n.notify()}function o(){c.onStateChange&&c.onStateChange()}function s(){return!!r}function l(){r||(r=t?t.addNestedSub(o):e.subscribe(o),n=wK())}function u(){r&&(r(),r=void 0,n.clear(),n=JD)}const c={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:s,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>n};return c}const CK=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Uy=CK?O.useLayoutEffect:O.useEffect;function eR(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function su(e,t){if(eR(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i=0;i{fV=e},MK=[null,null];function kK(e,t,r){Uy(()=>e(...t),r)}function IK(e,t,r,n,i,a){e.current=n,r.current=!1,i.current&&(i.current=null,a())}function PK(e,t,r,n,i,a,o,s,l,u,c){if(!e)return()=>{};let f=!1,d=null;const h=()=>{if(f||!s.current)return;const v=t.getState();let g,m;try{g=n(v,i.current)}catch(y){m=y,d=y}m||(d=null),g===a.current?o.current||u():(a.current=g,l.current=g,o.current=!0,c())};return r.onStateChange=h,r.trySubscribe(),h(),()=>{if(f=!0,r.tryUnsubscribe(),r.onStateChange=null,d)throw d}}function DK(e,t){return e===t}function Ln(e,t,r,{pure:n,areStatesEqual:i=DK,areOwnPropsEqual:a=su,areStatePropsEqual:o=su,areMergedPropsEqual:s=su,forwardRef:l=!1,context:u=xo}={}){const c=u,f=xK(e),d=yK(t),h=_K(r),p=!!e;return g=>{const m=g.displayName||g.name||"Component",y=`Connect(${m})`,x={shouldHandleStateChanges:p,displayName:y,wrappedComponentName:m,WrappedComponent:g,initMapStateToProps:f,initMapDispatchToProps:d,initMergeProps:h,areStatesEqual:i,areStatePropsEqual:o,areOwnPropsEqual:a,areMergedPropsEqual:s};function S(w){const[C,A,T]=O.useMemo(()=>{const{reactReduxForwardedRef:J}=w,de=me(w,TK);return[w.context,J,de]},[w]),M=O.useMemo(()=>C&&C.Consumer&&hK.isContextConsumer(O.createElement(C.Consumer,null))?C:c,[C,c]),k=O.useContext(M),I=!!w.store&&!!w.store.getState&&!!w.store.dispatch,P=!!k&&!!k.store,L=I?w.store:k.store,z=P?k.getServerState:L.getState,V=O.useMemo(()=>gK(L.dispatch,x),[L]),[N,F]=O.useMemo(()=>{if(!p)return MK;const J=cV(L,I?void 0:k.subscription),de=J.notifyNestedSubs.bind(J);return[J,de]},[L,I,k]),E=O.useMemo(()=>I?k:$({},k,{subscription:N}),[I,k,N]),G=O.useRef(),j=O.useRef(T),B=O.useRef(),U=O.useRef(!1);O.useRef(!1);const X=O.useRef(!1),W=O.useRef();Uy(()=>(X.current=!0,()=>{X.current=!1}),[]);const ee=O.useMemo(()=>()=>B.current&&T===j.current?B.current:V(L.getState(),T),[L,T]),te=O.useMemo(()=>de=>N?PK(p,L,N,V,j,G,U,X,B,F,de):()=>{},[N]);kK(IK,[j,G,U,T,B,F]);let ie;try{ie=fV(te,ee,z?()=>V(z(),T):ee)}catch(J){throw W.current&&(J.message+=` + */var lM=Symbol.for("react.element"),uM=Symbol.for("react.portal"),z1=Symbol.for("react.fragment"),B1=Symbol.for("react.strict_mode"),$1=Symbol.for("react.profiler"),F1=Symbol.for("react.provider"),V1=Symbol.for("react.context"),dK=Symbol.for("react.server_context"),G1=Symbol.for("react.forward_ref"),H1=Symbol.for("react.suspense"),W1=Symbol.for("react.suspense_list"),j1=Symbol.for("react.memo"),U1=Symbol.for("react.lazy"),hK=Symbol.for("react.offscreen"),dV;dV=Symbol.for("react.module.reference");function Ai(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case lM:switch(e=e.type,e){case z1:case $1:case B1:case H1:case W1:return e;default:switch(e=e&&e.$$typeof,e){case dK:case V1:case G1:case U1:case j1:case F1:return e;default:return t}}case uM:return t}}}Mt.ContextConsumer=V1;Mt.ContextProvider=F1;Mt.Element=lM;Mt.ForwardRef=G1;Mt.Fragment=z1;Mt.Lazy=U1;Mt.Memo=j1;Mt.Portal=uM;Mt.Profiler=$1;Mt.StrictMode=B1;Mt.Suspense=H1;Mt.SuspenseList=W1;Mt.isAsyncMode=function(){return!1};Mt.isConcurrentMode=function(){return!1};Mt.isContextConsumer=function(e){return Ai(e)===V1};Mt.isContextProvider=function(e){return Ai(e)===F1};Mt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===lM};Mt.isForwardRef=function(e){return Ai(e)===G1};Mt.isFragment=function(e){return Ai(e)===z1};Mt.isLazy=function(e){return Ai(e)===U1};Mt.isMemo=function(e){return Ai(e)===j1};Mt.isPortal=function(e){return Ai(e)===uM};Mt.isProfiler=function(e){return Ai(e)===$1};Mt.isStrictMode=function(e){return Ai(e)===B1};Mt.isSuspense=function(e){return Ai(e)===H1};Mt.isSuspenseList=function(e){return Ai(e)===W1};Mt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===z1||e===$1||e===B1||e===H1||e===W1||e===hK||typeof e=="object"&&e!==null&&(e.$$typeof===U1||e.$$typeof===j1||e.$$typeof===F1||e.$$typeof===V1||e.$$typeof===G1||e.$$typeof===dV||e.getModuleId!==void 0)};Mt.typeOf=Ai;fV.exports=Mt;var pK=fV.exports;const vK=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function gK(e,t,r,n,{areStatesEqual:i,areOwnPropsEqual:a,areStatePropsEqual:o}){let s=!1,l,u,c,f,d;function h(y,x){return l=y,u=x,c=e(l,u),f=t(n,u),d=r(c,f,u),s=!0,d}function p(){return c=e(l,u),t.dependsOnOwnProps&&(f=t(n,u)),d=r(c,f,u),d}function v(){return e.dependsOnOwnProps&&(c=e(l,u)),t.dependsOnOwnProps&&(f=t(n,u)),d=r(c,f,u),d}function g(){const y=e(l,u),x=!o(y,c);return c=y,x&&(d=r(c,f,u)),d}function m(y,x){const S=!a(x,u),_=!i(y,l,x,u);return l=y,u=x,S&&_?p():S?v():_?g():d}return function(x,S){return s?m(x,S):h(x,S)}}function mK(e,t){let{initMapStateToProps:r,initMapDispatchToProps:n,initMergeProps:i}=t,a=me(t,vK);const o=r(e,a),s=n(e,a),l=i(e,a);return gK(o,s,l,e,a)}function yK(e,t){const r={};for(const n in e){const i=e[n];typeof i=="function"&&(r[n]=(...a)=>t(i(...a)))}return r}function VC(e){return function(r){const n=e(r);function i(){return n}return i.dependsOnOwnProps=!1,i}}function tR(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function hV(e,t){return function(n,{displayName:i}){const a=function(s,l){return a.dependsOnOwnProps?a.mapToProps(s,l):a.mapToProps(s,void 0)};return a.dependsOnOwnProps=!0,a.mapToProps=function(s,l){a.mapToProps=e,a.dependsOnOwnProps=tR(e);let u=a(s,l);return typeof u=="function"&&(a.mapToProps=u,a.dependsOnOwnProps=tR(u),u=a(s,l)),u},a}}function cM(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function xK(e){return e&&typeof e=="object"?VC(t=>yK(e,t)):e?typeof e=="function"?hV(e):cM(e,"mapDispatchToProps"):VC(t=>({dispatch:t}))}function SK(e){return e?typeof e=="function"?hV(e):cM(e,"mapStateToProps"):VC(()=>({}))}function bK(e,t,r){return $({},r,e,t)}function _K(e){return function(r,{displayName:n,areMergedPropsEqual:i}){let a=!1,o;return function(l,u,c){const f=e(l,u,c);return a?i(f,o)||(o=f):(a=!0,o=f),o}}}function wK(e){return e?typeof e=="function"?_K(e):cM(e,"mergeProps"):()=>bK}function CK(){const e=qZ();let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let n=t;for(;n;)n.callback(),n=n.next})},get(){let n=[],i=t;for(;i;)n.push(i),i=i.next;return n},subscribe(n){let i=!0,a=r={callback:n,next:null,prev:r};return a.prev?a.prev.next=a:t=a,function(){!i||t===null||(i=!1,a.next?a.next.prev=a.prev:r=a.prev,a.prev?a.prev.next=a.next:t=a.next)}}}}const rR={notify(){},get:()=>[]};function pV(e,t){let r,n=rR;function i(f){return l(),n.subscribe(f)}function a(){n.notify()}function o(){c.onStateChange&&c.onStateChange()}function s(){return!!r}function l(){r||(r=t?t.addNestedSub(o):e.subscribe(o),n=CK())}function u(){r&&(r(),r=void 0,n.clear(),n=rR)}const c={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:s,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>n};return c}const TK=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Uy=TK?O.useLayoutEffect:O.useEffect;function nR(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function uu(e,t){if(nR(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i=0;i{vV=e},kK=[null,null];function IK(e,t,r){Uy(()=>e(...t),r)}function PK(e,t,r,n,i,a){e.current=n,r.current=!1,i.current&&(i.current=null,a())}function DK(e,t,r,n,i,a,o,s,l,u,c){if(!e)return()=>{};let f=!1,d=null;const h=()=>{if(f||!s.current)return;const v=t.getState();let g,m;try{g=n(v,i.current)}catch(y){m=y,d=y}m||(d=null),g===a.current?o.current||u():(a.current=g,l.current=g,o.current=!0,c())};return r.onStateChange=h,r.trySubscribe(),h(),()=>{if(f=!0,r.tryUnsubscribe(),r.onStateChange=null,d)throw d}}function RK(e,t){return e===t}function Ln(e,t,r,{pure:n,areStatesEqual:i=RK,areOwnPropsEqual:a=uu,areStatePropsEqual:o=uu,areMergedPropsEqual:s=uu,forwardRef:l=!1,context:u=xo}={}){const c=u,f=SK(e),d=xK(t),h=wK(r),p=!!e;return g=>{const m=g.displayName||g.name||"Component",y=`Connect(${m})`,x={shouldHandleStateChanges:p,displayName:y,wrappedComponentName:m,WrappedComponent:g,initMapStateToProps:f,initMapDispatchToProps:d,initMergeProps:h,areStatesEqual:i,areStatePropsEqual:o,areOwnPropsEqual:a,areMergedPropsEqual:s};function S(w){const[C,A,T]=O.useMemo(()=>{const{reactReduxForwardedRef:J}=w,de=me(w,AK);return[w.context,J,de]},[w]),M=O.useMemo(()=>C&&C.Consumer&&pK.isContextConsumer(O.createElement(C.Consumer,null))?C:c,[C,c]),k=O.useContext(M),I=!!w.store&&!!w.store.getState&&!!w.store.dispatch,D=!!k&&!!k.store,L=I?w.store:k.store,z=D?k.getServerState:L.getState,V=O.useMemo(()=>mK(L.dispatch,x),[L]),[N,F]=O.useMemo(()=>{if(!p)return kK;const J=pV(L,I?void 0:k.subscription),de=J.notifyNestedSubs.bind(J);return[J,de]},[L,I,k]),E=O.useMemo(()=>I?k:$({},k,{subscription:N}),[I,k,N]),G=O.useRef(),j=O.useRef(T),B=O.useRef(),U=O.useRef(!1);O.useRef(!1);const X=O.useRef(!1),W=O.useRef();Uy(()=>(X.current=!0,()=>{X.current=!1}),[]);const ee=O.useMemo(()=>()=>B.current&&T===j.current?B.current:V(L.getState(),T),[L,T]),te=O.useMemo(()=>de=>N?DK(p,L,N,V,j,G,U,X,B,F,de):()=>{},[N]);IK(PK,[j,G,U,T,B,F]);let ie;try{ie=vV(te,ee,z?()=>V(z(),T):ee)}catch(J){throw W.current&&(J.message+=` The error may be correlated with this previous error: ${W.current.stack} -`),J}Uy(()=>{W.current=void 0,B.current=void 0,G.current=ie});const re=O.useMemo(()=>O.createElement(g,$({},ie,{ref:A})),[A,g,ie]);return O.useMemo(()=>p?O.createElement(M.Provider,{value:E},re):re,[M,re,E])}const b=O.memo(S);if(b.WrappedComponent=g,b.displayName=S.displayName=y,l){const C=O.forwardRef(function(T,M){return O.createElement(b,$({},T,{reactReduxForwardedRef:M}))});return C.displayName=y,C.WrappedComponent=g,KD(C,g)}return KD(b,g)}}function tR({store:e,context:t,children:r,serverState:n,stabilityCheck:i="once",noopCheck:a="once"}){const o=O.useMemo(()=>{const u=cV(e);return{store:e,subscription:u,getServerState:n?()=>n:void 0,stabilityCheck:i,noopCheck:a}},[e,n,i,a]),s=O.useMemo(()=>e.getState(),[e]);Uy(()=>{const{subscription:u}=o;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),s!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[o,s]);const l=t||xo;return O.createElement(l.Provider,{value:o},r)}function dV(e=xo){const t=e===xo?eV:eM(e);return function(){const{store:n}=t();return n}}const hV=dV();function RK(e=xo){const t=e===xo?hV:dV(e);return function(){return t().dispatch}}const pV=RK();YZ(HZ.useSyncExternalStoreWithSelector);AK(Z4.useSyncExternalStore);jZ(Gf.unstable_batchedUpdates);function vV(e,t,r){return t&&(Array.isArray(t)?t.map(n=>vV(e,n,r)):typeof t=="object"?cM(t,r):t)}const cM=(e,t)=>Object.entries(e).reduce((r,[n,i])=>({...r,[t(n)]:vV(e,i,t)}),{}),gV=e=>e.replace(/_([a-z0-9])/g,(t,r)=>r.toUpperCase()),LK=e=>e[0]===e[0].toUpperCase()?e:e.replace(/([a-z0-9])([A-Z0-9])/g,"$1_$2").toLowerCase(),Uc=e=>cM(e,gV),rR=e=>cM(e,LK),mV=e=>e.replace(/([a-z0-9])([A-Z0-9])/g,"$1 $2").replace(/^./,t=>t.toUpperCase()),EK=e=>Object.fromEntries(new URLSearchParams(e).entries()),OK=(e,t=2)=>{if(e===0)return"0 Bytes";if(e===0)return"N/A";const r=1024,n=t<0?0:t,i=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],a=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,a)).toFixed(n))+" "+i[a]},nR=!!window.authArgs&&Uc(window.authArgs),Tc=e=>Array.isArray(e)?e.length:Object.keys(e).length,NK=e=>Tc(e)===0;function zK(e,t){return{...e,...t}}const BK=e=>{const t=new URLSearchParams;for(const[r,n]of Object.entries(e))if(Array.isArray(n))for(const i of n)t.append(r,i);else t.append(r,n);return t},q1=(e,t)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:[...r[n]||[],i]}),e),mi={READY:"ready",RUNNING:"running",STOPPED:"stopped",SPAWNING:"spawning",CLEANUP:"cleanup",STOPPING:"stopping",MISSING:"missing"},Ra=window.templateArgs?Uc(window.templateArgs):{};var xF;const iR=!!Ra.isReport&&{...Ra,charts:(xF=Ra.history)==null?void 0:xF.reduce((e,{currentResponseTimePercentiles:t,...r})=>q1(e,{...t,...r}),{})},$K={black:"#000",white:"#fff"},kp=$K,FK={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"},Qo=FK,VK={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"},Ku=VK,GK={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"},kl=GK,HK={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"},Qu=HK,WK={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"},Ju=WK,jK={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"},Ac=jK,UK={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"},qK=UK;function Bl(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function yV(e){if(!Bl(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=yV(e[r])}),t}function kn(e,t,r={clone:!0}){const n=r.clone?$({},e):e;return Bl(e)&&Bl(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(Bl(t[i])&&i in e&&Bl(e[i])?n[i]=kn(e[i],t[i],r):r.clone?n[i]=Bl(t[i])?yV(t[i]):t[i]:n[i]=t[i])}),n}function Es(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;rr==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function Sv(e,t=166){let r;function n(...i){const a=()=>{e.apply(this,i)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function YK(e,t){return()=>null}function zh(e,t){return O.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function ln(e){return e&&e.ownerDocument||document}function Na(e){return ln(e).defaultView||window}function XK(e,t){return()=>null}function qy(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const ZK=typeof window<"u"?O.useLayoutEffect:O.useEffect,So=ZK;let aR=0;function KK(e){const[t,r]=O.useState(e),n=e||t;return O.useEffect(()=>{t==null&&(aR+=1,r(`mui-${aR}`))},[t]),n}const oR=$w["useId".toString()];function xV(e){if(oR!==void 0){const t=oR();return e??t}return KK(e)}function QK(e,t,r,n,i){return null}function Ip({controlled:e,default:t,name:r,state:n="value"}){const{current:i}=O.useRef(e!==void 0),[a,o]=O.useState(t),s=i?e:a,l=O.useCallback(u=>{i||o(u)},[]);return[s,l]}function _a(e){const t=O.useRef(e);return So(()=>{t.current=e}),O.useCallback((...r)=>(0,t.current)(...r),[])}function Mr(...e){return O.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{qy(r,t)})},e)}let Y1=!0,GC=!1,sR;const JK={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 eQ(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&JK[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function tQ(e){e.metaKey||e.altKey||e.ctrlKey||(Y1=!0)}function HS(){Y1=!1}function rQ(){this.visibilityState==="hidden"&&GC&&(Y1=!0)}function nQ(e){e.addEventListener("keydown",tQ,!0),e.addEventListener("mousedown",HS,!0),e.addEventListener("pointerdown",HS,!0),e.addEventListener("touchstart",HS,!0),e.addEventListener("visibilitychange",rQ,!0)}function iQ(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Y1||eQ(t)}function fM(){const e=O.useCallback(i=>{i!=null&&nQ(i.ownerDocument)},[]),t=O.useRef(!1);function r(){return t.current?(GC=!0,window.clearTimeout(sR),sR=window.setTimeout(()=>{GC=!1},100),t.current=!1,!0):!1}function n(i){return iQ(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function SV(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let ec;function bV(){if(ec)return ec;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),ec="reverse",e.scrollLeft>0?ec="default":(e.scrollLeft=1,e.scrollLeft===0&&(ec="negative")),document.body.removeChild(e),ec}function aQ(e,t){const r=e.scrollLeft;if(t!=="rtl")return r;switch(bV()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function dM(e,t){const r=$({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=$({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const i=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=i:!i||!Object.keys(i)?r[n]=a:(r[n]=$({},a),Object.keys(i).forEach(o=>{r[n][o]=dM(i[o],a[o])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function Ve(e,t,r=void 0){const n={};return Object.keys(e).forEach(i=>{n[i]=e[i].reduce((a,o)=>{if(o){const s=t(o);s!==""&&a.push(s),r&&r[o]&&a.push(r[o])}return a},[]).join(" ")}),n}const lR=e=>e,oQ=()=>{let e=lR;return{configure(t){e=t},generate(t){return e(t)},reset(){e=lR}}},sQ=oQ(),hM=sQ,lQ={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Be(e,t,r="Mui"){const n=lQ[t];return n?`${r}-${n}`:`${hM.generate(e)}-${t}`}function Ge(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=Be(e,i,r)}),n}const wu="$$material";function _V(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var uQ=/^((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)-.*))$/,cQ=_V(function(e){return uQ.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function fQ(e){if(e.sheet)return e.sheet;for(var t=0;t0?Dr(Wf,--Pn):0,Tf--,fr===10&&(Tf=1,Z1--),fr}function Hn(){return fr=Pn2||Dp(fr)>3?"":" "}function CQ(e,t){for(;--t&&Hn()&&!(fr<48||fr>102||fr>57&&fr<65||fr>70&&fr<97););return bv(e,Hm()+(t<6&&La()==32&&Hn()==32))}function WC(e){for(;Hn();)switch(fr){case e:return Pn;case 34:case 39:e!==34&&e!==39&&WC(fr);break;case 40:e===41&&WC(e);break;case 92:Hn();break}return Pn}function TQ(e,t){for(;Hn()&&e+fr!==47+10;)if(e+fr===42+42&&La()===47)break;return"/*"+bv(t,Pn-1)+"*"+X1(e===47?e:Hn())}function AQ(e){for(;!Dp(La());)Hn();return bv(e,Pn)}function MQ(e){return kV(jm("",null,null,null,[""],e=MV(e),0,[0],e))}function jm(e,t,r,n,i,a,o,s,l){for(var u=0,c=0,f=o,d=0,h=0,p=0,v=1,g=1,m=1,y=0,x="",S=i,_=a,b=n,w=x;g;)switch(p=y,y=Hn()){case 40:if(p!=108&&Dr(w,f-1)==58){HC(w+=gt(Wm(y),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:w+=Wm(y);break;case 9:case 10:case 13:case 32:w+=wQ(p);break;case 92:w+=CQ(Hm()-1,7);continue;case 47:switch(La()){case 42:case 47:pg(kQ(TQ(Hn(),Hm()),t,r),l);break;default:w+="/"}break;case 123*v:s[u++]=pa(w)*m;case 125*v:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:m==-1&&(w=gt(w,/\f/g,"")),h>0&&pa(w)-f&&pg(h>32?cR(w+";",n,r,f-1):cR(gt(w," ","")+";",n,r,f-2),l);break;case 59:w+=";";default:if(pg(b=uR(w,t,r,u,c,i,s,x,S=[],_=[],f),a),y===123)if(c===0)jm(w,t,b,b,S,a,f,s,_);else switch(d===99&&Dr(w,3)===110?100:d){case 100:case 108:case 109:case 115:jm(e,b,b,n&&pg(uR(e,b,b,0,0,i,s,x,i,S=[],f),_),i,_,f,s,n?S:_);break;default:jm(w,b,b,b,[""],_,0,s,_)}}u=c=h=0,v=m=1,x=w="",f=o;break;case 58:f=1+pa(w),h=p;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&_Q()==125)continue}switch(w+=X1(y),y*v){case 38:m=c>0?1:(w+="\f",-1);break;case 44:s[u++]=(pa(w)-1)*m,m=1;break;case 64:La()===45&&(w+=Wm(Hn())),d=La(),c=f=pa(x=w+=AQ(Hm())),y++;break;case 45:p===45&&pa(w)==2&&(v=0)}}return a}function uR(e,t,r,n,i,a,o,s,l,u,c){for(var f=i-1,d=i===0?a:[""],h=gM(d),p=0,v=0,g=0;p0?d[m]+" "+y:gt(y,/&\f/g,d[m])))&&(l[g++]=x);return K1(e,t,r,i===0?pM:s,l,u,c)}function kQ(e,t,r){return K1(e,t,r,wV,X1(bQ()),Pp(e,2,-2),0)}function cR(e,t,r,n){return K1(e,t,r,vM,Pp(e,0,n),Pp(e,n+1,-1),n)}function of(e,t){for(var r="",n=gM(e),i=0;i6)switch(Dr(e,t+1)){case 109:if(Dr(e,t+4)!==45)break;case 102:return gt(e,/(.+:)(.+)-([^]+)/,"$1"+vt+"$2-$3$1"+Yy+(Dr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~HC(e,"stretch")?IV(gt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Dr(e,t+1)!==115)break;case 6444:switch(Dr(e,pa(e)-3-(~HC(e,"!important")&&10))){case 107:return gt(e,":",":"+vt)+e;case 101:return gt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+vt+(Dr(e,14)===45?"inline-":"")+"box$3$1"+vt+"$2$3$1"+jr+"$2box$3")+e}break;case 5936:switch(Dr(e,t+11)){case 114:return vt+e+jr+gt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return vt+e+jr+gt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return vt+e+jr+gt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return vt+e+jr+e+e}return e}var zQ=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case vM:t.return=IV(t.value,t.length);break;case CV:return of([Sd(t,{value:gt(t.value,"@","@"+vt)})],i);case pM:if(t.length)return SQ(t.props,function(a){switch(xQ(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return of([Sd(t,{props:[gt(a,/:(read-\w+)/,":"+Yy+"$1")]})],i);case"::placeholder":return of([Sd(t,{props:[gt(a,/:(plac\w+)/,":"+vt+"input-$1")]}),Sd(t,{props:[gt(a,/:(plac\w+)/,":"+Yy+"$1")]}),Sd(t,{props:[gt(a,/:(plac\w+)/,jr+"input-$1")]})],i)}return""})}},BQ=[zQ],$Q=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(v){var g=v.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var i=t.stylisPlugins||BQ,a={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(v){for(var g=v.getAttribute("data-emotion").split(" "),m=1;m=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var HQ={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},WQ=/[A-Z]|^ms/g,jQ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,RV=function(t){return t.charCodeAt(1)===45},dR=function(t){return t!=null&&typeof t!="boolean"},WS=_V(function(e){return RV(e)?e:e.replace(WQ,"-$&").toLowerCase()}),hR=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(jQ,function(n,i,a){return va={name:i,styles:a,next:va},i})}return HQ[t]!==1&&!RV(t)&&typeof r=="number"&&r!==0?r+"px":r};function Rp(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return va={name:r.name,styles:r.styles,next:va},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)va={name:n.name,styles:n.styles,next:va},n=n.next;var i=r.styles+";";return i}return UQ(e,t,r)}case"function":{if(e!==void 0){var a=va,o=r(e);return va=a,Rp(e,t,o)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function UQ(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i96?KQ:QQ},mR=function(t,r,n){var i;if(r){var a=r.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(o){return t.__emotion_forwardProp(o)&&a(o)}:a}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},JQ=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return PV(r,n,i),YQ(function(){return DV(r,n,i)}),null},eJ=function e(t,r){var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,a,o;r!==void 0&&(a=r.label,o=r.target);var s=mR(t,r,n),l=s||gR(i),u=!l("as");return function(){var c=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var d=c.length,h=1;ht(rJ(i)?r:i):t;return D.jsx(XQ,{styles:n})}/** +`),J}Uy(()=>{W.current=void 0,B.current=void 0,G.current=ie});const re=O.useMemo(()=>O.createElement(g,$({},ie,{ref:A})),[A,g,ie]);return O.useMemo(()=>p?O.createElement(M.Provider,{value:E},re):re,[M,re,E])}const b=O.memo(S);if(b.WrappedComponent=g,b.displayName=S.displayName=y,l){const C=O.forwardRef(function(T,M){return O.createElement(b,$({},T,{reactReduxForwardedRef:M}))});return C.displayName=y,C.WrappedComponent=g,eR(C,g)}return eR(b,g)}}function iR({store:e,context:t,children:r,serverState:n,stabilityCheck:i="once",noopCheck:a="once"}){const o=O.useMemo(()=>{const u=pV(e);return{store:e,subscription:u,getServerState:n?()=>n:void 0,stabilityCheck:i,noopCheck:a}},[e,n,i,a]),s=O.useMemo(()=>e.getState(),[e]);Uy(()=>{const{subscription:u}=o;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),s!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[o,s]);const l=t||xo;return O.createElement(l.Provider,{value:o},r)}function gV(e=xo){const t=e===xo?iV:tM(e);return function(){const{store:n}=t();return n}}const mV=gV();function LK(e=xo){const t=e===xo?mV:gV(e);return function(){return t().dispatch}}const yV=LK();XZ(WZ.useSyncExternalStoreWithSelector);MK(eV.useSyncExternalStore);UZ(Gf.unstable_batchedUpdates);function xV(e,t,r){return t&&(Array.isArray(t)?t.map(n=>xV(e,n,r)):typeof t=="object"?fM(t,r):t)}const fM=(e,t)=>Object.entries(e).reduce((r,[n,i])=>({...r,[t(n)]:xV(e,i,t)}),{}),SV=e=>e.replace(/_([a-z0-9])/g,(t,r)=>r.toUpperCase()),EK=e=>e[0]===e[0].toUpperCase()?e:e.replace(/([a-z0-9])([A-Z0-9])/g,"$1_$2").toLowerCase(),Uc=e=>fM(e,SV),aR=e=>fM(e,EK),bV=e=>e.replace(/([a-z0-9])([A-Z0-9])/g,"$1 $2").replace(/^./,t=>t.toUpperCase()),OK=e=>Object.fromEntries(new URLSearchParams(e).entries()),NK=(e,t=2)=>{if(e===0)return"0 Bytes";if(e===0)return"N/A";const r=1024,n=t<0?0:t,i=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],a=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,a)).toFixed(n))+" "+i[a]},oR=!!window.authArgs&&Uc(window.authArgs),$l=e=>Array.isArray(e)?e.length:Object.keys(e).length,zK=e=>$l(e)===0;function BK(e,t){return{...e,...t}}const $K=e=>{const t=new URLSearchParams;for(const[r,n]of Object.entries(e))if(Array.isArray(n))for(const i of n)t.append(r,i);else t.append(r,n);return t},q1=(e,t)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:[...r[n]||[],i]}),e),mi={READY:"ready",RUNNING:"running",STOPPED:"stopped",SPAWNING:"spawning",CLEANUP:"cleanup",STOPPING:"stopping",MISSING:"missing"},Ra=window.templateArgs?Uc(window.templateArgs):{};var wF;const sR=!!Ra.isReport&&{...Ra,charts:(wF=Ra.history)==null?void 0:wF.reduce((e,{currentResponseTimePercentiles:t,...r})=>q1(e,{...t,...r}),{})},FK={black:"#000",white:"#fff"},kp=FK,VK={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"},Qo=VK,GK={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"},Qu=GK,HK={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"},Il=HK,WK={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"},Ju=WK,jK={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"},ec=jK,UK={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"},Ac=UK,qK={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"},YK=qK;function Fl(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function _V(e){if(!Fl(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=_V(e[r])}),t}function kn(e,t,r={clone:!0}){const n=r.clone?$({},e):e;return Fl(e)&&Fl(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(Fl(t[i])&&i in e&&Fl(e[i])?n[i]=kn(e[i],t[i],r):r.clone?n[i]=Fl(t[i])?_V(t[i]):t[i]:n[i]=t[i])}),n}function Es(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;rr==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function Sv(e,t=166){let r;function n(...i){const a=()=>{e.apply(this,i)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function XK(e,t){return()=>null}function zh(e,t){return O.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function ln(e){return e&&e.ownerDocument||document}function Na(e){return ln(e).defaultView||window}function ZK(e,t){return()=>null}function qy(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const KK=typeof window<"u"?O.useLayoutEffect:O.useEffect,So=KK;let lR=0;function QK(e){const[t,r]=O.useState(e),n=e||t;return O.useEffect(()=>{t==null&&(lR+=1,r(`mui-${lR}`))},[t]),n}const uR=Fw["useId".toString()];function wV(e){if(uR!==void 0){const t=uR();return e??t}return QK(e)}function JK(e,t,r,n,i){return null}function Ip({controlled:e,default:t,name:r,state:n="value"}){const{current:i}=O.useRef(e!==void 0),[a,o]=O.useState(t),s=i?e:a,l=O.useCallback(u=>{i||o(u)},[]);return[s,l]}function _a(e){const t=O.useRef(e);return So(()=>{t.current=e}),O.useCallback((...r)=>(0,t.current)(...r),[])}function Mr(...e){return O.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{qy(r,t)})},e)}let Y1=!0,HC=!1,cR;const eQ={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 tQ(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&eQ[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function rQ(e){e.metaKey||e.altKey||e.ctrlKey||(Y1=!0)}function WS(){Y1=!1}function nQ(){this.visibilityState==="hidden"&&HC&&(Y1=!0)}function iQ(e){e.addEventListener("keydown",rQ,!0),e.addEventListener("mousedown",WS,!0),e.addEventListener("pointerdown",WS,!0),e.addEventListener("touchstart",WS,!0),e.addEventListener("visibilitychange",nQ,!0)}function aQ(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Y1||tQ(t)}function dM(){const e=O.useCallback(i=>{i!=null&&iQ(i.ownerDocument)},[]),t=O.useRef(!1);function r(){return t.current?(HC=!0,window.clearTimeout(cR),cR=window.setTimeout(()=>{HC=!1},100),t.current=!1,!0):!1}function n(i){return aQ(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function CV(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let tc;function TV(){if(tc)return tc;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),tc="reverse",e.scrollLeft>0?tc="default":(e.scrollLeft=1,e.scrollLeft===0&&(tc="negative")),document.body.removeChild(e),tc}function oQ(e,t){const r=e.scrollLeft;if(t!=="rtl")return r;switch(TV()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function hM(e,t){const r=$({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=$({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const i=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=i:!i||!Object.keys(i)?r[n]=a:(r[n]=$({},a),Object.keys(i).forEach(o=>{r[n][o]=hM(i[o],a[o])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function Ve(e,t,r=void 0){const n={};return Object.keys(e).forEach(i=>{n[i]=e[i].reduce((a,o)=>{if(o){const s=t(o);s!==""&&a.push(s),r&&r[o]&&a.push(r[o])}return a},[]).join(" ")}),n}const fR=e=>e,sQ=()=>{let e=fR;return{configure(t){e=t},generate(t){return e(t)},reset(){e=fR}}},lQ=sQ(),pM=lQ,uQ={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Be(e,t,r="Mui"){const n=uQ[t];return n?`${r}-${n}`:`${pM.generate(e)}-${t}`}function Ge(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=Be(e,i,r)}),n}const Tu="$$material";function AV(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var cQ=/^((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)-.*))$/,fQ=AV(function(e){return cQ.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function dQ(e){if(e.sheet)return e.sheet;for(var t=0;t0?Dr(Wf,--Pn):0,Tf--,fr===10&&(Tf=1,Z1--),fr}function Hn(){return fr=Pn2||Dp(fr)>3?"":" "}function TQ(e,t){for(;--t&&Hn()&&!(fr<48||fr>102||fr>57&&fr<65||fr>70&&fr<97););return bv(e,Hm()+(t<6&&La()==32&&Hn()==32))}function jC(e){for(;Hn();)switch(fr){case e:return Pn;case 34:case 39:e!==34&&e!==39&&jC(fr);break;case 40:e===41&&jC(e);break;case 92:Hn();break}return Pn}function AQ(e,t){for(;Hn()&&e+fr!==47+10;)if(e+fr===42+42&&La()===47)break;return"/*"+bv(t,Pn-1)+"*"+X1(e===47?e:Hn())}function MQ(e){for(;!Dp(La());)Hn();return bv(e,Pn)}function kQ(e){return RV(jm("",null,null,null,[""],e=DV(e),0,[0],e))}function jm(e,t,r,n,i,a,o,s,l){for(var u=0,c=0,f=o,d=0,h=0,p=0,v=1,g=1,m=1,y=0,x="",S=i,_=a,b=n,w=x;g;)switch(p=y,y=Hn()){case 40:if(p!=108&&Dr(w,f-1)==58){WC(w+=gt(Wm(y),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:w+=Wm(y);break;case 9:case 10:case 13:case 32:w+=CQ(p);break;case 92:w+=TQ(Hm()-1,7);continue;case 47:switch(La()){case 42:case 47:pg(IQ(AQ(Hn(),Hm()),t,r),l);break;default:w+="/"}break;case 123*v:s[u++]=pa(w)*m;case 125*v:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:m==-1&&(w=gt(w,/\f/g,"")),h>0&&pa(w)-f&&pg(h>32?hR(w+";",n,r,f-1):hR(gt(w," ","")+";",n,r,f-2),l);break;case 59:w+=";";default:if(pg(b=dR(w,t,r,u,c,i,s,x,S=[],_=[],f),a),y===123)if(c===0)jm(w,t,b,b,S,a,f,s,_);else switch(d===99&&Dr(w,3)===110?100:d){case 100:case 108:case 109:case 115:jm(e,b,b,n&&pg(dR(e,b,b,0,0,i,s,x,i,S=[],f),_),i,_,f,s,n?S:_);break;default:jm(w,b,b,b,[""],_,0,s,_)}}u=c=h=0,v=m=1,x=w="",f=o;break;case 58:f=1+pa(w),h=p;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&wQ()==125)continue}switch(w+=X1(y),y*v){case 38:m=c>0?1:(w+="\f",-1);break;case 44:s[u++]=(pa(w)-1)*m,m=1;break;case 64:La()===45&&(w+=Wm(Hn())),d=La(),c=f=pa(x=w+=MQ(Hm())),y++;break;case 45:p===45&&pa(w)==2&&(v=0)}}return a}function dR(e,t,r,n,i,a,o,s,l,u,c){for(var f=i-1,d=i===0?a:[""],h=mM(d),p=0,v=0,g=0;p0?d[m]+" "+y:gt(y,/&\f/g,d[m])))&&(l[g++]=x);return K1(e,t,r,i===0?vM:s,l,u,c)}function IQ(e,t,r){return K1(e,t,r,MV,X1(_Q()),Pp(e,2,-2),0)}function hR(e,t,r,n){return K1(e,t,r,gM,Pp(e,0,n),Pp(e,n+1,-1),n)}function of(e,t){for(var r="",n=mM(e),i=0;i6)switch(Dr(e,t+1)){case 109:if(Dr(e,t+4)!==45)break;case 102:return gt(e,/(.+:)(.+)-([^]+)/,"$1"+vt+"$2-$3$1"+Yy+(Dr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~WC(e,"stretch")?LV(gt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Dr(e,t+1)!==115)break;case 6444:switch(Dr(e,pa(e)-3-(~WC(e,"!important")&&10))){case 107:return gt(e,":",":"+vt)+e;case 101:return gt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+vt+(Dr(e,14)===45?"inline-":"")+"box$3$1"+vt+"$2$3$1"+jr+"$2box$3")+e}break;case 5936:switch(Dr(e,t+11)){case 114:return vt+e+jr+gt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return vt+e+jr+gt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return vt+e+jr+gt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return vt+e+jr+e+e}return e}var BQ=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case gM:t.return=LV(t.value,t.length);break;case kV:return of([Sd(t,{value:gt(t.value,"@","@"+vt)})],i);case vM:if(t.length)return bQ(t.props,function(a){switch(SQ(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return of([Sd(t,{props:[gt(a,/:(read-\w+)/,":"+Yy+"$1")]})],i);case"::placeholder":return of([Sd(t,{props:[gt(a,/:(plac\w+)/,":"+vt+"input-$1")]}),Sd(t,{props:[gt(a,/:(plac\w+)/,":"+Yy+"$1")]}),Sd(t,{props:[gt(a,/:(plac\w+)/,jr+"input-$1")]})],i)}return""})}},$Q=[BQ],FQ=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(v){var g=v.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var i=t.stylisPlugins||$Q,a={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(v){for(var g=v.getAttribute("data-emotion").split(" "),m=1;m=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var WQ={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},jQ=/[A-Z]|^ms/g,UQ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,NV=function(t){return t.charCodeAt(1)===45},vR=function(t){return t!=null&&typeof t!="boolean"},jS=AV(function(e){return NV(e)?e:e.replace(jQ,"-$&").toLowerCase()}),gR=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(UQ,function(n,i,a){return va={name:i,styles:a,next:va},i})}return WQ[t]!==1&&!NV(t)&&typeof r=="number"&&r!==0?r+"px":r};function Rp(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return va={name:r.name,styles:r.styles,next:va},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)va={name:n.name,styles:n.styles,next:va},n=n.next;var i=r.styles+";";return i}return qQ(e,t,r)}case"function":{if(e!==void 0){var a=va,o=r(e);return va=a,Rp(e,t,o)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function qQ(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i96?QQ:JQ},SR=function(t,r,n){var i;if(r){var a=r.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(o){return t.__emotion_forwardProp(o)&&a(o)}:a}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},eJ=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return EV(r,n,i),XQ(function(){return OV(r,n,i)}),null},tJ=function e(t,r){var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,a,o;r!==void 0&&(a=r.label,o=r.target);var s=SR(t,r,n),l=s||xR(i),u=!l("as");return function(){var c=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var d=c.length,h=1;ht(nJ(i)?r:i):t;return P.jsx(ZQ,{styles:n})}/** * @mui/styled-engine v5.14.10 * * @license MIT * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function NV(e,t){return jC(e,t)}const iJ=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},aJ=["values","unit","step"],oJ=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>$({},r,{[n.key]:n.val}),{})};function sJ(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,i=me(e,aJ),a=oJ(t),o=Object.keys(a);function s(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r})`}function l(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-n/100}${r})`}function u(d,h){const p=o.indexOf(h);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r}) and (max-width:${(p!==-1&&typeof t[o[p]]=="number"?t[o[p]]:h)-n/100}${r})`}function c(d){return o.indexOf(d)+1`@media (min-width:${xM[e]}px)`};function Qi(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||yR;return t.reduce((o,s,l)=>(o[a.up(a.keys[l])]=r(t[l]),o),{})}if(typeof t=="object"){const a=n.breakpoints||yR;return Object.keys(t).reduce((o,s)=>{if(Object.keys(a.values||xM).indexOf(s)!==-1){const l=a.up(s);o[l]=r(t[s],s)}else{const l=s;o[l]=t[l]}return o},{})}return r(t)}function zV(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,i)=>{const a=e.up(i);return n[a]={},n},{}))||{}}function BV(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function cJ(e,...t){const r=zV(e),n=[r,...t].reduce((i,a)=>kn(i,a),{});return BV(Object.keys(r),n)}function fJ(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((i,a)=>{a{e[i]!=null&&(r[i]=!0)}),r}function jS({values:e,breakpoints:t,base:r}){const n=r||fJ(e,t),i=Object.keys(n);if(i.length===0)return e;let a;return i.reduce((o,s,l)=>(Array.isArray(e)?(o[s]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(o[s]=e[s]!=null?e[s]:e[a],a=s):o[s]=e,o),{})}function Af(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,i)=>n&&n[i]!=null?n[i]:null,e)}function Xy(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=Af(e,r)||n,t&&(i=t(i,n,e)),i}function St(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:i}=e,a=o=>{if(o[t]==null)return null;const s=o[t],l=o.theme,u=Af(l,n)||{};return Qi(o,s,f=>{let d=Xy(u,i,f);return f===d&&typeof f=="string"&&(d=Xy(u,i,`${t}${f==="default"?"":xe(f)}`,f)),r===!1?d:{[r]:d}})};return a.propTypes={},a.filterProps=[t],a}function dJ(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const hJ={m:"margin",p:"padding"},pJ={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},xR={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},vJ=dJ(e=>{if(e.length>2)if(xR[e])e=xR[e];else return[e];const[t,r]=e.split(""),n=hJ[t],i=pJ[r]||"";return Array.isArray(i)?i.map(a=>n+a):[n+i]}),SM=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],bM=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...SM,...bM];function _v(e,t,r,n){var i;const a=(i=Af(e,t,!1))!=null?i:r;return typeof a=="number"?o=>typeof o=="string"?o:a*o:Array.isArray(a)?o=>typeof o=="string"?o:a[o]:typeof a=="function"?a:()=>{}}function _M(e){return _v(e,"spacing",8)}function Cu(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function gJ(e,t){return r=>e.reduce((n,i)=>(n[i]=Cu(t,r),n),{})}function mJ(e,t,r,n){if(t.indexOf(r)===-1)return null;const i=vJ(r),a=gJ(i,n),o=e[r];return Qi(e,o,a)}function $V(e,t){const r=_M(e.theme);return Object.keys(e).map(n=>mJ(e,t,n,r)).reduce(Bh,{})}function Qt(e){return $V(e,SM)}Qt.propTypes={};Qt.filterProps=SM;function Jt(e){return $V(e,bM)}Jt.propTypes={};Jt.filterProps=bM;function yJ(e=8){if(e.mui)return e;const t=_M({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(a=>{const o=t(a);return typeof o=="number"?`${o}px`:o}).join(" ");return r.mui=!0,r}function J1(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(a=>{n[a]=i}),n),{}),r=n=>Object.keys(n).reduce((i,a)=>t[a]?Bh(i,t[a](n)):i,{});return r.propTypes={},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function ma(e){return typeof e!="number"?e:`${e}px solid`}const xJ=St({prop:"border",themeKey:"borders",transform:ma}),SJ=St({prop:"borderTop",themeKey:"borders",transform:ma}),bJ=St({prop:"borderRight",themeKey:"borders",transform:ma}),_J=St({prop:"borderBottom",themeKey:"borders",transform:ma}),wJ=St({prop:"borderLeft",themeKey:"borders",transform:ma}),CJ=St({prop:"borderColor",themeKey:"palette"}),TJ=St({prop:"borderTopColor",themeKey:"palette"}),AJ=St({prop:"borderRightColor",themeKey:"palette"}),MJ=St({prop:"borderBottomColor",themeKey:"palette"}),kJ=St({prop:"borderLeftColor",themeKey:"palette"}),ex=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=_v(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Cu(t,n)});return Qi(e,e.borderRadius,r)}return null};ex.propTypes={};ex.filterProps=["borderRadius"];J1(xJ,SJ,bJ,_J,wJ,CJ,TJ,AJ,MJ,kJ,ex);const tx=e=>{if(e.gap!==void 0&&e.gap!==null){const t=_v(e.theme,"spacing",8),r=n=>({gap:Cu(t,n)});return Qi(e,e.gap,r)}return null};tx.propTypes={};tx.filterProps=["gap"];const rx=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=_v(e.theme,"spacing",8),r=n=>({columnGap:Cu(t,n)});return Qi(e,e.columnGap,r)}return null};rx.propTypes={};rx.filterProps=["columnGap"];const nx=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=_v(e.theme,"spacing",8),r=n=>({rowGap:Cu(t,n)});return Qi(e,e.rowGap,r)}return null};nx.propTypes={};nx.filterProps=["rowGap"];const IJ=St({prop:"gridColumn"}),PJ=St({prop:"gridRow"}),DJ=St({prop:"gridAutoFlow"}),RJ=St({prop:"gridAutoColumns"}),LJ=St({prop:"gridAutoRows"}),EJ=St({prop:"gridTemplateColumns"}),OJ=St({prop:"gridTemplateRows"}),NJ=St({prop:"gridTemplateAreas"}),zJ=St({prop:"gridArea"});J1(tx,rx,nx,IJ,PJ,DJ,RJ,LJ,EJ,OJ,NJ,zJ);function sf(e,t){return t==="grey"?t:e}const BJ=St({prop:"color",themeKey:"palette",transform:sf}),$J=St({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:sf}),FJ=St({prop:"backgroundColor",themeKey:"palette",transform:sf});J1(BJ,$J,FJ);function Bn(e){return e<=1&&e!==0?`${e*100}%`:e}const VJ=St({prop:"width",transform:Bn}),wM=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,i;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||xM[r];return a?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:Bn(r)}};return Qi(e,e.maxWidth,t)}return null};wM.filterProps=["maxWidth"];const GJ=St({prop:"minWidth",transform:Bn}),HJ=St({prop:"height",transform:Bn}),WJ=St({prop:"maxHeight",transform:Bn}),jJ=St({prop:"minHeight",transform:Bn});St({prop:"size",cssProperty:"width",transform:Bn});St({prop:"size",cssProperty:"height",transform:Bn});const UJ=St({prop:"boxSizing"});J1(VJ,wM,GJ,HJ,WJ,jJ,UJ);const qJ={border:{themeKey:"borders",transform:ma},borderTop:{themeKey:"borders",transform:ma},borderRight:{themeKey:"borders",transform:ma},borderBottom:{themeKey:"borders",transform:ma},borderLeft:{themeKey:"borders",transform:ma},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ex},color:{themeKey:"palette",transform:sf},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:sf},backgroundColor:{themeKey:"palette",transform:sf},p:{style:Jt},pt:{style:Jt},pr:{style:Jt},pb:{style:Jt},pl:{style:Jt},px:{style:Jt},py:{style:Jt},padding:{style:Jt},paddingTop:{style:Jt},paddingRight:{style:Jt},paddingBottom:{style:Jt},paddingLeft:{style:Jt},paddingX:{style:Jt},paddingY:{style:Jt},paddingInline:{style:Jt},paddingInlineStart:{style:Jt},paddingInlineEnd:{style:Jt},paddingBlock:{style:Jt},paddingBlockStart:{style:Jt},paddingBlockEnd:{style:Jt},m:{style:Qt},mt:{style:Qt},mr:{style:Qt},mb:{style:Qt},ml:{style:Qt},mx:{style:Qt},my:{style:Qt},margin:{style:Qt},marginTop:{style:Qt},marginRight:{style:Qt},marginBottom:{style:Qt},marginLeft:{style:Qt},marginX:{style:Qt},marginY:{style:Qt},marginInline:{style:Qt},marginInlineStart:{style:Qt},marginInlineEnd:{style:Qt},marginBlock:{style:Qt},marginBlockStart:{style:Qt},marginBlockEnd:{style:Qt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:tx},rowGap:{style:nx},columnGap:{style:rx},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Bn},maxWidth:{style:wM},minWidth:{transform:Bn},height:{transform:Bn},maxHeight:{transform:Bn},minHeight:{transform:Bn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},ix=qJ;function YJ(...e){const t=e.reduce((n,i)=>n.concat(Object.keys(i)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function XJ(e,t){return typeof e=="function"?e(t):e}function ZJ(){function e(r,n,i,a){const o={[r]:n,theme:i},s=a[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:u,transform:c,style:f}=s;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const d=Af(i,u)||{};return f?f(o):Qi(o,n,p=>{let v=Xy(d,c,p);return p===v&&typeof p=="string"&&(v=Xy(d,c,`${r}${p==="default"?"":xe(p)}`,p)),l===!1?v:{[l]:v}})}function t(r){var n;const{sx:i,theme:a={}}=r||{};if(!i)return null;const o=(n=a.unstable_sxConfig)!=null?n:ix;function s(l){let u=l;if(typeof l=="function")u=l(a);else if(typeof l!="object")return l;if(!u)return null;const c=zV(a.breakpoints),f=Object.keys(c);let d=c;return Object.keys(u).forEach(h=>{const p=XJ(u[h],a);if(p!=null)if(typeof p=="object")if(o[h])d=Bh(d,e(h,p,a,o));else{const v=Qi({theme:a},p,g=>({[h]:g}));YJ(v,p)?d[h]=t({sx:p,theme:a}):d=Bh(d,v)}else d=Bh(d,e(h,p,a,o))}),BV(f,d)}return Array.isArray(i)?i.map(s):s(i)}return t}const FV=ZJ();FV.filterProps=["sx"];const ax=FV,KJ=["breakpoints","palette","spacing","shape"];function wv(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:a={}}=e,o=me(e,KJ),s=sJ(r),l=yJ(i);let u=kn({breakpoints:s,direction:"ltr",components:{},palette:$({mode:"light"},n),spacing:l,shape:$({},uJ,a)},o);return u=t.reduce((c,f)=>kn(c,f),u),u.unstable_sxConfig=$({},ix,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(f){return ax({sx:f,theme:this})},u}function QJ(e){return Object.keys(e).length===0}function VV(e=null){const t=O.useContext(Q1);return!t||QJ(t)?e:t}const JJ=wv();function ox(e=JJ){return VV(e)}function eee({styles:e,themeId:t,defaultTheme:r={}}){const n=ox(r),i=typeof e=="function"?e(t&&n[t]||n):e;return D.jsx(nJ,{styles:i})}const tee=["sx"],ree=e=>{var t,r;const n={systemProps:{},otherProps:{}},i=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:ix;return Object.keys(e).forEach(a=>{i[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function CM(e){const{sx:t}=e,r=me(e,tee),{systemProps:n,otherProps:i}=ree(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...o)=>{const s=t(...o);return Bl(s)?$({},n,s):n}:a=$({},n,t),$({},i,{sx:a})}function GV(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(ax);return O.forwardRef(function(l,u){const c=ox(r),f=CM(l),{className:d,component:h="div"}=f,p=me(f,nee);return D.jsx(a,$({as:h,ref:u,className:ye(d,i?i(n):n),theme:t&&c[t]||c},p))})}const aee=["variant"];function SR(e){return e.length===0}function HV(e){const{variant:t}=e,r=me(e,aee);let n=t||"";return Object.keys(r).sort().forEach(i=>{i==="color"?n+=SR(n)?e[i]:xe(e[i]):n+=`${SR(n)?i:xe(i)}${xe(e[i].toString())}`}),n}const oee=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function see(e){return Object.keys(e).length===0}function lee(e){return typeof e=="string"&&e.charCodeAt(0)>96}const uee=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,cee=(e,t)=>{let r=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants);const n={};return r.forEach(i=>{const a=HV(i.props);n[a]=i.style}),n},fee=(e,t,r,n)=>{var i;const{ownerState:a={}}=e,o=[],s=r==null||(i=r.components)==null||(i=i[n])==null?void 0:i.variants;return s&&s.forEach(l=>{let u=!0;Object.keys(l.props).forEach(c=>{a[c]!==l.props[c]&&e[c]!==l.props[c]&&(u=!1)}),u&&o.push(t[HV(l.props)])}),o};function $h(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const dee=wv(),hee=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function bd({defaultTheme:e,theme:t,themeId:r}){return see(t)?e:t[r]||t}function pee(e){return e?(t,r)=>r[e]:null}function WV(e={}){const{themeId:t,defaultTheme:r=dee,rootShouldForwardProp:n=$h,slotShouldForwardProp:i=$h}=e,a=o=>ax($({},o,{theme:bd($({},o,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(o,s={})=>{iJ(o,S=>S.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:d=pee(hee(u))}=s,h=me(s,oee),p=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,v=f||!1;let g,m=$h;u==="Root"||u==="root"?m=n:u?m=i:lee(o)&&(m=void 0);const y=NV(o,$({shouldForwardProp:m,label:g},h)),x=(S,..._)=>{const b=_?_.map(T=>typeof T=="function"&&T.__emotion_real!==T?M=>T($({},M,{theme:bd($({},M,{defaultTheme:r,themeId:t}))})):T):[];let w=S;l&&d&&b.push(T=>{const M=bd($({},T,{defaultTheme:r,themeId:t})),k=uee(l,M);if(k){const I={};return Object.entries(k).forEach(([P,L])=>{I[P]=typeof L=="function"?L($({},T,{theme:M})):L}),d(T,I)}return null}),l&&!p&&b.push(T=>{const M=bd($({},T,{defaultTheme:r,themeId:t}));return fee(T,cee(l,M),M,l)}),v||b.push(a);const C=b.length-_.length;if(Array.isArray(S)&&C>0){const T=new Array(C).fill("");w=[...S,...T],w.raw=[...S.raw,...T]}else typeof S=="function"&&S.__emotion_real!==S&&(w=T=>S($({},T,{theme:bd($({},T,{defaultTheme:r,themeId:t}))})));const A=y(w,...b);return o.muiName&&(A.muiName=o.muiName),A};return y.withConfig&&(x.withConfig=y.withConfig),x}}const vee=WV(),jV=vee;function gee(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:dM(t.components[r].defaultProps,n)}function TM({props:e,name:t,defaultTheme:r,themeId:n}){let i=ox(r);return n&&(i=i[n]||i),gee({theme:i,name:t,props:e})}function AM(e,t=0,r=1){return Math.min(Math.max(t,e),r)}function mee(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,i)=>i<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Tu(e){if(e.type)return e;if(e.charAt(0)==="#")return Tu(mee(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(Es(9,e));let n=e.substring(t+1,e.length-1),i;if(r==="color"){if(n=n.split(" "),i=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(Es(10,i))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:i}}function sx(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((i,a)=>a<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function yee(e){e=Tu(e);const{values:t}=e,r=t[0],n=t[1]/100,i=t[2]/100,a=n*Math.min(i,1-i),o=(u,c=(u+r/30)%12)=>i-a*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const l=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),sx({type:s,values:l})}function bR(e){e=Tu(e);let t=e.type==="hsl"||e.type==="hsla"?Tu(yee(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function xee(e,t){const r=bR(e),n=bR(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function or(e,t){return e=Tu(e),t=AM(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,sx(e)}function Lp(e,t){if(e=Tu(e),t=AM(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return sx(e)}function Ep(e,t){if(e=Tu(e),t=AM(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return sx(e)}const See=O.createContext(null),UV=See;function qV(){return O.useContext(UV)}const bee=typeof Symbol=="function"&&Symbol.for,_ee=bee?Symbol.for("mui.nested"):"__THEME_NESTED__";function wee(e,t){return typeof t=="function"?t(e):$({},e,t)}function Cee(e){const{children:t,theme:r}=e,n=qV(),i=O.useMemo(()=>{const a=n===null?r:wee(n,r);return a!=null&&(a[_ee]=n!==null),a},[r,n]);return D.jsx(UV.Provider,{value:i,children:t})}const _R={};function wR(e,t,r,n=!1){return O.useMemo(()=>{const i=e&&t[e]||t;if(typeof r=="function"){const a=r(i),o=e?$({},t,{[e]:a}):a;return n?()=>o:o}return e?$({},t,{[e]:r}):$({},t,r)},[e,t,r,n])}function Tee(e){const{children:t,theme:r,themeId:n}=e,i=VV(_R),a=qV()||_R,o=wR(n,i,r),s=wR(n,a,r,!0);return D.jsx(Cee,{theme:s,children:D.jsx(Q1.Provider,{value:o,children:t})})}const Aee=["className","component","disableGutters","fixed","maxWidth","classes"],Mee=wv(),kee=jV("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${xe(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),Iee=e=>TM({props:e,name:"MuiContainer",defaultTheme:Mee}),Pee=(e,t)=>{const r=l=>Be(t,l),{classes:n,fixed:i,disableGutters:a,maxWidth:o}=e,s={root:["root",o&&`maxWidth${xe(String(o))}`,i&&"fixed",a&&"disableGutters"]};return Ve(s,r,n)};function Dee(e={}){const{createStyledComponent:t=kee,useThemeProps:r=Iee,componentName:n="MuiContainer"}=e,i=t(({theme:o,ownerState:s})=>$({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!s.disableGutters&&{paddingLeft:o.spacing(2),paddingRight:o.spacing(2),[o.breakpoints.up("sm")]:{paddingLeft:o.spacing(3),paddingRight:o.spacing(3)}}),({theme:o,ownerState:s})=>s.fixed&&Object.keys(o.breakpoints.values).reduce((l,u)=>{const c=u,f=o.breakpoints.values[c];return f!==0&&(l[o.breakpoints.up(c)]={maxWidth:`${f}${o.breakpoints.unit}`}),l},{}),({theme:o,ownerState:s})=>$({},s.maxWidth==="xs"&&{[o.breakpoints.up("xs")]:{maxWidth:Math.max(o.breakpoints.values.xs,444)}},s.maxWidth&&s.maxWidth!=="xs"&&{[o.breakpoints.up(s.maxWidth)]:{maxWidth:`${o.breakpoints.values[s.maxWidth]}${o.breakpoints.unit}`}}));return O.forwardRef(function(s,l){const u=r(s),{className:c,component:f="div",disableGutters:d=!1,fixed:h=!1,maxWidth:p="lg"}=u,v=me(u,Aee),g=$({},u,{component:f,disableGutters:d,fixed:h,maxWidth:p}),m=Pee(g,n);return D.jsx(i,$({as:f,ownerState:g,className:ye(m.root,c),ref:l},v))})}const Ree=["component","direction","spacing","divider","children","className","useFlexGap"],Lee=wv(),Eee=jV("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Oee(e){return TM({props:e,name:"MuiStack",defaultTheme:Lee})}function Nee(e,t){const r=O.Children.toArray(e).filter(Boolean);return r.reduce((n,i,a)=>(n.push(i),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Bee=({ownerState:e,theme:t})=>{let r=$({display:"flex",flexDirection:"column"},Qi({theme:t},jS({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=_M(t),i=Object.keys(t.breakpoints.values).reduce((l,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(l[u]=!0),l),{}),a=jS({values:e.direction,base:i}),o=jS({values:e.spacing,base:i});typeof a=="object"&&Object.keys(a).forEach((l,u,c)=>{if(!a[l]){const d=u>0?a[c[u-1]]:"column";a[l]=d}}),r=kn(r,Qi({theme:t},o,(l,u)=>e.useFlexGap?{gap:Cu(n,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${zee(u?a[u]:e.direction)}`]:Cu(n,l)}}))}return r=cJ(t.breakpoints,r),r};function $ee(e={}){const{createStyledComponent:t=Eee,useThemeProps:r=Oee,componentName:n="MuiStack"}=e,i=()=>Ve({root:["root"]},l=>Be(n,l),{}),a=t(Bee);return O.forwardRef(function(l,u){const c=r(l),f=CM(c),{component:d="div",direction:h="column",spacing:p=0,divider:v,children:g,className:m,useFlexGap:y=!1}=f,x=me(f,Ree),S={direction:h,spacing:p,useFlexGap:y},_=i();return D.jsx(a,$({as:d,ownerState:S,ref:u,className:ye(_.root,m)},x,{children:v?Nee(g,v):g}))})}function Fee(e,t){return $({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Vee=["mode","contrastThreshold","tonalOffset"],CR={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:kp.white,default:kp.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}},US={text:{primary:kp.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:kp.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 TR(e,t,r,n){const i=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Ep(e.main,i):t==="dark"&&(e.dark=Lp(e.main,a)))}function Gee(e="light"){return e==="dark"?{main:kl[200],light:kl[50],dark:kl[400]}:{main:kl[700],light:kl[400],dark:kl[800]}}function Hee(e="light"){return e==="dark"?{main:Ku[200],light:Ku[50],dark:Ku[400]}:{main:Ku[500],light:Ku[300],dark:Ku[700]}}function Wee(e="light"){return e==="dark"?{main:Qo[500],light:Qo[300],dark:Qo[700]}:{main:Qo[700],light:Qo[400],dark:Qo[800]}}function jee(e="light"){return e==="dark"?{main:Qu[400],light:Qu[300],dark:Qu[700]}:{main:Qu[700],light:Qu[500],dark:Qu[900]}}function Uee(e="light"){return e==="dark"?{main:Ju[400],light:Ju[300],dark:Ju[700]}:{main:Ju[800],light:Ju[500],dark:Ju[900]}}function qee(e="light"){return e==="dark"?{main:Ac[400],light:Ac[300],dark:Ac[700]}:{main:"#ed6c02",light:Ac[500],dark:Ac[900]}}function Yee(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,i=me(e,Vee),a=e.primary||Gee(t),o=e.secondary||Hee(t),s=e.error||Wee(t),l=e.info||jee(t),u=e.success||Uee(t),c=e.warning||qee(t);function f(v){return xee(v,US.text.primary)>=r?US.text.primary:CR.text.primary}const d=({color:v,name:g,mainShade:m=500,lightShade:y=300,darkShade:x=700})=>{if(v=$({},v),!v.main&&v[m]&&(v.main=v[m]),!v.hasOwnProperty("main"))throw new Error(Es(11,g?` (${g})`:"",m));if(typeof v.main!="string")throw new Error(Es(12,g?` (${g})`:"",JSON.stringify(v.main)));return TR(v,"light",y,n),TR(v,"dark",x,n),v.contrastText||(v.contrastText=f(v.main)),v},h={dark:US,light:CR};return kn($({common:$({},kp),mode:t,primary:d({color:a,name:"primary"}),secondary:d({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:s,name:"error"}),warning:d({color:c,name:"warning"}),info:d({color:l,name:"info"}),success:d({color:u,name:"success"}),grey:qK,contrastThreshold:r,getContrastText:f,augmentColor:d,tonalOffset:n},h[t]),i)}const Xee=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Zee(e){return Math.round(e*1e5)/1e5}const AR={textTransform:"uppercase"},MR='"Roboto", "Helvetica", "Arial", sans-serif';function Kee(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=MR,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:o=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:f}=r,d=me(r,Xee),h=i/14,p=f||(m=>`${m/u*h}rem`),v=(m,y,x,S,_)=>$({fontFamily:n,fontWeight:m,fontSize:p(y),lineHeight:x},n===MR?{letterSpacing:`${Zee(S/y)}em`}:{},_,c),g={h1:v(a,96,1.167,-1.5),h2:v(a,60,1.2,-.5),h3:v(o,48,1.167,0),h4:v(o,34,1.235,.25),h5:v(o,24,1.334,0),h6:v(s,20,1.6,.15),subtitle1:v(o,16,1.75,.15),subtitle2:v(s,14,1.57,.1),body1:v(o,16,1.5,.15),body2:v(o,14,1.43,.15),button:v(s,14,1.75,.4,AR),caption:v(o,12,1.66,.4),overline:v(o,12,2.66,1,AR),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return kn($({htmlFontSize:u,pxToRem:p,fontFamily:n,fontSize:i,fontWeightLight:a,fontWeightRegular:o,fontWeightMedium:s,fontWeightBold:l},g),d,{clone:!1})}const Qee=.2,Jee=.14,ete=.12;function Gt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Qee})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Jee})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${ete})`].join(",")}const tte=["none",Gt(0,2,1,-1,0,1,1,0,0,1,3,0),Gt(0,3,1,-2,0,2,2,0,0,1,5,0),Gt(0,3,3,-2,0,3,4,0,0,1,8,0),Gt(0,2,4,-1,0,4,5,0,0,1,10,0),Gt(0,3,5,-1,0,5,8,0,0,1,14,0),Gt(0,3,5,-1,0,6,10,0,0,1,18,0),Gt(0,4,5,-2,0,7,10,1,0,2,16,1),Gt(0,5,5,-3,0,8,10,1,0,3,14,2),Gt(0,5,6,-3,0,9,12,1,0,3,16,2),Gt(0,6,6,-3,0,10,14,1,0,4,18,3),Gt(0,6,7,-4,0,11,15,1,0,4,20,3),Gt(0,7,8,-4,0,12,17,2,0,5,22,4),Gt(0,7,8,-4,0,13,19,2,0,5,24,4),Gt(0,7,9,-4,0,14,21,2,0,5,26,4),Gt(0,8,9,-5,0,15,22,2,0,6,28,5),Gt(0,8,10,-5,0,16,24,2,0,6,30,5),Gt(0,8,11,-5,0,17,26,2,0,6,32,5),Gt(0,9,11,-5,0,18,28,2,0,7,34,6),Gt(0,9,12,-6,0,19,29,2,0,7,36,6),Gt(0,10,13,-6,0,20,31,3,0,8,38,7),Gt(0,10,13,-6,0,21,33,3,0,8,40,7),Gt(0,10,14,-6,0,22,35,3,0,8,42,7),Gt(0,11,14,-7,0,23,36,3,0,9,44,8),Gt(0,11,15,-7,0,24,38,3,0,9,46,8)],rte=tte,nte=["duration","easing","delay"],ite={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)"},YV={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function kR(e){return`${Math.round(e)}ms`}function ate(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function ote(e){const t=$({},ite,e.easing),r=$({},YV,e.duration);return $({getAutoHeightDuration:ate,create:(i=["all"],a={})=>{const{duration:o=r.standard,easing:s=t.easeInOut,delay:l=0}=a;return me(a,nte),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof o=="string"?o:kR(o)} ${s} ${typeof l=="string"?l:kR(l)}`).join(",")}},e,{easing:t,duration:r})}const ste={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},lte=ste,ute=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function MM(e={},...t){const{mixins:r={},palette:n={},transitions:i={},typography:a={}}=e,o=me(e,ute);if(e.vars)throw new Error(Es(18));const s=Yee(n),l=wv(e);let u=kn(l,{mixins:Fee(l.breakpoints,r),palette:s,shadows:rte.slice(),typography:Kee(s,a),transitions:ote(i),zIndex:$({},lte)});return u=kn(u,o),u=t.reduce((c,f)=>kn(c,f),u),u.unstable_sxConfig=$({},ix,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(f){return ax({sx:f,theme:this})},u}const cte=MM(),lx=cte;function jf(){const e=ox(lx);return e[wu]||e}function He({props:e,name:t}){return TM({props:e,name:t,defaultTheme:lx,themeId:wu})}const Ua=e=>$h(e)&&e!=="classes",fte=$h,dte=WV({themeId:wu,defaultTheme:lx,rootShouldForwardProp:Ua}),le=dte,hte=["theme"];function kM(e){let{theme:t}=e,r=me(e,hte);const n=t[wu];return D.jsx(Tee,$({},r,{themeId:n?wu:void 0,theme:n||t}))}const pte=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},IR=pte;function vte(e){return Be("MuiSvgIcon",e)}Ge("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const gte=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],mte=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${xe(t)}`,`fontSize${xe(r)}`]};return Ve(i,vte,n)},yte=le("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${xe(r.color)}`],t[`fontSize${xe(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,i,a,o,s,l,u,c,f,d,h,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(o=a.pxToRem)==null?void 0:o.call(a,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(f=(d=(e.vars||e).palette)==null||(d=d[t.color])==null?void 0:d.main)!=null?f:{action:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(p=(e.vars||e).palette)==null||(p=p.action)==null?void 0:p.disabled,inherit:void 0}[t.color]}}),XV=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:o="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:f,viewBox:d="0 0 24 24"}=n,h=me(n,gte),p=O.isValidElement(i)&&i.type==="svg",v=$({},n,{color:o,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:p}),g={};c||(g.viewBox=d);const m=mte(v);return D.jsxs(yte,$({as:s,className:ye(m.root,a),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},g,h,p&&i.props,{ownerState:v,children:[p?i.props.children:i,f?D.jsx("title",{children:f}):null]}))});XV.muiName="SvgIcon";const PR=XV;function Mi(e,t){function r(n,i){return D.jsx(PR,$({"data-testid":`${t}Icon`,ref:i},n,{children:e}))}return r.muiName=PR.muiName,O.memo(O.forwardRef(r))}const xte={configure:e=>{hM.configure(e)}},Ste=Object.freeze(Object.defineProperty({__proto__:null,capitalize:xe,createChainedFunction:VC,createSvgIcon:Mi,debounce:Sv,deprecatedPropType:YK,isMuiElement:zh,ownerDocument:ln,ownerWindow:Na,requirePropFactory:XK,setRef:qy,unstable_ClassNameGenerator:xte,unstable_useEnhancedEffect:So,unstable_useId:xV,unsupportedProp:QK,useControlled:Ip,useEventCallback:_a,useForkRef:Mr,useIsFocusVisible:fM},Symbol.toStringTag,{value:"Module"}));function UC(e,t){return UC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},UC(e,t)}function ZV(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,UC(e,t)}const DR={disabled:!1},Zy=ba.createContext(null);var bte=function(t){return t.scrollTop},uh="unmounted",Il="exited",Pl="entering",Mc="entered",qC="exiting",Io=function(e){ZV(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var o=i,s=o&&!o.isMounting?n.enter:n.appear,l;return a.appearStatus=null,n.in?s?(l=Il,a.appearStatus=Pl):l=Mc:n.unmountOnExit||n.mountOnEnter?l=uh:l=Il,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===uh?{status:Il}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var a=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==Pl&&o!==Mc&&(a=Pl):(o===Pl||o===Mc)&&(a=qC)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,a,o,s;return a=o=s=i,i!=null&&typeof i!="number"&&(a=i.exit,o=i.enter,s=i.appear!==void 0?i.appear:o),{exit:a,enter:o,appear:s}},r.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Pl){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:hg.findDOMNode(this);o&&bte(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Il&&this.setState({status:uh})},r.performEnter=function(i){var a=this,o=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[hg.findDOMNode(this),s],u=l[0],c=l[1],f=this.getTimeouts(),d=s?f.appear:f.enter;if(!i&&!o||DR.disabled){this.safeSetState({status:Mc},function(){a.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Pl},function(){a.props.onEntering(u,c),a.onTransitionEnd(d,function(){a.safeSetState({status:Mc},function(){a.props.onEntered(u,c)})})})},r.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:hg.findDOMNode(this);if(!a||DR.disabled){this.safeSetState({status:Il},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:qC},function(){i.props.onExiting(s),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:Il},function(){i.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},r.setNextCallback=function(i){var a=this,o=!0;return this.nextCallback=function(s){o&&(o=!1,a.nextCallback=null,i(s))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(i,a){this.setNextCallback(a);var o=this.props.nodeRef?this.props.nodeRef.current:hg.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===uh)return null;var a=this.props,o=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=me(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ba.createElement(Zy.Provider,{value:null},typeof o=="function"?o(i,s):ba.cloneElement(ba.Children.only(o),s))},t}(ba.Component);Io.contextType=Zy;Io.propTypes={};function tc(){}Io.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:tc,onEntering:tc,onEntered:tc,onExit:tc,onExiting:tc,onExited:tc};Io.UNMOUNTED=uh;Io.EXITED=Il;Io.ENTERING=Pl;Io.ENTERED=Mc;Io.EXITING=qC;const IM=Io;function _te(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PM(e,t){var r=function(a){return t&&O.isValidElement(a)?t(a):a},n=Object.create(null);return e&&O.Children.map(e,function(i){return i}).forEach(function(i){n[i.key]=r(i)}),n}function wte(e,t){e=e||{},t=t||{};function r(c){return c in t?t[c]:e[c]}var n=Object.create(null),i=[];for(var a in e)a in t?i.length&&(n[a]=i,i=[]):i.push(a);var o,s={};for(var l in t){if(n[l])for(o=0;oe.scrollTop;function Mf(e,t){var r,n;const{timeout:i,easing:a,style:o={}}=e;return{duration:(r=o.transitionDuration)!=null?r:typeof i=="number"?i:i[t.mode]||0,easing:(n=o.transitionTimingFunction)!=null?n:typeof a=="object"?a[t.mode]:a,delay:o.transitionDelay}}function Ite(e){return Be("MuiCollapse",e)}Ge("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Pte=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],Dte=e=>{const{orientation:t,classes:r}=e,n={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Ve(n,Ite,r)},Rte=le("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.orientation],r.state==="entered"&&t.entered,r.state==="exited"&&!r.in&&r.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>$({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&$({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),Lte=le("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>$({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),Ete=le("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>$({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),QV=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiCollapse"}),{addEndListener:i,children:a,className:o,collapsedSize:s="0px",component:l,easing:u,in:c,onEnter:f,onEntered:d,onEntering:h,onExit:p,onExited:v,onExiting:g,orientation:m="vertical",style:y,timeout:x=YV.standard,TransitionComponent:S=IM}=n,_=me(n,Pte),b=$({},n,{orientation:m,collapsedSize:s}),w=Dte(b),C=jf(),A=O.useRef(),T=O.useRef(null),M=O.useRef(),k=typeof s=="number"?`${s}px`:s,I=m==="horizontal",P=I?"width":"height";O.useEffect(()=>()=>{clearTimeout(A.current)},[]);const L=O.useRef(null),z=Mr(r,L),V=W=>ee=>{if(W){const te=L.current;ee===void 0?W(te):W(te,ee)}},N=()=>T.current?T.current[I?"clientWidth":"clientHeight"]:0,F=V((W,ee)=>{T.current&&I&&(T.current.style.position="absolute"),W.style[P]=k,f&&f(W,ee)}),E=V((W,ee)=>{const te=N();T.current&&I&&(T.current.style.position="");const{duration:ie,easing:re}=Mf({style:y,timeout:x,easing:u},{mode:"enter"});if(x==="auto"){const Q=C.transitions.getAutoHeightDuration(te);W.style.transitionDuration=`${Q}ms`,M.current=Q}else W.style.transitionDuration=typeof ie=="string"?ie:`${ie}ms`;W.style[P]=`${te}px`,W.style.transitionTimingFunction=re,h&&h(W,ee)}),G=V((W,ee)=>{W.style[P]="auto",d&&d(W,ee)}),j=V(W=>{W.style[P]=`${N()}px`,p&&p(W)}),B=V(v),U=V(W=>{const ee=N(),{duration:te,easing:ie}=Mf({style:y,timeout:x,easing:u},{mode:"exit"});if(x==="auto"){const re=C.transitions.getAutoHeightDuration(ee);W.style.transitionDuration=`${re}ms`,M.current=re}else W.style.transitionDuration=typeof te=="string"?te:`${te}ms`;W.style[P]=k,W.style.transitionTimingFunction=ie,g&&g(W)}),X=W=>{x==="auto"&&(A.current=setTimeout(W,M.current||0)),i&&i(L.current,W)};return D.jsx(S,$({in:c,onEnter:F,onEntered:G,onEntering:E,onExit:j,onExited:B,onExiting:U,addEndListener:X,nodeRef:L,timeout:x==="auto"?null:x},_,{children:(W,ee)=>D.jsx(Rte,$({as:l,className:ye(w.root,o,{entered:w.entered,exited:!c&&k==="0px"&&w.hidden}[W]),style:$({[I?"minWidth":"minHeight"]:k},y),ownerState:$({},b,{state:W}),ref:z},ee,{children:D.jsx(Lte,{ownerState:$({},b,{state:W}),className:w.wrapper,ref:T,children:D.jsx(Ete,{ownerState:$({},b,{state:W}),className:w.wrapperInner,children:a})})}))}))});QV.muiSupportAuto=!0;const Ote=QV;function Nte(e){return Be("MuiPaper",e)}Ge("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 zte=["className","component","elevation","square","variant"],Bte=e=>{const{square:t,elevation:r,variant:n,classes:i}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Ve(a,Nte,i)},$te=le("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return $({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&$({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${or("#fff",IR(t.elevation))}, ${or("#fff",IR(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),Fte=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiPaper"}),{className:i,component:a="div",elevation:o=1,square:s=!1,variant:l="elevation"}=n,u=me(n,zte),c=$({},n,{component:a,elevation:o,square:s,variant:l}),f=Bte(c);return D.jsx($te,$({as:a,ownerState:c,className:ye(f.root,i),ref:r},u))}),Nu=Fte,Vte=O.createContext({}),JV=Vte;function Gte(e){return Be("MuiAccordion",e)}const Hte=Ge("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),vg=Hte,Wte=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],jte=e=>{const{classes:t,square:r,expanded:n,disabled:i,disableGutters:a}=e;return Ve({root:["root",!r&&"rounded",n&&"expanded",i&&"disabled",!a&&"gutters"],region:["region"]},Gte,t)},Ute=le(Nu,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${vg.region}`]:t.region},t.root,!r.square&&t.rounded,!r.disableGutters&&t.gutters]}})(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&:before":{display:"none"}},[`&.${vg.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${vg.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e,ownerState:t})=>$({},!t.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!t.disableGutters&&{[`&.${vg.expanded}`]:{margin:"16px 0"}})),qte=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiAccordion"}),{children:i,className:a,defaultExpanded:o=!1,disabled:s=!1,disableGutters:l=!1,expanded:u,onChange:c,square:f=!1,TransitionComponent:d=Ote,TransitionProps:h}=n,p=me(n,Wte),[v,g]=Ip({controlled:u,default:o,name:"Accordion",state:"expanded"}),m=O.useCallback(w=>{g(!v),c&&c(w,!v)},[v,c,g]),[y,...x]=O.Children.toArray(i),S=O.useMemo(()=>({expanded:v,disabled:s,disableGutters:l,toggle:m}),[v,s,l,m]),_=$({},n,{square:f,disabled:s,disableGutters:l,expanded:v}),b=jte(_);return D.jsxs(Ute,$({className:ye(b.root,a),ref:r,ownerState:_,square:f},p,{children:[D.jsx(JV.Provider,{value:S,children:y}),D.jsx(d,$({in:v,timeout:"auto"},h,{children:D.jsx("div",{"aria-labelledby":y.props.id,id:y.props["aria-controls"],role:"region",className:b.region,children:x})}))]}))}),eG=qte;function Yte(e){return Be("MuiAccordionDetails",e)}Ge("MuiAccordionDetails",["root"]);const Xte=["className"],Zte=e=>{const{classes:t}=e;return Ve({root:["root"]},Yte,t)},Kte=le("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),Qte=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiAccordionDetails"}),{className:i}=n,a=me(n,Xte),o=n,s=Zte(o);return D.jsx(Kte,$({className:ye(s.root,i),ref:r,ownerState:o},a))}),tG=Qte;function Jte(e){const{className:t,classes:r,pulsate:n=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:l,timeout:u}=e,[c,f]=O.useState(!1),d=ye(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),h={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},p=ye(r.child,c&&r.childLeaving,n&&r.childPulsate);return!s&&!c&&f(!0),O.useEffect(()=>{if(!s&&l!=null){const v=setTimeout(l,u);return()=>{clearTimeout(v)}}},[l,s,u]),D.jsx("span",{className:d,style:h,children:D.jsx("span",{className:p})})}const ere=Ge("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),si=ere,tre=["center","classes","className"];let ux=e=>e,RR,LR,ER,OR;const YC=550,rre=80,nre=yM(RR||(RR=ux` + */function FV(e,t){return UC(e,t)}const aJ=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},oJ=["values","unit","step"],sJ=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>$({},r,{[n.key]:n.val}),{})};function lJ(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,i=me(e,oJ),a=sJ(t),o=Object.keys(a);function s(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r})`}function l(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-n/100}${r})`}function u(d,h){const p=o.indexOf(h);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r}) and (max-width:${(p!==-1&&typeof t[o[p]]=="number"?t[o[p]]:h)-n/100}${r})`}function c(d){return o.indexOf(d)+1`@media (min-width:${SM[e]}px)`};function Qi(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||bR;return t.reduce((o,s,l)=>(o[a.up(a.keys[l])]=r(t[l]),o),{})}if(typeof t=="object"){const a=n.breakpoints||bR;return Object.keys(t).reduce((o,s)=>{if(Object.keys(a.values||SM).indexOf(s)!==-1){const l=a.up(s);o[l]=r(t[s],s)}else{const l=s;o[l]=t[l]}return o},{})}return r(t)}function VV(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,i)=>{const a=e.up(i);return n[a]={},n},{}))||{}}function GV(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function fJ(e,...t){const r=VV(e),n=[r,...t].reduce((i,a)=>kn(i,a),{});return GV(Object.keys(r),n)}function dJ(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((i,a)=>{a{e[i]!=null&&(r[i]=!0)}),r}function US({values:e,breakpoints:t,base:r}){const n=r||dJ(e,t),i=Object.keys(n);if(i.length===0)return e;let a;return i.reduce((o,s,l)=>(Array.isArray(e)?(o[s]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(o[s]=e[s]!=null?e[s]:e[a],a=s):o[s]=e,o),{})}function Af(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,i)=>n&&n[i]!=null?n[i]:null,e)}function Xy(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=Af(e,r)||n,t&&(i=t(i,n,e)),i}function St(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:i}=e,a=o=>{if(o[t]==null)return null;const s=o[t],l=o.theme,u=Af(l,n)||{};return Qi(o,s,f=>{let d=Xy(u,i,f);return f===d&&typeof f=="string"&&(d=Xy(u,i,`${t}${f==="default"?"":xe(f)}`,f)),r===!1?d:{[r]:d}})};return a.propTypes={},a.filterProps=[t],a}function hJ(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const pJ={m:"margin",p:"padding"},vJ={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},_R={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},gJ=hJ(e=>{if(e.length>2)if(_R[e])e=_R[e];else return[e];const[t,r]=e.split(""),n=pJ[t],i=vJ[r]||"";return Array.isArray(i)?i.map(a=>n+a):[n+i]}),bM=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],_M=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...bM,..._M];function _v(e,t,r,n){var i;const a=(i=Af(e,t,!1))!=null?i:r;return typeof a=="number"?o=>typeof o=="string"?o:a*o:Array.isArray(a)?o=>typeof o=="string"?o:a[o]:typeof a=="function"?a:()=>{}}function wM(e){return _v(e,"spacing",8)}function Au(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function mJ(e,t){return r=>e.reduce((n,i)=>(n[i]=Au(t,r),n),{})}function yJ(e,t,r,n){if(t.indexOf(r)===-1)return null;const i=gJ(r),a=mJ(i,n),o=e[r];return Qi(e,o,a)}function HV(e,t){const r=wM(e.theme);return Object.keys(e).map(n=>yJ(e,t,n,r)).reduce(Bh,{})}function Qt(e){return HV(e,bM)}Qt.propTypes={};Qt.filterProps=bM;function Jt(e){return HV(e,_M)}Jt.propTypes={};Jt.filterProps=_M;function xJ(e=8){if(e.mui)return e;const t=wM({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(a=>{const o=t(a);return typeof o=="number"?`${o}px`:o}).join(" ");return r.mui=!0,r}function J1(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(a=>{n[a]=i}),n),{}),r=n=>Object.keys(n).reduce((i,a)=>t[a]?Bh(i,t[a](n)):i,{});return r.propTypes={},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function ma(e){return typeof e!="number"?e:`${e}px solid`}const SJ=St({prop:"border",themeKey:"borders",transform:ma}),bJ=St({prop:"borderTop",themeKey:"borders",transform:ma}),_J=St({prop:"borderRight",themeKey:"borders",transform:ma}),wJ=St({prop:"borderBottom",themeKey:"borders",transform:ma}),CJ=St({prop:"borderLeft",themeKey:"borders",transform:ma}),TJ=St({prop:"borderColor",themeKey:"palette"}),AJ=St({prop:"borderTopColor",themeKey:"palette"}),MJ=St({prop:"borderRightColor",themeKey:"palette"}),kJ=St({prop:"borderBottomColor",themeKey:"palette"}),IJ=St({prop:"borderLeftColor",themeKey:"palette"}),ex=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=_v(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Au(t,n)});return Qi(e,e.borderRadius,r)}return null};ex.propTypes={};ex.filterProps=["borderRadius"];J1(SJ,bJ,_J,wJ,CJ,TJ,AJ,MJ,kJ,IJ,ex);const tx=e=>{if(e.gap!==void 0&&e.gap!==null){const t=_v(e.theme,"spacing",8),r=n=>({gap:Au(t,n)});return Qi(e,e.gap,r)}return null};tx.propTypes={};tx.filterProps=["gap"];const rx=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=_v(e.theme,"spacing",8),r=n=>({columnGap:Au(t,n)});return Qi(e,e.columnGap,r)}return null};rx.propTypes={};rx.filterProps=["columnGap"];const nx=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=_v(e.theme,"spacing",8),r=n=>({rowGap:Au(t,n)});return Qi(e,e.rowGap,r)}return null};nx.propTypes={};nx.filterProps=["rowGap"];const PJ=St({prop:"gridColumn"}),DJ=St({prop:"gridRow"}),RJ=St({prop:"gridAutoFlow"}),LJ=St({prop:"gridAutoColumns"}),EJ=St({prop:"gridAutoRows"}),OJ=St({prop:"gridTemplateColumns"}),NJ=St({prop:"gridTemplateRows"}),zJ=St({prop:"gridTemplateAreas"}),BJ=St({prop:"gridArea"});J1(tx,rx,nx,PJ,DJ,RJ,LJ,EJ,OJ,NJ,zJ,BJ);function sf(e,t){return t==="grey"?t:e}const $J=St({prop:"color",themeKey:"palette",transform:sf}),FJ=St({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:sf}),VJ=St({prop:"backgroundColor",themeKey:"palette",transform:sf});J1($J,FJ,VJ);function Bn(e){return e<=1&&e!==0?`${e*100}%`:e}const GJ=St({prop:"width",transform:Bn}),CM=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,i;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||SM[r];return a?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:Bn(r)}};return Qi(e,e.maxWidth,t)}return null};CM.filterProps=["maxWidth"];const HJ=St({prop:"minWidth",transform:Bn}),WJ=St({prop:"height",transform:Bn}),jJ=St({prop:"maxHeight",transform:Bn}),UJ=St({prop:"minHeight",transform:Bn});St({prop:"size",cssProperty:"width",transform:Bn});St({prop:"size",cssProperty:"height",transform:Bn});const qJ=St({prop:"boxSizing"});J1(GJ,CM,HJ,WJ,jJ,UJ,qJ);const YJ={border:{themeKey:"borders",transform:ma},borderTop:{themeKey:"borders",transform:ma},borderRight:{themeKey:"borders",transform:ma},borderBottom:{themeKey:"borders",transform:ma},borderLeft:{themeKey:"borders",transform:ma},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ex},color:{themeKey:"palette",transform:sf},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:sf},backgroundColor:{themeKey:"palette",transform:sf},p:{style:Jt},pt:{style:Jt},pr:{style:Jt},pb:{style:Jt},pl:{style:Jt},px:{style:Jt},py:{style:Jt},padding:{style:Jt},paddingTop:{style:Jt},paddingRight:{style:Jt},paddingBottom:{style:Jt},paddingLeft:{style:Jt},paddingX:{style:Jt},paddingY:{style:Jt},paddingInline:{style:Jt},paddingInlineStart:{style:Jt},paddingInlineEnd:{style:Jt},paddingBlock:{style:Jt},paddingBlockStart:{style:Jt},paddingBlockEnd:{style:Jt},m:{style:Qt},mt:{style:Qt},mr:{style:Qt},mb:{style:Qt},ml:{style:Qt},mx:{style:Qt},my:{style:Qt},margin:{style:Qt},marginTop:{style:Qt},marginRight:{style:Qt},marginBottom:{style:Qt},marginLeft:{style:Qt},marginX:{style:Qt},marginY:{style:Qt},marginInline:{style:Qt},marginInlineStart:{style:Qt},marginInlineEnd:{style:Qt},marginBlock:{style:Qt},marginBlockStart:{style:Qt},marginBlockEnd:{style:Qt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:tx},rowGap:{style:nx},columnGap:{style:rx},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Bn},maxWidth:{style:CM},minWidth:{transform:Bn},height:{transform:Bn},maxHeight:{transform:Bn},minHeight:{transform:Bn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},ix=YJ;function XJ(...e){const t=e.reduce((n,i)=>n.concat(Object.keys(i)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function ZJ(e,t){return typeof e=="function"?e(t):e}function KJ(){function e(r,n,i,a){const o={[r]:n,theme:i},s=a[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:u,transform:c,style:f}=s;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const d=Af(i,u)||{};return f?f(o):Qi(o,n,p=>{let v=Xy(d,c,p);return p===v&&typeof p=="string"&&(v=Xy(d,c,`${r}${p==="default"?"":xe(p)}`,p)),l===!1?v:{[l]:v}})}function t(r){var n;const{sx:i,theme:a={}}=r||{};if(!i)return null;const o=(n=a.unstable_sxConfig)!=null?n:ix;function s(l){let u=l;if(typeof l=="function")u=l(a);else if(typeof l!="object")return l;if(!u)return null;const c=VV(a.breakpoints),f=Object.keys(c);let d=c;return Object.keys(u).forEach(h=>{const p=ZJ(u[h],a);if(p!=null)if(typeof p=="object")if(o[h])d=Bh(d,e(h,p,a,o));else{const v=Qi({theme:a},p,g=>({[h]:g}));XJ(v,p)?d[h]=t({sx:p,theme:a}):d=Bh(d,v)}else d=Bh(d,e(h,p,a,o))}),GV(f,d)}return Array.isArray(i)?i.map(s):s(i)}return t}const WV=KJ();WV.filterProps=["sx"];const ax=WV,QJ=["breakpoints","palette","spacing","shape"];function wv(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:a={}}=e,o=me(e,QJ),s=lJ(r),l=xJ(i);let u=kn({breakpoints:s,direction:"ltr",components:{},palette:$({mode:"light"},n),spacing:l,shape:$({},cJ,a)},o);return u=t.reduce((c,f)=>kn(c,f),u),u.unstable_sxConfig=$({},ix,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(f){return ax({sx:f,theme:this})},u}function JJ(e){return Object.keys(e).length===0}function jV(e=null){const t=O.useContext(Q1);return!t||JJ(t)?e:t}const eee=wv();function ox(e=eee){return jV(e)}function tee({styles:e,themeId:t,defaultTheme:r={}}){const n=ox(r),i=typeof e=="function"?e(t&&n[t]||n):e;return P.jsx(iJ,{styles:i})}const ree=["sx"],nee=e=>{var t,r;const n={systemProps:{},otherProps:{}},i=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:ix;return Object.keys(e).forEach(a=>{i[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function TM(e){const{sx:t}=e,r=me(e,ree),{systemProps:n,otherProps:i}=nee(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...o)=>{const s=t(...o);return Fl(s)?$({},n,s):n}:a=$({},n,t),$({},i,{sx:a})}function UV(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(ax);return O.forwardRef(function(l,u){const c=ox(r),f=TM(l),{className:d,component:h="div"}=f,p=me(f,iee);return P.jsx(a,$({as:h,ref:u,className:ye(d,i?i(n):n),theme:t&&c[t]||c},p))})}const oee=["variant"];function wR(e){return e.length===0}function qV(e){const{variant:t}=e,r=me(e,oee);let n=t||"";return Object.keys(r).sort().forEach(i=>{i==="color"?n+=wR(n)?e[i]:xe(e[i]):n+=`${wR(n)?i:xe(i)}${xe(e[i].toString())}`}),n}const see=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function lee(e){return Object.keys(e).length===0}function uee(e){return typeof e=="string"&&e.charCodeAt(0)>96}const cee=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,fee=(e,t)=>{let r=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants);const n={};return r.forEach(i=>{const a=qV(i.props);n[a]=i.style}),n},dee=(e,t,r,n)=>{var i;const{ownerState:a={}}=e,o=[],s=r==null||(i=r.components)==null||(i=i[n])==null?void 0:i.variants;return s&&s.forEach(l=>{let u=!0;Object.keys(l.props).forEach(c=>{a[c]!==l.props[c]&&e[c]!==l.props[c]&&(u=!1)}),u&&o.push(t[qV(l.props)])}),o};function $h(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const hee=wv(),pee=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function bd({defaultTheme:e,theme:t,themeId:r}){return lee(t)?e:t[r]||t}function vee(e){return e?(t,r)=>r[e]:null}function YV(e={}){const{themeId:t,defaultTheme:r=hee,rootShouldForwardProp:n=$h,slotShouldForwardProp:i=$h}=e,a=o=>ax($({},o,{theme:bd($({},o,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(o,s={})=>{aJ(o,S=>S.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:d=vee(pee(u))}=s,h=me(s,see),p=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,v=f||!1;let g,m=$h;u==="Root"||u==="root"?m=n:u?m=i:uee(o)&&(m=void 0);const y=FV(o,$({shouldForwardProp:m,label:g},h)),x=(S,..._)=>{const b=_?_.map(T=>typeof T=="function"&&T.__emotion_real!==T?M=>T($({},M,{theme:bd($({},M,{defaultTheme:r,themeId:t}))})):T):[];let w=S;l&&d&&b.push(T=>{const M=bd($({},T,{defaultTheme:r,themeId:t})),k=cee(l,M);if(k){const I={};return Object.entries(k).forEach(([D,L])=>{I[D]=typeof L=="function"?L($({},T,{theme:M})):L}),d(T,I)}return null}),l&&!p&&b.push(T=>{const M=bd($({},T,{defaultTheme:r,themeId:t}));return dee(T,fee(l,M),M,l)}),v||b.push(a);const C=b.length-_.length;if(Array.isArray(S)&&C>0){const T=new Array(C).fill("");w=[...S,...T],w.raw=[...S.raw,...T]}else typeof S=="function"&&S.__emotion_real!==S&&(w=T=>S($({},T,{theme:bd($({},T,{defaultTheme:r,themeId:t}))})));const A=y(w,...b);return o.muiName&&(A.muiName=o.muiName),A};return y.withConfig&&(x.withConfig=y.withConfig),x}}const gee=YV(),XV=gee;function mee(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:hM(t.components[r].defaultProps,n)}function AM({props:e,name:t,defaultTheme:r,themeId:n}){let i=ox(r);return n&&(i=i[n]||i),mee({theme:i,name:t,props:e})}function MM(e,t=0,r=1){return Math.min(Math.max(t,e),r)}function yee(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,i)=>i<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Mu(e){if(e.type)return e;if(e.charAt(0)==="#")return Mu(yee(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(Es(9,e));let n=e.substring(t+1,e.length-1),i;if(r==="color"){if(n=n.split(" "),i=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(Es(10,i))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:i}}function sx(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((i,a)=>a<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function xee(e){e=Mu(e);const{values:t}=e,r=t[0],n=t[1]/100,i=t[2]/100,a=n*Math.min(i,1-i),o=(u,c=(u+r/30)%12)=>i-a*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const l=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),sx({type:s,values:l})}function CR(e){e=Mu(e);let t=e.type==="hsl"||e.type==="hsla"?Mu(xee(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function See(e,t){const r=CR(e),n=CR(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function or(e,t){return e=Mu(e),t=MM(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,sx(e)}function Lp(e,t){if(e=Mu(e),t=MM(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return sx(e)}function Ep(e,t){if(e=Mu(e),t=MM(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return sx(e)}const bee=O.createContext(null),ZV=bee;function KV(){return O.useContext(ZV)}const _ee=typeof Symbol=="function"&&Symbol.for,wee=_ee?Symbol.for("mui.nested"):"__THEME_NESTED__";function Cee(e,t){return typeof t=="function"?t(e):$({},e,t)}function Tee(e){const{children:t,theme:r}=e,n=KV(),i=O.useMemo(()=>{const a=n===null?r:Cee(n,r);return a!=null&&(a[wee]=n!==null),a},[r,n]);return P.jsx(ZV.Provider,{value:i,children:t})}const TR={};function AR(e,t,r,n=!1){return O.useMemo(()=>{const i=e&&t[e]||t;if(typeof r=="function"){const a=r(i),o=e?$({},t,{[e]:a}):a;return n?()=>o:o}return e?$({},t,{[e]:r}):$({},t,r)},[e,t,r,n])}function Aee(e){const{children:t,theme:r,themeId:n}=e,i=jV(TR),a=KV()||TR,o=AR(n,i,r),s=AR(n,a,r,!0);return P.jsx(Tee,{theme:s,children:P.jsx(Q1.Provider,{value:o,children:t})})}const Mee=["className","component","disableGutters","fixed","maxWidth","classes"],kee=wv(),Iee=XV("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${xe(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),Pee=e=>AM({props:e,name:"MuiContainer",defaultTheme:kee}),Dee=(e,t)=>{const r=l=>Be(t,l),{classes:n,fixed:i,disableGutters:a,maxWidth:o}=e,s={root:["root",o&&`maxWidth${xe(String(o))}`,i&&"fixed",a&&"disableGutters"]};return Ve(s,r,n)};function Ree(e={}){const{createStyledComponent:t=Iee,useThemeProps:r=Pee,componentName:n="MuiContainer"}=e,i=t(({theme:o,ownerState:s})=>$({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!s.disableGutters&&{paddingLeft:o.spacing(2),paddingRight:o.spacing(2),[o.breakpoints.up("sm")]:{paddingLeft:o.spacing(3),paddingRight:o.spacing(3)}}),({theme:o,ownerState:s})=>s.fixed&&Object.keys(o.breakpoints.values).reduce((l,u)=>{const c=u,f=o.breakpoints.values[c];return f!==0&&(l[o.breakpoints.up(c)]={maxWidth:`${f}${o.breakpoints.unit}`}),l},{}),({theme:o,ownerState:s})=>$({},s.maxWidth==="xs"&&{[o.breakpoints.up("xs")]:{maxWidth:Math.max(o.breakpoints.values.xs,444)}},s.maxWidth&&s.maxWidth!=="xs"&&{[o.breakpoints.up(s.maxWidth)]:{maxWidth:`${o.breakpoints.values[s.maxWidth]}${o.breakpoints.unit}`}}));return O.forwardRef(function(s,l){const u=r(s),{className:c,component:f="div",disableGutters:d=!1,fixed:h=!1,maxWidth:p="lg"}=u,v=me(u,Mee),g=$({},u,{component:f,disableGutters:d,fixed:h,maxWidth:p}),m=Dee(g,n);return P.jsx(i,$({as:f,ownerState:g,className:ye(m.root,c),ref:l},v))})}const Lee=["component","direction","spacing","divider","children","className","useFlexGap"],Eee=wv(),Oee=XV("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Nee(e){return AM({props:e,name:"MuiStack",defaultTheme:Eee})}function zee(e,t){const r=O.Children.toArray(e).filter(Boolean);return r.reduce((n,i,a)=>(n.push(i),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],$ee=({ownerState:e,theme:t})=>{let r=$({display:"flex",flexDirection:"column"},Qi({theme:t},US({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=wM(t),i=Object.keys(t.breakpoints.values).reduce((l,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(l[u]=!0),l),{}),a=US({values:e.direction,base:i}),o=US({values:e.spacing,base:i});typeof a=="object"&&Object.keys(a).forEach((l,u,c)=>{if(!a[l]){const d=u>0?a[c[u-1]]:"column";a[l]=d}}),r=kn(r,Qi({theme:t},o,(l,u)=>e.useFlexGap?{gap:Au(n,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Bee(u?a[u]:e.direction)}`]:Au(n,l)}}))}return r=fJ(t.breakpoints,r),r};function Fee(e={}){const{createStyledComponent:t=Oee,useThemeProps:r=Nee,componentName:n="MuiStack"}=e,i=()=>Ve({root:["root"]},l=>Be(n,l),{}),a=t($ee);return O.forwardRef(function(l,u){const c=r(l),f=TM(c),{component:d="div",direction:h="column",spacing:p=0,divider:v,children:g,className:m,useFlexGap:y=!1}=f,x=me(f,Lee),S={direction:h,spacing:p,useFlexGap:y},_=i();return P.jsx(a,$({as:d,ownerState:S,ref:u,className:ye(_.root,m)},x,{children:v?zee(g,v):g}))})}function Vee(e,t){return $({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Gee=["mode","contrastThreshold","tonalOffset"],MR={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:kp.white,default:kp.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}},qS={text:{primary:kp.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:kp.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 kR(e,t,r,n){const i=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Ep(e.main,i):t==="dark"&&(e.dark=Lp(e.main,a)))}function Hee(e="light"){return e==="dark"?{main:Il[200],light:Il[50],dark:Il[400]}:{main:Il[700],light:Il[400],dark:Il[800]}}function Wee(e="light"){return e==="dark"?{main:Qu[200],light:Qu[50],dark:Qu[400]}:{main:Qu[500],light:Qu[300],dark:Qu[700]}}function jee(e="light"){return e==="dark"?{main:Qo[500],light:Qo[300],dark:Qo[700]}:{main:Qo[700],light:Qo[400],dark:Qo[800]}}function Uee(e="light"){return e==="dark"?{main:Ju[400],light:Ju[300],dark:Ju[700]}:{main:Ju[700],light:Ju[500],dark:Ju[900]}}function qee(e="light"){return e==="dark"?{main:ec[400],light:ec[300],dark:ec[700]}:{main:ec[800],light:ec[500],dark:ec[900]}}function Yee(e="light"){return e==="dark"?{main:Ac[400],light:Ac[300],dark:Ac[700]}:{main:"#ed6c02",light:Ac[500],dark:Ac[900]}}function Xee(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,i=me(e,Gee),a=e.primary||Hee(t),o=e.secondary||Wee(t),s=e.error||jee(t),l=e.info||Uee(t),u=e.success||qee(t),c=e.warning||Yee(t);function f(v){return See(v,qS.text.primary)>=r?qS.text.primary:MR.text.primary}const d=({color:v,name:g,mainShade:m=500,lightShade:y=300,darkShade:x=700})=>{if(v=$({},v),!v.main&&v[m]&&(v.main=v[m]),!v.hasOwnProperty("main"))throw new Error(Es(11,g?` (${g})`:"",m));if(typeof v.main!="string")throw new Error(Es(12,g?` (${g})`:"",JSON.stringify(v.main)));return kR(v,"light",y,n),kR(v,"dark",x,n),v.contrastText||(v.contrastText=f(v.main)),v},h={dark:qS,light:MR};return kn($({common:$({},kp),mode:t,primary:d({color:a,name:"primary"}),secondary:d({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:s,name:"error"}),warning:d({color:c,name:"warning"}),info:d({color:l,name:"info"}),success:d({color:u,name:"success"}),grey:YK,contrastThreshold:r,getContrastText:f,augmentColor:d,tonalOffset:n},h[t]),i)}const Zee=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Kee(e){return Math.round(e*1e5)/1e5}const IR={textTransform:"uppercase"},PR='"Roboto", "Helvetica", "Arial", sans-serif';function Qee(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=PR,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:o=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:f}=r,d=me(r,Zee),h=i/14,p=f||(m=>`${m/u*h}rem`),v=(m,y,x,S,_)=>$({fontFamily:n,fontWeight:m,fontSize:p(y),lineHeight:x},n===PR?{letterSpacing:`${Kee(S/y)}em`}:{},_,c),g={h1:v(a,96,1.167,-1.5),h2:v(a,60,1.2,-.5),h3:v(o,48,1.167,0),h4:v(o,34,1.235,.25),h5:v(o,24,1.334,0),h6:v(s,20,1.6,.15),subtitle1:v(o,16,1.75,.15),subtitle2:v(s,14,1.57,.1),body1:v(o,16,1.5,.15),body2:v(o,14,1.43,.15),button:v(s,14,1.75,.4,IR),caption:v(o,12,1.66,.4),overline:v(o,12,2.66,1,IR),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return kn($({htmlFontSize:u,pxToRem:p,fontFamily:n,fontSize:i,fontWeightLight:a,fontWeightRegular:o,fontWeightMedium:s,fontWeightBold:l},g),d,{clone:!1})}const Jee=.2,ete=.14,tte=.12;function Gt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Jee})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${ete})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${tte})`].join(",")}const rte=["none",Gt(0,2,1,-1,0,1,1,0,0,1,3,0),Gt(0,3,1,-2,0,2,2,0,0,1,5,0),Gt(0,3,3,-2,0,3,4,0,0,1,8,0),Gt(0,2,4,-1,0,4,5,0,0,1,10,0),Gt(0,3,5,-1,0,5,8,0,0,1,14,0),Gt(0,3,5,-1,0,6,10,0,0,1,18,0),Gt(0,4,5,-2,0,7,10,1,0,2,16,1),Gt(0,5,5,-3,0,8,10,1,0,3,14,2),Gt(0,5,6,-3,0,9,12,1,0,3,16,2),Gt(0,6,6,-3,0,10,14,1,0,4,18,3),Gt(0,6,7,-4,0,11,15,1,0,4,20,3),Gt(0,7,8,-4,0,12,17,2,0,5,22,4),Gt(0,7,8,-4,0,13,19,2,0,5,24,4),Gt(0,7,9,-4,0,14,21,2,0,5,26,4),Gt(0,8,9,-5,0,15,22,2,0,6,28,5),Gt(0,8,10,-5,0,16,24,2,0,6,30,5),Gt(0,8,11,-5,0,17,26,2,0,6,32,5),Gt(0,9,11,-5,0,18,28,2,0,7,34,6),Gt(0,9,12,-6,0,19,29,2,0,7,36,6),Gt(0,10,13,-6,0,20,31,3,0,8,38,7),Gt(0,10,13,-6,0,21,33,3,0,8,40,7),Gt(0,10,14,-6,0,22,35,3,0,8,42,7),Gt(0,11,14,-7,0,23,36,3,0,9,44,8),Gt(0,11,15,-7,0,24,38,3,0,9,46,8)],nte=rte,ite=["duration","easing","delay"],ate={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)"},QV={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function DR(e){return`${Math.round(e)}ms`}function ote(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function ste(e){const t=$({},ate,e.easing),r=$({},QV,e.duration);return $({getAutoHeightDuration:ote,create:(i=["all"],a={})=>{const{duration:o=r.standard,easing:s=t.easeInOut,delay:l=0}=a;return me(a,ite),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof o=="string"?o:DR(o)} ${s} ${typeof l=="string"?l:DR(l)}`).join(",")}},e,{easing:t,duration:r})}const lte={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},ute=lte,cte=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function kM(e={},...t){const{mixins:r={},palette:n={},transitions:i={},typography:a={}}=e,o=me(e,cte);if(e.vars)throw new Error(Es(18));const s=Xee(n),l=wv(e);let u=kn(l,{mixins:Vee(l.breakpoints,r),palette:s,shadows:nte.slice(),typography:Qee(s,a),transitions:ste(i),zIndex:$({},ute)});return u=kn(u,o),u=t.reduce((c,f)=>kn(c,f),u),u.unstable_sxConfig=$({},ix,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(f){return ax({sx:f,theme:this})},u}const fte=kM(),lx=fte;function jf(){const e=ox(lx);return e[Tu]||e}function He({props:e,name:t}){return AM({props:e,name:t,defaultTheme:lx,themeId:Tu})}const Ua=e=>$h(e)&&e!=="classes",dte=$h,hte=YV({themeId:Tu,defaultTheme:lx,rootShouldForwardProp:Ua}),le=hte,pte=["theme"];function IM(e){let{theme:t}=e,r=me(e,pte);const n=t[Tu];return P.jsx(Aee,$({},r,{themeId:n?Tu:void 0,theme:n||t}))}const vte=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},RR=vte;function gte(e){return Be("MuiSvgIcon",e)}Ge("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const mte=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],yte=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${xe(t)}`,`fontSize${xe(r)}`]};return Ve(i,gte,n)},xte=le("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${xe(r.color)}`],t[`fontSize${xe(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,i,a,o,s,l,u,c,f,d,h,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(o=a.pxToRem)==null?void 0:o.call(a,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(f=(d=(e.vars||e).palette)==null||(d=d[t.color])==null?void 0:d.main)!=null?f:{action:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(p=(e.vars||e).palette)==null||(p=p.action)==null?void 0:p.disabled,inherit:void 0}[t.color]}}),JV=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:o="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:f,viewBox:d="0 0 24 24"}=n,h=me(n,mte),p=O.isValidElement(i)&&i.type==="svg",v=$({},n,{color:o,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:p}),g={};c||(g.viewBox=d);const m=yte(v);return P.jsxs(xte,$({as:s,className:ye(m.root,a),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},g,h,p&&i.props,{ownerState:v,children:[p?i.props.children:i,f?P.jsx("title",{children:f}):null]}))});JV.muiName="SvgIcon";const LR=JV;function Mi(e,t){function r(n,i){return P.jsx(LR,$({"data-testid":`${t}Icon`,ref:i},n,{children:e}))}return r.muiName=LR.muiName,O.memo(O.forwardRef(r))}const Ste={configure:e=>{pM.configure(e)}},bte=Object.freeze(Object.defineProperty({__proto__:null,capitalize:xe,createChainedFunction:GC,createSvgIcon:Mi,debounce:Sv,deprecatedPropType:XK,isMuiElement:zh,ownerDocument:ln,ownerWindow:Na,requirePropFactory:ZK,setRef:qy,unstable_ClassNameGenerator:Ste,unstable_useEnhancedEffect:So,unstable_useId:wV,unsupportedProp:JK,useControlled:Ip,useEventCallback:_a,useForkRef:Mr,useIsFocusVisible:dM},Symbol.toStringTag,{value:"Module"}));function qC(e,t){return qC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},qC(e,t)}function eG(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,qC(e,t)}const ER={disabled:!1},Zy=ba.createContext(null);var _te=function(t){return t.scrollTop},uh="unmounted",Pl="exited",Dl="entering",Mc="entered",YC="exiting",Io=function(e){eG(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var o=i,s=o&&!o.isMounting?n.enter:n.appear,l;return a.appearStatus=null,n.in?s?(l=Pl,a.appearStatus=Dl):l=Mc:n.unmountOnExit||n.mountOnEnter?l=uh:l=Pl,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===uh?{status:Pl}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var a=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==Dl&&o!==Mc&&(a=Dl):(o===Dl||o===Mc)&&(a=YC)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,a,o,s;return a=o=s=i,i!=null&&typeof i!="number"&&(a=i.exit,o=i.enter,s=i.appear!==void 0?i.appear:o),{exit:a,enter:o,appear:s}},r.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Dl){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:hg.findDOMNode(this);o&&_te(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Pl&&this.setState({status:uh})},r.performEnter=function(i){var a=this,o=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[hg.findDOMNode(this),s],u=l[0],c=l[1],f=this.getTimeouts(),d=s?f.appear:f.enter;if(!i&&!o||ER.disabled){this.safeSetState({status:Mc},function(){a.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Dl},function(){a.props.onEntering(u,c),a.onTransitionEnd(d,function(){a.safeSetState({status:Mc},function(){a.props.onEntered(u,c)})})})},r.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:hg.findDOMNode(this);if(!a||ER.disabled){this.safeSetState({status:Pl},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:YC},function(){i.props.onExiting(s),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:Pl},function(){i.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},r.setNextCallback=function(i){var a=this,o=!0;return this.nextCallback=function(s){o&&(o=!1,a.nextCallback=null,i(s))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(i,a){this.setNextCallback(a);var o=this.props.nodeRef?this.props.nodeRef.current:hg.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===uh)return null;var a=this.props,o=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=me(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ba.createElement(Zy.Provider,{value:null},typeof o=="function"?o(i,s):ba.cloneElement(ba.Children.only(o),s))},t}(ba.Component);Io.contextType=Zy;Io.propTypes={};function rc(){}Io.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:rc,onEntering:rc,onEntered:rc,onExit:rc,onExiting:rc,onExited:rc};Io.UNMOUNTED=uh;Io.EXITED=Pl;Io.ENTERING=Dl;Io.ENTERED=Mc;Io.EXITING=YC;const PM=Io;function wte(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function DM(e,t){var r=function(a){return t&&O.isValidElement(a)?t(a):a},n=Object.create(null);return e&&O.Children.map(e,function(i){return i}).forEach(function(i){n[i.key]=r(i)}),n}function Cte(e,t){e=e||{},t=t||{};function r(c){return c in t?t[c]:e[c]}var n=Object.create(null),i=[];for(var a in e)a in t?i.length&&(n[a]=i,i=[]):i.push(a);var o,s={};for(var l in t){if(n[l])for(o=0;oe.scrollTop;function Mf(e,t){var r,n;const{timeout:i,easing:a,style:o={}}=e;return{duration:(r=o.transitionDuration)!=null?r:typeof i=="number"?i:i[t.mode]||0,easing:(n=o.transitionTimingFunction)!=null?n:typeof a=="object"?a[t.mode]:a,delay:o.transitionDelay}}function Pte(e){return Be("MuiCollapse",e)}Ge("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Dte=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],Rte=e=>{const{orientation:t,classes:r}=e,n={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Ve(n,Pte,r)},Lte=le("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.orientation],r.state==="entered"&&t.entered,r.state==="exited"&&!r.in&&r.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>$({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&$({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),Ete=le("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>$({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),Ote=le("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>$({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),rG=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiCollapse"}),{addEndListener:i,children:a,className:o,collapsedSize:s="0px",component:l,easing:u,in:c,onEnter:f,onEntered:d,onEntering:h,onExit:p,onExited:v,onExiting:g,orientation:m="vertical",style:y,timeout:x=QV.standard,TransitionComponent:S=PM}=n,_=me(n,Dte),b=$({},n,{orientation:m,collapsedSize:s}),w=Rte(b),C=jf(),A=O.useRef(),T=O.useRef(null),M=O.useRef(),k=typeof s=="number"?`${s}px`:s,I=m==="horizontal",D=I?"width":"height";O.useEffect(()=>()=>{clearTimeout(A.current)},[]);const L=O.useRef(null),z=Mr(r,L),V=W=>ee=>{if(W){const te=L.current;ee===void 0?W(te):W(te,ee)}},N=()=>T.current?T.current[I?"clientWidth":"clientHeight"]:0,F=V((W,ee)=>{T.current&&I&&(T.current.style.position="absolute"),W.style[D]=k,f&&f(W,ee)}),E=V((W,ee)=>{const te=N();T.current&&I&&(T.current.style.position="");const{duration:ie,easing:re}=Mf({style:y,timeout:x,easing:u},{mode:"enter"});if(x==="auto"){const Q=C.transitions.getAutoHeightDuration(te);W.style.transitionDuration=`${Q}ms`,M.current=Q}else W.style.transitionDuration=typeof ie=="string"?ie:`${ie}ms`;W.style[D]=`${te}px`,W.style.transitionTimingFunction=re,h&&h(W,ee)}),G=V((W,ee)=>{W.style[D]="auto",d&&d(W,ee)}),j=V(W=>{W.style[D]=`${N()}px`,p&&p(W)}),B=V(v),U=V(W=>{const ee=N(),{duration:te,easing:ie}=Mf({style:y,timeout:x,easing:u},{mode:"exit"});if(x==="auto"){const re=C.transitions.getAutoHeightDuration(ee);W.style.transitionDuration=`${re}ms`,M.current=re}else W.style.transitionDuration=typeof te=="string"?te:`${te}ms`;W.style[D]=k,W.style.transitionTimingFunction=ie,g&&g(W)}),X=W=>{x==="auto"&&(A.current=setTimeout(W,M.current||0)),i&&i(L.current,W)};return P.jsx(S,$({in:c,onEnter:F,onEntered:G,onEntering:E,onExit:j,onExited:B,onExiting:U,addEndListener:X,nodeRef:L,timeout:x==="auto"?null:x},_,{children:(W,ee)=>P.jsx(Lte,$({as:l,className:ye(w.root,o,{entered:w.entered,exited:!c&&k==="0px"&&w.hidden}[W]),style:$({[I?"minWidth":"minHeight"]:k},y),ownerState:$({},b,{state:W}),ref:z},ee,{children:P.jsx(Ete,{ownerState:$({},b,{state:W}),className:w.wrapper,ref:T,children:P.jsx(Ote,{ownerState:$({},b,{state:W}),className:w.wrapperInner,children:a})})}))}))});rG.muiSupportAuto=!0;const Nte=rG;function zte(e){return Be("MuiPaper",e)}Ge("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 Bte=["className","component","elevation","square","variant"],$te=e=>{const{square:t,elevation:r,variant:n,classes:i}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Ve(a,zte,i)},Fte=le("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return $({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&$({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${or("#fff",RR(t.elevation))}, ${or("#fff",RR(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),Vte=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiPaper"}),{className:i,component:a="div",elevation:o=1,square:s=!1,variant:l="elevation"}=n,u=me(n,Bte),c=$({},n,{component:a,elevation:o,square:s,variant:l}),f=$te(c);return P.jsx(Fte,$({as:a,ownerState:c,className:ye(f.root,i),ref:r},u))}),Os=Vte,Gte=O.createContext({}),nG=Gte;function Hte(e){return Be("MuiAccordion",e)}const Wte=Ge("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),vg=Wte,jte=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],Ute=e=>{const{classes:t,square:r,expanded:n,disabled:i,disableGutters:a}=e;return Ve({root:["root",!r&&"rounded",n&&"expanded",i&&"disabled",!a&&"gutters"],region:["region"]},Hte,t)},qte=le(Os,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${vg.region}`]:t.region},t.root,!r.square&&t.rounded,!r.disableGutters&&t.gutters]}})(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&:before":{display:"none"}},[`&.${vg.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${vg.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e,ownerState:t})=>$({},!t.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!t.disableGutters&&{[`&.${vg.expanded}`]:{margin:"16px 0"}})),Yte=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiAccordion"}),{children:i,className:a,defaultExpanded:o=!1,disabled:s=!1,disableGutters:l=!1,expanded:u,onChange:c,square:f=!1,TransitionComponent:d=Nte,TransitionProps:h}=n,p=me(n,jte),[v,g]=Ip({controlled:u,default:o,name:"Accordion",state:"expanded"}),m=O.useCallback(w=>{g(!v),c&&c(w,!v)},[v,c,g]),[y,...x]=O.Children.toArray(i),S=O.useMemo(()=>({expanded:v,disabled:s,disableGutters:l,toggle:m}),[v,s,l,m]),_=$({},n,{square:f,disabled:s,disableGutters:l,expanded:v}),b=Ute(_);return P.jsxs(qte,$({className:ye(b.root,a),ref:r,ownerState:_,square:f},p,{children:[P.jsx(nG.Provider,{value:S,children:y}),P.jsx(d,$({in:v,timeout:"auto"},h,{children:P.jsx("div",{"aria-labelledby":y.props.id,id:y.props["aria-controls"],role:"region",className:b.region,children:x})}))]}))}),LM=Yte;function Xte(e){return Be("MuiAccordionDetails",e)}Ge("MuiAccordionDetails",["root"]);const Zte=["className"],Kte=e=>{const{classes:t}=e;return Ve({root:["root"]},Xte,t)},Qte=le("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),Jte=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiAccordionDetails"}),{className:i}=n,a=me(n,Zte),o=n,s=Kte(o);return P.jsx(Qte,$({className:ye(s.root,i),ref:r,ownerState:o},a))}),EM=Jte;function ere(e){const{className:t,classes:r,pulsate:n=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:l,timeout:u}=e,[c,f]=O.useState(!1),d=ye(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),h={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},p=ye(r.child,c&&r.childLeaving,n&&r.childPulsate);return!s&&!c&&f(!0),O.useEffect(()=>{if(!s&&l!=null){const v=setTimeout(l,u);return()=>{clearTimeout(v)}}},[l,s,u]),P.jsx("span",{className:d,style:h,children:P.jsx("span",{className:p})})}const tre=Ge("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),si=tre,rre=["center","classes","className"];let ux=e=>e,OR,NR,zR,BR;const XC=550,nre=80,ire=xM(OR||(OR=ux` 0% { transform: scale(0); opacity: 0.1; @@ -88,7 +88,7 @@ ${W.current.stack} transform: scale(1); opacity: 0.3; } -`)),ire=yM(LR||(LR=ux` +`)),are=xM(NR||(NR=ux` 0% { opacity: 1; } @@ -96,7 +96,7 @@ ${W.current.stack} 100% { opacity: 0; } -`)),are=yM(ER||(ER=ux` +`)),ore=xM(zR||(zR=ux` 0% { transform: scale(1); } @@ -108,7 +108,7 @@ ${W.current.stack} 100% { transform: scale(1); } -`)),ore=le("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),sre=le(Jte,{name:"MuiTouchRipple",slot:"Ripple"})(OR||(OR=ux` +`)),sre=le("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),lre=le(ere,{name:"MuiTouchRipple",slot:"Ripple"})(BR||(BR=ux` opacity: 0; position: absolute; @@ -151,24 +151,24 @@ ${W.current.stack} animation-iteration-count: infinite; animation-delay: 200ms; } -`),si.rippleVisible,nre,YC,({theme:e})=>e.transitions.easing.easeInOut,si.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,si.child,si.childLeaving,ire,YC,({theme:e})=>e.transitions.easing.easeInOut,si.childPulsate,are,({theme:e})=>e.transitions.easing.easeInOut),lre=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:o}=n,s=me(n,tre),[l,u]=O.useState([]),c=O.useRef(0),f=O.useRef(null);O.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const d=O.useRef(!1),h=O.useRef(0),p=O.useRef(null),v=O.useRef(null);O.useEffect(()=>()=>{h.current&&clearTimeout(h.current)},[]);const g=O.useCallback(S=>{const{pulsate:_,rippleX:b,rippleY:w,rippleSize:C,cb:A}=S;u(T=>[...T,D.jsx(sre,{classes:{ripple:ye(a.ripple,si.ripple),rippleVisible:ye(a.rippleVisible,si.rippleVisible),ripplePulsate:ye(a.ripplePulsate,si.ripplePulsate),child:ye(a.child,si.child),childLeaving:ye(a.childLeaving,si.childLeaving),childPulsate:ye(a.childPulsate,si.childPulsate)},timeout:YC,pulsate:_,rippleX:b,rippleY:w,rippleSize:C},c.current)]),c.current+=1,f.current=A},[a]),m=O.useCallback((S={},_={},b=()=>{})=>{const{pulsate:w=!1,center:C=i||_.pulsate,fakeElement:A=!1}=_;if((S==null?void 0:S.type)==="mousedown"&&d.current){d.current=!1;return}(S==null?void 0:S.type)==="touchstart"&&(d.current=!0);const T=A?null:v.current,M=T?T.getBoundingClientRect():{width:0,height:0,left:0,top:0};let k,I,P;if(C||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)k=Math.round(M.width/2),I=Math.round(M.height/2);else{const{clientX:L,clientY:z}=S.touches&&S.touches.length>0?S.touches[0]:S;k=Math.round(L-M.left),I=Math.round(z-M.top)}if(C)P=Math.sqrt((2*M.width**2+M.height**2)/3),P%2===0&&(P+=1);else{const L=Math.max(Math.abs((T?T.clientWidth:0)-k),k)*2+2,z=Math.max(Math.abs((T?T.clientHeight:0)-I),I)*2+2;P=Math.sqrt(L**2+z**2)}S!=null&&S.touches?p.current===null&&(p.current=()=>{g({pulsate:w,rippleX:k,rippleY:I,rippleSize:P,cb:b})},h.current=setTimeout(()=>{p.current&&(p.current(),p.current=null)},rre)):g({pulsate:w,rippleX:k,rippleY:I,rippleSize:P,cb:b})},[i,g]),y=O.useCallback(()=>{m({},{pulsate:!0})},[m]),x=O.useCallback((S,_)=>{if(clearTimeout(h.current),(S==null?void 0:S.type)==="touchend"&&p.current){p.current(),p.current=null,h.current=setTimeout(()=>{x(S,_)});return}p.current=null,u(b=>b.length>0?b.slice(1):b),f.current=_},[]);return O.useImperativeHandle(r,()=>({pulsate:y,start:m,stop:x}),[y,m,x]),D.jsx(ore,$({className:ye(si.root,a.root,o),ref:v},s,{children:D.jsx(kte,{component:null,exit:!0,children:l})}))}),ure=lre;function cre(e){return Be("MuiButtonBase",e)}const fre=Ge("MuiButtonBase",["root","disabled","focusVisible"]),dre=fre,hre=["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"],pre=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,o=Ve({root:["root",t&&"disabled",r&&"focusVisible"]},cre,i);return r&&n&&(o.root+=` ${n}`),o},vre=le("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${dre.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),gre=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:o,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:d=!1,LinkComponent:h="a",onBlur:p,onClick:v,onContextMenu:g,onDragLeave:m,onFocus:y,onFocusVisible:x,onKeyDown:S,onKeyUp:_,onMouseDown:b,onMouseLeave:w,onMouseUp:C,onTouchEnd:A,onTouchMove:T,onTouchStart:M,tabIndex:k=0,TouchRippleProps:I,touchRippleRef:P,type:L}=n,z=me(n,hre),V=O.useRef(null),N=O.useRef(null),F=Mr(N,P),{isFocusVisibleRef:E,onFocus:G,onBlur:j,ref:B}=fM(),[U,X]=O.useState(!1);u&&U&&X(!1),O.useImperativeHandle(i,()=>({focusVisible:()=>{X(!0),V.current.focus()}}),[]);const[W,ee]=O.useState(!1);O.useEffect(()=>{ee(!0)},[]);const te=W&&!c&&!u;O.useEffect(()=>{U&&d&&!c&&W&&N.current.pulsate()},[c,d,U,W]);function ie(pe,Vt,br=f){return _a(Ae=>(Vt&&Vt(Ae),!br&&N.current&&N.current[pe](Ae),!0))}const re=ie("start",b),Q=ie("stop",g),J=ie("stop",m),de=ie("stop",C),he=ie("stop",pe=>{U&&pe.preventDefault(),w&&w(pe)}),Pe=ie("start",M),Xe=ie("stop",A),qe=ie("stop",T),ot=ie("stop",pe=>{j(pe),E.current===!1&&X(!1),p&&p(pe)},!1),st=_a(pe=>{V.current||(V.current=pe.currentTarget),G(pe),E.current===!0&&(X(!0),x&&x(pe)),y&&y(pe)}),kt=()=>{const pe=V.current;return l&&l!=="button"&&!(pe.tagName==="A"&&pe.href)},$e=O.useRef(!1),It=_a(pe=>{d&&!$e.current&&U&&N.current&&pe.key===" "&&($e.current=!0,N.current.stop(pe,()=>{N.current.start(pe)})),pe.target===pe.currentTarget&&kt()&&pe.key===" "&&pe.preventDefault(),S&&S(pe),pe.target===pe.currentTarget&&kt()&&pe.key==="Enter"&&!u&&(pe.preventDefault(),v&&v(pe))}),qt=_a(pe=>{d&&pe.key===" "&&N.current&&U&&!pe.defaultPrevented&&($e.current=!1,N.current.stop(pe,()=>{N.current.pulsate(pe)})),_&&_(pe),v&&pe.target===pe.currentTarget&&kt()&&pe.key===" "&&!pe.defaultPrevented&&v(pe)});let Pt=l;Pt==="button"&&(z.href||z.to)&&(Pt=h);const K={};Pt==="button"?(K.type=L===void 0?"button":L,K.disabled=u):(!z.href&&!z.to&&(K.role="button"),u&&(K["aria-disabled"]=u));const ue=Mr(r,B,V),Re=$({},n,{centerRipple:a,component:l,disabled:u,disableRipple:c,disableTouchRipple:f,focusRipple:d,tabIndex:k,focusVisible:U}),Ce=pre(Re);return D.jsxs(vre,$({as:Pt,className:ye(Ce.root,s),ownerState:Re,onBlur:ot,onClick:v,onContextMenu:Q,onFocus:st,onKeyDown:It,onKeyUp:qt,onMouseDown:re,onMouseLeave:he,onMouseUp:de,onDragLeave:J,onTouchEnd:Xe,onTouchMove:qe,onTouchStart:Pe,ref:ue,tabIndex:u?-1:k,type:L},K,z,{children:[o,te?D.jsx(ure,$({ref:F,center:a},I)):null]}))}),zu=gre;function mre(e){return Be("MuiAccordionSummary",e)}const yre=Ge("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),qc=yre,xre=["children","className","expandIcon","focusVisibleClassName","onClick"],Sre=e=>{const{classes:t,expanded:r,disabled:n,disableGutters:i}=e;return Ve({root:["root",r&&"expanded",n&&"disabled",!i&&"gutters"],focusVisible:["focusVisible"],content:["content",r&&"expanded",!i&&"contentGutters"],expandIconWrapper:["expandIconWrapper",r&&"expanded"]},mre,t)},bre=le(zu,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const r={duration:e.transitions.duration.shortest};return $({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],r),[`&.${qc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${qc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${qc.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${qc.expanded}`]:{minHeight:64}})}),_re=le("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>$({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${qc.expanded}`]:{margin:"20px 0"}})),wre=le("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${qc.expanded}`]:{transform:"rotate(180deg)"}})),Cre=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiAccordionSummary"}),{children:i,className:a,expandIcon:o,focusVisibleClassName:s,onClick:l}=n,u=me(n,xre),{disabled:c=!1,disableGutters:f,expanded:d,toggle:h}=O.useContext(JV),p=m=>{h&&h(m),l&&l(m)},v=$({},n,{expanded:d,disabled:c,disableGutters:f}),g=Sre(v);return D.jsxs(bre,$({focusRipple:!1,disableRipple:!0,disabled:c,component:"div","aria-expanded":d,className:ye(g.root,a),focusVisibleClassName:ye(g.focusVisible,s),onClick:p,ref:r,ownerState:v},u,{children:[D.jsx(_re,{className:g.content,ownerState:v,children:i}),o&&D.jsx(wre,{className:g.expandIconWrapper,ownerState:v,children:o})]}))}),rG=Cre;function Tre(e){return Be("MuiAlert",e)}const Are=Ge("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),NR=Are;function Mre(e){return Be("MuiIconButton",e)}const kre=Ge("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Ire=kre,Pre=["edge","children","className","color","disabled","disableFocusRipple","size"],Dre=e=>{const{classes:t,disabled:r,color:n,edge:i,size:a}=e,o={root:["root",r&&"disabled",n!=="default"&&`color${xe(n)}`,i&&`edge${xe(i)}`,`size${xe(a)}`]};return Ve(o,Mre,t)},Rre=le(zu,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${xe(r.color)}`],r.edge&&t[`edge${xe(r.edge)}`],t[`size${xe(r.size)}`]]}})(({theme:e,ownerState:t})=>$({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:or(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return $({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&$({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":$({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:or(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Ire.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Lre=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiIconButton"}),{edge:i=!1,children:a,className:o,color:s="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium"}=n,f=me(n,Pre),d=$({},n,{edge:i,color:s,disabled:l,disableFocusRipple:u,size:c}),h=Dre(d);return D.jsx(Rre,$({className:ye(h.root,o),centerRipple:!0,focusRipple:!u,disabled:l,ref:r,ownerState:d},f,{children:a}))}),Cv=Lre,Ere=Mi(D.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),Ore=Mi(D.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),Nre=Mi(D.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),zre=Mi(D.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),Bre=Mi(D.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),$re=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],Fre=e=>{const{variant:t,color:r,severity:n,classes:i}=e,a={root:["root",`${t}${xe(r||n)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Ve(a,Tre,i)},Vre=le(Nu,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${xe(r.color||r.severity)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?Lp:Ep,n=e.palette.mode==="light"?Ep:Lp,i=t.color||t.severity;return $({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},i&&t.variant==="standard"&&{color:e.vars?e.vars.palette.Alert[`${i}Color`]:r(e.palette[i].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${i}StandardBg`]:n(e.palette[i].light,.9),[`& .${NR.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}},i&&t.variant==="outlined"&&{color:e.vars?e.vars.palette.Alert[`${i}Color`]:r(e.palette[i].light,.6),border:`1px solid ${(e.vars||e).palette[i].light}`,[`& .${NR.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}},i&&t.variant==="filled"&&$({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${i}FilledColor`],backgroundColor:e.vars.palette.Alert[`${i}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[i].dark:e.palette[i].main,color:e.palette.getContrastText(e.palette[i].main)}))}),Gre=le("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Hre=le("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),zR=le("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),BR={success:D.jsx(Ere,{fontSize:"inherit"}),warning:D.jsx(Ore,{fontSize:"inherit"}),error:D.jsx(Nre,{fontSize:"inherit"}),info:D.jsx(zre,{fontSize:"inherit"})},Wre=O.forwardRef(function(t,r){var n,i,a,o,s,l;const u=He({props:t,name:"MuiAlert"}),{action:c,children:f,className:d,closeText:h="Close",color:p,components:v={},componentsProps:g={},icon:m,iconMapping:y=BR,onClose:x,role:S="alert",severity:_="success",slotProps:b={},slots:w={},variant:C="standard"}=u,A=me(u,$re),T=$({},u,{color:p,severity:_,variant:C}),M=Fre(T),k=(n=(i=w.closeButton)!=null?i:v.CloseButton)!=null?n:Cv,I=(a=(o=w.closeIcon)!=null?o:v.CloseIcon)!=null?a:Bre,P=(s=b.closeButton)!=null?s:g.closeButton,L=(l=b.closeIcon)!=null?l:g.closeIcon;return D.jsxs(Vre,$({role:S,elevation:0,ownerState:T,className:ye(M.root,d),ref:r},A,{children:[m!==!1?D.jsx(Gre,{ownerState:T,className:M.icon,children:m||y[_]||BR[_]}):null,D.jsx(Hre,{ownerState:T,className:M.message,children:f}),c!=null?D.jsx(zR,{ownerState:T,className:M.action,children:c}):null,c==null&&x?D.jsx(zR,{ownerState:T,className:M.action,children:D.jsx(k,$({size:"small","aria-label":h,title:h,color:"inherit",onClick:x},P,{children:D.jsx(I,$({fontSize:"small"},L))}))}):null]}))}),jre=Wre;function Ure(e){return Be("MuiTypography",e)}Ge("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const qre=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Yre=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:a,classes:o}=e,s={root:["root",a,e.align!=="inherit"&&`align${xe(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return Ve(s,Ure,o)},Xre=le("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${xe(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>$({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),$R={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Zre={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Kre=e=>Zre[e]||e,Qre=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiTypography"}),i=Kre(n.color),a=CM($({},n,{color:i})),{align:o="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:f=!1,variant:d="body1",variantMapping:h=$R}=a,p=me(a,qre),v=$({},a,{align:o,color:i,className:s,component:l,gutterBottom:u,noWrap:c,paragraph:f,variant:d,variantMapping:h}),g=l||(f?"p":h[d]||$R[d])||"span",m=Yre(v);return D.jsx(Xre,$({as:g,ref:r,ownerState:v,className:ye(m.root,s)},p))}),je=Qre;function Jre(e){return Be("MuiAppBar",e)}Ge("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const ene=["className","color","enableColorOnDark","position"],tne=e=>{const{color:t,position:r,classes:n}=e,i={root:["root",`color${xe(t)}`,`position${xe(r)}`]};return Ve(i,Jre,n)},gg=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,rne=le(Nu,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${xe(r.position)}`],t[`color${xe(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return $({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&$({},t.color==="default"&&{backgroundColor:r,color:e.palette.getContrastText(r)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&$({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&$({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:gg(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:gg(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:gg(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:gg(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),nne=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiAppBar"}),{className:i,color:a="primary",enableColorOnDark:o=!1,position:s="fixed"}=n,l=me(n,ene),u=$({},n,{color:a,position:s,enableColorOnDark:o}),c=tne(u);return D.jsx(rne,$({square:!0,component:"header",ownerState:u,elevation:4,className:ye(c.root,i,s==="fixed"&&"mui-fixed"),ref:r},l))}),ine=nne;function kf(e){return typeof e=="string"}function ane(e,t,r){return e===void 0||kf(e)?t:$({},t,{ownerState:$({},t.ownerState,r)})}function nG(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function one(e,t,r){return typeof e=="function"?e(t,r):e}function FR(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function sne(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:a}=e;if(!t){const h=ye(i==null?void 0:i.className,n==null?void 0:n.className,a,r==null?void 0:r.className),p=$({},r==null?void 0:r.style,i==null?void 0:i.style,n==null?void 0:n.style),v=$({},r,i,n);return h.length>0&&(v.className=h),Object.keys(p).length>0&&(v.style=p),{props:v,internalRef:void 0}}const o=nG($({},i,n)),s=FR(n),l=FR(i),u=t(o),c=ye(u==null?void 0:u.className,r==null?void 0:r.className,a,i==null?void 0:i.className,n==null?void 0:n.className),f=$({},u==null?void 0:u.style,r==null?void 0:r.style,i==null?void 0:i.style,n==null?void 0:n.style),d=$({},u,r,l,s);return c.length>0&&(d.className=c),Object.keys(f).length>0&&(d.style=f),{props:d,internalRef:u.ref}}const lne=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function za(e){var t;const{elementType:r,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:a=!1}=e,o=me(e,lne),s=a?{}:one(n,i),{props:l,internalRef:u}=sne($({},o,{externalSlotProps:s})),c=Mr(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return ane(r,$({},l,{ref:c}),i)}const une=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function cne(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function fne(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function dne(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||fne(e))}function hne(e){const t=[],r=[];return Array.from(e.querySelectorAll(une)).forEach((n,i)=>{const a=cne(n);a===-1||!dne(n)||(a===0?t.push(n):r.push({documentOrder:i,tabIndex:a,node:n}))}),r.sort((n,i)=>n.tabIndex===i.tabIndex?n.documentOrder-i.documentOrder:n.tabIndex-i.tabIndex).map(n=>n.node).concat(t)}function pne(){return!0}function vne(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:a=hne,isEnabled:o=pne,open:s}=e,l=O.useRef(!1),u=O.useRef(null),c=O.useRef(null),f=O.useRef(null),d=O.useRef(null),h=O.useRef(!1),p=O.useRef(null),v=Mr(t.ref,p),g=O.useRef(null);O.useEffect(()=>{!s||!p.current||(h.current=!r)},[r,s]),O.useEffect(()=>{if(!s||!p.current)return;const x=ln(p.current);return p.current.contains(x.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),h.current&&p.current.focus()),()=>{i||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),O.useEffect(()=>{if(!s||!p.current)return;const x=ln(p.current),S=w=>{g.current=w,!(n||!o()||w.key!=="Tab")&&x.activeElement===p.current&&w.shiftKey&&(l.current=!0,c.current&&c.current.focus())},_=()=>{const w=p.current;if(w===null)return;if(!x.hasFocus()||!o()||l.current){l.current=!1;return}if(w.contains(x.activeElement)||n&&x.activeElement!==u.current&&x.activeElement!==c.current)return;if(x.activeElement!==d.current)d.current=null;else if(d.current!==null)return;if(!h.current)return;let C=[];if((x.activeElement===u.current||x.activeElement===c.current)&&(C=a(p.current)),C.length>0){var A,T;const M=!!((A=g.current)!=null&&A.shiftKey&&((T=g.current)==null?void 0:T.key)==="Tab"),k=C[0],I=C[C.length-1];typeof k!="string"&&typeof I!="string"&&(M?I.focus():k.focus())}else w.focus()};x.addEventListener("focusin",_),x.addEventListener("keydown",S,!0);const b=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval(b),x.removeEventListener("focusin",_),x.removeEventListener("keydown",S,!0)}},[r,n,i,o,s,a]);const m=x=>{f.current===null&&(f.current=x.relatedTarget),h.current=!0,d.current=x.target;const S=t.props.onFocus;S&&S(x)},y=x=>{f.current===null&&(f.current=x.relatedTarget),h.current=!0};return D.jsxs(O.Fragment,{children:[D.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelStart"}),O.cloneElement(t,{ref:v,onFocus:m}),D.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelEnd"})]})}function gne(e){return typeof e=="function"?e():e}const mne=O.forwardRef(function(t,r){const{children:n,container:i,disablePortal:a=!1}=t,[o,s]=O.useState(null),l=Mr(O.isValidElement(n)?n.ref:null,r);if(So(()=>{a||s(gne(i)||document.body)},[i,a]),So(()=>{if(o&&!a)return qy(r,o),()=>{qy(r,null)}},[r,o,a]),a){if(O.isValidElement(n)){const u={ref:l};return O.cloneElement(n,u)}return D.jsx(O.Fragment,{children:n})}return D.jsx(O.Fragment,{children:o&&Gf.createPortal(n,o)})});function yne(e){const t=ln(e);return t.body===e?Na(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Fh(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function VR(e){return parseInt(Na(e).getComputedStyle(e).paddingRight,10)||0}function xne(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function GR(e,t,r,n,i){const a=[t,r,...n];[].forEach.call(e.children,o=>{const s=a.indexOf(o)===-1,l=!xne(o);s&&l&&Fh(o,i)})}function qS(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function Sne(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(yne(n)){const o=SV(ln(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${VR(n)+o}px`;const s=ln(n).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${VR(l)+o}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=ln(n).body;else{const o=n.parentElement,s=Na(n);a=(o==null?void 0:o.nodeName)==="HTML"&&s.getComputedStyle(o).overflowY==="scroll"?o:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:o,property:s})=>{a?o.style.setProperty(s,a):o.style.removeProperty(s)})}}function bne(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class _ne{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&Fh(t.modalRef,!1);const i=bne(r);GR(r,t.mount,t.modalRef,i,!0);const a=qS(this.containers,o=>o.container===r);return a!==-1?(this.containers[a].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),n)}mount(t,r){const n=qS(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[n];i.restore||(i.restore=Sne(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=qS(this.containers,o=>o.modals.indexOf(t)!==-1),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&Fh(t.modalRef,r),GR(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const o=a.modals[a.modals.length-1];o.modalRef&&Fh(o.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function wne(e){return typeof e=="function"?e():e}function Cne(e){return e?e.props.hasOwnProperty("in"):!1}const Tne=new _ne;function Ane(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:i=Tne,closeAfterTransition:a=!1,onTransitionEnter:o,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:f}=e,d=O.useRef({}),h=O.useRef(null),p=O.useRef(null),v=Mr(p,f),[g,m]=O.useState(!c),y=Cne(l);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const S=()=>ln(h.current),_=()=>(d.current.modalRef=p.current,d.current.mount=h.current,d.current),b=()=>{i.mount(_(),{disableScrollLock:n}),p.current&&(p.current.scrollTop=0)},w=_a(()=>{const z=wne(t)||S().body;i.add(_(),z),p.current&&b()}),C=O.useCallback(()=>i.isTopModal(_()),[i]),A=_a(z=>{h.current=z,z&&(c&&C()?b():p.current&&Fh(p.current,x))}),T=O.useCallback(()=>{i.remove(_(),x)},[x,i]);O.useEffect(()=>()=>{T()},[T]),O.useEffect(()=>{c?w():(!y||!a)&&T()},[c,T,y,a,w]);const M=z=>V=>{var N;(N=z.onKeyDown)==null||N.call(z,V),!(V.key!=="Escape"||!C())&&(r||(V.stopPropagation(),u&&u(V,"escapeKeyDown")))},k=z=>V=>{var N;(N=z.onClick)==null||N.call(z,V),V.target===V.currentTarget&&u&&u(V,"backdropClick")};return{getRootProps:(z={})=>{const V=nG(e);delete V.onTransitionEnter,delete V.onTransitionExited;const N=$({},V,z);return $({role:"presentation"},N,{onKeyDown:M(N),ref:v})},getBackdropProps:(z={})=>{const V=z;return $({"aria-hidden":!0},V,{onClick:k(V),open:c})},getTransitionProps:()=>{const z=()=>{m(!1),o&&o()},V=()=>{m(!0),s&&s(),a&&T()};return{onEnter:VC(z,l==null?void 0:l.props.onEnter),onExited:VC(V,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:A,isTopModal:C,exited:g,hasTransition:y}}const Mne=["onChange","maxRows","minRows","style","value"];function mg(e){return parseInt(e,10)||0}const kne={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function HR(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const Ine=O.forwardRef(function(t,r){const{onChange:n,maxRows:i,minRows:a=1,style:o,value:s}=t,l=me(t,Mne),{current:u}=O.useRef(s!=null),c=O.useRef(null),f=Mr(r,c),d=O.useRef(null),h=O.useRef(0),[p,v]=O.useState({outerHeightStyle:0}),g=O.useCallback(()=>{const _=c.current,w=Na(_).getComputedStyle(_);if(w.width==="0px")return{outerHeightStyle:0};const C=d.current;C.style.width=w.width,C.value=_.value||t.placeholder||"x",C.value.slice(-1)===` -`&&(C.value+=" ");const A=w.boxSizing,T=mg(w.paddingBottom)+mg(w.paddingTop),M=mg(w.borderBottomWidth)+mg(w.borderTopWidth),k=C.scrollHeight;C.value="x";const I=C.scrollHeight;let P=k;a&&(P=Math.max(Number(a)*I,P)),i&&(P=Math.min(Number(i)*I,P)),P=Math.max(P,I);const L=P+(A==="border-box"?T+M:0),z=Math.abs(P-k)<=1;return{outerHeightStyle:L,overflow:z}},[i,a,t.placeholder]),m=(_,b)=>{const{outerHeightStyle:w,overflow:C}=b;return h.current<20&&(w>0&&Math.abs((_.outerHeightStyle||0)-w)>1||_.overflow!==C)?(h.current+=1,{overflow:C,outerHeightStyle:w}):_},y=O.useCallback(()=>{const _=g();HR(_)||v(b=>m(b,_))},[g]),x=()=>{const _=g();HR(_)||Gf.flushSync(()=>{v(b=>m(b,_))})};O.useEffect(()=>{const _=()=>{h.current=0,c.current&&x()},b=Sv(()=>{h.current=0,c.current&&x()});let w;const C=c.current,A=Na(C);return A.addEventListener("resize",b),typeof ResizeObserver<"u"&&(w=new ResizeObserver(_),w.observe(C)),()=>{b.clear(),A.removeEventListener("resize",b),w&&w.disconnect()}}),So(()=>{y()}),O.useEffect(()=>{h.current=0},[s]);const S=_=>{h.current=0,u||y(),n&&n(_)};return D.jsxs(O.Fragment,{children:[D.jsx("textarea",$({value:s,onChange:S,ref:f,rows:a,style:$({height:p.outerHeightStyle,overflow:p.overflow?"hidden":void 0},o)},l)),D.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:d,tabIndex:-1,style:$({},kne.shadow,o,{paddingTop:0,paddingBottom:0})})]})});function Ys({props:e,states:t,muiFormControl:r}){return t.reduce((n,i)=>(n[i]=e[i],r&&typeof e[i]>"u"&&(n[i]=r[i]),n),{})}const Pne=O.createContext(void 0),RM=Pne;function Po(){return O.useContext(RM)}function iG(e){return D.jsx(eee,$({},e,{defaultTheme:lx,themeId:wu}))}function WR(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Ky(e,t=!1){return e&&(WR(e.value)&&e.value!==""||t&&WR(e.defaultValue)&&e.defaultValue!=="")}function Dne(e){return e.startAdornment}function Rne(e){return Be("MuiInputBase",e)}const Lne=Ge("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),If=Lne,Ene=["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"],cx=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${xe(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},fx=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},One=e=>{const{classes:t,color:r,disabled:n,error:i,endAdornment:a,focused:o,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:f,size:d,startAdornment:h,type:p}=e,v={root:["root",`color${xe(r)}`,n&&"disabled",i&&"error",l&&"fullWidth",o&&"focused",s&&"formControl",d&&d!=="medium"&&`size${xe(d)}`,c&&"multiline",h&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",n&&"disabled",p==="search"&&"inputTypeSearch",c&&"inputMultiline",d==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return Ve(v,Rne,t)},dx=le("div",{name:"MuiInputBase",slot:"Root",overridesResolver:cx})(({theme:e,ownerState:t})=>$({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${If.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&$({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),hx=le("input",{name:"MuiInputBase",slot:"Input",overridesResolver:fx})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=$({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return $({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] + .${If.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${If.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),Nne=D.jsx(iG,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),zne=O.forwardRef(function(t,r){var n;const i=He({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:o,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:f,disabled:d,disableInjectingGlobalStyles:h,endAdornment:p,fullWidth:v=!1,id:g,inputComponent:m="input",inputProps:y={},inputRef:x,maxRows:S,minRows:_,multiline:b=!1,name:w,onBlur:C,onChange:A,onClick:T,onFocus:M,onKeyDown:k,onKeyUp:I,placeholder:P,readOnly:L,renderSuffix:z,rows:V,slotProps:N={},slots:F={},startAdornment:E,type:G="text",value:j}=i,B=me(i,Ene),U=y.value!=null?y.value:j,{current:X}=O.useRef(U!=null),W=O.useRef(),ee=O.useCallback(Ce=>{},[]),te=Mr(W,x,y.ref,ee),[ie,re]=O.useState(!1),Q=Po(),J=Ys({props:i,muiFormControl:Q,states:["color","disabled","error","hiddenLabel","size","required","filled"]});J.focused=Q?Q.focused:ie,O.useEffect(()=>{!Q&&d&&ie&&(re(!1),C&&C())},[Q,d,ie,C]);const de=Q&&Q.onFilled,he=Q&&Q.onEmpty,Pe=O.useCallback(Ce=>{Ky(Ce)?de&&de():he&&he()},[de,he]);So(()=>{X&&Pe({value:U})},[U,Pe,X]);const Xe=Ce=>{if(J.disabled){Ce.stopPropagation();return}M&&M(Ce),y.onFocus&&y.onFocus(Ce),Q&&Q.onFocus?Q.onFocus(Ce):re(!0)},qe=Ce=>{C&&C(Ce),y.onBlur&&y.onBlur(Ce),Q&&Q.onBlur?Q.onBlur(Ce):re(!1)},ot=(Ce,...pe)=>{if(!X){const Vt=Ce.target||W.current;if(Vt==null)throw new Error(Es(1));Pe({value:Vt.value})}y.onChange&&y.onChange(Ce,...pe),A&&A(Ce,...pe)};O.useEffect(()=>{Pe(W.current)},[]);const st=Ce=>{W.current&&Ce.currentTarget===Ce.target&&W.current.focus(),T&&T(Ce)};let kt=m,$e=y;b&&kt==="input"&&(V?$e=$({type:void 0,minRows:V,maxRows:V},$e):$e=$({type:void 0,maxRows:S,minRows:_},$e),kt=Ine);const It=Ce=>{Pe(Ce.animationName==="mui-auto-fill-cancel"?W.current:{value:"x"})};O.useEffect(()=>{Q&&Q.setAdornedStart(!!E)},[Q,E]);const qt=$({},i,{color:J.color||"primary",disabled:J.disabled,endAdornment:p,error:J.error,focused:J.focused,formControl:Q,fullWidth:v,hiddenLabel:J.hiddenLabel,multiline:b,size:J.size,startAdornment:E,type:G}),Pt=One(qt),K=F.root||u.Root||dx,ue=N.root||c.root||{},Re=F.input||u.Input||hx;return $e=$({},$e,(n=N.input)!=null?n:c.input),D.jsxs(O.Fragment,{children:[!h&&Nne,D.jsxs(K,$({},ue,!kf(K)&&{ownerState:$({},qt,ue.ownerState)},{ref:r,onClick:st},B,{className:ye(Pt.root,ue.className,l,L&&"MuiInputBase-readOnly"),children:[E,D.jsx(RM.Provider,{value:null,children:D.jsx(Re,$({ownerState:qt,"aria-invalid":J.error,"aria-describedby":a,autoComplete:o,autoFocus:s,defaultValue:f,disabled:J.disabled,id:g,onAnimationStart:It,name:w,placeholder:P,readOnly:L,required:J.required,rows:V,value:U,onKeyDown:k,onKeyUp:I,type:G},$e,!kf(Re)&&{as:kt,ownerState:$({},qt,$e.ownerState)},{ref:te,className:ye(Pt.input,$e.className,L&&"MuiInputBase-readOnly"),onBlur:qe,onChange:ot,onFocus:Xe}))}),p,z?z($({},J,{startAdornment:E})):null]}))]})}),LM=zne;function Bne(e){return Be("MuiInput",e)}const $ne=$({},If,Ge("MuiInput",["root","underline","input"])),_d=$ne;function Fne(e){return Be("MuiOutlinedInput",e)}const Vne=$({},If,Ge("MuiOutlinedInput",["root","notchedOutline","input"])),No=Vne;function Gne(e){return Be("MuiFilledInput",e)}const Hne=$({},If,Ge("MuiFilledInput",["root","underline","input"])),Js=Hne,Wne=Mi(D.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),jne=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Une={entering:{opacity:1},entered:{opacity:1}},qne=O.forwardRef(function(t,r){const n=jf(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:o=!0,children:s,easing:l,in:u,onEnter:c,onEntered:f,onEntering:d,onExit:h,onExited:p,onExiting:v,style:g,timeout:m=i,TransitionComponent:y=IM}=t,x=me(t,jne),S=O.useRef(null),_=Mr(S,s.ref,r),b=P=>L=>{if(P){const z=S.current;L===void 0?P(z):P(z,L)}},w=b(d),C=b((P,L)=>{KV(P);const z=Mf({style:g,timeout:m,easing:l},{mode:"enter"});P.style.webkitTransition=n.transitions.create("opacity",z),P.style.transition=n.transitions.create("opacity",z),c&&c(P,L)}),A=b(f),T=b(v),M=b(P=>{const L=Mf({style:g,timeout:m,easing:l},{mode:"exit"});P.style.webkitTransition=n.transitions.create("opacity",L),P.style.transition=n.transitions.create("opacity",L),h&&h(P)}),k=b(p),I=P=>{a&&a(S.current,P)};return D.jsx(y,$({appear:o,in:u,nodeRef:S,onEnter:C,onEntered:A,onEntering:w,onExit:M,onExited:k,onExiting:T,addEndListener:I,timeout:m},x,{children:(P,L)=>O.cloneElement(s,$({style:$({opacity:0,visibility:P==="exited"&&!u?"hidden":void 0},Une[P],g,s.props.style),ref:_},L))}))}),Yne=qne;function Xne(e){return Be("MuiBackdrop",e)}Ge("MuiBackdrop",["root","invisible"]);const Zne=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Kne=e=>{const{classes:t,invisible:r}=e;return Ve({root:["root",r&&"invisible"]},Xne,t)},Qne=le("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>$({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Jne=O.forwardRef(function(t,r){var n,i,a;const o=He({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:u="div",components:c={},componentsProps:f={},invisible:d=!1,open:h,slotProps:p={},slots:v={},TransitionComponent:g=Yne,transitionDuration:m}=o,y=me(o,Zne),x=$({},o,{component:u,invisible:d}),S=Kne(x),_=(n=p.root)!=null?n:f.root;return D.jsx(g,$({in:h,timeout:m},y,{children:D.jsx(Qne,$({"aria-hidden":!0},_,{as:(i=(a=v.root)!=null?a:c.Root)!=null?i:u,className:ye(S.root,l,_==null?void 0:_.className),ownerState:$({},x,_==null?void 0:_.ownerState),classes:S,ref:r,children:s}))}))}),eie=Jne,tie=MM(),rie=iee({themeId:wu,defaultTheme:tie,defaultClassName:"MuiBox-root",generateClassName:hM.generate}),it=rie;function nie(e){return Be("MuiButton",e)}const iie=Ge("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"]),yg=iie,aie=O.createContext({}),oie=aie,sie=O.createContext(void 0),lie=sie,uie=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],cie=e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:a,classes:o}=e,s={root:["root",a,`${a}${xe(t)}`,`size${xe(i)}`,`${a}Size${xe(i)}`,t==="inherit"&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${xe(i)}`],endIcon:["endIcon",`iconSize${xe(i)}`]},l=Ve(s,nie,o);return $({},o,l)},aG=e=>$({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),fie=le(zu,{shouldForwardProp:e=>Ua(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${xe(r.color)}`],t[`size${xe(r.size)}`],t[`${r.variant}Size${xe(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const i=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return $({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":$({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:or(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:or(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:or(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":$({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${yg.focusVisible}`]:$({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${yg.disabled}`]:$({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${or(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${yg.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${yg.disabled}`]:{boxShadow:"none"}}),die=le("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${xe(r.size)}`]]}})(({ownerState:e})=>$({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},aG(e))),hie=le("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${xe(r.size)}`]]}})(({ownerState:e})=>$({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},aG(e))),pie=O.forwardRef(function(t,r){const n=O.useContext(oie),i=O.useContext(lie),a=dM(n,t),o=He({props:a,name:"MuiButton"}),{children:s,color:l="primary",component:u="button",className:c,disabled:f=!1,disableElevation:d=!1,disableFocusRipple:h=!1,endIcon:p,focusVisibleClassName:v,fullWidth:g=!1,size:m="medium",startIcon:y,type:x,variant:S="text"}=o,_=me(o,uie),b=$({},o,{color:l,component:u,disabled:f,disableElevation:d,disableFocusRipple:h,fullWidth:g,size:m,type:x,variant:S}),w=cie(b),C=y&&D.jsx(die,{className:w.startIcon,ownerState:b,children:y}),A=p&&D.jsx(hie,{className:w.endIcon,ownerState:b,children:p}),T=i||"";return D.jsxs(fie,$({ownerState:b,className:ye(n.className,w.root,c,T),component:u,disabled:f,focusRipple:!h,focusVisibleClassName:ye(w.focusVisible,v),ref:r,type:x},_,{classes:w,children:[C,s,A]}))}),qa=pie;function vie(e){return Be("PrivateSwitchBase",e)}Ge("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const gie=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],mie=e=>{const{classes:t,checked:r,disabled:n,edge:i}=e,a={root:["root",r&&"checked",n&&"disabled",i&&`edge${xe(i)}`],input:["input"]};return Ve(a,vie,t)},yie=le(zu)(({ownerState:e})=>$({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),xie=le("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Sie=O.forwardRef(function(t,r){const{autoFocus:n,checked:i,checkedIcon:a,className:o,defaultChecked:s,disabled:l,disableFocusRipple:u=!1,edge:c=!1,icon:f,id:d,inputProps:h,inputRef:p,name:v,onBlur:g,onChange:m,onFocus:y,readOnly:x,required:S=!1,tabIndex:_,type:b,value:w}=t,C=me(t,gie),[A,T]=Ip({controlled:i,default:!!s,name:"SwitchBase",state:"checked"}),M=Po(),k=F=>{y&&y(F),M&&M.onFocus&&M.onFocus(F)},I=F=>{g&&g(F),M&&M.onBlur&&M.onBlur(F)},P=F=>{if(F.nativeEvent.defaultPrevented)return;const E=F.target.checked;T(E),m&&m(F,E)};let L=l;M&&typeof L>"u"&&(L=M.disabled);const z=b==="checkbox"||b==="radio",V=$({},t,{checked:A,disabled:L,disableFocusRipple:u,edge:c}),N=mie(V);return D.jsxs(yie,$({component:"span",className:ye(N.root,o),centerRipple:!0,focusRipple:!u,disabled:L,tabIndex:null,role:void 0,onFocus:k,onBlur:I,ownerState:V,ref:r},C,{children:[D.jsx(xie,$({autoFocus:n,checked:i,defaultChecked:s,className:N.input,disabled:L,id:z?d:void 0,name:v,onChange:P,readOnly:x,ref:p,required:S,ownerState:V,tabIndex:_,type:b},b==="checkbox"&&w===void 0?{}:{value:w},h)),A?a:f]}))}),oG=Sie,bie=Mi(D.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),_ie=Mi(D.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),wie=Mi(D.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Cie(e){return Be("MuiCheckbox",e)}const Tie=Ge("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),YS=Tie,Aie=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Mie=e=>{const{classes:t,indeterminate:r,color:n,size:i}=e,a={root:["root",r&&"indeterminate",`color${xe(n)}`,`size${xe(i)}`]},o=Ve(a,Cie,t);return $({},t,o)},kie=le(oG,{shouldForwardProp:e=>Ua(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,r.color!=="default"&&t[`color${xe(r.color)}`]]}})(({theme:e,ownerState:t})=>$({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:or(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${YS.checked}, &.${YS.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${YS.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),Iie=D.jsx(_ie,{}),Pie=D.jsx(bie,{}),Die=D.jsx(wie,{}),Rie=O.forwardRef(function(t,r){var n,i;const a=He({props:t,name:"MuiCheckbox"}),{checkedIcon:o=Iie,color:s="primary",icon:l=Pie,indeterminate:u=!1,indeterminateIcon:c=Die,inputProps:f,size:d="medium",className:h}=a,p=me(a,Aie),v=u?c:l,g=u?c:o,m=$({},a,{color:s,indeterminate:u,size:d}),y=Mie(m);return D.jsx(kie,$({type:"checkbox",inputProps:$({"data-indeterminate":u},f),icon:O.cloneElement(v,{fontSize:(n=v.props.fontSize)!=null?n:d}),checkedIcon:O.cloneElement(g,{fontSize:(i=g.props.fontSize)!=null?i:d}),ownerState:m,ref:r,className:ye(y.root,h)},p,{classes:y}))}),XC=Rie,Lie=Dee({createStyledComponent:le("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${xe(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>He({props:e,name:"MuiContainer"})}),Uf=Lie,Eie=(e,t)=>$({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),Oie=e=>$({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),Nie=(e,t=!1)=>{var r;const n={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([o,s])=>{var l;n[e.getColorSchemeSelector(o).replace(/\s*&/,"")]={colorScheme:(l=s.palette)==null?void 0:l.mode}});let i=$({html:Eie(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:$({margin:0},Oie(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},n);const a=(r=e.components)==null||(r=r.MuiCssBaseline)==null?void 0:r.styleOverrides;return a&&(i=[i,a]),i};function EM(e){const t=He({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return D.jsxs(O.Fragment,{children:[D.jsx(iG,{styles:i=>Nie(i,n)}),r]})}function zie(e){return Be("MuiModal",e)}Ge("MuiModal",["root","hidden","backdrop"]);const Bie=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],$ie=e=>{const{open:t,exited:r,classes:n}=e;return Ve({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},zie,n)},Fie=le("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>$({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Vie=le(eie,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Gie=O.forwardRef(function(t,r){var n,i,a,o,s,l;const u=He({name:"MuiModal",props:t}),{BackdropComponent:c=Vie,BackdropProps:f,className:d,closeAfterTransition:h=!1,children:p,container:v,component:g,components:m={},componentsProps:y={},disableAutoFocus:x=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:_=!1,disablePortal:b=!1,disableRestoreFocus:w=!1,disableScrollLock:C=!1,hideBackdrop:A=!1,keepMounted:T=!1,onBackdropClick:M,open:k,slotProps:I,slots:P}=u,L=me(u,Bie),z=$({},u,{closeAfterTransition:h,disableAutoFocus:x,disableEnforceFocus:S,disableEscapeKeyDown:_,disablePortal:b,disableRestoreFocus:w,disableScrollLock:C,hideBackdrop:A,keepMounted:T}),{getRootProps:V,getBackdropProps:N,getTransitionProps:F,portalRef:E,isTopModal:G,exited:j,hasTransition:B}=Ane($({},z,{rootRef:r})),U=$({},z,{exited:j}),X=$ie(U),W={};if(p.props.tabIndex===void 0&&(W.tabIndex="-1"),B){const{onEnter:de,onExited:he}=F();W.onEnter=de,W.onExited=he}const ee=(n=(i=P==null?void 0:P.root)!=null?i:m.Root)!=null?n:Fie,te=(a=(o=P==null?void 0:P.backdrop)!=null?o:m.Backdrop)!=null?a:c,ie=(s=I==null?void 0:I.root)!=null?s:y.root,re=(l=I==null?void 0:I.backdrop)!=null?l:y.backdrop,Q=za({elementType:ee,externalSlotProps:ie,externalForwardedProps:L,getSlotProps:V,additionalProps:{ref:r,as:g},ownerState:U,className:ye(d,ie==null?void 0:ie.className,X==null?void 0:X.root,!U.open&&U.exited&&(X==null?void 0:X.hidden))}),J=za({elementType:te,externalSlotProps:re,additionalProps:f,getSlotProps:de=>N($({},de,{onClick:he=>{M&&M(he),de!=null&&de.onClick&&de.onClick(he)}})),className:ye(re==null?void 0:re.className,f==null?void 0:f.className,X==null?void 0:X.backdrop),ownerState:U});return!T&&!k&&(!B||j)?null:D.jsx(mne,{ref:E,container:v,disablePortal:b,children:D.jsxs(ee,$({},Q,{children:[!A&&c?D.jsx(te,$({},J)):null,D.jsx(vne,{disableEnforceFocus:S,disableAutoFocus:x,disableRestoreFocus:w,isEnabled:G,open:k,children:O.cloneElement(p,W)})]}))})}),sG=Gie;function Hie(e){return Be("MuiDivider",e)}Ge("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Wie=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],jie=e=>{const{absolute:t,children:r,classes:n,flexItem:i,light:a,orientation:o,textAlign:s,variant:l}=e;return Ve({root:["root",t&&"absolute",l,a&&"light",o==="vertical"&&"vertical",i&&"flexItem",r&&"withChildren",r&&o==="vertical"&&"withChildrenVertical",s==="right"&&o!=="vertical"&&"textAlignRight",s==="left"&&o!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",o==="vertical"&&"wrapperVertical"]},Hie,n)},Uie=le("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>$({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:or(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>$({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>$({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>$({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>$({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),qie=le("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>$({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),lG=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiDivider"}),{absolute:i=!1,children:a,className:o,component:s=a?"div":"hr",flexItem:l=!1,light:u=!1,orientation:c="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:d="center",variant:h="fullWidth"}=n,p=me(n,Wie),v=$({},n,{absolute:i,component:s,flexItem:l,light:u,orientation:c,role:f,textAlign:d,variant:h}),g=jie(v);return D.jsx(Uie,$({as:s,className:ye(g.root,o),role:f,ref:r,ownerState:v},p,{children:a?D.jsx(qie,{className:g.wrapper,ownerState:v,children:a}):null}))});lG.muiSkipListHighlight=!0;const wd=lG,Yie=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Xie=e=>{const{classes:t,disableUnderline:r}=e,i=Ve({root:["root",!r&&"underline"],input:["input"]},Gne,t);return $({},t,i)},Zie=le(dx,{shouldForwardProp:e=>Ua(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...cx(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",i=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return $({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${Js.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${Js.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(r=(e.vars||e).palette[t.color||"primary"])==null?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Js.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Js.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Js.disabled}, .${Js.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Js.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&$({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),Kie=le(hx,{name:"MuiFilledInput",slot:"Input",overridesResolver:fx})(({theme:e,ownerState:t})=>$({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),uG=O.forwardRef(function(t,r){var n,i,a,o;const s=He({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:f="input",multiline:d=!1,slotProps:h,slots:p={},type:v="text"}=s,g=me(s,Yie),m=$({},s,{fullWidth:c,inputComponent:f,multiline:d,type:v}),y=Xie(s),x={root:{ownerState:m},input:{ownerState:m}},S=h??u?kn(h??u,x):x,_=(n=(i=p.root)!=null?i:l.Root)!=null?n:Zie,b=(a=(o=p.input)!=null?o:l.Input)!=null?a:Kie;return D.jsx(LM,$({slots:{root:_,input:b},componentsProps:S,fullWidth:c,inputComponent:f,multiline:d,ref:r,type:v},g,{classes:y}))});uG.muiName="Input";const cG=uG;function Qie(e){return Be("MuiFormControl",e)}Ge("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Jie=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],eae=e=>{const{classes:t,margin:r,fullWidth:n}=e,i={root:["root",r!=="none"&&`margin${xe(r)}`,n&&"fullWidth"]};return Ve(i,Qie,t)},tae=le("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>$({},t.root,t[`margin${xe(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>$({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),rae=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiFormControl"}),{children:i,className:a,color:o="primary",component:s="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:f=!1,hiddenLabel:d=!1,margin:h="none",required:p=!1,size:v="medium",variant:g="outlined"}=n,m=me(n,Jie),y=$({},n,{color:o,component:s,disabled:l,error:u,fullWidth:f,hiddenLabel:d,margin:h,required:p,size:v,variant:g}),x=eae(y),[S,_]=O.useState(()=>{let I=!1;return i&&O.Children.forEach(i,P=>{if(!zh(P,["Input","Select"]))return;const L=zh(P,["Select"])?P.props.input:P;L&&Dne(L.props)&&(I=!0)}),I}),[b,w]=O.useState(()=>{let I=!1;return i&&O.Children.forEach(i,P=>{zh(P,["Input","Select"])&&(Ky(P.props,!0)||Ky(P.props.inputProps,!0))&&(I=!0)}),I}),[C,A]=O.useState(!1);l&&C&&A(!1);const T=c!==void 0&&!l?c:C;let M;const k=O.useMemo(()=>({adornedStart:S,setAdornedStart:_,color:o,disabled:l,error:u,filled:b,focused:T,fullWidth:f,hiddenLabel:d,size:v,onBlur:()=>{A(!1)},onEmpty:()=>{w(!1)},onFilled:()=>{w(!0)},onFocus:()=>{A(!0)},registerEffect:M,required:p,variant:g}),[S,o,l,u,b,T,f,d,M,p,v,g]);return D.jsx(RM.Provider,{value:k,children:D.jsx(tae,$({as:s,ownerState:y,className:ye(x.root,a),ref:r},m,{children:i}))})}),fG=rae,nae=$ee({createStyledComponent:le("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>He({props:e,name:"MuiStack"})}),dG=nae;function iae(e){return Be("MuiFormControlLabel",e)}const aae=Ge("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),ch=aae,oae=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],sae=e=>{const{classes:t,disabled:r,labelPlacement:n,error:i,required:a}=e,o={root:["root",r&&"disabled",`labelPlacement${xe(n)}`,i&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",i&&"error"]};return Ve(o,iae,t)},lae=le("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${ch.label}`]:t.label},t.root,t[`labelPlacement${xe(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>$({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${ch.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${ch.label}`]:{[`&.${ch.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),uae=le("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${ch.error}`]:{color:(e.vars||e).palette.error.main}})),cae=O.forwardRef(function(t,r){var n,i;const a=He({props:t,name:"MuiFormControlLabel"}),{className:o,componentsProps:s={},control:l,disabled:u,disableTypography:c,label:f,labelPlacement:d="end",required:h,slotProps:p={}}=a,v=me(a,oae),g=Po(),m=(n=u??l.props.disabled)!=null?n:g==null?void 0:g.disabled,y=h??l.props.required,x={disabled:m,required:y};["checked","name","onChange","value","inputRef"].forEach(A=>{typeof l.props[A]>"u"&&typeof a[A]<"u"&&(x[A]=a[A])});const S=Ys({props:a,muiFormControl:g,states:["error"]}),_=$({},a,{disabled:m,labelPlacement:d,required:y,error:S.error}),b=sae(_),w=(i=p.typography)!=null?i:s.typography;let C=f;return C!=null&&C.type!==je&&!c&&(C=D.jsx(je,$({component:"span"},w,{className:ye(b.label,w==null?void 0:w.className),children:C}))),D.jsxs(lae,$({className:ye(b.root,o),ownerState:_,ref:r},v,{children:[O.cloneElement(l,x),y?D.jsxs(dG,{direction:"row",alignItems:"center",children:[C,D.jsxs(uae,{ownerState:_,"aria-hidden":!0,className:b.asterisk,children:[" ","*"]})]}):C]}))}),hG=cae;function fae(e){return Be("MuiFormGroup",e)}Ge("MuiFormGroup",["root","row","error"]);const dae=["className","row"],hae=e=>{const{classes:t,row:r,error:n}=e;return Ve({root:["root",r&&"row",n&&"error"]},fae,t)},pae=le("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})(({ownerState:e})=>$({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),vae=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiFormGroup"}),{className:i,row:a=!1}=n,o=me(n,dae),s=Po(),l=Ys({props:n,muiFormControl:s,states:["error"]}),u=$({},n,{row:a,error:l.error}),c=hae(u);return D.jsx(pae,$({className:ye(c.root,i),ownerState:u,ref:r},o))}),pG=vae;function gae(e){return Be("MuiFormHelperText",e)}const mae=Ge("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),jR=mae;var UR;const yae=["children","className","component","disabled","error","filled","focused","margin","required","variant"],xae=e=>{const{classes:t,contained:r,size:n,disabled:i,error:a,filled:o,focused:s,required:l}=e,u={root:["root",i&&"disabled",a&&"error",n&&`size${xe(n)}`,r&&"contained",s&&"focused",o&&"filled",l&&"required"]};return Ve(u,gae,t)},Sae=le("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${xe(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>$({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${jR.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${jR.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),bae=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:o="p"}=n,s=me(n,yae),l=Po(),u=Ys({props:n,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=$({},n,{component:o,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=xae(c);return D.jsx(Sae,$({as:o,ownerState:c,className:ye(f.root,a),ref:r},s,{children:i===" "?UR||(UR=D.jsx("span",{className:"notranslate",children:"​"})):i}))}),_ae=bae;function wae(e){return Be("MuiFormLabel",e)}const Cae=Ge("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Vh=Cae,Tae=["children","className","color","component","disabled","error","filled","focused","required"],Aae=e=>{const{classes:t,color:r,focused:n,disabled:i,error:a,filled:o,required:s}=e,l={root:["root",`color${xe(r)}`,i&&"disabled",a&&"error",o&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return Ve(l,wae,t)},Mae=le("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>$({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>$({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Vh.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Vh.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Vh.error}`]:{color:(e.vars||e).palette.error.main}})),kae=le("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Vh.error}`]:{color:(e.vars||e).palette.error.main}})),Iae=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiFormLabel"}),{children:i,className:a,component:o="label"}=n,s=me(n,Tae),l=Po(),u=Ys({props:n,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=$({},n,{color:u.color||"primary",component:o,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=Aae(c);return D.jsxs(Mae,$({as:o,ownerState:c,className:ye(f.root,a),ref:r},s,{children:[i,u.required&&D.jsxs(kae,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),Pae=Iae,Dae=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ZC(e){return`scale(${e}, ${e**2})`}const Rae={entering:{opacity:1,transform:ZC(1)},entered:{opacity:1,transform:"none"}},XS=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),vG=O.forwardRef(function(t,r){const{addEndListener:n,appear:i=!0,children:a,easing:o,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:f,onExited:d,onExiting:h,style:p,timeout:v="auto",TransitionComponent:g=IM}=t,m=me(t,Dae),y=O.useRef(),x=O.useRef(),S=jf(),_=O.useRef(null),b=Mr(_,a.ref,r),w=L=>z=>{if(L){const V=_.current;z===void 0?L(V):L(V,z)}},C=w(c),A=w((L,z)=>{KV(L);const{duration:V,delay:N,easing:F}=Mf({style:p,timeout:v,easing:o},{mode:"enter"});let E;v==="auto"?(E=S.transitions.getAutoHeightDuration(L.clientHeight),x.current=E):E=V,L.style.transition=[S.transitions.create("opacity",{duration:E,delay:N}),S.transitions.create("transform",{duration:XS?E:E*.666,delay:N,easing:F})].join(","),l&&l(L,z)}),T=w(u),M=w(h),k=w(L=>{const{duration:z,delay:V,easing:N}=Mf({style:p,timeout:v,easing:o},{mode:"exit"});let F;v==="auto"?(F=S.transitions.getAutoHeightDuration(L.clientHeight),x.current=F):F=z,L.style.transition=[S.transitions.create("opacity",{duration:F,delay:V}),S.transitions.create("transform",{duration:XS?F:F*.666,delay:XS?V:V||F*.333,easing:N})].join(","),L.style.opacity=0,L.style.transform=ZC(.75),f&&f(L)}),I=w(d),P=L=>{v==="auto"&&(y.current=setTimeout(L,x.current||0)),n&&n(_.current,L)};return O.useEffect(()=>()=>{clearTimeout(y.current)},[]),D.jsx(g,$({appear:i,in:s,nodeRef:_,onEnter:A,onEntered:T,onEntering:C,onExit:k,onExited:I,onExiting:M,addEndListener:P,timeout:v==="auto"?null:v},m,{children:(L,z)=>O.cloneElement(a,$({style:$({opacity:0,transform:ZC(.75),visibility:L==="exited"&&!s?"hidden":void 0},Rae[L],p,a.props.style),ref:b},z))}))});vG.muiSupportAuto=!0;const Lae=vG,Eae=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Oae=e=>{const{classes:t,disableUnderline:r}=e,i=Ve({root:["root",!r&&"underline"],input:["input"]},Bne,t);return $({},t,i)},Nae=le(dx,{shouldForwardProp:e=>Ua(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...cx(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),$({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${_d.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${_d.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${_d.disabled}, .${_d.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${_d.disabled}:before`]:{borderBottomStyle:"dotted"}})}),zae=le(hx,{name:"MuiInput",slot:"Input",overridesResolver:fx})({}),gG=O.forwardRef(function(t,r){var n,i,a,o;const s=He({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:c,fullWidth:f=!1,inputComponent:d="input",multiline:h=!1,slotProps:p,slots:v={},type:g="text"}=s,m=me(s,Eae),y=Oae(s),S={root:{ownerState:{disableUnderline:l}}},_=p??c?kn(p??c,S):S,b=(n=(i=v.root)!=null?i:u.Root)!=null?n:Nae,w=(a=(o=v.input)!=null?o:u.Input)!=null?a:zae;return D.jsx(LM,$({slots:{root:b,input:w},slotProps:_,fullWidth:f,inputComponent:d,multiline:h,ref:r,type:g},m,{classes:y}))});gG.muiName="Input";const mG=gG;function Bae(e){return Be("MuiInputLabel",e)}Ge("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const $ae=["disableAnimation","margin","shrink","variant","className"],Fae=e=>{const{classes:t,formControl:r,size:n,shrink:i,disableAnimation:a,variant:o,required:s}=e,l={root:["root",r&&"formControl",!a&&"animated",i&&"shrink",n&&n!=="normal"&&`size${xe(n)}`,o],asterisk:[s&&"asterisk"]},u=Ve(l,Bae,t);return $({},t,u)},Vae=le(Pae,{shouldForwardProp:e=>Ua(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Vh.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,t[r.variant]]}})(({theme:e,ownerState:t})=>$({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&$({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&$({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&$({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Gae=O.forwardRef(function(t,r){const n=He({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:a,className:o}=n,s=me(n,$ae),l=Po();let u=a;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=Ys({props:n,muiFormControl:l,states:["size","variant","required"]}),f=$({},n,{disableAnimation:i,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required}),d=Fae(f);return D.jsx(Vae,$({"data-shrink":u,ownerState:f,ref:r,className:ye(d.root,o)},s,{classes:d}))}),OM=Gae;function Hae(e){return Be("MuiLink",e)}const Wae=Ge("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),jae=Wae,yG={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Uae=e=>yG[e]||e,qae=({theme:e,ownerState:t})=>{const r=Uae(t.color),n=Af(e,`palette.${r}`,!1)||t.color,i=Af(e,`palette.${r}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:or(n,.4)},Yae=qae,Xae=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Zae=e=>{const{classes:t,component:r,focusVisible:n,underline:i}=e,a={root:["root",`underline${xe(i)}`,r==="button"&&"button",n&&"focusVisible"]};return Ve(a,Hae,t)},Kae=le(je,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${xe(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>$({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&$({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:Yae({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${jae.focusVisible}`]:{outline:"auto"}})),Qae=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiLink"}),{className:i,color:a="primary",component:o="a",onBlur:s,onFocus:l,TypographyClasses:u,underline:c="always",variant:f="inherit",sx:d}=n,h=me(n,Xae),{isFocusVisibleRef:p,onBlur:v,onFocus:g,ref:m}=fM(),[y,x]=O.useState(!1),S=Mr(r,m),_=A=>{v(A),p.current===!1&&x(!1),s&&s(A)},b=A=>{g(A),p.current===!0&&x(!0),l&&l(A)},w=$({},n,{color:a,component:o,focusVisible:y,underline:c,variant:f}),C=Zae(w);return D.jsx(Kae,$({color:a,className:ye(C.root,i),classes:u,component:o,onBlur:_,onFocus:b,ref:S,ownerState:w,variant:f,sx:[...Object.keys(yG).includes(a)?[]:[{color:a}],...Array.isArray(d)?d:[d]]},h))}),on=Qae,Jae=O.createContext({}),Gh=Jae;function eoe(e){return Be("MuiList",e)}Ge("MuiList",["root","padding","dense","subheader"]);const toe=["children","className","component","dense","disablePadding","subheader"],roe=e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return Ve({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},eoe,t)},noe=le("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>$({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),ioe=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiList"}),{children:i,className:a,component:o="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=n,c=me(n,toe),f=O.useMemo(()=>({dense:s}),[s]),d=$({},n,{component:o,dense:s,disablePadding:l}),h=roe(d);return D.jsx(Gh.Provider,{value:f,children:D.jsxs(noe,$({as:o,className:ye(h.root,a),ref:r,ownerState:d},c,{children:[u,i]}))})}),xG=ioe;function aoe(e){return Be("MuiListItem",e)}const ooe=Ge("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),kc=ooe,soe=Ge("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),loe=soe;function uoe(e){return Be("MuiListItemSecondaryAction",e)}Ge("MuiListItemSecondaryAction",["root","disableGutters"]);const coe=["className"],foe=e=>{const{disableGutters:t,classes:r}=e;return Ve({root:["root",t&&"disableGutters"]},uoe,r)},doe=le("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})(({ownerState:e})=>$({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),SG=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=n,a=me(n,coe),o=O.useContext(Gh),s=$({},n,{disableGutters:o.disableGutters}),l=foe(s);return D.jsx(doe,$({className:ye(l.root,i),ownerState:s,ref:r},a))});SG.muiName="ListItemSecondaryAction";const hoe=SG,poe=["className"],voe=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],goe=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.alignItems==="flex-start"&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]},moe=e=>{const{alignItems:t,button:r,classes:n,dense:i,disabled:a,disableGutters:o,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return Ve({root:["root",i&&"dense",!o&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",r&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},aoe,n)},yoe=le("div",{name:"MuiListItem",slot:"Root",overridesResolver:goe})(({theme:e,ownerState:t})=>$({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&$({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${loe.root}`]:{paddingRight:48}},{[`&.${kc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${kc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:or(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${kc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:or(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${kc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${kc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:or(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:or(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),xoe=le("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Soe=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:a=!1,button:o=!1,children:s,className:l,component:u,components:c={},componentsProps:f={},ContainerComponent:d="li",ContainerProps:{className:h}={},dense:p=!1,disabled:v=!1,disableGutters:g=!1,disablePadding:m=!1,divider:y=!1,focusVisibleClassName:x,secondaryAction:S,selected:_=!1,slotProps:b={},slots:w={}}=n,C=me(n.ContainerProps,poe),A=me(n,voe),T=O.useContext(Gh),M=O.useMemo(()=>({dense:p||T.dense||!1,alignItems:i,disableGutters:g}),[i,T.dense,p,g]),k=O.useRef(null);So(()=>{a&&k.current&&k.current.focus()},[a]);const I=O.Children.toArray(s),P=I.length&&zh(I[I.length-1],["ListItemSecondaryAction"]),L=$({},n,{alignItems:i,autoFocus:a,button:o,dense:M.dense,disabled:v,disableGutters:g,disablePadding:m,divider:y,hasSecondaryAction:P,selected:_}),z=moe(L),V=Mr(k,r),N=w.root||c.Root||yoe,F=b.root||f.root||{},E=$({className:ye(z.root,F.className,l),disabled:v},A);let G=u||"li";return o&&(E.component=u||"div",E.focusVisibleClassName=ye(kc.focusVisible,x),G=zu),P?(G=!E.component&&!u?"div":G,d==="li"&&(G==="li"?G="div":E.component==="li"&&(E.component="div")),D.jsx(Gh.Provider,{value:M,children:D.jsxs(xoe,$({as:d,className:ye(z.container,h),ref:V,ownerState:L},C,{children:[D.jsx(N,$({},F,!kf(N)&&{as:G,ownerState:$({},L,F.ownerState)},E,{children:I})),I.pop()]}))})):D.jsx(Gh.Provider,{value:M,children:D.jsxs(N,$({},F,{as:G,ref:V},!kf(N)&&{ownerState:$({},L,F.ownerState)},E,{children:[I,S&&D.jsx(hoe,{children:S})]}))})}),rc=Soe,boe=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function ZS(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function qR(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function bG(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.indexOf(t.keys.join(""))===0}function Cd(e,t,r,n,i,a){let o=!1,s=i(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(o)return!1;o=!0}const l=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!bG(s,a)||l)s=i(e,s,r);else return s.focus(),!0}return!1}const _oe=O.forwardRef(function(t,r){const{actions:n,autoFocus:i=!1,autoFocusItem:a=!1,children:o,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:f="selectedMenu"}=t,d=me(t,boe),h=O.useRef(null),p=O.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});So(()=>{i&&h.current.focus()},[i]),O.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(x,S)=>{const _=!h.current.style.width;if(x.clientHeight{const S=h.current,_=x.key,b=ln(S).activeElement;if(_==="ArrowDown")x.preventDefault(),Cd(S,b,u,l,ZS);else if(_==="ArrowUp")x.preventDefault(),Cd(S,b,u,l,qR);else if(_==="Home")x.preventDefault(),Cd(S,null,u,l,ZS);else if(_==="End")x.preventDefault(),Cd(S,null,u,l,qR);else if(_.length===1){const w=p.current,C=_.toLowerCase(),A=performance.now();w.keys.length>0&&(A-w.lastTime>500?(w.keys=[],w.repeating=!0,w.previousKeyMatched=!0):w.repeating&&C!==w.keys[0]&&(w.repeating=!1)),w.lastTime=A,w.keys.push(C);const T=b&&!w.repeating&&bG(b,w);w.previousKeyMatched&&(T||Cd(S,b,!1,l,ZS,w))?x.preventDefault():w.previousKeyMatched=!1}c&&c(x)},g=Mr(h,r);let m=-1;O.Children.forEach(o,(x,S)=>{if(!O.isValidElement(x)){m===S&&(m+=1,m>=o.length&&(m=-1));return}x.props.disabled||(f==="selectedMenu"&&x.props.selected||m===-1)&&(m=S),m===S&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(m+=1,m>=o.length&&(m=-1))});const y=O.Children.map(o,(x,S)=>{if(S===m){const _={};return a&&(_.autoFocus=!0),x.props.tabIndex===void 0&&f==="selectedMenu"&&(_.tabIndex=0),O.cloneElement(x,_)}return x});return D.jsx(xG,$({role:"menu",ref:g,className:s,onKeyDown:v,tabIndex:i?0:-1},d,{children:y}))}),woe=_oe;function Coe(e){return Be("MuiPopover",e)}Ge("MuiPopover",["root","paper"]);const Toe=["onEntering"],Aoe=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Moe=["slotProps"];function YR(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function XR(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function ZR(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function KS(e){return typeof e=="function"?e():e}const koe=e=>{const{classes:t}=e;return Ve({root:["root"],paper:["paper"]},Coe,t)},Ioe=le(sG,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_G=le(Nu,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Poe=O.forwardRef(function(t,r){var n,i,a;const o=He({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:f="anchorEl",children:d,className:h,container:p,elevation:v=8,marginThreshold:g=16,open:m,PaperProps:y={},slots:x,slotProps:S,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:b=Lae,transitionDuration:w="auto",TransitionProps:{onEntering:C}={},disableScrollLock:A=!1}=o,T=me(o.TransitionProps,Toe),M=me(o,Aoe),k=(n=S==null?void 0:S.paper)!=null?n:y,I=O.useRef(),P=Mr(I,k.ref),L=$({},o,{anchorOrigin:u,anchorReference:f,elevation:v,marginThreshold:g,externalPaperSlotProps:k,transformOrigin:_,TransitionComponent:b,transitionDuration:w,TransitionProps:T}),z=koe(L),V=O.useCallback(()=>{if(f==="anchorPosition")return c;const de=KS(l),Pe=(de&&de.nodeType===1?de:ln(I.current).body).getBoundingClientRect();return{top:Pe.top+YR(Pe,u.vertical),left:Pe.left+XR(Pe,u.horizontal)}},[l,u.horizontal,u.vertical,c,f]),N=O.useCallback(de=>({vertical:YR(de,_.vertical),horizontal:XR(de,_.horizontal)}),[_.horizontal,_.vertical]),F=O.useCallback(de=>{const he={width:de.offsetWidth,height:de.offsetHeight},Pe=N(he);if(f==="none")return{top:null,left:null,transformOrigin:ZR(Pe)};const Xe=V();let qe=Xe.top-Pe.vertical,ot=Xe.left-Pe.horizontal;const st=qe+he.height,kt=ot+he.width,$e=Na(KS(l)),It=$e.innerHeight-g,qt=$e.innerWidth-g;if(g!==null&&qeIt){const Pt=st-It;qe-=Pt,Pe.vertical+=Pt}if(g!==null&&otqt){const Pt=kt-qt;ot-=Pt,Pe.horizontal+=Pt}return{top:`${Math.round(qe)}px`,left:`${Math.round(ot)}px`,transformOrigin:ZR(Pe)}},[l,f,V,N,g]),[E,G]=O.useState(m),j=O.useCallback(()=>{const de=I.current;if(!de)return;const he=F(de);he.top!==null&&(de.style.top=he.top),he.left!==null&&(de.style.left=he.left),de.style.transformOrigin=he.transformOrigin,G(!0)},[F]);O.useEffect(()=>(A&&window.addEventListener("scroll",j),()=>window.removeEventListener("scroll",j)),[l,A,j]);const B=(de,he)=>{C&&C(de,he),j()},U=()=>{G(!1)};O.useEffect(()=>{m&&j()}),O.useImperativeHandle(s,()=>m?{updatePosition:()=>{j()}}:null,[m,j]),O.useEffect(()=>{if(!m)return;const de=Sv(()=>{j()}),he=Na(l);return he.addEventListener("resize",de),()=>{de.clear(),he.removeEventListener("resize",de)}},[l,m,j]);let X=w;w==="auto"&&!b.muiSupportAuto&&(X=void 0);const W=p||(l?ln(KS(l)).body:void 0),ee=(i=x==null?void 0:x.root)!=null?i:Ioe,te=(a=x==null?void 0:x.paper)!=null?a:_G,ie=za({elementType:te,externalSlotProps:$({},k,{style:E?k.style:$({},k.style,{opacity:0})}),additionalProps:{elevation:v,ref:P},ownerState:L,className:ye(z.paper,k==null?void 0:k.className)}),re=za({elementType:ee,externalSlotProps:(S==null?void 0:S.root)||{},externalForwardedProps:M,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:W,open:m},ownerState:L,className:ye(z.root,h)}),{slotProps:Q}=re,J=me(re,Moe);return D.jsx(ee,$({},J,!kf(ee)&&{slotProps:Q,disableScrollLock:A},{children:D.jsx(b,$({appear:!0,in:m,onEntering:B,onExited:U,timeout:X},T,{children:D.jsx(te,$({},ie,{children:d}))}))}))}),wG=Poe;function Doe(e){return Be("MuiMenu",e)}Ge("MuiMenu",["root","paper","list"]);const Roe=["onEntering"],Loe=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Eoe={vertical:"top",horizontal:"right"},Ooe={vertical:"top",horizontal:"left"},Noe=e=>{const{classes:t}=e;return Ve({root:["root"],paper:["paper"],list:["list"]},Doe,t)},zoe=le(wG,{shouldForwardProp:e=>Ua(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Boe=le(_G,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),$oe=le(woe,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Foe=O.forwardRef(function(t,r){var n,i;const a=He({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:f,open:d,PaperProps:h={},PopoverClasses:p,transitionDuration:v="auto",TransitionProps:{onEntering:g}={},variant:m="selectedMenu",slots:y={},slotProps:x={}}=a,S=me(a.TransitionProps,Roe),_=me(a,Loe),b=jf(),w=b.direction==="rtl",C=$({},a,{autoFocus:o,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:h,transitionDuration:v,TransitionProps:S,variant:m}),A=Noe(C),T=o&&!u&&d,M=O.useRef(null),k=(F,E)=>{M.current&&M.current.adjustStyleForScrollbar(F,b),g&&g(F,E)},I=F=>{F.key==="Tab"&&(F.preventDefault(),f&&f(F,"tabKeyDown"))};let P=-1;O.Children.map(s,(F,E)=>{O.isValidElement(F)&&(F.props.disabled||(m==="selectedMenu"&&F.props.selected||P===-1)&&(P=E))});const L=(n=y.paper)!=null?n:Boe,z=(i=x.paper)!=null?i:h,V=za({elementType:y.root,externalSlotProps:x.root,ownerState:C,className:[A.root,l]}),N=za({elementType:L,externalSlotProps:z,ownerState:C,className:A.paper});return D.jsx(zoe,$({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Eoe:Ooe,slots:{paper:L,root:y.root},slotProps:{root:V,paper:N},open:d,ref:r,transitionDuration:v,TransitionProps:$({onEntering:k},S),ownerState:C},_,{classes:p,children:D.jsx($oe,$({onKeyDown:I,actions:M,autoFocus:o&&(P===-1||u),autoFocusItem:T,variant:m},c,{className:ye(A.list,c.className),children:s}))}))}),Voe=Foe;function Goe(e){return Be("MuiNativeSelect",e)}const Hoe=Ge("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),NM=Hoe,Woe=["className","disabled","error","IconComponent","inputRef","variant"],joe=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:a,error:o}=e,s={select:["select",r,n&&"disabled",i&&"multiple",o&&"error"],icon:["icon",`icon${xe(r)}`,a&&"iconOpen",n&&"disabled"]};return Ve(s,Goe,t)},CG=({ownerState:e,theme:t})=>$({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":$({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${NM.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Uoe=le("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ua,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${NM.multiple}`]:t.multiple}]}})(CG),TG=({ownerState:e,theme:t})=>$({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${NM.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),qoe=le("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${xe(r.variant)}`],r.open&&t.iconOpen]}})(TG),Yoe=O.forwardRef(function(t,r){const{className:n,disabled:i,error:a,IconComponent:o,inputRef:s,variant:l="standard"}=t,u=me(t,Woe),c=$({},t,{disabled:i,variant:l,error:a}),f=joe(c);return D.jsxs(O.Fragment,{children:[D.jsx(Uoe,$({ownerState:c,className:ye(f.select,n),disabled:i,ref:s||r},u)),t.multiple?null:D.jsx(qoe,{as:o,ownerState:c,className:f.icon})]})}),Xoe=Yoe;var KR;const Zoe=["children","classes","className","label","notched"],Koe=le("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%"}),Qoe=le("legend")(({ownerState:e,theme:t})=>$({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&$({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function Joe(e){const{className:t,label:r,notched:n}=e,i=me(e,Zoe),a=r!=null&&r!=="",o=$({},e,{notched:n,withLabel:a});return D.jsx(Koe,$({"aria-hidden":!0,className:t,ownerState:o},i,{children:D.jsx(Qoe,{ownerState:o,children:a?D.jsx("span",{children:r}):KR||(KR=D.jsx("span",{className:"notranslate",children:"​"}))})}))}const ese=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],tse=e=>{const{classes:t}=e,n=Ve({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Fne,t);return $({},t,n)},rse=le(dx,{shouldForwardProp:e=>Ua(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:cx})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return $({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${No.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${No.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${No.focused} .${No.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${No.error} .${No.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${No.disabled} .${No.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&$({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),nse=le(Joe,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),ise=le(hx,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:fx})(({theme:e,ownerState:t})=>$({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),AG=O.forwardRef(function(t,r){var n,i,a,o,s;const l=He({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:f="input",label:d,multiline:h=!1,notched:p,slots:v={},type:g="text"}=l,m=me(l,ese),y=tse(l),x=Po(),S=Ys({props:l,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=$({},l,{color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:x,fullWidth:c,hiddenLabel:S.hiddenLabel,multiline:h,size:S.size,type:g}),b=(n=(i=v.root)!=null?i:u.Root)!=null?n:rse,w=(a=(o=v.input)!=null?o:u.Input)!=null?a:ise;return D.jsx(LM,$({slots:{root:b,input:w},renderSuffix:C=>D.jsx(nse,{ownerState:_,className:y.notchedOutline,label:d!=null&&d!==""&&S.required?s||(s=D.jsxs(O.Fragment,{children:[d," ","*"]})):d,notched:typeof p<"u"?p:!!(C.startAdornment||C.filled||C.focused)}),fullWidth:c,inputComponent:f,multiline:h,ref:r,type:g},m,{classes:$({},y,{notchedOutline:null})}))});AG.muiName="Input";const MG=AG;function ase(e){return Be("MuiSelect",e)}const ose=Ge("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Td=ose;var QR;const sse=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],lse=le("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Td.select}`]:t.select},{[`&.${Td.select}`]:t[r.variant]},{[`&.${Td.error}`]:t.error},{[`&.${Td.multiple}`]:t.multiple}]}})(CG,{[`&.${Td.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),use=le("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${xe(r.variant)}`],r.open&&t.iconOpen]}})(TG),cse=le("input",{shouldForwardProp:e=>fte(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function JR(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function fse(e){return e==null||typeof e=="string"&&!e.trim()}const dse=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:a,error:o}=e,s={select:["select",r,n&&"disabled",i&&"multiple",o&&"error"],icon:["icon",`icon${xe(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Ve(s,ase,t)},hse=O.forwardRef(function(t,r){var n;const{"aria-describedby":i,"aria-label":a,autoFocus:o,autoWidth:s,children:l,className:u,defaultOpen:c,defaultValue:f,disabled:d,displayEmpty:h,error:p=!1,IconComponent:v,inputRef:g,labelId:m,MenuProps:y={},multiple:x,name:S,onBlur:_,onChange:b,onClose:w,onFocus:C,onOpen:A,open:T,readOnly:M,renderValue:k,SelectDisplayProps:I={},tabIndex:P,value:L,variant:z="standard"}=t,V=me(t,sse),[N,F]=Ip({controlled:L,default:f,name:"Select"}),[E,G]=Ip({controlled:T,default:c,name:"Select"}),j=O.useRef(null),B=O.useRef(null),[U,X]=O.useState(null),{current:W}=O.useRef(T!=null),[ee,te]=O.useState(),ie=Mr(r,g),re=O.useCallback(Ae=>{B.current=Ae,Ae&&X(Ae)},[]),Q=U==null?void 0:U.parentNode;O.useImperativeHandle(ie,()=>({focus:()=>{B.current.focus()},node:j.current,value:N}),[N]),O.useEffect(()=>{c&&E&&U&&!W&&(te(s?null:Q.clientWidth),B.current.focus())},[U,s]),O.useEffect(()=>{o&&B.current.focus()},[o]),O.useEffect(()=>{if(!m)return;const Ae=ln(B.current).getElementById(m);if(Ae){const ct=()=>{getSelection().isCollapsed&&B.current.focus()};return Ae.addEventListener("click",ct),()=>{Ae.removeEventListener("click",ct)}}},[m]);const J=(Ae,ct)=>{Ae?A&&A(ct):w&&w(ct),W||(te(s?null:Q.clientWidth),G(Ae))},de=Ae=>{Ae.button===0&&(Ae.preventDefault(),B.current.focus(),J(!0,Ae))},he=Ae=>{J(!1,Ae)},Pe=O.Children.toArray(l),Xe=Ae=>{const ct=Pe.find(Rt=>Rt.props.value===Ae.target.value);ct!==void 0&&(F(ct.props.value),b&&b(Ae,ct))},qe=Ae=>ct=>{let Rt;if(ct.currentTarget.hasAttribute("tabindex")){if(x){Rt=Array.isArray(N)?N.slice():[];const ve=N.indexOf(Ae.props.value);ve===-1?Rt.push(Ae.props.value):Rt.splice(ve,1)}else Rt=Ae.props.value;if(Ae.props.onClick&&Ae.props.onClick(ct),N!==Rt&&(F(Rt),b)){const ve=ct.nativeEvent||ct,De=new ve.constructor(ve.type,ve);Object.defineProperty(De,"target",{writable:!0,value:{value:Rt,name:S}}),b(De,Ae)}x||J(!1,ct)}},ot=Ae=>{M||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Ae.key)!==-1&&(Ae.preventDefault(),J(!0,Ae))},st=U!==null&&E,kt=Ae=>{!st&&_&&(Object.defineProperty(Ae,"target",{writable:!0,value:{value:N,name:S}}),_(Ae))};delete V["aria-invalid"];let $e,It;const qt=[];let Pt=!1;(Ky({value:N})||h)&&(k?$e=k(N):Pt=!0);const K=Pe.map(Ae=>{if(!O.isValidElement(Ae))return null;let ct;if(x){if(!Array.isArray(N))throw new Error(Es(2));ct=N.some(Rt=>JR(Rt,Ae.props.value)),ct&&Pt&&qt.push(Ae.props.children)}else ct=JR(N,Ae.props.value),ct&&Pt&&(It=Ae.props.children);return O.cloneElement(Ae,{"aria-selected":ct?"true":"false",onClick:qe(Ae),onKeyUp:Rt=>{Rt.key===" "&&Rt.preventDefault(),Ae.props.onKeyUp&&Ae.props.onKeyUp(Rt)},role:"option",selected:ct,value:void 0,"data-value":Ae.props.value})});Pt&&(x?qt.length===0?$e=null:$e=qt.reduce((Ae,ct,Rt)=>(Ae.push(ct),Rt{const{classes:t}=e;return t},zM={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ua(e)&&e!=="variant",slot:"Root"},yse=le(mG,zM)(""),xse=le(MG,zM)(""),Sse=le(cG,zM)(""),kG=O.forwardRef(function(t,r){const n=He({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:o={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=Wne,id:f,input:d,inputProps:h,label:p,labelId:v,MenuProps:g,multiple:m=!1,native:y=!1,onClose:x,onOpen:S,open:_,renderValue:b,SelectDisplayProps:w,variant:C="outlined"}=n,A=me(n,vse),T=y?Xoe:pse,M=Po(),k=Ys({props:n,muiFormControl:M,states:["variant","error"]}),I=k.variant||C,P=$({},n,{variant:I,classes:o}),L=mse(P),z=me(L,gse),V=d||{standard:D.jsx(yse,{ownerState:P}),outlined:D.jsx(xse,{label:p,ownerState:P}),filled:D.jsx(Sse,{ownerState:P})}[I],N=Mr(r,V.ref);return D.jsx(O.Fragment,{children:O.cloneElement(V,$({inputComponent:T,inputProps:$({children:a,error:k.error,IconComponent:c,variant:I,type:void 0,multiple:m},y?{id:f}:{autoWidth:i,defaultOpen:l,displayEmpty:u,labelId:v,MenuProps:g,onClose:x,onOpen:S,open:_,renderValue:b,SelectDisplayProps:$({id:f},w)},h,{classes:h?kn(z,h.classes):z},d?d.props.inputProps:{})},m&&y&&I==="outlined"?{notched:!0}:{},{ref:N,className:ye(V.props.className,s,L.root)},!d&&{variant:I},A))})});kG.muiName="Select";const IG=kG;function bse(e){return Be("MuiSwitch",e)}const _se=Ge("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),en=_se,wse=["className","color","edge","size","sx"],Cse=e=>{const{classes:t,edge:r,size:n,color:i,checked:a,disabled:o}=e,s={root:["root",r&&`edge${xe(r)}`,`size${xe(n)}`],switchBase:["switchBase",`color${xe(i)}`,a&&"checked",o&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Ve(s,bse,t);return $({},t,l)},Tse=le("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${xe(r.edge)}`],t[`size${xe(r.size)}`]]}})(({ownerState:e})=>$({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${en.thumb}`]:{width:16,height:16},[`& .${en.switchBase}`]:{padding:4,[`&.${en.checked}`]:{transform:"translateX(16px)"}}})),Ase=le(oG,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${en.input}`]:t.input},r.color!=="default"&&t[`color${xe(r.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${en.checked}`]:{transform:"translateX(20px)"},[`&.${en.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${en.checked} + .${en.track}`]:{opacity:.5},[`&.${en.disabled} + .${en.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${en.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>$({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:or(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${en.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:or(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${en.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?Ep(e.palette[t.color].main,.62):Lp(e.palette[t.color].main,.55)}`}},[`&.${en.checked} + .${en.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),Mse=le("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),kse=le("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),Ise=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiSwitch"}),{className:i,color:a="primary",edge:o=!1,size:s="medium",sx:l}=n,u=me(n,wse),c=$({},n,{color:a,edge:o,size:s}),f=Cse(c),d=D.jsx(kse,{className:f.thumb,ownerState:c});return D.jsxs(Tse,{className:ye(f.root,i),sx:l,ownerState:c,children:[D.jsx(Ase,$({type:"checkbox",icon:d,checkedIcon:d,ref:r,ownerState:c},u,{classes:$({},f,{root:f.switchBase})})),D.jsx(Mse,{className:f.track,ownerState:c})]})}),Pse=Ise;function Dse(e){return Be("MuiTab",e)}const Rse=Ge("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),el=Rse,Lse=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Ese=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:i,icon:a,label:o,selected:s,disabled:l}=e,u={root:["root",a&&o&&"labelIcon",`textColor${xe(r)}`,n&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Ve(u,Dse,t)},Ose=le(zu,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${xe(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>$({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${el.iconWrapper}`]:$({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${el.selected}`]:{opacity:1},[`&.${el.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${el.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${el.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${el.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${el.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),Nse=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiTab"}),{className:i,disabled:a=!1,disableFocusRipple:o=!1,fullWidth:s,icon:l,iconPosition:u="top",indicator:c,label:f,onChange:d,onClick:h,onFocus:p,selected:v,selectionFollowsFocus:g,textColor:m="inherit",value:y,wrapped:x=!1}=n,S=me(n,Lse),_=$({},n,{disabled:a,disableFocusRipple:o,selected:v,icon:!!l,iconPosition:u,label:!!f,fullWidth:s,textColor:m,wrapped:x}),b=Ese(_),w=l&&f&&O.isValidElement(l)?O.cloneElement(l,{className:ye(b.iconWrapper,l.props.className)}):l,C=T=>{!v&&d&&d(T,y),h&&h(T)},A=T=>{g&&!v&&d&&d(T,y),p&&p(T)};return D.jsxs(Ose,$({focusRipple:!o,className:ye(b.root,i),ref:r,role:"tab","aria-selected":v,disabled:a,onClick:C,onFocus:A,ownerState:_,tabIndex:v?0:-1},S,{children:[u==="top"||u==="start"?D.jsxs(O.Fragment,{children:[w,f]}):D.jsxs(O.Fragment,{children:[f,w]}),c]}))}),zse=Nse,Bse=O.createContext(),PG=Bse;function $se(e){return Be("MuiTable",e)}Ge("MuiTable",["root","stickyHeader"]);const Fse=["className","component","padding","size","stickyHeader"],Vse=e=>{const{classes:t,stickyHeader:r}=e;return Ve({root:["root",r&&"stickyHeader"]},$se,t)},Gse=le("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>$({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":$({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),eL="table",Hse=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiTable"}),{className:i,component:a=eL,padding:o="normal",size:s="medium",stickyHeader:l=!1}=n,u=me(n,Fse),c=$({},n,{component:a,padding:o,size:s,stickyHeader:l}),f=Vse(c),d=O.useMemo(()=>({padding:o,size:s,stickyHeader:l}),[o,s,l]);return D.jsx(PG.Provider,{value:d,children:D.jsx(Gse,$({as:a,role:a===eL?null:"table",ref:r,className:ye(f.root,i),ownerState:c},u))})}),DG=Hse,Wse=O.createContext(),px=Wse;function jse(e){return Be("MuiTableBody",e)}Ge("MuiTableBody",["root"]);const Use=["className","component"],qse=e=>{const{classes:t}=e;return Ve({root:["root"]},jse,t)},Yse=le("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Xse={variant:"body"},tL="tbody",Zse=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiTableBody"}),{className:i,component:a=tL}=n,o=me(n,Use),s=$({},n,{component:a}),l=qse(s);return D.jsx(px.Provider,{value:Xse,children:D.jsx(Yse,$({className:ye(l.root,i),as:a,ref:r,role:a===tL?null:"rowgroup",ownerState:s},o))})}),RG=Zse;function Kse(e){return Be("MuiTableCell",e)}const Qse=Ge("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Jse=Qse,ele=["align","className","component","padding","scope","size","sortDirection","variant"],tle=e=>{const{classes:t,variant:r,align:n,padding:i,size:a,stickyHeader:o}=e,s={root:["root",r,o&&"stickyHeader",n!=="inherit"&&`align${xe(n)}`,i!=="normal"&&`padding${xe(i)}`,`size${xe(a)}`]};return Ve(s,Kse,t)},rle=le("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${xe(r.size)}`],r.padding!=="normal"&&t[`padding${xe(r.padding)}`],r.align!=="inherit"&&t[`align${xe(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>$({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?Ep(or(e.palette.divider,1),.88):Lp(or(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${Jse.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),nle=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:o,padding:s,scope:l,size:u,sortDirection:c,variant:f}=n,d=me(n,ele),h=O.useContext(PG),p=O.useContext(px),v=p&&p.variant==="head";let g;o?g=o:g=v?"th":"td";let m=l;g==="td"?m=void 0:!m&&v&&(m="col");const y=f||p&&p.variant,x=$({},n,{align:i,component:g,padding:s||(h&&h.padding?h.padding:"normal"),size:u||(h&&h.size?h.size:"medium"),sortDirection:c,stickyHeader:y==="head"&&h&&h.stickyHeader,variant:y}),S=tle(x);let _=null;return c&&(_=c==="asc"?"ascending":"descending"),D.jsx(rle,$({as:g,ref:r,className:ye(S.root,a),"aria-sort":_,scope:m,ownerState:x},d))}),$l=nle;function ile(e){return Be("MuiTableContainer",e)}Ge("MuiTableContainer",["root"]);const ale=["className","component"],ole=e=>{const{classes:t}=e;return Ve({root:["root"]},ile,t)},sle=le("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),lle=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiTableContainer"}),{className:i,component:a="div"}=n,o=me(n,ale),s=$({},n,{component:a}),l=ole(s);return D.jsx(sle,$({ref:r,as:a,className:ye(l.root,i),ownerState:s},o))}),LG=lle;function ule(e){return Be("MuiTableHead",e)}Ge("MuiTableHead",["root"]);const cle=["className","component"],fle=e=>{const{classes:t}=e;return Ve({root:["root"]},ule,t)},dle=le("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),hle={variant:"head"},rL="thead",ple=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiTableHead"}),{className:i,component:a=rL}=n,o=me(n,cle),s=$({},n,{component:a}),l=fle(s);return D.jsx(px.Provider,{value:hle,children:D.jsx(dle,$({as:a,className:ye(l.root,i),ref:r,role:a===rL?null:"rowgroup",ownerState:s},o))})}),EG=ple;function vle(e){return Be("MuiToolbar",e)}Ge("MuiToolbar",["root","gutters","regular","dense"]);const gle=["className","component","disableGutters","variant"],mle=e=>{const{classes:t,disableGutters:r,variant:n}=e;return Ve({root:["root",!r&&"gutters",n]},vle,t)},yle=le("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(({theme:e,ownerState:t})=>$({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),xle=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiToolbar"}),{className:i,component:a="div",disableGutters:o=!1,variant:s="regular"}=n,l=me(n,gle),u=$({},n,{component:a,disableGutters:o,variant:s}),c=mle(u);return D.jsx(yle,$({as:a,className:ye(c.root,i),ref:r,ownerState:u},l))}),Sle=xle,ble=Mi(D.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),_le=Mi(D.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function wle(e){return Be("MuiTableRow",e)}const Cle=Ge("MuiTableRow",["root","selected","hover","head","footer"]),nL=Cle,Tle=["className","component","hover","selected"],Ale=e=>{const{classes:t,selected:r,hover:n,head:i,footer:a}=e;return Ve({root:["root",r&&"selected",n&&"hover",i&&"head",a&&"footer"]},wle,t)},Mle=le("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${nL.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${nL.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:or(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:or(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),iL="tr",kle=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiTableRow"}),{className:i,component:a=iL,hover:o=!1,selected:s=!1}=n,l=me(n,Tle),u=O.useContext(px),c=$({},n,{component:a,hover:o,selected:s,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),f=Ale(c);return D.jsx(Mle,$({as:a,ref:r,className:ye(f.root,i),role:a===iL?null:"row",ownerState:c},l))}),Qy=kle;function Ile(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Ple(e,t,r,n={},i=()=>{}){const{ease:a=Ile,duration:o=300}=n;let s=null;const l=t[e];let u=!1;const c=()=>{u=!0},f=d=>{if(u){i(new Error("Animation cancelled"));return}s===null&&(s=d);const h=Math.min(1,(d-s)/o);if(t[e]=a(h)*(r-l)+l,h>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(f)};return l===r?(i(new Error("Element already at target position")),c):(requestAnimationFrame(f),c)}const Dle=["onChange"],Rle={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Lle(e){const{onChange:t}=e,r=me(e,Dle),n=O.useRef(),i=O.useRef(null),a=()=>{n.current=i.current.offsetHeight-i.current.clientHeight};return So(()=>{const o=Sv(()=>{const l=n.current;a(),l!==n.current&&t(n.current)}),s=Na(i.current);return s.addEventListener("resize",o),()=>{o.clear(),s.removeEventListener("resize",o)}},[t]),O.useEffect(()=>{a(),t(n.current)},[t]),D.jsx("div",$({style:Rle,ref:i},r))}function Ele(e){return Be("MuiTabScrollButton",e)}const Ole=Ge("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Nle=Ole,zle=["className","slots","slotProps","direction","orientation","disabled"],Ble=e=>{const{classes:t,orientation:r,disabled:n}=e;return Ve({root:["root",r,n&&"disabled"]},Ele,t)},$le=le(zu,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>$({width:40,flexShrink:0,opacity:.8,[`&.${Nle.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Fle=O.forwardRef(function(t,r){var n,i;const a=He({props:t,name:"MuiTabScrollButton"}),{className:o,slots:s={},slotProps:l={},direction:u}=a,c=me(a,zle),d=jf().direction==="rtl",h=$({isRtl:d},a),p=Ble(h),v=(n=s.StartScrollButtonIcon)!=null?n:ble,g=(i=s.EndScrollButtonIcon)!=null?i:_le,m=za({elementType:v,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),y=za({elementType:g,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return D.jsx($le,$({component:"div",className:ye(p.root,o),ref:r,role:null,ownerState:h,tabIndex:null},c,{children:u==="left"?D.jsx(v,$({},m)):D.jsx(g,$({},y))}))}),Vle=Fle;function Gle(e){return Be("MuiTabs",e)}const Hle=Ge("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),QS=Hle,Wle=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],aL=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,oL=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,xg=(e,t,r)=>{let n=!1,i=r(e,t);for(;i;){if(i===e.firstChild){if(n)return;n=!0}const a=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||a)i=r(e,i);else{i.focus();return}}},jle=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:i,scrollableY:a,centered:o,scrollButtonsHideMobile:s,classes:l}=e;return Ve({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",i&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",o&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},Gle,l)},Ule=le("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${QS.scrollButtons}`]:t.scrollButtons},{[`& .${QS.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>$({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${QS.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),qle=le("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})(({ownerState:e})=>$({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Yle=le("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})(({ownerState:e})=>$({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),Xle=le("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>$({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),Zle=le(Lle)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),sL={},Kle=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiTabs"}),i=jf(),a=i.direction==="rtl",{"aria-label":o,"aria-labelledby":s,action:l,centered:u=!1,children:c,className:f,component:d="div",allowScrollButtonsMobile:h=!1,indicatorColor:p="primary",onChange:v,orientation:g="horizontal",ScrollButtonComponent:m=Vle,scrollButtons:y="auto",selectionFollowsFocus:x,slots:S={},slotProps:_={},TabIndicatorProps:b={},TabScrollButtonProps:w={},textColor:C="primary",value:A,variant:T="standard",visibleScrollbar:M=!1}=n,k=me(n,Wle),I=T==="scrollable",P=g==="vertical",L=P?"scrollTop":"scrollLeft",z=P?"top":"left",V=P?"bottom":"right",N=P?"clientHeight":"clientWidth",F=P?"height":"width",E=$({},n,{component:d,allowScrollButtonsMobile:h,indicatorColor:p,orientation:g,vertical:P,scrollButtons:y,textColor:C,variant:T,visibleScrollbar:M,fixed:!I,hideScrollbar:I&&!M,scrollableX:I&&!P,scrollableY:I&&P,centered:u&&!I,scrollButtonsHideMobile:!h}),G=jle(E),j=za({elementType:S.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:E}),B=za({elementType:S.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:E}),[U,X]=O.useState(!1),[W,ee]=O.useState(sL),[te,ie]=O.useState(!1),[re,Q]=O.useState(!1),[J,de]=O.useState(!1),[he,Pe]=O.useState({overflow:"hidden",scrollbarWidth:0}),Xe=new Map,qe=O.useRef(null),ot=O.useRef(null),st=()=>{const ve=qe.current;let De;if(ve){const yt=ve.getBoundingClientRect();De={clientWidth:ve.clientWidth,scrollLeft:ve.scrollLeft,scrollTop:ve.scrollTop,scrollLeftNormalized:aQ(ve,i.direction),scrollWidth:ve.scrollWidth,top:yt.top,bottom:yt.bottom,left:yt.left,right:yt.right}}let Ze;if(ve&&A!==!1){const yt=ot.current.children;if(yt.length>0){const Fr=yt[Xe.get(A)];Ze=Fr?Fr.getBoundingClientRect():null}}return{tabsMeta:De,tabMeta:Ze}},kt=_a(()=>{const{tabsMeta:ve,tabMeta:De}=st();let Ze=0,yt;if(P)yt="top",De&&ve&&(Ze=De.top-ve.top+ve.scrollTop);else if(yt=a?"right":"left",De&&ve){const Eo=a?ve.scrollLeftNormalized+ve.clientWidth-ve.scrollWidth:ve.scrollLeft;Ze=(a?-1:1)*(De[yt]-ve[yt]+Eo)}const Fr={[yt]:Ze,[F]:De?De[F]:0};if(isNaN(W[yt])||isNaN(W[F]))ee(Fr);else{const Eo=Math.abs(W[yt]-Fr[yt]),Xv=Math.abs(W[F]-Fr[F]);(Eo>=1||Xv>=1)&&ee(Fr)}}),$e=(ve,{animation:De=!0}={})=>{De?Ple(L,qe.current,ve,{duration:i.transitions.duration.standard}):qe.current[L]=ve},It=ve=>{let De=qe.current[L];P?De+=ve:(De+=ve*(a?-1:1),De*=a&&bV()==="reverse"?-1:1),$e(De)},qt=()=>{const ve=qe.current[N];let De=0;const Ze=Array.from(ot.current.children);for(let yt=0;ytve){yt===0&&(De=ve);break}De+=Fr[N]}return De},Pt=()=>{It(-1*qt())},K=()=>{It(qt())},ue=O.useCallback(ve=>{Pe({overflow:null,scrollbarWidth:ve})},[]),Re=()=>{const ve={};ve.scrollbarSizeListener=I?D.jsx(Zle,{onChange:ue,className:ye(G.scrollableX,G.hideScrollbar)}):null;const Ze=I&&(y==="auto"&&(te||re)||y===!0);return ve.scrollButtonStart=Ze?D.jsx(m,$({slots:{StartScrollButtonIcon:S.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:j},orientation:g,direction:a?"right":"left",onClick:Pt,disabled:!te},w,{className:ye(G.scrollButtons,w.className)})):null,ve.scrollButtonEnd=Ze?D.jsx(m,$({slots:{EndScrollButtonIcon:S.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:B},orientation:g,direction:a?"left":"right",onClick:K,disabled:!re},w,{className:ye(G.scrollButtons,w.className)})):null,ve},Ce=_a(ve=>{const{tabsMeta:De,tabMeta:Ze}=st();if(!(!Ze||!De)){if(Ze[z]De[V]){const yt=De[L]+(Ze[V]-De[V]);$e(yt,{animation:ve})}}}),pe=_a(()=>{I&&y!==!1&&de(!J)});O.useEffect(()=>{const ve=Sv(()=>{qe.current&&kt()}),De=Na(qe.current);De.addEventListener("resize",ve);let Ze;return typeof ResizeObserver<"u"&&(Ze=new ResizeObserver(ve),Array.from(ot.current.children).forEach(yt=>{Ze.observe(yt)})),()=>{ve.clear(),De.removeEventListener("resize",ve),Ze&&Ze.disconnect()}},[kt]),O.useEffect(()=>{const ve=Array.from(ot.current.children),De=ve.length;if(typeof IntersectionObserver<"u"&&De>0&&I&&y!==!1){const Ze=ve[0],yt=ve[De-1],Fr={root:qe.current,threshold:.99},Eo=oS=>{ie(!oS[0].isIntersecting)},Xv=new IntersectionObserver(Eo,Fr);Xv.observe(Ze);const aq=oS=>{Q(!oS[0].isIntersecting)},SP=new IntersectionObserver(aq,Fr);return SP.observe(yt),()=>{Xv.disconnect(),SP.disconnect()}}},[I,y,J,c==null?void 0:c.length]),O.useEffect(()=>{X(!0)},[]),O.useEffect(()=>{kt()}),O.useEffect(()=>{Ce(sL!==W)},[Ce,W]),O.useImperativeHandle(l,()=>({updateIndicator:kt,updateScrollButtons:pe}),[kt,pe]);const Vt=D.jsx(Xle,$({},b,{className:ye(G.indicator,b.className),ownerState:E,style:$({},W,b.style)}));let br=0;const Ae=O.Children.map(c,ve=>{if(!O.isValidElement(ve))return null;const De=ve.props.value===void 0?br:ve.props.value;Xe.set(De,br);const Ze=De===A;return br+=1,O.cloneElement(ve,$({fullWidth:T==="fullWidth",indicator:Ze&&!U&&Vt,selected:Ze,selectionFollowsFocus:x,onChange:v,textColor:C,value:De},br===1&&A===!1&&!ve.props.tabIndex?{tabIndex:0}:{}))}),ct=ve=>{const De=ot.current,Ze=ln(De).activeElement;if(Ze.getAttribute("role")!=="tab")return;let Fr=g==="horizontal"?"ArrowLeft":"ArrowUp",Eo=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&a&&(Fr="ArrowRight",Eo="ArrowLeft"),ve.key){case Fr:ve.preventDefault(),xg(De,Ze,oL);break;case Eo:ve.preventDefault(),xg(De,Ze,aL);break;case"Home":ve.preventDefault(),xg(De,null,aL);break;case"End":ve.preventDefault(),xg(De,null,oL);break}},Rt=Re();return D.jsxs(Ule,$({className:ye(G.root,f),ownerState:E,ref:r,as:d},k,{children:[Rt.scrollButtonStart,Rt.scrollbarSizeListener,D.jsxs(qle,{className:G.scroller,ownerState:E,style:{overflow:he.overflow,[P?`margin${a?"Left":"Right"}`:"marginBottom"]:M?void 0:-he.scrollbarWidth},ref:qe,children:[D.jsx(Yle,{"aria-label":o,"aria-labelledby":s,"aria-orientation":g==="vertical"?"vertical":null,className:G.flexContainer,ownerState:E,onKeyDown:ct,ref:ot,role:"tablist",children:Ae}),U&&Vt]}),Rt.scrollButtonEnd]}))}),Qle=Kle;function Jle(e){return Be("MuiTextField",e)}Ge("MuiTextField",["root"]);const eue=["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"],tue={standard:mG,filled:cG,outlined:MG},rue=e=>{const{classes:t}=e;return Ve({root:["root"]},Jle,t)},nue=le(fG,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),iue=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:a=!1,children:o,className:s,color:l="primary",defaultValue:u,disabled:c=!1,error:f=!1,FormHelperTextProps:d,fullWidth:h=!1,helperText:p,id:v,InputLabelProps:g,inputProps:m,InputProps:y,inputRef:x,label:S,maxRows:_,minRows:b,multiline:w=!1,name:C,onBlur:A,onChange:T,onFocus:M,placeholder:k,required:I=!1,rows:P,select:L=!1,SelectProps:z,type:V,value:N,variant:F="outlined"}=n,E=me(n,eue),G=$({},n,{autoFocus:a,color:l,disabled:c,error:f,fullWidth:h,multiline:w,required:I,select:L,variant:F}),j=rue(G),B={};F==="outlined"&&(g&&typeof g.shrink<"u"&&(B.notched=g.shrink),B.label=S),L&&((!z||!z.native)&&(B.id=void 0),B["aria-describedby"]=void 0);const U=xV(v),X=p&&U?`${U}-helper-text`:void 0,W=S&&U?`${U}-label`:void 0,ee=tue[F],te=D.jsx(ee,$({"aria-describedby":X,autoComplete:i,autoFocus:a,defaultValue:u,fullWidth:h,multiline:w,name:C,rows:P,maxRows:_,minRows:b,type:V,value:N,id:U,inputRef:x,onBlur:A,onChange:T,onFocus:M,placeholder:k,inputProps:m},B,y));return D.jsxs(nue,$({className:ye(j.root,s),disabled:c,error:f,fullWidth:h,ref:r,required:I,color:l,variant:F,ownerState:G},E,{children:[S!=null&&S!==""&&D.jsx(OM,$({htmlFor:U,id:W},g,{children:S})),L?D.jsx(IG,$({"aria-describedby":X,id:U,labelId:W,value:N,input:te},z,{children:o})):te,p&&D.jsx(_ae,$({id:X},d,{children:p}))]}))}),wa=iue;var BM={},OG={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(OG);var Bu=OG.exports,JS={};const aue=sq(Ste);var lL;function $u(){return lL||(lL=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=aue}(JS)),JS}var oue=Bu;Object.defineProperty(BM,"__esModule",{value:!0});var NG=BM.default=void 0,sue=oue($u()),lue=D,uue=(0,sue.default)((0,lue.jsx)("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12s-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6c3.31 0 6 2.69 6 6s-2.69 6-6 6z"}),"Brightness4");NG=BM.default=uue;var $M={},cue=Bu;Object.defineProperty($M,"__esModule",{value:!0});var zG=$M.default=void 0,fue=cue($u()),due=D,hue=(0,fue.default)((0,due.jsx)("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zm0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4z"}),"Brightness7");zG=$M.default=hue;const Si={DARK:"dark",LIGHT:"light"},BG=localStorage.theme===Si.DARK||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?Si.DARK:Si.LIGHT,Xs=tM,pue=pV;function Xl(e){const t=pue();return O.useCallback(r=>{t(e(r))},[e,t])}const vue={isDarkMode:!1},$G=ci({name:"theme",initialState:vue,reducers:{setIsDarkMode:(e,{payload:t})=>{e.isDarkMode=t}}}),gue=$G.actions,FG=$G.reducer;function VG(){const e=Xs(({theme:{isDarkMode:n}})=>n),t=Xl(gue.setIsDarkMode);O.useEffect(()=>{t(BG===Si.DARK)},[]);const r=()=>{localStorage.theme=e?Si.LIGHT:Si.DARK,t(!e)};return D.jsx(Cv,{color:"inherit",onClick:r,children:e?D.jsx(zG,{}):D.jsx(NG,{})})}const FM=e=>MM({palette:{mode:e,primary:{main:"#15803d"},success:{main:"#00C853"}},components:{MuiCssBaseline:{styleOverrides:{":root":{"--footer-height":"40px"}}}}});function mue({authProviders:e,error:t,usernamePasswordCallback:r}){const n=tM(({theme:a})=>a.isDarkMode),i=O.useMemo(()=>FM(n?Si.DARK:Si.LIGHT),[n]);return D.jsxs(kM,{theme:i,children:[D.jsx(EM,{}),D.jsx(it,{sx:{position:"absolute",top:4,right:4},children:D.jsx(VG,{})}),D.jsxs(it,{component:"main",sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",display:"flex",flexDirection:"column",rowGap:4,boxShadow:24,borderRadius:4,border:"3px solid black",p:4},children:[D.jsxs(it,{sx:{display:"flex",justifyContent:"center",columnGap:2},children:[D.jsx("img",{height:"52",src:"./assets/logo.png",width:"52"}),D.jsx(je,{component:"h1",noWrap:!0,sx:{fontWeight:700,display:"flex",alignItems:"center"},variant:"h3",children:"Locust"})]}),r&&D.jsx("form",{action:r,children:D.jsxs(it,{sx:{display:"flex",flexDirection:"column",rowGap:2},children:[D.jsx(wa,{label:"Username",name:"username"}),D.jsx(wa,{label:"Password",name:"password",type:"password"}),t&&D.jsx(jre,{severity:"error",children:t}),D.jsx(qa,{size:"large",type:"submit",variant:"contained",children:"Login"})]})}),e&&D.jsx(it,{sx:{display:"flex",flexDirection:"column",rowGap:1},children:e.map(({label:a,callbackUrl:o,iconUrl:s},l)=>D.jsxs(Cv,{href:o,sx:{display:"flex",justifyContent:"center",alignItems:"center",columnGap:2,borderRadius:2,borderWidth:"1px",borderStyle:"solid",borderColor:"primary"},children:[D.jsx("img",{height:"32",src:s}),D.jsx(je,{height:"32",variant:"button",children:a})]},`auth-provider-${l}`))})]})]})}var VM={},yue=Bu;Object.defineProperty(VM,"__esModule",{value:!0});var GG=VM.default=void 0,xue=yue($u()),Sue=D,bue=(0,xue.default)((0,Sue.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");GG=VM.default=bue;function vx({open:e,onClose:t,children:r}){return D.jsx(sG,{onClose:t,open:e,children:D.jsxs(it,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"md",maxHeight:"90vh",overflowY:"auto",display:"flex",flexDirection:"column",rowGap:2,bgcolor:"background.paper",boxShadow:24,borderRadius:4,border:"3px solid black",p:4},children:[D.jsx(Cv,{color:"inherit",onClick:t,sx:{position:"absolute",top:1,right:1},children:D.jsx(GG,{})}),r]})})}function _ue(){const[e,t]=O.useState(!1),r=Xs(({swarm:n})=>n.version);return D.jsxs(D.Fragment,{children:[D.jsx(it,{sx:{display:"flex",justifyContent:"flex-end"},children:D.jsx(qa,{color:"inherit",onClick:()=>t(!0),variant:"text",children:"About"})}),D.jsxs(vx,{onClose:()=>t(!1),open:e,children:[D.jsxs("div",{children:[D.jsx(je,{component:"h2",mb:1,variant:"h4",children:"About"}),D.jsxs(je,{component:"p",variant:"subtitle1",children:["Locust is free and open source software released under the"," ",D.jsx(on,{href:"https://github.com/locustio/locust/blob/master/LICENSE",children:"MIT License"})]}),D.jsxs(je,{component:"p",sx:{mt:2},variant:"subtitle1",children:["It was originally developed by Carl Byström and"," ",D.jsx(on,{href:"https://twitter.com/jonatanheyman/",children:"Jonatan Heyman"}),". Since 2019, it is primarily maintained by ",D.jsx(on,{href:"https://github.com/cyberw",children:"Lars Holmberg"}),"."]}),D.jsxs(je,{component:"p",sx:{mt:2},variant:"subtitle1",children:["Many thanks to all our wonderful"," ",D.jsx(on,{href:"https://github.com/locustio/locust/graphs/contributors",children:"contributors"}),"!"]})]}),D.jsxs("div",{children:[D.jsx(je,{component:"h2",mb:1,variant:"h4",children:"Version"}),D.jsx(on,{href:`https://github.com/locustio/locust/releases/tag/${r}`,children:r})]}),D.jsxs("div",{children:[D.jsx(je,{component:"h2",mb:1,variant:"h4",children:"Links"}),D.jsx(je,{component:"p",variant:"subtitle1",children:D.jsx(on,{href:"https://github.com/locustio/locust",children:"GitHub"})}),D.jsx(je,{component:"p",variant:"subtitle1",children:D.jsx(on,{href:"https://docs.locust.io/en/stable/",children:"Documentation"})})]})]})]})}function wue(){return D.jsx(Uf,{maxWidth:"xl",sx:{display:"flex",height:"var(--footer-height)",alignItems:"center",justifyContent:"flex-end"},children:D.jsx(_ue,{})})}function Cue({isDistributed:e,state:t,host:r,totalRps:n,failRatio:i,userCount:a,workerCount:o}){return D.jsxs(it,{sx:{display:"flex",columnGap:2},children:[D.jsxs(it,{sx:{display:"flex",flexDirection:"column"},children:[D.jsx(je,{variant:"button",children:"Host"}),D.jsx(je,{children:r})]}),D.jsx(wd,{flexItem:!0,orientation:"vertical"}),D.jsxs(it,{sx:{display:"flex",flexDirection:"column"},children:[D.jsx(je,{variant:"button",children:"Status"}),D.jsx(je,{variant:"button",children:t})]}),(t===mi.RUNNING||t===mi.SPAWNING)&&D.jsxs(D.Fragment,{children:[D.jsx(wd,{flexItem:!0,orientation:"vertical"}),D.jsxs(it,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[D.jsx(je,{variant:"button",children:"Users"}),D.jsx(je,{variant:"button",children:a})]})]}),e&&D.jsxs(D.Fragment,{children:[D.jsx(wd,{flexItem:!0,orientation:"vertical"}),D.jsxs(it,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[D.jsx(je,{variant:"button",children:"Workers"}),D.jsx(je,{variant:"button",children:o})]})]}),D.jsx(wd,{flexItem:!0,orientation:"vertical"}),D.jsxs(it,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[D.jsx(je,{variant:"button",children:"RPS"}),D.jsx(je,{variant:"button",children:n})]}),D.jsx(wd,{flexItem:!0,orientation:"vertical"}),D.jsxs(it,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[D.jsx(je,{variant:"button",children:"Failures"}),D.jsx(je,{variant:"button",children:`${i}%`})]})]})}const Tue=({swarm:{isDistributed:e,state:t,host:r,workerCount:n},ui:{totalRps:i,failRatio:a,userCount:o}})=>({isDistributed:e,state:t,host:r,totalRps:i,failRatio:a,userCount:o,workerCount:n}),Aue=Ln(Tue)(Cue),Mue="input, select, textarea",kue=e=>e instanceof HTMLInputElement&&e.getAttribute("data-type")==="number"?Number(e.value):e instanceof HTMLInputElement&&e.type==="checkbox"?e.checked:e instanceof HTMLSelectElement&&e.multiple?Array.from(e.selectedOptions).map(t=>t.value):e.value;function GM({children:e,onSubmit:t}){const r=O.useCallback(async n=>{n.preventDefault();const a=[...n.target.querySelectorAll(Mue)].reduce((o,s)=>({...o,[s.name]:kue(s)}),{});t(a)},[t]);return D.jsx("form",{onSubmit:r,children:e})}var Jy=globalThis&&globalThis.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,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,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]"u"||navigator.onLine===void 0?!0:navigator.onLine}function Bue(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var dL=Ls;function jG(e,t){if(e===t||!(dL(e)&&dL(t)||Array.isArray(e)&&Array.isArray(t)))return t;for(var r=Object.keys(t),n=Object.keys(e),i=r.length===n.length,a=Array.isArray(t)?[]:{},o=0,s=r;o=200&&e.status<=299},Fue=function(e){return/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"")};function pL(e){if(!Ls(e))return e;for(var t=ir({},e),r=0,n=Object.entries(t);r"u"&&s===hL&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),function(x,S){return r0(t,null,function(){var _,b,w,C,A,T,M,k,I,P,L,z,V,N,F,E,G,j,B,U,X,W,ee,te,ie,re,Q,J,de,he,Pe,Xe,qe,ot,st,kt;return Jy(this,function($e){switch($e.label){case 0:return _=S.signal,b=S.getState,w=S.extra,C=S.endpoint,A=S.forced,T=S.type,k=typeof x=="string"?{url:x}:x,I=k.url,P=k.headers,L=P===void 0?new Headers(m.headers):P,z=k.params,V=z===void 0?void 0:z,N=k.responseHandler,F=N===void 0?v??"json":N,E=k.validateStatus,G=E===void 0?g??$ue:E,j=k.timeout,B=j===void 0?p:j,U=cL(k,["url","headers","params","responseHandler","validateStatus","timeout"]),X=ir(Ca(ir({},m),{signal:_}),U),L=new Headers(pL(L)),W=X,[4,a(L,{getState:b,extra:w,endpoint:C,forced:A,type:T})];case 1:W.headers=$e.sent()||L,ee=function(It){return typeof It=="object"&&(Ls(It)||Array.isArray(It)||typeof It.toJSON=="function")},!X.headers.has("content-type")&&ee(X.body)&&X.headers.set("content-type",d),ee(X.body)&&c(X.headers)&&(X.body=JSON.stringify(X.body,h)),V&&(te=~I.indexOf("?")?"&":"?",ie=l?l(V):new URLSearchParams(pL(V)),I+=te+ie),I=Nue(n,I),re=new Request(I,X),Q=re.clone(),M={request:Q},de=!1,he=B&&setTimeout(function(){de=!0,S.abort()},B),$e.label=2;case 2:return $e.trys.push([2,4,5,6]),[4,s(re)];case 3:return J=$e.sent(),[3,6];case 4:return Pe=$e.sent(),[2,{error:{status:de?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(Pe)},meta:M}];case 5:return he&&clearTimeout(he),[7];case 6:Xe=J.clone(),M.response=Xe,ot="",$e.label=7;case 7:return $e.trys.push([7,9,,10]),[4,Promise.all([y(J,F).then(function(It){return qe=It},function(It){return st=It}),Xe.text().then(function(It){return ot=It},function(){})])];case 8:if($e.sent(),st)throw st;return[3,10];case 9:return kt=$e.sent(),[2,{error:{status:"PARSING_ERROR",originalStatus:J.status,data:ot,error:String(kt)},meta:M}];case 10:return[2,G(J,qe)?{data:qe,meta:M}:{error:{status:J.status,data:qe},meta:M}]}})})};function y(x,S){return r0(this,null,function(){var _;return Jy(this,function(b){switch(b.label){case 0:return typeof S=="function"?[2,S(x)]:(S==="content-type"&&(S=c(x.headers)?"json":"text"),S!=="json"?[3,2]:[4,x.text()]);case 1:return _=b.sent(),[2,_.length?JSON.parse(_):null];case 2:return[2,x.text()]}})})}}var vL=function(){function e(t,r){r===void 0&&(r=void 0),this.value=t,this.meta=r}return e}(),HM=Mn("__rtkq/focused"),UG=Mn("__rtkq/unfocused"),WM=Mn("__rtkq/online"),qG=Mn("__rtkq/offline"),Ba;(function(e){e.query="query",e.mutation="mutation"})(Ba||(Ba={}));function YG(e){return e.type===Ba.query}function Gue(e){return e.type===Ba.mutation}function XG(e,t,r,n,i,a){return Hue(e)?e(t,r,n,i).map(KC).map(a):Array.isArray(e)?e.map(KC).map(a):[]}function Hue(e){return typeof e=="function"}function KC(e){return typeof e=="string"?{type:e}:e}function eb(e){return e!=null}var Op=Symbol("forceQueryFn"),QC=function(e){return typeof e[Op]=="function"};function Wue(e){var t=e.serializeQueryArgs,r=e.queryThunk,n=e.mutationThunk,i=e.api,a=e.context,o=new Map,s=new Map,l=i.internalActions,u=l.unsubscribeQueryResult,c=l.removeMutationResult,f=l.updateSubscriptionOptions;return{buildInitiateQuery:y,buildInitiateMutation:x,getRunningQueryThunk:p,getRunningMutationThunk:v,getRunningQueriesThunk:g,getRunningMutationsThunk:m,getRunningOperationPromises:h,removalWarning:d};function d(){throw new Error(`This method had to be removed due to a conceptual bug in RTK. +`),si.rippleVisible,ire,XC,({theme:e})=>e.transitions.easing.easeInOut,si.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,si.child,si.childLeaving,are,XC,({theme:e})=>e.transitions.easing.easeInOut,si.childPulsate,ore,({theme:e})=>e.transitions.easing.easeInOut),ure=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:o}=n,s=me(n,rre),[l,u]=O.useState([]),c=O.useRef(0),f=O.useRef(null);O.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const d=O.useRef(!1),h=O.useRef(0),p=O.useRef(null),v=O.useRef(null);O.useEffect(()=>()=>{h.current&&clearTimeout(h.current)},[]);const g=O.useCallback(S=>{const{pulsate:_,rippleX:b,rippleY:w,rippleSize:C,cb:A}=S;u(T=>[...T,P.jsx(lre,{classes:{ripple:ye(a.ripple,si.ripple),rippleVisible:ye(a.rippleVisible,si.rippleVisible),ripplePulsate:ye(a.ripplePulsate,si.ripplePulsate),child:ye(a.child,si.child),childLeaving:ye(a.childLeaving,si.childLeaving),childPulsate:ye(a.childPulsate,si.childPulsate)},timeout:XC,pulsate:_,rippleX:b,rippleY:w,rippleSize:C},c.current)]),c.current+=1,f.current=A},[a]),m=O.useCallback((S={},_={},b=()=>{})=>{const{pulsate:w=!1,center:C=i||_.pulsate,fakeElement:A=!1}=_;if((S==null?void 0:S.type)==="mousedown"&&d.current){d.current=!1;return}(S==null?void 0:S.type)==="touchstart"&&(d.current=!0);const T=A?null:v.current,M=T?T.getBoundingClientRect():{width:0,height:0,left:0,top:0};let k,I,D;if(C||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)k=Math.round(M.width/2),I=Math.round(M.height/2);else{const{clientX:L,clientY:z}=S.touches&&S.touches.length>0?S.touches[0]:S;k=Math.round(L-M.left),I=Math.round(z-M.top)}if(C)D=Math.sqrt((2*M.width**2+M.height**2)/3),D%2===0&&(D+=1);else{const L=Math.max(Math.abs((T?T.clientWidth:0)-k),k)*2+2,z=Math.max(Math.abs((T?T.clientHeight:0)-I),I)*2+2;D=Math.sqrt(L**2+z**2)}S!=null&&S.touches?p.current===null&&(p.current=()=>{g({pulsate:w,rippleX:k,rippleY:I,rippleSize:D,cb:b})},h.current=setTimeout(()=>{p.current&&(p.current(),p.current=null)},nre)):g({pulsate:w,rippleX:k,rippleY:I,rippleSize:D,cb:b})},[i,g]),y=O.useCallback(()=>{m({},{pulsate:!0})},[m]),x=O.useCallback((S,_)=>{if(clearTimeout(h.current),(S==null?void 0:S.type)==="touchend"&&p.current){p.current(),p.current=null,h.current=setTimeout(()=>{x(S,_)});return}p.current=null,u(b=>b.length>0?b.slice(1):b),f.current=_},[]);return O.useImperativeHandle(r,()=>({pulsate:y,start:m,stop:x}),[y,m,x]),P.jsx(sre,$({className:ye(si.root,a.root,o),ref:v},s,{children:P.jsx(Ite,{component:null,exit:!0,children:l})}))}),cre=ure;function fre(e){return Be("MuiButtonBase",e)}const dre=Ge("MuiButtonBase",["root","disabled","focusVisible"]),hre=dre,pre=["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"],vre=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,o=Ve({root:["root",t&&"disabled",r&&"focusVisible"]},fre,i);return r&&n&&(o.root+=` ${n}`),o},gre=le("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${hre.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),mre=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:o,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:d=!1,LinkComponent:h="a",onBlur:p,onClick:v,onContextMenu:g,onDragLeave:m,onFocus:y,onFocusVisible:x,onKeyDown:S,onKeyUp:_,onMouseDown:b,onMouseLeave:w,onMouseUp:C,onTouchEnd:A,onTouchMove:T,onTouchStart:M,tabIndex:k=0,TouchRippleProps:I,touchRippleRef:D,type:L}=n,z=me(n,pre),V=O.useRef(null),N=O.useRef(null),F=Mr(N,D),{isFocusVisibleRef:E,onFocus:G,onBlur:j,ref:B}=dM(),[U,X]=O.useState(!1);u&&U&&X(!1),O.useImperativeHandle(i,()=>({focusVisible:()=>{X(!0),V.current.focus()}}),[]);const[W,ee]=O.useState(!1);O.useEffect(()=>{ee(!0)},[]);const te=W&&!c&&!u;O.useEffect(()=>{U&&d&&!c&&W&&N.current.pulsate()},[c,d,U,W]);function ie(pe,Vt,br=f){return _a(Ae=>(Vt&&Vt(Ae),!br&&N.current&&N.current[pe](Ae),!0))}const re=ie("start",b),Q=ie("stop",g),J=ie("stop",m),de=ie("stop",C),he=ie("stop",pe=>{U&&pe.preventDefault(),w&&w(pe)}),Pe=ie("start",M),Xe=ie("stop",A),qe=ie("stop",T),ot=ie("stop",pe=>{j(pe),E.current===!1&&X(!1),p&&p(pe)},!1),st=_a(pe=>{V.current||(V.current=pe.currentTarget),G(pe),E.current===!0&&(X(!0),x&&x(pe)),y&&y(pe)}),kt=()=>{const pe=V.current;return l&&l!=="button"&&!(pe.tagName==="A"&&pe.href)},$e=O.useRef(!1),It=_a(pe=>{d&&!$e.current&&U&&N.current&&pe.key===" "&&($e.current=!0,N.current.stop(pe,()=>{N.current.start(pe)})),pe.target===pe.currentTarget&&kt()&&pe.key===" "&&pe.preventDefault(),S&&S(pe),pe.target===pe.currentTarget&&kt()&&pe.key==="Enter"&&!u&&(pe.preventDefault(),v&&v(pe))}),qt=_a(pe=>{d&&pe.key===" "&&N.current&&U&&!pe.defaultPrevented&&($e.current=!1,N.current.stop(pe,()=>{N.current.pulsate(pe)})),_&&_(pe),v&&pe.target===pe.currentTarget&&kt()&&pe.key===" "&&!pe.defaultPrevented&&v(pe)});let Pt=l;Pt==="button"&&(z.href||z.to)&&(Pt=h);const K={};Pt==="button"?(K.type=L===void 0?"button":L,K.disabled=u):(!z.href&&!z.to&&(K.role="button"),u&&(K["aria-disabled"]=u));const ue=Mr(r,B,V),Re=$({},n,{centerRipple:a,component:l,disabled:u,disableRipple:c,disableTouchRipple:f,focusRipple:d,tabIndex:k,focusVisible:U}),Ce=vre(Re);return P.jsxs(gre,$({as:Pt,className:ye(Ce.root,s),ownerState:Re,onBlur:ot,onClick:v,onContextMenu:Q,onFocus:st,onKeyDown:It,onKeyUp:qt,onMouseDown:re,onMouseLeave:he,onMouseUp:de,onDragLeave:J,onTouchEnd:Xe,onTouchMove:qe,onTouchStart:Pe,ref:ue,tabIndex:u?-1:k,type:L},K,z,{children:[o,te?P.jsx(cre,$({ref:F,center:a},I)):null]}))}),Bu=mre;function yre(e){return Be("MuiAccordionSummary",e)}const xre=Ge("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),qc=xre,Sre=["children","className","expandIcon","focusVisibleClassName","onClick"],bre=e=>{const{classes:t,expanded:r,disabled:n,disableGutters:i}=e;return Ve({root:["root",r&&"expanded",n&&"disabled",!i&&"gutters"],focusVisible:["focusVisible"],content:["content",r&&"expanded",!i&&"contentGutters"],expandIconWrapper:["expandIconWrapper",r&&"expanded"]},yre,t)},_re=le(Bu,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const r={duration:e.transitions.duration.shortest};return $({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],r),[`&.${qc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${qc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${qc.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${qc.expanded}`]:{minHeight:64}})}),wre=le("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>$({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${qc.expanded}`]:{margin:"20px 0"}})),Cre=le("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${qc.expanded}`]:{transform:"rotate(180deg)"}})),Tre=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiAccordionSummary"}),{children:i,className:a,expandIcon:o,focusVisibleClassName:s,onClick:l}=n,u=me(n,Sre),{disabled:c=!1,disableGutters:f,expanded:d,toggle:h}=O.useContext(nG),p=m=>{h&&h(m),l&&l(m)},v=$({},n,{expanded:d,disabled:c,disableGutters:f}),g=bre(v);return P.jsxs(_re,$({focusRipple:!1,disableRipple:!0,disabled:c,component:"div","aria-expanded":d,className:ye(g.root,a),focusVisibleClassName:ye(g.focusVisible,s),onClick:p,ref:r,ownerState:v},u,{children:[P.jsx(wre,{className:g.content,ownerState:v,children:i}),o&&P.jsx(Cre,{className:g.expandIconWrapper,ownerState:v,children:o})]}))}),OM=Tre;function Are(e){return Be("MuiAlert",e)}const Mre=Ge("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),$R=Mre;function kre(e){return Be("MuiIconButton",e)}const Ire=Ge("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Pre=Ire,Dre=["edge","children","className","color","disabled","disableFocusRipple","size"],Rre=e=>{const{classes:t,disabled:r,color:n,edge:i,size:a}=e,o={root:["root",r&&"disabled",n!=="default"&&`color${xe(n)}`,i&&`edge${xe(i)}`,`size${xe(a)}`]};return Ve(o,kre,t)},Lre=le(Bu,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${xe(r.color)}`],r.edge&&t[`edge${xe(r.edge)}`],t[`size${xe(r.size)}`]]}})(({theme:e,ownerState:t})=>$({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:or(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return $({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&$({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":$({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:or(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Pre.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Ere=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiIconButton"}),{edge:i=!1,children:a,className:o,color:s="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium"}=n,f=me(n,Dre),d=$({},n,{edge:i,color:s,disabled:l,disableFocusRipple:u,size:c}),h=Rre(d);return P.jsx(Lre,$({className:ye(h.root,o),centerRipple:!0,focusRipple:!u,disabled:l,ref:r,ownerState:d},f,{children:a}))}),Cv=Ere,Ore=Mi(P.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),Nre=Mi(P.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),zre=Mi(P.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),Bre=Mi(P.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),$re=Mi(P.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Fre=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],Vre=e=>{const{variant:t,color:r,severity:n,classes:i}=e,a={root:["root",`${t}${xe(r||n)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Ve(a,Are,i)},Gre=le(Os,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${xe(r.color||r.severity)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?Lp:Ep,n=e.palette.mode==="light"?Ep:Lp,i=t.color||t.severity;return $({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},i&&t.variant==="standard"&&{color:e.vars?e.vars.palette.Alert[`${i}Color`]:r(e.palette[i].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${i}StandardBg`]:n(e.palette[i].light,.9),[`& .${$R.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}},i&&t.variant==="outlined"&&{color:e.vars?e.vars.palette.Alert[`${i}Color`]:r(e.palette[i].light,.6),border:`1px solid ${(e.vars||e).palette[i].light}`,[`& .${$R.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}},i&&t.variant==="filled"&&$({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${i}FilledColor`],backgroundColor:e.vars.palette.Alert[`${i}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[i].dark:e.palette[i].main,color:e.palette.getContrastText(e.palette[i].main)}))}),Hre=le("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Wre=le("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),FR=le("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),VR={success:P.jsx(Ore,{fontSize:"inherit"}),warning:P.jsx(Nre,{fontSize:"inherit"}),error:P.jsx(zre,{fontSize:"inherit"}),info:P.jsx(Bre,{fontSize:"inherit"})},jre=O.forwardRef(function(t,r){var n,i,a,o,s,l;const u=He({props:t,name:"MuiAlert"}),{action:c,children:f,className:d,closeText:h="Close",color:p,components:v={},componentsProps:g={},icon:m,iconMapping:y=VR,onClose:x,role:S="alert",severity:_="success",slotProps:b={},slots:w={},variant:C="standard"}=u,A=me(u,Fre),T=$({},u,{color:p,severity:_,variant:C}),M=Vre(T),k=(n=(i=w.closeButton)!=null?i:v.CloseButton)!=null?n:Cv,I=(a=(o=w.closeIcon)!=null?o:v.CloseIcon)!=null?a:$re,D=(s=b.closeButton)!=null?s:g.closeButton,L=(l=b.closeIcon)!=null?l:g.closeIcon;return P.jsxs(Gre,$({role:S,elevation:0,ownerState:T,className:ye(M.root,d),ref:r},A,{children:[m!==!1?P.jsx(Hre,{ownerState:T,className:M.icon,children:m||y[_]||VR[_]}):null,P.jsx(Wre,{ownerState:T,className:M.message,children:f}),c!=null?P.jsx(FR,{ownerState:T,className:M.action,children:c}):null,c==null&&x?P.jsx(FR,{ownerState:T,className:M.action,children:P.jsx(k,$({size:"small","aria-label":h,title:h,color:"inherit",onClick:x},D,{children:P.jsx(I,$({fontSize:"small"},L))}))}):null]}))}),Ure=jre;function qre(e){return Be("MuiTypography",e)}Ge("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Yre=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Xre=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:a,classes:o}=e,s={root:["root",a,e.align!=="inherit"&&`align${xe(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return Ve(s,qre,o)},Zre=le("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${xe(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>$({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),GR={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Kre={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Qre=e=>Kre[e]||e,Jre=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiTypography"}),i=Qre(n.color),a=TM($({},n,{color:i})),{align:o="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:f=!1,variant:d="body1",variantMapping:h=GR}=a,p=me(a,Yre),v=$({},a,{align:o,color:i,className:s,component:l,gutterBottom:u,noWrap:c,paragraph:f,variant:d,variantMapping:h}),g=l||(f?"p":h[d]||GR[d])||"span",m=Xre(v);return P.jsx(Zre,$({as:g,ref:r,ownerState:v,className:ye(m.root,s)},p))}),We=Jre;function ene(e){return Be("MuiAppBar",e)}Ge("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const tne=["className","color","enableColorOnDark","position"],rne=e=>{const{color:t,position:r,classes:n}=e,i={root:["root",`color${xe(t)}`,`position${xe(r)}`]};return Ve(i,ene,n)},gg=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,nne=le(Os,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${xe(r.position)}`],t[`color${xe(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return $({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&$({},t.color==="default"&&{backgroundColor:r,color:e.palette.getContrastText(r)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&$({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&$({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:gg(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:gg(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:gg(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:gg(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),ine=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiAppBar"}),{className:i,color:a="primary",enableColorOnDark:o=!1,position:s="fixed"}=n,l=me(n,tne),u=$({},n,{color:a,position:s,enableColorOnDark:o}),c=rne(u);return P.jsx(nne,$({square:!0,component:"header",ownerState:u,elevation:4,className:ye(c.root,i,s==="fixed"&&"mui-fixed"),ref:r},l))}),ane=ine;function kf(e){return typeof e=="string"}function one(e,t,r){return e===void 0||kf(e)?t:$({},t,{ownerState:$({},t.ownerState,r)})}function iG(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function sne(e,t,r){return typeof e=="function"?e(t,r):e}function HR(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function lne(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:a}=e;if(!t){const h=ye(i==null?void 0:i.className,n==null?void 0:n.className,a,r==null?void 0:r.className),p=$({},r==null?void 0:r.style,i==null?void 0:i.style,n==null?void 0:n.style),v=$({},r,i,n);return h.length>0&&(v.className=h),Object.keys(p).length>0&&(v.style=p),{props:v,internalRef:void 0}}const o=iG($({},i,n)),s=HR(n),l=HR(i),u=t(o),c=ye(u==null?void 0:u.className,r==null?void 0:r.className,a,i==null?void 0:i.className,n==null?void 0:n.className),f=$({},u==null?void 0:u.style,r==null?void 0:r.style,i==null?void 0:i.style,n==null?void 0:n.style),d=$({},u,r,l,s);return c.length>0&&(d.className=c),Object.keys(f).length>0&&(d.style=f),{props:d,internalRef:u.ref}}const une=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function za(e){var t;const{elementType:r,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:a=!1}=e,o=me(e,une),s=a?{}:sne(n,i),{props:l,internalRef:u}=lne($({},o,{externalSlotProps:s})),c=Mr(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return one(r,$({},l,{ref:c}),i)}const cne=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function fne(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function dne(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function hne(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||dne(e))}function pne(e){const t=[],r=[];return Array.from(e.querySelectorAll(cne)).forEach((n,i)=>{const a=fne(n);a===-1||!hne(n)||(a===0?t.push(n):r.push({documentOrder:i,tabIndex:a,node:n}))}),r.sort((n,i)=>n.tabIndex===i.tabIndex?n.documentOrder-i.documentOrder:n.tabIndex-i.tabIndex).map(n=>n.node).concat(t)}function vne(){return!0}function gne(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:a=pne,isEnabled:o=vne,open:s}=e,l=O.useRef(!1),u=O.useRef(null),c=O.useRef(null),f=O.useRef(null),d=O.useRef(null),h=O.useRef(!1),p=O.useRef(null),v=Mr(t.ref,p),g=O.useRef(null);O.useEffect(()=>{!s||!p.current||(h.current=!r)},[r,s]),O.useEffect(()=>{if(!s||!p.current)return;const x=ln(p.current);return p.current.contains(x.activeElement)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),h.current&&p.current.focus()),()=>{i||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),O.useEffect(()=>{if(!s||!p.current)return;const x=ln(p.current),S=w=>{g.current=w,!(n||!o()||w.key!=="Tab")&&x.activeElement===p.current&&w.shiftKey&&(l.current=!0,c.current&&c.current.focus())},_=()=>{const w=p.current;if(w===null)return;if(!x.hasFocus()||!o()||l.current){l.current=!1;return}if(w.contains(x.activeElement)||n&&x.activeElement!==u.current&&x.activeElement!==c.current)return;if(x.activeElement!==d.current)d.current=null;else if(d.current!==null)return;if(!h.current)return;let C=[];if((x.activeElement===u.current||x.activeElement===c.current)&&(C=a(p.current)),C.length>0){var A,T;const M=!!((A=g.current)!=null&&A.shiftKey&&((T=g.current)==null?void 0:T.key)==="Tab"),k=C[0],I=C[C.length-1];typeof k!="string"&&typeof I!="string"&&(M?I.focus():k.focus())}else w.focus()};x.addEventListener("focusin",_),x.addEventListener("keydown",S,!0);const b=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&_()},50);return()=>{clearInterval(b),x.removeEventListener("focusin",_),x.removeEventListener("keydown",S,!0)}},[r,n,i,o,s,a]);const m=x=>{f.current===null&&(f.current=x.relatedTarget),h.current=!0,d.current=x.target;const S=t.props.onFocus;S&&S(x)},y=x=>{f.current===null&&(f.current=x.relatedTarget),h.current=!0};return P.jsxs(O.Fragment,{children:[P.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelStart"}),O.cloneElement(t,{ref:v,onFocus:m}),P.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelEnd"})]})}function mne(e){return typeof e=="function"?e():e}const yne=O.forwardRef(function(t,r){const{children:n,container:i,disablePortal:a=!1}=t,[o,s]=O.useState(null),l=Mr(O.isValidElement(n)?n.ref:null,r);if(So(()=>{a||s(mne(i)||document.body)},[i,a]),So(()=>{if(o&&!a)return qy(r,o),()=>{qy(r,null)}},[r,o,a]),a){if(O.isValidElement(n)){const u={ref:l};return O.cloneElement(n,u)}return P.jsx(O.Fragment,{children:n})}return P.jsx(O.Fragment,{children:o&&Gf.createPortal(n,o)})});function xne(e){const t=ln(e);return t.body===e?Na(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Fh(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function WR(e){return parseInt(Na(e).getComputedStyle(e).paddingRight,10)||0}function Sne(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function jR(e,t,r,n,i){const a=[t,r,...n];[].forEach.call(e.children,o=>{const s=a.indexOf(o)===-1,l=!Sne(o);s&&l&&Fh(o,i)})}function YS(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function bne(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(xne(n)){const o=CV(ln(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${WR(n)+o}px`;const s=ln(n).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${WR(l)+o}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=ln(n).body;else{const o=n.parentElement,s=Na(n);a=(o==null?void 0:o.nodeName)==="HTML"&&s.getComputedStyle(o).overflowY==="scroll"?o:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:o,property:s})=>{a?o.style.setProperty(s,a):o.style.removeProperty(s)})}}function _ne(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class wne{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&Fh(t.modalRef,!1);const i=_ne(r);jR(r,t.mount,t.modalRef,i,!0);const a=YS(this.containers,o=>o.container===r);return a!==-1?(this.containers[a].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),n)}mount(t,r){const n=YS(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[n];i.restore||(i.restore=bne(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=YS(this.containers,o=>o.modals.indexOf(t)!==-1),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&Fh(t.modalRef,r),jR(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const o=a.modals[a.modals.length-1];o.modalRef&&Fh(o.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Cne(e){return typeof e=="function"?e():e}function Tne(e){return e?e.props.hasOwnProperty("in"):!1}const Ane=new wne;function Mne(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:i=Ane,closeAfterTransition:a=!1,onTransitionEnter:o,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:f}=e,d=O.useRef({}),h=O.useRef(null),p=O.useRef(null),v=Mr(p,f),[g,m]=O.useState(!c),y=Tne(l);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const S=()=>ln(h.current),_=()=>(d.current.modalRef=p.current,d.current.mount=h.current,d.current),b=()=>{i.mount(_(),{disableScrollLock:n}),p.current&&(p.current.scrollTop=0)},w=_a(()=>{const z=Cne(t)||S().body;i.add(_(),z),p.current&&b()}),C=O.useCallback(()=>i.isTopModal(_()),[i]),A=_a(z=>{h.current=z,z&&(c&&C()?b():p.current&&Fh(p.current,x))}),T=O.useCallback(()=>{i.remove(_(),x)},[x,i]);O.useEffect(()=>()=>{T()},[T]),O.useEffect(()=>{c?w():(!y||!a)&&T()},[c,T,y,a,w]);const M=z=>V=>{var N;(N=z.onKeyDown)==null||N.call(z,V),!(V.key!=="Escape"||!C())&&(r||(V.stopPropagation(),u&&u(V,"escapeKeyDown")))},k=z=>V=>{var N;(N=z.onClick)==null||N.call(z,V),V.target===V.currentTarget&&u&&u(V,"backdropClick")};return{getRootProps:(z={})=>{const V=iG(e);delete V.onTransitionEnter,delete V.onTransitionExited;const N=$({},V,z);return $({role:"presentation"},N,{onKeyDown:M(N),ref:v})},getBackdropProps:(z={})=>{const V=z;return $({"aria-hidden":!0},V,{onClick:k(V),open:c})},getTransitionProps:()=>{const z=()=>{m(!1),o&&o()},V=()=>{m(!0),s&&s(),a&&T()};return{onEnter:GC(z,l==null?void 0:l.props.onEnter),onExited:GC(V,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:A,isTopModal:C,exited:g,hasTransition:y}}const kne=["onChange","maxRows","minRows","style","value"];function mg(e){return parseInt(e,10)||0}const Ine={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function UR(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const Pne=O.forwardRef(function(t,r){const{onChange:n,maxRows:i,minRows:a=1,style:o,value:s}=t,l=me(t,kne),{current:u}=O.useRef(s!=null),c=O.useRef(null),f=Mr(r,c),d=O.useRef(null),h=O.useRef(0),[p,v]=O.useState({outerHeightStyle:0}),g=O.useCallback(()=>{const _=c.current,w=Na(_).getComputedStyle(_);if(w.width==="0px")return{outerHeightStyle:0};const C=d.current;C.style.width=w.width,C.value=_.value||t.placeholder||"x",C.value.slice(-1)===` +`&&(C.value+=" ");const A=w.boxSizing,T=mg(w.paddingBottom)+mg(w.paddingTop),M=mg(w.borderBottomWidth)+mg(w.borderTopWidth),k=C.scrollHeight;C.value="x";const I=C.scrollHeight;let D=k;a&&(D=Math.max(Number(a)*I,D)),i&&(D=Math.min(Number(i)*I,D)),D=Math.max(D,I);const L=D+(A==="border-box"?T+M:0),z=Math.abs(D-k)<=1;return{outerHeightStyle:L,overflow:z}},[i,a,t.placeholder]),m=(_,b)=>{const{outerHeightStyle:w,overflow:C}=b;return h.current<20&&(w>0&&Math.abs((_.outerHeightStyle||0)-w)>1||_.overflow!==C)?(h.current+=1,{overflow:C,outerHeightStyle:w}):_},y=O.useCallback(()=>{const _=g();UR(_)||v(b=>m(b,_))},[g]),x=()=>{const _=g();UR(_)||Gf.flushSync(()=>{v(b=>m(b,_))})};O.useEffect(()=>{const _=()=>{h.current=0,c.current&&x()},b=Sv(()=>{h.current=0,c.current&&x()});let w;const C=c.current,A=Na(C);return A.addEventListener("resize",b),typeof ResizeObserver<"u"&&(w=new ResizeObserver(_),w.observe(C)),()=>{b.clear(),A.removeEventListener("resize",b),w&&w.disconnect()}}),So(()=>{y()}),O.useEffect(()=>{h.current=0},[s]);const S=_=>{h.current=0,u||y(),n&&n(_)};return P.jsxs(O.Fragment,{children:[P.jsx("textarea",$({value:s,onChange:S,ref:f,rows:a,style:$({height:p.outerHeightStyle,overflow:p.overflow?"hidden":void 0},o)},l)),P.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:d,tabIndex:-1,style:$({},Ine.shadow,o,{paddingTop:0,paddingBottom:0})})]})});function Xs({props:e,states:t,muiFormControl:r}){return t.reduce((n,i)=>(n[i]=e[i],r&&typeof e[i]>"u"&&(n[i]=r[i]),n),{})}const Dne=O.createContext(void 0),NM=Dne;function Po(){return O.useContext(NM)}function aG(e){return P.jsx(tee,$({},e,{defaultTheme:lx,themeId:Tu}))}function qR(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Ky(e,t=!1){return e&&(qR(e.value)&&e.value!==""||t&&qR(e.defaultValue)&&e.defaultValue!=="")}function Rne(e){return e.startAdornment}function Lne(e){return Be("MuiInputBase",e)}const Ene=Ge("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),If=Ene,One=["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"],cx=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${xe(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},fx=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Nne=e=>{const{classes:t,color:r,disabled:n,error:i,endAdornment:a,focused:o,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:f,size:d,startAdornment:h,type:p}=e,v={root:["root",`color${xe(r)}`,n&&"disabled",i&&"error",l&&"fullWidth",o&&"focused",s&&"formControl",d&&d!=="medium"&&`size${xe(d)}`,c&&"multiline",h&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",n&&"disabled",p==="search"&&"inputTypeSearch",c&&"inputMultiline",d==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return Ve(v,Lne,t)},dx=le("div",{name:"MuiInputBase",slot:"Root",overridesResolver:cx})(({theme:e,ownerState:t})=>$({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${If.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&$({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),hx=le("input",{name:"MuiInputBase",slot:"Input",overridesResolver:fx})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=$({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return $({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] + .${If.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${If.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),zne=P.jsx(aG,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Bne=O.forwardRef(function(t,r){var n;const i=He({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:o,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:f,disabled:d,disableInjectingGlobalStyles:h,endAdornment:p,fullWidth:v=!1,id:g,inputComponent:m="input",inputProps:y={},inputRef:x,maxRows:S,minRows:_,multiline:b=!1,name:w,onBlur:C,onChange:A,onClick:T,onFocus:M,onKeyDown:k,onKeyUp:I,placeholder:D,readOnly:L,renderSuffix:z,rows:V,slotProps:N={},slots:F={},startAdornment:E,type:G="text",value:j}=i,B=me(i,One),U=y.value!=null?y.value:j,{current:X}=O.useRef(U!=null),W=O.useRef(),ee=O.useCallback(Ce=>{},[]),te=Mr(W,x,y.ref,ee),[ie,re]=O.useState(!1),Q=Po(),J=Xs({props:i,muiFormControl:Q,states:["color","disabled","error","hiddenLabel","size","required","filled"]});J.focused=Q?Q.focused:ie,O.useEffect(()=>{!Q&&d&&ie&&(re(!1),C&&C())},[Q,d,ie,C]);const de=Q&&Q.onFilled,he=Q&&Q.onEmpty,Pe=O.useCallback(Ce=>{Ky(Ce)?de&&de():he&&he()},[de,he]);So(()=>{X&&Pe({value:U})},[U,Pe,X]);const Xe=Ce=>{if(J.disabled){Ce.stopPropagation();return}M&&M(Ce),y.onFocus&&y.onFocus(Ce),Q&&Q.onFocus?Q.onFocus(Ce):re(!0)},qe=Ce=>{C&&C(Ce),y.onBlur&&y.onBlur(Ce),Q&&Q.onBlur?Q.onBlur(Ce):re(!1)},ot=(Ce,...pe)=>{if(!X){const Vt=Ce.target||W.current;if(Vt==null)throw new Error(Es(1));Pe({value:Vt.value})}y.onChange&&y.onChange(Ce,...pe),A&&A(Ce,...pe)};O.useEffect(()=>{Pe(W.current)},[]);const st=Ce=>{W.current&&Ce.currentTarget===Ce.target&&W.current.focus(),T&&T(Ce)};let kt=m,$e=y;b&&kt==="input"&&(V?$e=$({type:void 0,minRows:V,maxRows:V},$e):$e=$({type:void 0,maxRows:S,minRows:_},$e),kt=Pne);const It=Ce=>{Pe(Ce.animationName==="mui-auto-fill-cancel"?W.current:{value:"x"})};O.useEffect(()=>{Q&&Q.setAdornedStart(!!E)},[Q,E]);const qt=$({},i,{color:J.color||"primary",disabled:J.disabled,endAdornment:p,error:J.error,focused:J.focused,formControl:Q,fullWidth:v,hiddenLabel:J.hiddenLabel,multiline:b,size:J.size,startAdornment:E,type:G}),Pt=Nne(qt),K=F.root||u.Root||dx,ue=N.root||c.root||{},Re=F.input||u.Input||hx;return $e=$({},$e,(n=N.input)!=null?n:c.input),P.jsxs(O.Fragment,{children:[!h&&zne,P.jsxs(K,$({},ue,!kf(K)&&{ownerState:$({},qt,ue.ownerState)},{ref:r,onClick:st},B,{className:ye(Pt.root,ue.className,l,L&&"MuiInputBase-readOnly"),children:[E,P.jsx(NM.Provider,{value:null,children:P.jsx(Re,$({ownerState:qt,"aria-invalid":J.error,"aria-describedby":a,autoComplete:o,autoFocus:s,defaultValue:f,disabled:J.disabled,id:g,onAnimationStart:It,name:w,placeholder:D,readOnly:L,required:J.required,rows:V,value:U,onKeyDown:k,onKeyUp:I,type:G},$e,!kf(Re)&&{as:kt,ownerState:$({},qt,$e.ownerState)},{ref:te,className:ye(Pt.input,$e.className,L&&"MuiInputBase-readOnly"),onBlur:qe,onChange:ot,onFocus:Xe}))}),p,z?z($({},J,{startAdornment:E})):null]}))]})}),zM=Bne;function $ne(e){return Be("MuiInput",e)}const Fne=$({},If,Ge("MuiInput",["root","underline","input"])),_d=Fne;function Vne(e){return Be("MuiOutlinedInput",e)}const Gne=$({},If,Ge("MuiOutlinedInput",["root","notchedOutline","input"])),No=Gne;function Hne(e){return Be("MuiFilledInput",e)}const Wne=$({},If,Ge("MuiFilledInput",["root","underline","input"])),el=Wne,jne=Mi(P.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Une=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],qne={entering:{opacity:1},entered:{opacity:1}},Yne=O.forwardRef(function(t,r){const n=jf(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:o=!0,children:s,easing:l,in:u,onEnter:c,onEntered:f,onEntering:d,onExit:h,onExited:p,onExiting:v,style:g,timeout:m=i,TransitionComponent:y=PM}=t,x=me(t,Une),S=O.useRef(null),_=Mr(S,s.ref,r),b=D=>L=>{if(D){const z=S.current;L===void 0?D(z):D(z,L)}},w=b(d),C=b((D,L)=>{tG(D);const z=Mf({style:g,timeout:m,easing:l},{mode:"enter"});D.style.webkitTransition=n.transitions.create("opacity",z),D.style.transition=n.transitions.create("opacity",z),c&&c(D,L)}),A=b(f),T=b(v),M=b(D=>{const L=Mf({style:g,timeout:m,easing:l},{mode:"exit"});D.style.webkitTransition=n.transitions.create("opacity",L),D.style.transition=n.transitions.create("opacity",L),h&&h(D)}),k=b(p),I=D=>{a&&a(S.current,D)};return P.jsx(y,$({appear:o,in:u,nodeRef:S,onEnter:C,onEntered:A,onEntering:w,onExit:M,onExited:k,onExiting:T,addEndListener:I,timeout:m},x,{children:(D,L)=>O.cloneElement(s,$({style:$({opacity:0,visibility:D==="exited"&&!u?"hidden":void 0},qne[D],g,s.props.style),ref:_},L))}))}),Xne=Yne;function Zne(e){return Be("MuiBackdrop",e)}Ge("MuiBackdrop",["root","invisible"]);const Kne=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Qne=e=>{const{classes:t,invisible:r}=e;return Ve({root:["root",r&&"invisible"]},Zne,t)},Jne=le("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>$({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),eie=O.forwardRef(function(t,r){var n,i,a;const o=He({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:u="div",components:c={},componentsProps:f={},invisible:d=!1,open:h,slotProps:p={},slots:v={},TransitionComponent:g=Xne,transitionDuration:m}=o,y=me(o,Kne),x=$({},o,{component:u,invisible:d}),S=Qne(x),_=(n=p.root)!=null?n:f.root;return P.jsx(g,$({in:h,timeout:m},y,{children:P.jsx(Jne,$({"aria-hidden":!0},_,{as:(i=(a=v.root)!=null?a:c.Root)!=null?i:u,className:ye(S.root,l,_==null?void 0:_.className),ownerState:$({},x,_==null?void 0:_.ownerState),classes:S,ref:r,children:s}))}))}),tie=eie,rie=kM(),nie=aee({themeId:Tu,defaultTheme:rie,defaultClassName:"MuiBox-root",generateClassName:pM.generate}),Qe=nie;function iie(e){return Be("MuiButton",e)}const aie=Ge("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"]),yg=aie,oie=O.createContext({}),sie=oie,lie=O.createContext(void 0),uie=lie,cie=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],fie=e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:a,classes:o}=e,s={root:["root",a,`${a}${xe(t)}`,`size${xe(i)}`,`${a}Size${xe(i)}`,t==="inherit"&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${xe(i)}`],endIcon:["endIcon",`iconSize${xe(i)}`]},l=Ve(s,iie,o);return $({},o,l)},oG=e=>$({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),die=le(Bu,{shouldForwardProp:e=>Ua(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${xe(r.color)}`],t[`size${xe(r.size)}`],t[`${r.variant}Size${xe(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const i=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return $({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":$({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:or(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:or(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:or(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":$({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${yg.focusVisible}`]:$({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${yg.disabled}`]:$({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${or(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${yg.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${yg.disabled}`]:{boxShadow:"none"}}),hie=le("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${xe(r.size)}`]]}})(({ownerState:e})=>$({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},oG(e))),pie=le("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${xe(r.size)}`]]}})(({ownerState:e})=>$({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},oG(e))),vie=O.forwardRef(function(t,r){const n=O.useContext(sie),i=O.useContext(uie),a=hM(n,t),o=He({props:a,name:"MuiButton"}),{children:s,color:l="primary",component:u="button",className:c,disabled:f=!1,disableElevation:d=!1,disableFocusRipple:h=!1,endIcon:p,focusVisibleClassName:v,fullWidth:g=!1,size:m="medium",startIcon:y,type:x,variant:S="text"}=o,_=me(o,cie),b=$({},o,{color:l,component:u,disabled:f,disableElevation:d,disableFocusRipple:h,fullWidth:g,size:m,type:x,variant:S}),w=fie(b),C=y&&P.jsx(hie,{className:w.startIcon,ownerState:b,children:y}),A=p&&P.jsx(pie,{className:w.endIcon,ownerState:b,children:p}),T=i||"";return P.jsxs(die,$({ownerState:b,className:ye(n.className,w.root,c,T),component:u,disabled:f,focusRipple:!h,focusVisibleClassName:ye(w.focusVisible,v),ref:r,type:x},_,{classes:w,children:[C,s,A]}))}),qa=vie;function gie(e){return Be("PrivateSwitchBase",e)}Ge("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const mie=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],yie=e=>{const{classes:t,checked:r,disabled:n,edge:i}=e,a={root:["root",r&&"checked",n&&"disabled",i&&`edge${xe(i)}`],input:["input"]};return Ve(a,gie,t)},xie=le(Bu)(({ownerState:e})=>$({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),Sie=le("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),bie=O.forwardRef(function(t,r){const{autoFocus:n,checked:i,checkedIcon:a,className:o,defaultChecked:s,disabled:l,disableFocusRipple:u=!1,edge:c=!1,icon:f,id:d,inputProps:h,inputRef:p,name:v,onBlur:g,onChange:m,onFocus:y,readOnly:x,required:S=!1,tabIndex:_,type:b,value:w}=t,C=me(t,mie),[A,T]=Ip({controlled:i,default:!!s,name:"SwitchBase",state:"checked"}),M=Po(),k=F=>{y&&y(F),M&&M.onFocus&&M.onFocus(F)},I=F=>{g&&g(F),M&&M.onBlur&&M.onBlur(F)},D=F=>{if(F.nativeEvent.defaultPrevented)return;const E=F.target.checked;T(E),m&&m(F,E)};let L=l;M&&typeof L>"u"&&(L=M.disabled);const z=b==="checkbox"||b==="radio",V=$({},t,{checked:A,disabled:L,disableFocusRipple:u,edge:c}),N=yie(V);return P.jsxs(xie,$({component:"span",className:ye(N.root,o),centerRipple:!0,focusRipple:!u,disabled:L,tabIndex:null,role:void 0,onFocus:k,onBlur:I,ownerState:V,ref:r},C,{children:[P.jsx(Sie,$({autoFocus:n,checked:i,defaultChecked:s,className:N.input,disabled:L,id:z?d:void 0,name:v,onChange:D,readOnly:x,ref:p,required:S,ownerState:V,tabIndex:_,type:b},b==="checkbox"&&w===void 0?{}:{value:w},h)),A?a:f]}))}),sG=bie,_ie=Mi(P.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),wie=Mi(P.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Cie=Mi(P.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Tie(e){return Be("MuiCheckbox",e)}const Aie=Ge("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),XS=Aie,Mie=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],kie=e=>{const{classes:t,indeterminate:r,color:n,size:i}=e,a={root:["root",r&&"indeterminate",`color${xe(n)}`,`size${xe(i)}`]},o=Ve(a,Tie,t);return $({},t,o)},Iie=le(sG,{shouldForwardProp:e=>Ua(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,r.color!=="default"&&t[`color${xe(r.color)}`]]}})(({theme:e,ownerState:t})=>$({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:or(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${XS.checked}, &.${XS.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${XS.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),Pie=P.jsx(wie,{}),Die=P.jsx(_ie,{}),Rie=P.jsx(Cie,{}),Lie=O.forwardRef(function(t,r){var n,i;const a=He({props:t,name:"MuiCheckbox"}),{checkedIcon:o=Pie,color:s="primary",icon:l=Die,indeterminate:u=!1,indeterminateIcon:c=Rie,inputProps:f,size:d="medium",className:h}=a,p=me(a,Mie),v=u?c:l,g=u?c:o,m=$({},a,{color:s,indeterminate:u,size:d}),y=kie(m);return P.jsx(Iie,$({type:"checkbox",inputProps:$({"data-indeterminate":u},f),icon:O.cloneElement(v,{fontSize:(n=v.props.fontSize)!=null?n:d}),checkedIcon:O.cloneElement(g,{fontSize:(i=g.props.fontSize)!=null?i:d}),ownerState:m,ref:r,className:ye(y.root,h)},p,{classes:y}))}),ZC=Lie,Eie=Ree({createStyledComponent:le("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${xe(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>He({props:e,name:"MuiContainer"})}),Uf=Eie,Oie=(e,t)=>$({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),Nie=e=>$({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),zie=(e,t=!1)=>{var r;const n={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([o,s])=>{var l;n[e.getColorSchemeSelector(o).replace(/\s*&/,"")]={colorScheme:(l=s.palette)==null?void 0:l.mode}});let i=$({html:Oie(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:$({margin:0},Nie(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},n);const a=(r=e.components)==null||(r=r.MuiCssBaseline)==null?void 0:r.styleOverrides;return a&&(i=[i,a]),i};function BM(e){const t=He({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return P.jsxs(O.Fragment,{children:[P.jsx(aG,{styles:i=>zie(i,n)}),r]})}function Bie(e){return Be("MuiModal",e)}Ge("MuiModal",["root","hidden","backdrop"]);const $ie=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Fie=e=>{const{open:t,exited:r,classes:n}=e;return Ve({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Bie,n)},Vie=le("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>$({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Gie=le(tie,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Hie=O.forwardRef(function(t,r){var n,i,a,o,s,l;const u=He({name:"MuiModal",props:t}),{BackdropComponent:c=Gie,BackdropProps:f,className:d,closeAfterTransition:h=!1,children:p,container:v,component:g,components:m={},componentsProps:y={},disableAutoFocus:x=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:_=!1,disablePortal:b=!1,disableRestoreFocus:w=!1,disableScrollLock:C=!1,hideBackdrop:A=!1,keepMounted:T=!1,onBackdropClick:M,open:k,slotProps:I,slots:D}=u,L=me(u,$ie),z=$({},u,{closeAfterTransition:h,disableAutoFocus:x,disableEnforceFocus:S,disableEscapeKeyDown:_,disablePortal:b,disableRestoreFocus:w,disableScrollLock:C,hideBackdrop:A,keepMounted:T}),{getRootProps:V,getBackdropProps:N,getTransitionProps:F,portalRef:E,isTopModal:G,exited:j,hasTransition:B}=Mne($({},z,{rootRef:r})),U=$({},z,{exited:j}),X=Fie(U),W={};if(p.props.tabIndex===void 0&&(W.tabIndex="-1"),B){const{onEnter:de,onExited:he}=F();W.onEnter=de,W.onExited=he}const ee=(n=(i=D==null?void 0:D.root)!=null?i:m.Root)!=null?n:Vie,te=(a=(o=D==null?void 0:D.backdrop)!=null?o:m.Backdrop)!=null?a:c,ie=(s=I==null?void 0:I.root)!=null?s:y.root,re=(l=I==null?void 0:I.backdrop)!=null?l:y.backdrop,Q=za({elementType:ee,externalSlotProps:ie,externalForwardedProps:L,getSlotProps:V,additionalProps:{ref:r,as:g},ownerState:U,className:ye(d,ie==null?void 0:ie.className,X==null?void 0:X.root,!U.open&&U.exited&&(X==null?void 0:X.hidden))}),J=za({elementType:te,externalSlotProps:re,additionalProps:f,getSlotProps:de=>N($({},de,{onClick:he=>{M&&M(he),de!=null&&de.onClick&&de.onClick(he)}})),className:ye(re==null?void 0:re.className,f==null?void 0:f.className,X==null?void 0:X.backdrop),ownerState:U});return!T&&!k&&(!B||j)?null:P.jsx(yne,{ref:E,container:v,disablePortal:b,children:P.jsxs(ee,$({},Q,{children:[!A&&c?P.jsx(te,$({},J)):null,P.jsx(gne,{disableEnforceFocus:S,disableAutoFocus:x,disableRestoreFocus:w,isEnabled:G,open:k,children:O.cloneElement(p,W)})]}))})}),lG=Hie;function Wie(e){return Be("MuiDivider",e)}Ge("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const jie=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Uie=e=>{const{absolute:t,children:r,classes:n,flexItem:i,light:a,orientation:o,textAlign:s,variant:l}=e;return Ve({root:["root",t&&"absolute",l,a&&"light",o==="vertical"&&"vertical",i&&"flexItem",r&&"withChildren",r&&o==="vertical"&&"withChildrenVertical",s==="right"&&o!=="vertical"&&"textAlignRight",s==="left"&&o!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",o==="vertical"&&"wrapperVertical"]},Wie,n)},qie=le("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>$({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:or(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>$({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>$({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>$({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>$({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Yie=le("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>$({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),uG=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiDivider"}),{absolute:i=!1,children:a,className:o,component:s=a?"div":"hr",flexItem:l=!1,light:u=!1,orientation:c="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:d="center",variant:h="fullWidth"}=n,p=me(n,jie),v=$({},n,{absolute:i,component:s,flexItem:l,light:u,orientation:c,role:f,textAlign:d,variant:h}),g=Uie(v);return P.jsx(qie,$({as:s,className:ye(g.root,o),role:f,ref:r,ownerState:v},p,{children:a?P.jsx(Yie,{className:g.wrapper,ownerState:v,children:a}):null}))});uG.muiSkipListHighlight=!0;const wd=uG,Xie=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Zie=e=>{const{classes:t,disableUnderline:r}=e,i=Ve({root:["root",!r&&"underline"],input:["input"]},Hne,t);return $({},t,i)},Kie=le(dx,{shouldForwardProp:e=>Ua(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...cx(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",i=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return $({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${el.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${el.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(r=(e.vars||e).palette[t.color||"primary"])==null?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${el.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${el.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${el.disabled}, .${el.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${el.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&$({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),Qie=le(hx,{name:"MuiFilledInput",slot:"Input",overridesResolver:fx})(({theme:e,ownerState:t})=>$({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),cG=O.forwardRef(function(t,r){var n,i,a,o;const s=He({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:f="input",multiline:d=!1,slotProps:h,slots:p={},type:v="text"}=s,g=me(s,Xie),m=$({},s,{fullWidth:c,inputComponent:f,multiline:d,type:v}),y=Zie(s),x={root:{ownerState:m},input:{ownerState:m}},S=h??u?kn(h??u,x):x,_=(n=(i=p.root)!=null?i:l.Root)!=null?n:Kie,b=(a=(o=p.input)!=null?o:l.Input)!=null?a:Qie;return P.jsx(zM,$({slots:{root:_,input:b},componentsProps:S,fullWidth:c,inputComponent:f,multiline:d,ref:r,type:v},g,{classes:y}))});cG.muiName="Input";const fG=cG;function Jie(e){return Be("MuiFormControl",e)}Ge("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const eae=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],tae=e=>{const{classes:t,margin:r,fullWidth:n}=e,i={root:["root",r!=="none"&&`margin${xe(r)}`,n&&"fullWidth"]};return Ve(i,Jie,t)},rae=le("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>$({},t.root,t[`margin${xe(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>$({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),nae=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiFormControl"}),{children:i,className:a,color:o="primary",component:s="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:f=!1,hiddenLabel:d=!1,margin:h="none",required:p=!1,size:v="medium",variant:g="outlined"}=n,m=me(n,eae),y=$({},n,{color:o,component:s,disabled:l,error:u,fullWidth:f,hiddenLabel:d,margin:h,required:p,size:v,variant:g}),x=tae(y),[S,_]=O.useState(()=>{let I=!1;return i&&O.Children.forEach(i,D=>{if(!zh(D,["Input","Select"]))return;const L=zh(D,["Select"])?D.props.input:D;L&&Rne(L.props)&&(I=!0)}),I}),[b,w]=O.useState(()=>{let I=!1;return i&&O.Children.forEach(i,D=>{zh(D,["Input","Select"])&&(Ky(D.props,!0)||Ky(D.props.inputProps,!0))&&(I=!0)}),I}),[C,A]=O.useState(!1);l&&C&&A(!1);const T=c!==void 0&&!l?c:C;let M;const k=O.useMemo(()=>({adornedStart:S,setAdornedStart:_,color:o,disabled:l,error:u,filled:b,focused:T,fullWidth:f,hiddenLabel:d,size:v,onBlur:()=>{A(!1)},onEmpty:()=>{w(!1)},onFilled:()=>{w(!0)},onFocus:()=>{A(!0)},registerEffect:M,required:p,variant:g}),[S,o,l,u,b,T,f,d,M,p,v,g]);return P.jsx(NM.Provider,{value:k,children:P.jsx(rae,$({as:s,ownerState:y,className:ye(x.root,a),ref:r},m,{children:i}))})}),dG=nae,iae=Fee({createStyledComponent:le("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>He({props:e,name:"MuiStack"})}),hG=iae;function aae(e){return Be("MuiFormControlLabel",e)}const oae=Ge("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),ch=oae,sae=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],lae=e=>{const{classes:t,disabled:r,labelPlacement:n,error:i,required:a}=e,o={root:["root",r&&"disabled",`labelPlacement${xe(n)}`,i&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",i&&"error"]};return Ve(o,aae,t)},uae=le("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${ch.label}`]:t.label},t.root,t[`labelPlacement${xe(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>$({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${ch.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${ch.label}`]:{[`&.${ch.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),cae=le("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${ch.error}`]:{color:(e.vars||e).palette.error.main}})),fae=O.forwardRef(function(t,r){var n,i;const a=He({props:t,name:"MuiFormControlLabel"}),{className:o,componentsProps:s={},control:l,disabled:u,disableTypography:c,label:f,labelPlacement:d="end",required:h,slotProps:p={}}=a,v=me(a,sae),g=Po(),m=(n=u??l.props.disabled)!=null?n:g==null?void 0:g.disabled,y=h??l.props.required,x={disabled:m,required:y};["checked","name","onChange","value","inputRef"].forEach(A=>{typeof l.props[A]>"u"&&typeof a[A]<"u"&&(x[A]=a[A])});const S=Xs({props:a,muiFormControl:g,states:["error"]}),_=$({},a,{disabled:m,labelPlacement:d,required:y,error:S.error}),b=lae(_),w=(i=p.typography)!=null?i:s.typography;let C=f;return C!=null&&C.type!==We&&!c&&(C=P.jsx(We,$({component:"span"},w,{className:ye(b.label,w==null?void 0:w.className),children:C}))),P.jsxs(uae,$({className:ye(b.root,o),ownerState:_,ref:r},v,{children:[O.cloneElement(l,x),y?P.jsxs(hG,{direction:"row",alignItems:"center",children:[C,P.jsxs(cae,{ownerState:_,"aria-hidden":!0,className:b.asterisk,children:[" ","*"]})]}):C]}))}),pG=fae;function dae(e){return Be("MuiFormGroup",e)}Ge("MuiFormGroup",["root","row","error"]);const hae=["className","row"],pae=e=>{const{classes:t,row:r,error:n}=e;return Ve({root:["root",r&&"row",n&&"error"]},dae,t)},vae=le("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})(({ownerState:e})=>$({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),gae=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiFormGroup"}),{className:i,row:a=!1}=n,o=me(n,hae),s=Po(),l=Xs({props:n,muiFormControl:s,states:["error"]}),u=$({},n,{row:a,error:l.error}),c=pae(u);return P.jsx(vae,$({className:ye(c.root,i),ownerState:u,ref:r},o))}),vG=gae;function mae(e){return Be("MuiFormHelperText",e)}const yae=Ge("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),YR=yae;var XR;const xae=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Sae=e=>{const{classes:t,contained:r,size:n,disabled:i,error:a,filled:o,focused:s,required:l}=e,u={root:["root",i&&"disabled",a&&"error",n&&`size${xe(n)}`,r&&"contained",s&&"focused",o&&"filled",l&&"required"]};return Ve(u,mae,t)},bae=le("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${xe(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>$({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${YR.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${YR.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),_ae=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:o="p"}=n,s=me(n,xae),l=Po(),u=Xs({props:n,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=$({},n,{component:o,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=Sae(c);return P.jsx(bae,$({as:o,ownerState:c,className:ye(f.root,a),ref:r},s,{children:i===" "?XR||(XR=P.jsx("span",{className:"notranslate",children:"​"})):i}))}),wae=_ae;function Cae(e){return Be("MuiFormLabel",e)}const Tae=Ge("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Vh=Tae,Aae=["children","className","color","component","disabled","error","filled","focused","required"],Mae=e=>{const{classes:t,color:r,focused:n,disabled:i,error:a,filled:o,required:s}=e,l={root:["root",`color${xe(r)}`,i&&"disabled",a&&"error",o&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return Ve(l,Cae,t)},kae=le("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>$({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>$({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Vh.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Vh.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Vh.error}`]:{color:(e.vars||e).palette.error.main}})),Iae=le("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Vh.error}`]:{color:(e.vars||e).palette.error.main}})),Pae=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiFormLabel"}),{children:i,className:a,component:o="label"}=n,s=me(n,Aae),l=Po(),u=Xs({props:n,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=$({},n,{color:u.color||"primary",component:o,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=Mae(c);return P.jsxs(kae,$({as:o,ownerState:c,className:ye(f.root,a),ref:r},s,{children:[i,u.required&&P.jsxs(Iae,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),Dae=Pae,Rae=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function KC(e){return`scale(${e}, ${e**2})`}const Lae={entering:{opacity:1,transform:KC(1)},entered:{opacity:1,transform:"none"}},ZS=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),gG=O.forwardRef(function(t,r){const{addEndListener:n,appear:i=!0,children:a,easing:o,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:f,onExited:d,onExiting:h,style:p,timeout:v="auto",TransitionComponent:g=PM}=t,m=me(t,Rae),y=O.useRef(),x=O.useRef(),S=jf(),_=O.useRef(null),b=Mr(_,a.ref,r),w=L=>z=>{if(L){const V=_.current;z===void 0?L(V):L(V,z)}},C=w(c),A=w((L,z)=>{tG(L);const{duration:V,delay:N,easing:F}=Mf({style:p,timeout:v,easing:o},{mode:"enter"});let E;v==="auto"?(E=S.transitions.getAutoHeightDuration(L.clientHeight),x.current=E):E=V,L.style.transition=[S.transitions.create("opacity",{duration:E,delay:N}),S.transitions.create("transform",{duration:ZS?E:E*.666,delay:N,easing:F})].join(","),l&&l(L,z)}),T=w(u),M=w(h),k=w(L=>{const{duration:z,delay:V,easing:N}=Mf({style:p,timeout:v,easing:o},{mode:"exit"});let F;v==="auto"?(F=S.transitions.getAutoHeightDuration(L.clientHeight),x.current=F):F=z,L.style.transition=[S.transitions.create("opacity",{duration:F,delay:V}),S.transitions.create("transform",{duration:ZS?F:F*.666,delay:ZS?V:V||F*.333,easing:N})].join(","),L.style.opacity=0,L.style.transform=KC(.75),f&&f(L)}),I=w(d),D=L=>{v==="auto"&&(y.current=setTimeout(L,x.current||0)),n&&n(_.current,L)};return O.useEffect(()=>()=>{clearTimeout(y.current)},[]),P.jsx(g,$({appear:i,in:s,nodeRef:_,onEnter:A,onEntered:T,onEntering:C,onExit:k,onExited:I,onExiting:M,addEndListener:D,timeout:v==="auto"?null:v},m,{children:(L,z)=>O.cloneElement(a,$({style:$({opacity:0,transform:KC(.75),visibility:L==="exited"&&!s?"hidden":void 0},Lae[L],p,a.props.style),ref:b},z))}))});gG.muiSupportAuto=!0;const Eae=gG,Oae=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Nae=e=>{const{classes:t,disableUnderline:r}=e,i=Ve({root:["root",!r&&"underline"],input:["input"]},$ne,t);return $({},t,i)},zae=le(dx,{shouldForwardProp:e=>Ua(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...cx(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),$({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${_d.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${_d.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${_d.disabled}, .${_d.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${_d.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Bae=le(hx,{name:"MuiInput",slot:"Input",overridesResolver:fx})({}),mG=O.forwardRef(function(t,r){var n,i,a,o;const s=He({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:c,fullWidth:f=!1,inputComponent:d="input",multiline:h=!1,slotProps:p,slots:v={},type:g="text"}=s,m=me(s,Oae),y=Nae(s),S={root:{ownerState:{disableUnderline:l}}},_=p??c?kn(p??c,S):S,b=(n=(i=v.root)!=null?i:u.Root)!=null?n:zae,w=(a=(o=v.input)!=null?o:u.Input)!=null?a:Bae;return P.jsx(zM,$({slots:{root:b,input:w},slotProps:_,fullWidth:f,inputComponent:d,multiline:h,ref:r,type:g},m,{classes:y}))});mG.muiName="Input";const yG=mG;function $ae(e){return Be("MuiInputLabel",e)}Ge("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Fae=["disableAnimation","margin","shrink","variant","className"],Vae=e=>{const{classes:t,formControl:r,size:n,shrink:i,disableAnimation:a,variant:o,required:s}=e,l={root:["root",r&&"formControl",!a&&"animated",i&&"shrink",n&&n!=="normal"&&`size${xe(n)}`,o],asterisk:[s&&"asterisk"]},u=Ve(l,$ae,t);return $({},t,u)},Gae=le(Dae,{shouldForwardProp:e=>Ua(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Vh.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,t[r.variant]]}})(({theme:e,ownerState:t})=>$({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&$({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&$({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&$({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Hae=O.forwardRef(function(t,r){const n=He({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:a,className:o}=n,s=me(n,Fae),l=Po();let u=a;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=Xs({props:n,muiFormControl:l,states:["size","variant","required"]}),f=$({},n,{disableAnimation:i,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required}),d=Vae(f);return P.jsx(Gae,$({"data-shrink":u,ownerState:f,ref:r,className:ye(d.root,o)},s,{classes:d}))}),$M=Hae;function Wae(e){return Be("MuiLink",e)}const jae=Ge("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Uae=jae,xG={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},qae=e=>xG[e]||e,Yae=({theme:e,ownerState:t})=>{const r=qae(t.color),n=Af(e,`palette.${r}`,!1)||t.color,i=Af(e,`palette.${r}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:or(n,.4)},Xae=Yae,Zae=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Kae=e=>{const{classes:t,component:r,focusVisible:n,underline:i}=e,a={root:["root",`underline${xe(i)}`,r==="button"&&"button",n&&"focusVisible"]};return Ve(a,Wae,t)},Qae=le(We,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${xe(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>$({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&$({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:Xae({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Uae.focusVisible}`]:{outline:"auto"}})),Jae=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiLink"}),{className:i,color:a="primary",component:o="a",onBlur:s,onFocus:l,TypographyClasses:u,underline:c="always",variant:f="inherit",sx:d}=n,h=me(n,Zae),{isFocusVisibleRef:p,onBlur:v,onFocus:g,ref:m}=dM(),[y,x]=O.useState(!1),S=Mr(r,m),_=A=>{v(A),p.current===!1&&x(!1),s&&s(A)},b=A=>{g(A),p.current===!0&&x(!0),l&&l(A)},w=$({},n,{color:a,component:o,focusVisible:y,underline:c,variant:f}),C=Kae(w);return P.jsx(Qae,$({color:a,className:ye(C.root,i),classes:u,component:o,onBlur:_,onFocus:b,ref:S,ownerState:w,variant:f,sx:[...Object.keys(xG).includes(a)?[]:[{color:a}],...Array.isArray(d)?d:[d]]},h))}),on=Jae,eoe=O.createContext({}),Gh=eoe;function toe(e){return Be("MuiList",e)}Ge("MuiList",["root","padding","dense","subheader"]);const roe=["children","className","component","dense","disablePadding","subheader"],noe=e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return Ve({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},toe,t)},ioe=le("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>$({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),aoe=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiList"}),{children:i,className:a,component:o="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=n,c=me(n,roe),f=O.useMemo(()=>({dense:s}),[s]),d=$({},n,{component:o,dense:s,disablePadding:l}),h=noe(d);return P.jsx(Gh.Provider,{value:f,children:P.jsxs(ioe,$({as:o,className:ye(h.root,a),ref:r,ownerState:d},c,{children:[u,i]}))})}),SG=aoe;function ooe(e){return Be("MuiListItem",e)}const soe=Ge("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),kc=soe,loe=Ge("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),uoe=loe;function coe(e){return Be("MuiListItemSecondaryAction",e)}Ge("MuiListItemSecondaryAction",["root","disableGutters"]);const foe=["className"],doe=e=>{const{disableGutters:t,classes:r}=e;return Ve({root:["root",t&&"disableGutters"]},coe,r)},hoe=le("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})(({ownerState:e})=>$({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),bG=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=n,a=me(n,foe),o=O.useContext(Gh),s=$({},n,{disableGutters:o.disableGutters}),l=doe(s);return P.jsx(hoe,$({className:ye(l.root,i),ownerState:s,ref:r},a))});bG.muiName="ListItemSecondaryAction";const poe=bG,voe=["className"],goe=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],moe=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.alignItems==="flex-start"&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]},yoe=e=>{const{alignItems:t,button:r,classes:n,dense:i,disabled:a,disableGutters:o,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return Ve({root:["root",i&&"dense",!o&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",r&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},ooe,n)},xoe=le("div",{name:"MuiListItem",slot:"Root",overridesResolver:moe})(({theme:e,ownerState:t})=>$({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&$({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${uoe.root}`]:{paddingRight:48}},{[`&.${kc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${kc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:or(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${kc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:or(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${kc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${kc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:or(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:or(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Soe=le("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),boe=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:a=!1,button:o=!1,children:s,className:l,component:u,components:c={},componentsProps:f={},ContainerComponent:d="li",ContainerProps:{className:h}={},dense:p=!1,disabled:v=!1,disableGutters:g=!1,disablePadding:m=!1,divider:y=!1,focusVisibleClassName:x,secondaryAction:S,selected:_=!1,slotProps:b={},slots:w={}}=n,C=me(n.ContainerProps,voe),A=me(n,goe),T=O.useContext(Gh),M=O.useMemo(()=>({dense:p||T.dense||!1,alignItems:i,disableGutters:g}),[i,T.dense,p,g]),k=O.useRef(null);So(()=>{a&&k.current&&k.current.focus()},[a]);const I=O.Children.toArray(s),D=I.length&&zh(I[I.length-1],["ListItemSecondaryAction"]),L=$({},n,{alignItems:i,autoFocus:a,button:o,dense:M.dense,disabled:v,disableGutters:g,disablePadding:m,divider:y,hasSecondaryAction:D,selected:_}),z=yoe(L),V=Mr(k,r),N=w.root||c.Root||xoe,F=b.root||f.root||{},E=$({className:ye(z.root,F.className,l),disabled:v},A);let G=u||"li";return o&&(E.component=u||"div",E.focusVisibleClassName=ye(kc.focusVisible,x),G=Bu),D?(G=!E.component&&!u?"div":G,d==="li"&&(G==="li"?G="div":E.component==="li"&&(E.component="div")),P.jsx(Gh.Provider,{value:M,children:P.jsxs(Soe,$({as:d,className:ye(z.container,h),ref:V,ownerState:L},C,{children:[P.jsx(N,$({},F,!kf(N)&&{as:G,ownerState:$({},L,F.ownerState)},E,{children:I})),I.pop()]}))})):P.jsx(Gh.Provider,{value:M,children:P.jsxs(N,$({},F,{as:G,ref:V},!kf(N)&&{ownerState:$({},L,F.ownerState)},E,{children:[I,S&&P.jsx(poe,{children:S})]}))})}),nc=boe,_oe=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function KS(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function ZR(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function _G(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.indexOf(t.keys.join(""))===0}function Cd(e,t,r,n,i,a){let o=!1,s=i(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(o)return!1;o=!0}const l=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!_G(s,a)||l)s=i(e,s,r);else return s.focus(),!0}return!1}const woe=O.forwardRef(function(t,r){const{actions:n,autoFocus:i=!1,autoFocusItem:a=!1,children:o,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:f="selectedMenu"}=t,d=me(t,_oe),h=O.useRef(null),p=O.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});So(()=>{i&&h.current.focus()},[i]),O.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(x,S)=>{const _=!h.current.style.width;if(x.clientHeight{const S=h.current,_=x.key,b=ln(S).activeElement;if(_==="ArrowDown")x.preventDefault(),Cd(S,b,u,l,KS);else if(_==="ArrowUp")x.preventDefault(),Cd(S,b,u,l,ZR);else if(_==="Home")x.preventDefault(),Cd(S,null,u,l,KS);else if(_==="End")x.preventDefault(),Cd(S,null,u,l,ZR);else if(_.length===1){const w=p.current,C=_.toLowerCase(),A=performance.now();w.keys.length>0&&(A-w.lastTime>500?(w.keys=[],w.repeating=!0,w.previousKeyMatched=!0):w.repeating&&C!==w.keys[0]&&(w.repeating=!1)),w.lastTime=A,w.keys.push(C);const T=b&&!w.repeating&&_G(b,w);w.previousKeyMatched&&(T||Cd(S,b,!1,l,KS,w))?x.preventDefault():w.previousKeyMatched=!1}c&&c(x)},g=Mr(h,r);let m=-1;O.Children.forEach(o,(x,S)=>{if(!O.isValidElement(x)){m===S&&(m+=1,m>=o.length&&(m=-1));return}x.props.disabled||(f==="selectedMenu"&&x.props.selected||m===-1)&&(m=S),m===S&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(m+=1,m>=o.length&&(m=-1))});const y=O.Children.map(o,(x,S)=>{if(S===m){const _={};return a&&(_.autoFocus=!0),x.props.tabIndex===void 0&&f==="selectedMenu"&&(_.tabIndex=0),O.cloneElement(x,_)}return x});return P.jsx(SG,$({role:"menu",ref:g,className:s,onKeyDown:v,tabIndex:i?0:-1},d,{children:y}))}),Coe=woe;function Toe(e){return Be("MuiPopover",e)}Ge("MuiPopover",["root","paper"]);const Aoe=["onEntering"],Moe=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],koe=["slotProps"];function KR(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function QR(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function JR(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function QS(e){return typeof e=="function"?e():e}const Ioe=e=>{const{classes:t}=e;return Ve({root:["root"],paper:["paper"]},Toe,t)},Poe=le(lG,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wG=le(Os,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Doe=O.forwardRef(function(t,r){var n,i,a;const o=He({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:f="anchorEl",children:d,className:h,container:p,elevation:v=8,marginThreshold:g=16,open:m,PaperProps:y={},slots:x,slotProps:S,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:b=Eae,transitionDuration:w="auto",TransitionProps:{onEntering:C}={},disableScrollLock:A=!1}=o,T=me(o.TransitionProps,Aoe),M=me(o,Moe),k=(n=S==null?void 0:S.paper)!=null?n:y,I=O.useRef(),D=Mr(I,k.ref),L=$({},o,{anchorOrigin:u,anchorReference:f,elevation:v,marginThreshold:g,externalPaperSlotProps:k,transformOrigin:_,TransitionComponent:b,transitionDuration:w,TransitionProps:T}),z=Ioe(L),V=O.useCallback(()=>{if(f==="anchorPosition")return c;const de=QS(l),Pe=(de&&de.nodeType===1?de:ln(I.current).body).getBoundingClientRect();return{top:Pe.top+KR(Pe,u.vertical),left:Pe.left+QR(Pe,u.horizontal)}},[l,u.horizontal,u.vertical,c,f]),N=O.useCallback(de=>({vertical:KR(de,_.vertical),horizontal:QR(de,_.horizontal)}),[_.horizontal,_.vertical]),F=O.useCallback(de=>{const he={width:de.offsetWidth,height:de.offsetHeight},Pe=N(he);if(f==="none")return{top:null,left:null,transformOrigin:JR(Pe)};const Xe=V();let qe=Xe.top-Pe.vertical,ot=Xe.left-Pe.horizontal;const st=qe+he.height,kt=ot+he.width,$e=Na(QS(l)),It=$e.innerHeight-g,qt=$e.innerWidth-g;if(g!==null&&qeIt){const Pt=st-It;qe-=Pt,Pe.vertical+=Pt}if(g!==null&&otqt){const Pt=kt-qt;ot-=Pt,Pe.horizontal+=Pt}return{top:`${Math.round(qe)}px`,left:`${Math.round(ot)}px`,transformOrigin:JR(Pe)}},[l,f,V,N,g]),[E,G]=O.useState(m),j=O.useCallback(()=>{const de=I.current;if(!de)return;const he=F(de);he.top!==null&&(de.style.top=he.top),he.left!==null&&(de.style.left=he.left),de.style.transformOrigin=he.transformOrigin,G(!0)},[F]);O.useEffect(()=>(A&&window.addEventListener("scroll",j),()=>window.removeEventListener("scroll",j)),[l,A,j]);const B=(de,he)=>{C&&C(de,he),j()},U=()=>{G(!1)};O.useEffect(()=>{m&&j()}),O.useImperativeHandle(s,()=>m?{updatePosition:()=>{j()}}:null,[m,j]),O.useEffect(()=>{if(!m)return;const de=Sv(()=>{j()}),he=Na(l);return he.addEventListener("resize",de),()=>{de.clear(),he.removeEventListener("resize",de)}},[l,m,j]);let X=w;w==="auto"&&!b.muiSupportAuto&&(X=void 0);const W=p||(l?ln(QS(l)).body:void 0),ee=(i=x==null?void 0:x.root)!=null?i:Poe,te=(a=x==null?void 0:x.paper)!=null?a:wG,ie=za({elementType:te,externalSlotProps:$({},k,{style:E?k.style:$({},k.style,{opacity:0})}),additionalProps:{elevation:v,ref:D},ownerState:L,className:ye(z.paper,k==null?void 0:k.className)}),re=za({elementType:ee,externalSlotProps:(S==null?void 0:S.root)||{},externalForwardedProps:M,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:W,open:m},ownerState:L,className:ye(z.root,h)}),{slotProps:Q}=re,J=me(re,koe);return P.jsx(ee,$({},J,!kf(ee)&&{slotProps:Q,disableScrollLock:A},{children:P.jsx(b,$({appear:!0,in:m,onEntering:B,onExited:U,timeout:X},T,{children:P.jsx(te,$({},ie,{children:d}))}))}))}),CG=Doe;function Roe(e){return Be("MuiMenu",e)}Ge("MuiMenu",["root","paper","list"]);const Loe=["onEntering"],Eoe=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Ooe={vertical:"top",horizontal:"right"},Noe={vertical:"top",horizontal:"left"},zoe=e=>{const{classes:t}=e;return Ve({root:["root"],paper:["paper"],list:["list"]},Roe,t)},Boe=le(CG,{shouldForwardProp:e=>Ua(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$oe=le(wG,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Foe=le(Coe,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Voe=O.forwardRef(function(t,r){var n,i;const a=He({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:f,open:d,PaperProps:h={},PopoverClasses:p,transitionDuration:v="auto",TransitionProps:{onEntering:g}={},variant:m="selectedMenu",slots:y={},slotProps:x={}}=a,S=me(a.TransitionProps,Loe),_=me(a,Eoe),b=jf(),w=b.direction==="rtl",C=$({},a,{autoFocus:o,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:h,transitionDuration:v,TransitionProps:S,variant:m}),A=zoe(C),T=o&&!u&&d,M=O.useRef(null),k=(F,E)=>{M.current&&M.current.adjustStyleForScrollbar(F,b),g&&g(F,E)},I=F=>{F.key==="Tab"&&(F.preventDefault(),f&&f(F,"tabKeyDown"))};let D=-1;O.Children.map(s,(F,E)=>{O.isValidElement(F)&&(F.props.disabled||(m==="selectedMenu"&&F.props.selected||D===-1)&&(D=E))});const L=(n=y.paper)!=null?n:$oe,z=(i=x.paper)!=null?i:h,V=za({elementType:y.root,externalSlotProps:x.root,ownerState:C,className:[A.root,l]}),N=za({elementType:L,externalSlotProps:z,ownerState:C,className:A.paper});return P.jsx(Boe,$({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Ooe:Noe,slots:{paper:L,root:y.root},slotProps:{root:V,paper:N},open:d,ref:r,transitionDuration:v,TransitionProps:$({onEntering:k},S),ownerState:C},_,{classes:p,children:P.jsx(Foe,$({onKeyDown:I,actions:M,autoFocus:o&&(D===-1||u),autoFocusItem:T,variant:m},c,{className:ye(A.list,c.className),children:s}))}))}),Goe=Voe;function Hoe(e){return Be("MuiNativeSelect",e)}const Woe=Ge("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),FM=Woe,joe=["className","disabled","error","IconComponent","inputRef","variant"],Uoe=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:a,error:o}=e,s={select:["select",r,n&&"disabled",i&&"multiple",o&&"error"],icon:["icon",`icon${xe(r)}`,a&&"iconOpen",n&&"disabled"]};return Ve(s,Hoe,t)},TG=({ownerState:e,theme:t})=>$({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":$({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${FM.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),qoe=le("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ua,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${FM.multiple}`]:t.multiple}]}})(TG),AG=({ownerState:e,theme:t})=>$({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${FM.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),Yoe=le("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${xe(r.variant)}`],r.open&&t.iconOpen]}})(AG),Xoe=O.forwardRef(function(t,r){const{className:n,disabled:i,error:a,IconComponent:o,inputRef:s,variant:l="standard"}=t,u=me(t,joe),c=$({},t,{disabled:i,variant:l,error:a}),f=Uoe(c);return P.jsxs(O.Fragment,{children:[P.jsx(qoe,$({ownerState:c,className:ye(f.select,n),disabled:i,ref:s||r},u)),t.multiple?null:P.jsx(Yoe,{as:o,ownerState:c,className:f.icon})]})}),Zoe=Xoe;var eL;const Koe=["children","classes","className","label","notched"],Qoe=le("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%"}),Joe=le("legend")(({ownerState:e,theme:t})=>$({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&$({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function ese(e){const{className:t,label:r,notched:n}=e,i=me(e,Koe),a=r!=null&&r!=="",o=$({},e,{notched:n,withLabel:a});return P.jsx(Qoe,$({"aria-hidden":!0,className:t,ownerState:o},i,{children:P.jsx(Joe,{ownerState:o,children:a?P.jsx("span",{children:r}):eL||(eL=P.jsx("span",{className:"notranslate",children:"​"}))})}))}const tse=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],rse=e=>{const{classes:t}=e,n=Ve({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Vne,t);return $({},t,n)},nse=le(dx,{shouldForwardProp:e=>Ua(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:cx})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return $({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${No.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${No.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${No.focused} .${No.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${No.error} .${No.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${No.disabled} .${No.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&$({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),ise=le(ese,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),ase=le(hx,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:fx})(({theme:e,ownerState:t})=>$({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),MG=O.forwardRef(function(t,r){var n,i,a,o,s;const l=He({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:f="input",label:d,multiline:h=!1,notched:p,slots:v={},type:g="text"}=l,m=me(l,tse),y=rse(l),x=Po(),S=Xs({props:l,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=$({},l,{color:S.color||"primary",disabled:S.disabled,error:S.error,focused:S.focused,formControl:x,fullWidth:c,hiddenLabel:S.hiddenLabel,multiline:h,size:S.size,type:g}),b=(n=(i=v.root)!=null?i:u.Root)!=null?n:nse,w=(a=(o=v.input)!=null?o:u.Input)!=null?a:ase;return P.jsx(zM,$({slots:{root:b,input:w},renderSuffix:C=>P.jsx(ise,{ownerState:_,className:y.notchedOutline,label:d!=null&&d!==""&&S.required?s||(s=P.jsxs(O.Fragment,{children:[d," ","*"]})):d,notched:typeof p<"u"?p:!!(C.startAdornment||C.filled||C.focused)}),fullWidth:c,inputComponent:f,multiline:h,ref:r,type:g},m,{classes:$({},y,{notchedOutline:null})}))});MG.muiName="Input";const kG=MG;function ose(e){return Be("MuiSelect",e)}const sse=Ge("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Td=sse;var tL;const lse=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],use=le("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Td.select}`]:t.select},{[`&.${Td.select}`]:t[r.variant]},{[`&.${Td.error}`]:t.error},{[`&.${Td.multiple}`]:t.multiple}]}})(TG,{[`&.${Td.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),cse=le("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${xe(r.variant)}`],r.open&&t.iconOpen]}})(AG),fse=le("input",{shouldForwardProp:e=>dte(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function rL(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function dse(e){return e==null||typeof e=="string"&&!e.trim()}const hse=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:a,error:o}=e,s={select:["select",r,n&&"disabled",i&&"multiple",o&&"error"],icon:["icon",`icon${xe(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Ve(s,ose,t)},pse=O.forwardRef(function(t,r){var n;const{"aria-describedby":i,"aria-label":a,autoFocus:o,autoWidth:s,children:l,className:u,defaultOpen:c,defaultValue:f,disabled:d,displayEmpty:h,error:p=!1,IconComponent:v,inputRef:g,labelId:m,MenuProps:y={},multiple:x,name:S,onBlur:_,onChange:b,onClose:w,onFocus:C,onOpen:A,open:T,readOnly:M,renderValue:k,SelectDisplayProps:I={},tabIndex:D,value:L,variant:z="standard"}=t,V=me(t,lse),[N,F]=Ip({controlled:L,default:f,name:"Select"}),[E,G]=Ip({controlled:T,default:c,name:"Select"}),j=O.useRef(null),B=O.useRef(null),[U,X]=O.useState(null),{current:W}=O.useRef(T!=null),[ee,te]=O.useState(),ie=Mr(r,g),re=O.useCallback(Ae=>{B.current=Ae,Ae&&X(Ae)},[]),Q=U==null?void 0:U.parentNode;O.useImperativeHandle(ie,()=>({focus:()=>{B.current.focus()},node:j.current,value:N}),[N]),O.useEffect(()=>{c&&E&&U&&!W&&(te(s?null:Q.clientWidth),B.current.focus())},[U,s]),O.useEffect(()=>{o&&B.current.focus()},[o]),O.useEffect(()=>{if(!m)return;const Ae=ln(B.current).getElementById(m);if(Ae){const ct=()=>{getSelection().isCollapsed&&B.current.focus()};return Ae.addEventListener("click",ct),()=>{Ae.removeEventListener("click",ct)}}},[m]);const J=(Ae,ct)=>{Ae?A&&A(ct):w&&w(ct),W||(te(s?null:Q.clientWidth),G(Ae))},de=Ae=>{Ae.button===0&&(Ae.preventDefault(),B.current.focus(),J(!0,Ae))},he=Ae=>{J(!1,Ae)},Pe=O.Children.toArray(l),Xe=Ae=>{const ct=Pe.find(Rt=>Rt.props.value===Ae.target.value);ct!==void 0&&(F(ct.props.value),b&&b(Ae,ct))},qe=Ae=>ct=>{let Rt;if(ct.currentTarget.hasAttribute("tabindex")){if(x){Rt=Array.isArray(N)?N.slice():[];const ve=N.indexOf(Ae.props.value);ve===-1?Rt.push(Ae.props.value):Rt.splice(ve,1)}else Rt=Ae.props.value;if(Ae.props.onClick&&Ae.props.onClick(ct),N!==Rt&&(F(Rt),b)){const ve=ct.nativeEvent||ct,De=new ve.constructor(ve.type,ve);Object.defineProperty(De,"target",{writable:!0,value:{value:Rt,name:S}}),b(De,Ae)}x||J(!1,ct)}},ot=Ae=>{M||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Ae.key)!==-1&&(Ae.preventDefault(),J(!0,Ae))},st=U!==null&&E,kt=Ae=>{!st&&_&&(Object.defineProperty(Ae,"target",{writable:!0,value:{value:N,name:S}}),_(Ae))};delete V["aria-invalid"];let $e,It;const qt=[];let Pt=!1;(Ky({value:N})||h)&&(k?$e=k(N):Pt=!0);const K=Pe.map(Ae=>{if(!O.isValidElement(Ae))return null;let ct;if(x){if(!Array.isArray(N))throw new Error(Es(2));ct=N.some(Rt=>rL(Rt,Ae.props.value)),ct&&Pt&&qt.push(Ae.props.children)}else ct=rL(N,Ae.props.value),ct&&Pt&&(It=Ae.props.children);return O.cloneElement(Ae,{"aria-selected":ct?"true":"false",onClick:qe(Ae),onKeyUp:Rt=>{Rt.key===" "&&Rt.preventDefault(),Ae.props.onKeyUp&&Ae.props.onKeyUp(Rt)},role:"option",selected:ct,value:void 0,"data-value":Ae.props.value})});Pt&&(x?qt.length===0?$e=null:$e=qt.reduce((Ae,ct,Rt)=>(Ae.push(ct),Rt{const{classes:t}=e;return t},VM={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ua(e)&&e!=="variant",slot:"Root"},xse=le(yG,VM)(""),Sse=le(kG,VM)(""),bse=le(fG,VM)(""),IG=O.forwardRef(function(t,r){const n=He({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:o={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=jne,id:f,input:d,inputProps:h,label:p,labelId:v,MenuProps:g,multiple:m=!1,native:y=!1,onClose:x,onOpen:S,open:_,renderValue:b,SelectDisplayProps:w,variant:C="outlined"}=n,A=me(n,gse),T=y?Zoe:vse,M=Po(),k=Xs({props:n,muiFormControl:M,states:["variant","error"]}),I=k.variant||C,D=$({},n,{variant:I,classes:o}),L=yse(D),z=me(L,mse),V=d||{standard:P.jsx(xse,{ownerState:D}),outlined:P.jsx(Sse,{label:p,ownerState:D}),filled:P.jsx(bse,{ownerState:D})}[I],N=Mr(r,V.ref);return P.jsx(O.Fragment,{children:O.cloneElement(V,$({inputComponent:T,inputProps:$({children:a,error:k.error,IconComponent:c,variant:I,type:void 0,multiple:m},y?{id:f}:{autoWidth:i,defaultOpen:l,displayEmpty:u,labelId:v,MenuProps:g,onClose:x,onOpen:S,open:_,renderValue:b,SelectDisplayProps:$({id:f},w)},h,{classes:h?kn(z,h.classes):z},d?d.props.inputProps:{})},m&&y&&I==="outlined"?{notched:!0}:{},{ref:N,className:ye(V.props.className,s,L.root)},!d&&{variant:I},A))})});IG.muiName="Select";const PG=IG;function _se(e){return Be("MuiSwitch",e)}const wse=Ge("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),en=wse,Cse=["className","color","edge","size","sx"],Tse=e=>{const{classes:t,edge:r,size:n,color:i,checked:a,disabled:o}=e,s={root:["root",r&&`edge${xe(r)}`,`size${xe(n)}`],switchBase:["switchBase",`color${xe(i)}`,a&&"checked",o&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Ve(s,_se,t);return $({},t,l)},Ase=le("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${xe(r.edge)}`],t[`size${xe(r.size)}`]]}})(({ownerState:e})=>$({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${en.thumb}`]:{width:16,height:16},[`& .${en.switchBase}`]:{padding:4,[`&.${en.checked}`]:{transform:"translateX(16px)"}}})),Mse=le(sG,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${en.input}`]:t.input},r.color!=="default"&&t[`color${xe(r.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${en.checked}`]:{transform:"translateX(20px)"},[`&.${en.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${en.checked} + .${en.track}`]:{opacity:.5},[`&.${en.disabled} + .${en.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${en.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>$({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:or(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${en.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:or(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${en.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?Ep(e.palette[t.color].main,.62):Lp(e.palette[t.color].main,.55)}`}},[`&.${en.checked} + .${en.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),kse=le("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),Ise=le("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),Pse=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiSwitch"}),{className:i,color:a="primary",edge:o=!1,size:s="medium",sx:l}=n,u=me(n,Cse),c=$({},n,{color:a,edge:o,size:s}),f=Tse(c),d=P.jsx(Ise,{className:f.thumb,ownerState:c});return P.jsxs(Ase,{className:ye(f.root,i),sx:l,ownerState:c,children:[P.jsx(Mse,$({type:"checkbox",icon:d,checkedIcon:d,ref:r,ownerState:c},u,{classes:$({},f,{root:f.switchBase})})),P.jsx(kse,{className:f.track,ownerState:c})]})}),Dse=Pse;function Rse(e){return Be("MuiTab",e)}const Lse=Ge("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),tl=Lse,Ese=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Ose=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:i,icon:a,label:o,selected:s,disabled:l}=e,u={root:["root",a&&o&&"labelIcon",`textColor${xe(r)}`,n&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Ve(u,Rse,t)},Nse=le(Bu,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${xe(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>$({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${tl.iconWrapper}`]:$({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${tl.selected}`]:{opacity:1},[`&.${tl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${tl.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${tl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${tl.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${tl.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),zse=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiTab"}),{className:i,disabled:a=!1,disableFocusRipple:o=!1,fullWidth:s,icon:l,iconPosition:u="top",indicator:c,label:f,onChange:d,onClick:h,onFocus:p,selected:v,selectionFollowsFocus:g,textColor:m="inherit",value:y,wrapped:x=!1}=n,S=me(n,Ese),_=$({},n,{disabled:a,disableFocusRipple:o,selected:v,icon:!!l,iconPosition:u,label:!!f,fullWidth:s,textColor:m,wrapped:x}),b=Ose(_),w=l&&f&&O.isValidElement(l)?O.cloneElement(l,{className:ye(b.iconWrapper,l.props.className)}):l,C=T=>{!v&&d&&d(T,y),h&&h(T)},A=T=>{g&&!v&&d&&d(T,y),p&&p(T)};return P.jsxs(Nse,$({focusRipple:!o,className:ye(b.root,i),ref:r,role:"tab","aria-selected":v,disabled:a,onClick:C,onFocus:A,ownerState:_,tabIndex:v?0:-1},S,{children:[u==="top"||u==="start"?P.jsxs(O.Fragment,{children:[w,f]}):P.jsxs(O.Fragment,{children:[f,w]}),c]}))}),Bse=zse,$se=O.createContext(),DG=$se;function Fse(e){return Be("MuiTable",e)}Ge("MuiTable",["root","stickyHeader"]);const Vse=["className","component","padding","size","stickyHeader"],Gse=e=>{const{classes:t,stickyHeader:r}=e;return Ve({root:["root",r&&"stickyHeader"]},Fse,t)},Hse=le("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>$({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":$({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),nL="table",Wse=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiTable"}),{className:i,component:a=nL,padding:o="normal",size:s="medium",stickyHeader:l=!1}=n,u=me(n,Vse),c=$({},n,{component:a,padding:o,size:s,stickyHeader:l}),f=Gse(c),d=O.useMemo(()=>({padding:o,size:s,stickyHeader:l}),[o,s,l]);return P.jsx(DG.Provider,{value:d,children:P.jsx(Hse,$({as:a,role:a===nL?null:"table",ref:r,className:ye(f.root,i),ownerState:c},u))})}),RG=Wse,jse=O.createContext(),px=jse;function Use(e){return Be("MuiTableBody",e)}Ge("MuiTableBody",["root"]);const qse=["className","component"],Yse=e=>{const{classes:t}=e;return Ve({root:["root"]},Use,t)},Xse=le("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Zse={variant:"body"},iL="tbody",Kse=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiTableBody"}),{className:i,component:a=iL}=n,o=me(n,qse),s=$({},n,{component:a}),l=Yse(s);return P.jsx(px.Provider,{value:Zse,children:P.jsx(Xse,$({className:ye(l.root,i),as:a,ref:r,role:a===iL?null:"rowgroup",ownerState:s},o))})}),LG=Kse;function Qse(e){return Be("MuiTableCell",e)}const Jse=Ge("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),ele=Jse,tle=["align","className","component","padding","scope","size","sortDirection","variant"],rle=e=>{const{classes:t,variant:r,align:n,padding:i,size:a,stickyHeader:o}=e,s={root:["root",r,o&&"stickyHeader",n!=="inherit"&&`align${xe(n)}`,i!=="normal"&&`padding${xe(i)}`,`size${xe(a)}`]};return Ve(s,Qse,t)},nle=le("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${xe(r.size)}`],r.padding!=="normal"&&t[`padding${xe(r.padding)}`],r.align!=="inherit"&&t[`align${xe(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>$({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?Ep(or(e.palette.divider,1),.88):Lp(or(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${ele.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),ile=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:o,padding:s,scope:l,size:u,sortDirection:c,variant:f}=n,d=me(n,tle),h=O.useContext(DG),p=O.useContext(px),v=p&&p.variant==="head";let g;o?g=o:g=v?"th":"td";let m=l;g==="td"?m=void 0:!m&&v&&(m="col");const y=f||p&&p.variant,x=$({},n,{align:i,component:g,padding:s||(h&&h.padding?h.padding:"normal"),size:u||(h&&h.size?h.size:"medium"),sortDirection:c,stickyHeader:y==="head"&&h&&h.stickyHeader,variant:y}),S=rle(x);let _=null;return c&&(_=c==="asc"?"ascending":"descending"),P.jsx(nle,$({as:g,ref:r,className:ye(S.root,a),"aria-sort":_,scope:m,ownerState:x},d))}),Vl=ile;function ale(e){return Be("MuiTableContainer",e)}Ge("MuiTableContainer",["root"]);const ole=["className","component"],sle=e=>{const{classes:t}=e;return Ve({root:["root"]},ale,t)},lle=le("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),ule=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiTableContainer"}),{className:i,component:a="div"}=n,o=me(n,ole),s=$({},n,{component:a}),l=sle(s);return P.jsx(lle,$({ref:r,as:a,className:ye(l.root,i),ownerState:s},o))}),EG=ule;function cle(e){return Be("MuiTableHead",e)}Ge("MuiTableHead",["root"]);const fle=["className","component"],dle=e=>{const{classes:t}=e;return Ve({root:["root"]},cle,t)},hle=le("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),ple={variant:"head"},aL="thead",vle=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiTableHead"}),{className:i,component:a=aL}=n,o=me(n,fle),s=$({},n,{component:a}),l=dle(s);return P.jsx(px.Provider,{value:ple,children:P.jsx(hle,$({as:a,className:ye(l.root,i),ref:r,role:a===aL?null:"rowgroup",ownerState:s},o))})}),OG=vle;function gle(e){return Be("MuiToolbar",e)}Ge("MuiToolbar",["root","gutters","regular","dense"]);const mle=["className","component","disableGutters","variant"],yle=e=>{const{classes:t,disableGutters:r,variant:n}=e;return Ve({root:["root",!r&&"gutters",n]},gle,t)},xle=le("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(({theme:e,ownerState:t})=>$({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),Sle=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiToolbar"}),{className:i,component:a="div",disableGutters:o=!1,variant:s="regular"}=n,l=me(n,mle),u=$({},n,{component:a,disableGutters:o,variant:s}),c=yle(u);return P.jsx(xle,$({as:a,className:ye(c.root,i),ref:r,ownerState:u},l))}),ble=Sle,_le=Mi(P.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),wle=Mi(P.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Cle(e){return Be("MuiTableRow",e)}const Tle=Ge("MuiTableRow",["root","selected","hover","head","footer"]),oL=Tle,Ale=["className","component","hover","selected"],Mle=e=>{const{classes:t,selected:r,hover:n,head:i,footer:a}=e;return Ve({root:["root",r&&"selected",n&&"hover",i&&"head",a&&"footer"]},Cle,t)},kle=le("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${oL.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${oL.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:or(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:or(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),sL="tr",Ile=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiTableRow"}),{className:i,component:a=sL,hover:o=!1,selected:s=!1}=n,l=me(n,Ale),u=O.useContext(px),c=$({},n,{component:a,hover:o,selected:s,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),f=Mle(c);return P.jsx(kle,$({as:a,ref:r,className:ye(f.root,i),role:a===sL?null:"row",ownerState:c},l))}),Qy=Ile;function Ple(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Dle(e,t,r,n={},i=()=>{}){const{ease:a=Ple,duration:o=300}=n;let s=null;const l=t[e];let u=!1;const c=()=>{u=!0},f=d=>{if(u){i(new Error("Animation cancelled"));return}s===null&&(s=d);const h=Math.min(1,(d-s)/o);if(t[e]=a(h)*(r-l)+l,h>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(f)};return l===r?(i(new Error("Element already at target position")),c):(requestAnimationFrame(f),c)}const Rle=["onChange"],Lle={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Ele(e){const{onChange:t}=e,r=me(e,Rle),n=O.useRef(),i=O.useRef(null),a=()=>{n.current=i.current.offsetHeight-i.current.clientHeight};return So(()=>{const o=Sv(()=>{const l=n.current;a(),l!==n.current&&t(n.current)}),s=Na(i.current);return s.addEventListener("resize",o),()=>{o.clear(),s.removeEventListener("resize",o)}},[t]),O.useEffect(()=>{a(),t(n.current)},[t]),P.jsx("div",$({style:Lle,ref:i},r))}function Ole(e){return Be("MuiTabScrollButton",e)}const Nle=Ge("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),zle=Nle,Ble=["className","slots","slotProps","direction","orientation","disabled"],$le=e=>{const{classes:t,orientation:r,disabled:n}=e;return Ve({root:["root",r,n&&"disabled"]},Ole,t)},Fle=le(Bu,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>$({width:40,flexShrink:0,opacity:.8,[`&.${zle.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Vle=O.forwardRef(function(t,r){var n,i;const a=He({props:t,name:"MuiTabScrollButton"}),{className:o,slots:s={},slotProps:l={},direction:u}=a,c=me(a,Ble),d=jf().direction==="rtl",h=$({isRtl:d},a),p=$le(h),v=(n=s.StartScrollButtonIcon)!=null?n:_le,g=(i=s.EndScrollButtonIcon)!=null?i:wle,m=za({elementType:v,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),y=za({elementType:g,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return P.jsx(Fle,$({component:"div",className:ye(p.root,o),ref:r,role:null,ownerState:h,tabIndex:null},c,{children:u==="left"?P.jsx(v,$({},m)):P.jsx(g,$({},y))}))}),Gle=Vle;function Hle(e){return Be("MuiTabs",e)}const Wle=Ge("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),JS=Wle,jle=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],lL=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,uL=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,xg=(e,t,r)=>{let n=!1,i=r(e,t);for(;i;){if(i===e.firstChild){if(n)return;n=!0}const a=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||a)i=r(e,i);else{i.focus();return}}},Ule=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:i,scrollableY:a,centered:o,scrollButtonsHideMobile:s,classes:l}=e;return Ve({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",i&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",o&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},Hle,l)},qle=le("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${JS.scrollButtons}`]:t.scrollButtons},{[`& .${JS.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>$({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${JS.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),Yle=le("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})(({ownerState:e})=>$({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Xle=le("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})(({ownerState:e})=>$({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),Zle=le("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>$({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),Kle=le(Ele)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),cL={},Qle=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiTabs"}),i=jf(),a=i.direction==="rtl",{"aria-label":o,"aria-labelledby":s,action:l,centered:u=!1,children:c,className:f,component:d="div",allowScrollButtonsMobile:h=!1,indicatorColor:p="primary",onChange:v,orientation:g="horizontal",ScrollButtonComponent:m=Gle,scrollButtons:y="auto",selectionFollowsFocus:x,slots:S={},slotProps:_={},TabIndicatorProps:b={},TabScrollButtonProps:w={},textColor:C="primary",value:A,variant:T="standard",visibleScrollbar:M=!1}=n,k=me(n,jle),I=T==="scrollable",D=g==="vertical",L=D?"scrollTop":"scrollLeft",z=D?"top":"left",V=D?"bottom":"right",N=D?"clientHeight":"clientWidth",F=D?"height":"width",E=$({},n,{component:d,allowScrollButtonsMobile:h,indicatorColor:p,orientation:g,vertical:D,scrollButtons:y,textColor:C,variant:T,visibleScrollbar:M,fixed:!I,hideScrollbar:I&&!M,scrollableX:I&&!D,scrollableY:I&&D,centered:u&&!I,scrollButtonsHideMobile:!h}),G=Ule(E),j=za({elementType:S.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:E}),B=za({elementType:S.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:E}),[U,X]=O.useState(!1),[W,ee]=O.useState(cL),[te,ie]=O.useState(!1),[re,Q]=O.useState(!1),[J,de]=O.useState(!1),[he,Pe]=O.useState({overflow:"hidden",scrollbarWidth:0}),Xe=new Map,qe=O.useRef(null),ot=O.useRef(null),st=()=>{const ve=qe.current;let De;if(ve){const yt=ve.getBoundingClientRect();De={clientWidth:ve.clientWidth,scrollLeft:ve.scrollLeft,scrollTop:ve.scrollTop,scrollLeftNormalized:oQ(ve,i.direction),scrollWidth:ve.scrollWidth,top:yt.top,bottom:yt.bottom,left:yt.left,right:yt.right}}let Ze;if(ve&&A!==!1){const yt=ot.current.children;if(yt.length>0){const Fr=yt[Xe.get(A)];Ze=Fr?Fr.getBoundingClientRect():null}}return{tabsMeta:De,tabMeta:Ze}},kt=_a(()=>{const{tabsMeta:ve,tabMeta:De}=st();let Ze=0,yt;if(D)yt="top",De&&ve&&(Ze=De.top-ve.top+ve.scrollTop);else if(yt=a?"right":"left",De&&ve){const Eo=a?ve.scrollLeftNormalized+ve.clientWidth-ve.scrollWidth:ve.scrollLeft;Ze=(a?-1:1)*(De[yt]-ve[yt]+Eo)}const Fr={[yt]:Ze,[F]:De?De[F]:0};if(isNaN(W[yt])||isNaN(W[F]))ee(Fr);else{const Eo=Math.abs(W[yt]-Fr[yt]),Xv=Math.abs(W[F]-Fr[F]);(Eo>=1||Xv>=1)&&ee(Fr)}}),$e=(ve,{animation:De=!0}={})=>{De?Dle(L,qe.current,ve,{duration:i.transitions.duration.standard}):qe.current[L]=ve},It=ve=>{let De=qe.current[L];D?De+=ve:(De+=ve*(a?-1:1),De*=a&&TV()==="reverse"?-1:1),$e(De)},qt=()=>{const ve=qe.current[N];let De=0;const Ze=Array.from(ot.current.children);for(let yt=0;ytve){yt===0&&(De=ve);break}De+=Fr[N]}return De},Pt=()=>{It(-1*qt())},K=()=>{It(qt())},ue=O.useCallback(ve=>{Pe({overflow:null,scrollbarWidth:ve})},[]),Re=()=>{const ve={};ve.scrollbarSizeListener=I?P.jsx(Kle,{onChange:ue,className:ye(G.scrollableX,G.hideScrollbar)}):null;const Ze=I&&(y==="auto"&&(te||re)||y===!0);return ve.scrollButtonStart=Ze?P.jsx(m,$({slots:{StartScrollButtonIcon:S.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:j},orientation:g,direction:a?"right":"left",onClick:Pt,disabled:!te},w,{className:ye(G.scrollButtons,w.className)})):null,ve.scrollButtonEnd=Ze?P.jsx(m,$({slots:{EndScrollButtonIcon:S.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:B},orientation:g,direction:a?"left":"right",onClick:K,disabled:!re},w,{className:ye(G.scrollButtons,w.className)})):null,ve},Ce=_a(ve=>{const{tabsMeta:De,tabMeta:Ze}=st();if(!(!Ze||!De)){if(Ze[z]De[V]){const yt=De[L]+(Ze[V]-De[V]);$e(yt,{animation:ve})}}}),pe=_a(()=>{I&&y!==!1&&de(!J)});O.useEffect(()=>{const ve=Sv(()=>{qe.current&&kt()}),De=Na(qe.current);De.addEventListener("resize",ve);let Ze;return typeof ResizeObserver<"u"&&(Ze=new ResizeObserver(ve),Array.from(ot.current.children).forEach(yt=>{Ze.observe(yt)})),()=>{ve.clear(),De.removeEventListener("resize",ve),Ze&&Ze.disconnect()}},[kt]),O.useEffect(()=>{const ve=Array.from(ot.current.children),De=ve.length;if(typeof IntersectionObserver<"u"&&De>0&&I&&y!==!1){const Ze=ve[0],yt=ve[De-1],Fr={root:qe.current,threshold:.99},Eo=sS=>{ie(!sS[0].isIntersecting)},Xv=new IntersectionObserver(Eo,Fr);Xv.observe(Ze);const oq=sS=>{Q(!sS[0].isIntersecting)},wP=new IntersectionObserver(oq,Fr);return wP.observe(yt),()=>{Xv.disconnect(),wP.disconnect()}}},[I,y,J,c==null?void 0:c.length]),O.useEffect(()=>{X(!0)},[]),O.useEffect(()=>{kt()}),O.useEffect(()=>{Ce(cL!==W)},[Ce,W]),O.useImperativeHandle(l,()=>({updateIndicator:kt,updateScrollButtons:pe}),[kt,pe]);const Vt=P.jsx(Zle,$({},b,{className:ye(G.indicator,b.className),ownerState:E,style:$({},W,b.style)}));let br=0;const Ae=O.Children.map(c,ve=>{if(!O.isValidElement(ve))return null;const De=ve.props.value===void 0?br:ve.props.value;Xe.set(De,br);const Ze=De===A;return br+=1,O.cloneElement(ve,$({fullWidth:T==="fullWidth",indicator:Ze&&!U&&Vt,selected:Ze,selectionFollowsFocus:x,onChange:v,textColor:C,value:De},br===1&&A===!1&&!ve.props.tabIndex?{tabIndex:0}:{}))}),ct=ve=>{const De=ot.current,Ze=ln(De).activeElement;if(Ze.getAttribute("role")!=="tab")return;let Fr=g==="horizontal"?"ArrowLeft":"ArrowUp",Eo=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&a&&(Fr="ArrowRight",Eo="ArrowLeft"),ve.key){case Fr:ve.preventDefault(),xg(De,Ze,uL);break;case Eo:ve.preventDefault(),xg(De,Ze,lL);break;case"Home":ve.preventDefault(),xg(De,null,lL);break;case"End":ve.preventDefault(),xg(De,null,uL);break}},Rt=Re();return P.jsxs(qle,$({className:ye(G.root,f),ownerState:E,ref:r,as:d},k,{children:[Rt.scrollButtonStart,Rt.scrollbarSizeListener,P.jsxs(Yle,{className:G.scroller,ownerState:E,style:{overflow:he.overflow,[D?`margin${a?"Left":"Right"}`:"marginBottom"]:M?void 0:-he.scrollbarWidth},ref:qe,children:[P.jsx(Xle,{"aria-label":o,"aria-labelledby":s,"aria-orientation":g==="vertical"?"vertical":null,className:G.flexContainer,ownerState:E,onKeyDown:ct,ref:ot,role:"tablist",children:Ae}),U&&Vt]}),Rt.scrollButtonEnd]}))}),Jle=Qle;function eue(e){return Be("MuiTextField",e)}Ge("MuiTextField",["root"]);const tue=["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"],rue={standard:yG,filled:fG,outlined:kG},nue=e=>{const{classes:t}=e;return Ve({root:["root"]},eue,t)},iue=le(dG,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),aue=O.forwardRef(function(t,r){const n=He({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:a=!1,children:o,className:s,color:l="primary",defaultValue:u,disabled:c=!1,error:f=!1,FormHelperTextProps:d,fullWidth:h=!1,helperText:p,id:v,InputLabelProps:g,inputProps:m,InputProps:y,inputRef:x,label:S,maxRows:_,minRows:b,multiline:w=!1,name:C,onBlur:A,onChange:T,onFocus:M,placeholder:k,required:I=!1,rows:D,select:L=!1,SelectProps:z,type:V,value:N,variant:F="outlined"}=n,E=me(n,tue),G=$({},n,{autoFocus:a,color:l,disabled:c,error:f,fullWidth:h,multiline:w,required:I,select:L,variant:F}),j=nue(G),B={};F==="outlined"&&(g&&typeof g.shrink<"u"&&(B.notched=g.shrink),B.label=S),L&&((!z||!z.native)&&(B.id=void 0),B["aria-describedby"]=void 0);const U=wV(v),X=p&&U?`${U}-helper-text`:void 0,W=S&&U?`${U}-label`:void 0,ee=rue[F],te=P.jsx(ee,$({"aria-describedby":X,autoComplete:i,autoFocus:a,defaultValue:u,fullWidth:h,multiline:w,name:C,rows:D,maxRows:_,minRows:b,type:V,value:N,id:U,inputRef:x,onBlur:A,onChange:T,onFocus:M,placeholder:k,inputProps:m},B,y));return P.jsxs(iue,$({className:ye(j.root,s),disabled:c,error:f,fullWidth:h,ref:r,required:I,color:l,variant:F,ownerState:G},E,{children:[S!=null&&S!==""&&P.jsx($M,$({htmlFor:U,id:W},g,{children:S})),L?P.jsx(PG,$({"aria-describedby":X,id:U,labelId:W,value:N,input:te},z,{children:o})):te,p&&P.jsx(wae,$({id:X},d,{children:p}))]}))}),wa=aue;var GM={},NG={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(NG);var $u=NG.exports,eb={};const oue=lq(bte);var fL;function Fu(){return fL||(fL=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=oue}(eb)),eb}var sue=$u;Object.defineProperty(GM,"__esModule",{value:!0});var zG=GM.default=void 0,lue=sue(Fu()),uue=P,cue=(0,lue.default)((0,uue.jsx)("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12s-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6c3.31 0 6 2.69 6 6s-2.69 6-6 6z"}),"Brightness4");zG=GM.default=cue;var HM={},fue=$u;Object.defineProperty(HM,"__esModule",{value:!0});var BG=HM.default=void 0,due=fue(Fu()),hue=P,pue=(0,due.default)((0,hue.jsx)("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zm0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4z"}),"Brightness7");BG=HM.default=pue;const Si={DARK:"dark",LIGHT:"light"},$G=localStorage.theme===Si.DARK||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?Si.DARK:Si.LIGHT,Zs=rM,vue=yV;function Kl(e){const t=vue();return O.useCallback(r=>{t(e(r))},[e,t])}const gue={isDarkMode:!1},FG=ci({name:"theme",initialState:gue,reducers:{setIsDarkMode:(e,{payload:t})=>{e.isDarkMode=t}}}),mue=FG.actions,VG=FG.reducer;function GG(){const e=Zs(({theme:{isDarkMode:n}})=>n),t=Kl(mue.setIsDarkMode);O.useEffect(()=>{t($G===Si.DARK)},[]);const r=()=>{localStorage.theme=e?Si.LIGHT:Si.DARK,t(!e)};return P.jsx(Cv,{color:"inherit",onClick:r,children:e?P.jsx(BG,{}):P.jsx(zG,{})})}const WM=e=>kM({palette:{mode:e,primary:{main:"#15803d"},success:{main:"#00C853"}},components:{MuiCssBaseline:{styleOverrides:{":root":{"--footer-height":"40px"}}}}});function yue({authProviders:e,error:t,usernamePasswordCallback:r}){const n=rM(({theme:a})=>a.isDarkMode),i=O.useMemo(()=>WM(n?Si.DARK:Si.LIGHT),[n]);return P.jsxs(IM,{theme:i,children:[P.jsx(BM,{}),P.jsx(Qe,{sx:{position:"absolute",top:4,right:4},children:P.jsx(GG,{})}),P.jsxs(Qe,{component:"main",sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",display:"flex",flexDirection:"column",rowGap:4,boxShadow:24,borderRadius:4,border:"3px solid black",p:4},children:[P.jsxs(Qe,{sx:{display:"flex",justifyContent:"center",columnGap:2},children:[P.jsx("img",{height:"52",src:"./assets/logo.png",width:"52"}),P.jsx(We,{component:"h1",noWrap:!0,sx:{fontWeight:700,display:"flex",alignItems:"center"},variant:"h3",children:"Locust"})]}),r&&P.jsx("form",{action:r,children:P.jsxs(Qe,{sx:{display:"flex",flexDirection:"column",rowGap:2},children:[P.jsx(wa,{label:"Username",name:"username"}),P.jsx(wa,{label:"Password",name:"password",type:"password"}),t&&P.jsx(Ure,{severity:"error",children:t}),P.jsx(qa,{size:"large",type:"submit",variant:"contained",children:"Login"})]})}),e&&P.jsx(Qe,{sx:{display:"flex",flexDirection:"column",rowGap:1},children:e.map(({label:a,callbackUrl:o,iconUrl:s},l)=>P.jsxs(Cv,{href:o,sx:{display:"flex",justifyContent:"center",alignItems:"center",columnGap:2,borderRadius:2,borderWidth:"1px",borderStyle:"solid",borderColor:"primary"},children:[P.jsx("img",{height:"32",src:s}),P.jsx(We,{height:"32",variant:"button",children:a})]},`auth-provider-${l}`))})]})]})}var jM={},xue=$u;Object.defineProperty(jM,"__esModule",{value:!0});var HG=jM.default=void 0,Sue=xue(Fu()),bue=P,_ue=(0,Sue.default)((0,bue.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");HG=jM.default=_ue;function vx({open:e,onClose:t,children:r}){return P.jsx(lG,{onClose:t,open:e,children:P.jsxs(Qe,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"md",maxHeight:"90vh",overflowY:"auto",display:"flex",flexDirection:"column",rowGap:2,bgcolor:"background.paper",boxShadow:24,borderRadius:4,border:"3px solid black",p:4},children:[P.jsx(Cv,{color:"inherit",onClick:t,sx:{position:"absolute",top:1,right:1},children:P.jsx(HG,{})}),r]})})}function wue(){const[e,t]=O.useState(!1),r=Zs(({swarm:n})=>n.version);return P.jsxs(P.Fragment,{children:[P.jsx(Qe,{sx:{display:"flex",justifyContent:"flex-end"},children:P.jsx(qa,{color:"inherit",onClick:()=>t(!0),variant:"text",children:"About"})}),P.jsxs(vx,{onClose:()=>t(!1),open:e,children:[P.jsxs("div",{children:[P.jsx(We,{component:"h2",mb:1,variant:"h4",children:"About"}),P.jsxs(We,{component:"p",variant:"subtitle1",children:["Locust is free and open source software released under the"," ",P.jsx(on,{href:"https://github.com/locustio/locust/blob/master/LICENSE",children:"MIT License"})]}),P.jsxs(We,{component:"p",sx:{mt:2},variant:"subtitle1",children:["It was originally developed by Carl Byström and"," ",P.jsx(on,{href:"https://twitter.com/jonatanheyman/",children:"Jonatan Heyman"}),". Since 2019, it is primarily maintained by ",P.jsx(on,{href:"https://github.com/cyberw",children:"Lars Holmberg"}),"."]}),P.jsxs(We,{component:"p",sx:{mt:2},variant:"subtitle1",children:["Many thanks to all our wonderful"," ",P.jsx(on,{href:"https://github.com/locustio/locust/graphs/contributors",children:"contributors"}),"!"]})]}),P.jsxs("div",{children:[P.jsx(We,{component:"h2",mb:1,variant:"h4",children:"Version"}),P.jsx(on,{href:`https://github.com/locustio/locust/releases/tag/${r}`,children:r})]}),P.jsxs("div",{children:[P.jsx(We,{component:"h2",mb:1,variant:"h4",children:"Links"}),P.jsx(We,{component:"p",variant:"subtitle1",children:P.jsx(on,{href:"https://github.com/locustio/locust",children:"GitHub"})}),P.jsx(We,{component:"p",variant:"subtitle1",children:P.jsx(on,{href:"https://docs.locust.io/en/stable/",children:"Documentation"})})]})]})]})}function Cue(){return P.jsx(Uf,{maxWidth:"xl",sx:{display:"flex",height:"var(--footer-height)",alignItems:"center",justifyContent:"flex-end"},children:P.jsx(wue,{})})}function Tue({isDistributed:e,state:t,host:r,totalRps:n,failRatio:i,userCount:a,workerCount:o}){return P.jsxs(Qe,{sx:{display:"flex",columnGap:2},children:[P.jsxs(Qe,{sx:{display:"flex",flexDirection:"column"},children:[P.jsx(We,{variant:"button",children:"Host"}),P.jsx(We,{children:r})]}),P.jsx(wd,{flexItem:!0,orientation:"vertical"}),P.jsxs(Qe,{sx:{display:"flex",flexDirection:"column"},children:[P.jsx(We,{variant:"button",children:"Status"}),P.jsx(We,{variant:"button",children:t})]}),(t===mi.RUNNING||t===mi.SPAWNING)&&P.jsxs(P.Fragment,{children:[P.jsx(wd,{flexItem:!0,orientation:"vertical"}),P.jsxs(Qe,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[P.jsx(We,{variant:"button",children:"Users"}),P.jsx(We,{variant:"button",children:a})]})]}),e&&P.jsxs(P.Fragment,{children:[P.jsx(wd,{flexItem:!0,orientation:"vertical"}),P.jsxs(Qe,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[P.jsx(We,{variant:"button",children:"Workers"}),P.jsx(We,{variant:"button",children:o})]})]}),P.jsx(wd,{flexItem:!0,orientation:"vertical"}),P.jsxs(Qe,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[P.jsx(We,{variant:"button",children:"RPS"}),P.jsx(We,{variant:"button",children:n})]}),P.jsx(wd,{flexItem:!0,orientation:"vertical"}),P.jsxs(Qe,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[P.jsx(We,{variant:"button",children:"Failures"}),P.jsx(We,{variant:"button",children:`${i}%`})]})]})}const Aue=({swarm:{isDistributed:e,state:t,host:r,workerCount:n},ui:{totalRps:i,failRatio:a,userCount:o}})=>({isDistributed:e,state:t,host:r,totalRps:i,failRatio:a,userCount:o,workerCount:n}),Mue=Ln(Aue)(Tue),kue="input, select, textarea",Iue=e=>e instanceof HTMLInputElement&&e.getAttribute("data-type")==="number"?Number(e.value):e instanceof HTMLInputElement&&e.type==="checkbox"?e.checked:e instanceof HTMLSelectElement&&e.multiple?Array.from(e.selectedOptions).map(t=>t.value):e.value;function UM({children:e,onSubmit:t}){const r=O.useCallback(async n=>{n.preventDefault();const a=[...n.target.querySelectorAll(kue)].reduce((o,s)=>({...o,[s.name]:Iue(s)}),{});t(a)},[t]);return P.jsx("form",{onSubmit:r,children:e})}var Jy=globalThis&&globalThis.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,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,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]"u"||navigator.onLine===void 0?!0:navigator.onLine}function $ue(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var vL=Ls;function UG(e,t){if(e===t||!(vL(e)&&vL(t)||Array.isArray(e)&&Array.isArray(t)))return t;for(var r=Object.keys(t),n=Object.keys(e),i=r.length===n.length,a=Array.isArray(t)?[]:{},o=0,s=r;o=200&&e.status<=299},Vue=function(e){return/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"")};function mL(e){if(!Ls(e))return e;for(var t=ir({},e),r=0,n=Object.entries(t);r"u"&&s===gL&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),function(x,S){return r0(t,null,function(){var _,b,w,C,A,T,M,k,I,D,L,z,V,N,F,E,G,j,B,U,X,W,ee,te,ie,re,Q,J,de,he,Pe,Xe,qe,ot,st,kt;return Jy(this,function($e){switch($e.label){case 0:return _=S.signal,b=S.getState,w=S.extra,C=S.endpoint,A=S.forced,T=S.type,k=typeof x=="string"?{url:x}:x,I=k.url,D=k.headers,L=D===void 0?new Headers(m.headers):D,z=k.params,V=z===void 0?void 0:z,N=k.responseHandler,F=N===void 0?v??"json":N,E=k.validateStatus,G=E===void 0?g??Fue:E,j=k.timeout,B=j===void 0?p:j,U=hL(k,["url","headers","params","responseHandler","validateStatus","timeout"]),X=ir(Ca(ir({},m),{signal:_}),U),L=new Headers(mL(L)),W=X,[4,a(L,{getState:b,extra:w,endpoint:C,forced:A,type:T})];case 1:W.headers=$e.sent()||L,ee=function(It){return typeof It=="object"&&(Ls(It)||Array.isArray(It)||typeof It.toJSON=="function")},!X.headers.has("content-type")&&ee(X.body)&&X.headers.set("content-type",d),ee(X.body)&&c(X.headers)&&(X.body=JSON.stringify(X.body,h)),V&&(te=~I.indexOf("?")?"&":"?",ie=l?l(V):new URLSearchParams(mL(V)),I+=te+ie),I=zue(n,I),re=new Request(I,X),Q=re.clone(),M={request:Q},de=!1,he=B&&setTimeout(function(){de=!0,S.abort()},B),$e.label=2;case 2:return $e.trys.push([2,4,5,6]),[4,s(re)];case 3:return J=$e.sent(),[3,6];case 4:return Pe=$e.sent(),[2,{error:{status:de?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(Pe)},meta:M}];case 5:return he&&clearTimeout(he),[7];case 6:Xe=J.clone(),M.response=Xe,ot="",$e.label=7;case 7:return $e.trys.push([7,9,,10]),[4,Promise.all([y(J,F).then(function(It){return qe=It},function(It){return st=It}),Xe.text().then(function(It){return ot=It},function(){})])];case 8:if($e.sent(),st)throw st;return[3,10];case 9:return kt=$e.sent(),[2,{error:{status:"PARSING_ERROR",originalStatus:J.status,data:ot,error:String(kt)},meta:M}];case 10:return[2,G(J,qe)?{data:qe,meta:M}:{error:{status:J.status,data:qe},meta:M}]}})})};function y(x,S){return r0(this,null,function(){var _;return Jy(this,function(b){switch(b.label){case 0:return typeof S=="function"?[2,S(x)]:(S==="content-type"&&(S=c(x.headers)?"json":"text"),S!=="json"?[3,2]:[4,x.text()]);case 1:return _=b.sent(),[2,_.length?JSON.parse(_):null];case 2:return[2,x.text()]}})})}}var yL=function(){function e(t,r){r===void 0&&(r=void 0),this.value=t,this.meta=r}return e}(),qM=Mn("__rtkq/focused"),qG=Mn("__rtkq/unfocused"),YM=Mn("__rtkq/online"),YG=Mn("__rtkq/offline"),Ba;(function(e){e.query="query",e.mutation="mutation"})(Ba||(Ba={}));function XG(e){return e.type===Ba.query}function Hue(e){return e.type===Ba.mutation}function ZG(e,t,r,n,i,a){return Wue(e)?e(t,r,n,i).map(QC).map(a):Array.isArray(e)?e.map(QC).map(a):[]}function Wue(e){return typeof e=="function"}function QC(e){return typeof e=="string"?{type:e}:e}function tb(e){return e!=null}var Op=Symbol("forceQueryFn"),JC=function(e){return typeof e[Op]=="function"};function jue(e){var t=e.serializeQueryArgs,r=e.queryThunk,n=e.mutationThunk,i=e.api,a=e.context,o=new Map,s=new Map,l=i.internalActions,u=l.unsubscribeQueryResult,c=l.removeMutationResult,f=l.updateSubscriptionOptions;return{buildInitiateQuery:y,buildInitiateMutation:x,getRunningQueryThunk:p,getRunningMutationThunk:v,getRunningQueriesThunk:g,getRunningMutationsThunk:m,getRunningOperationPromises:h,removalWarning:d};function d(){throw new Error(`This method had to be removed due to a conceptual bug in RTK. Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details. - See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.`)}function h(){typeof process<"u";var S=function(_){return Array.from(_.values()).flatMap(function(b){return b?Object.values(b):[]})};return e0(e0([],S(o)),S(s)).filter(eb)}function p(S,_){return function(b){var w,C=a.endpointDefinitions[S],A=t({queryArgs:_,endpointDefinition:C,endpointName:S});return(w=o.get(b))==null?void 0:w[A]}}function v(S,_){return function(b){var w;return(w=s.get(b))==null?void 0:w[_]}}function g(){return function(S){return Object.values(o.get(S)||{}).filter(eb)}}function m(){return function(S){return Object.values(s.get(S)||{}).filter(eb)}}function y(S,_){var b=function(w,C){var A=C===void 0?{}:C,T=A.subscribe,M=T===void 0?!0:T,k=A.forceRefetch,I=A.subscriptionOptions,P=Op,L=A[P];return function(z,V){var N,F,E=t({queryArgs:w,endpointDefinition:_,endpointName:S}),G=r((N={type:"query",subscribe:M,forceRefetch:k,subscriptionOptions:I,endpointName:S,originalArgs:w,queryCacheKey:E},N[Op]=L,N)),j=i.endpoints[S].select(w),B=z(G),U=j(V()),X=B.requestId,W=B.abort,ee=U.requestId!==X,te=(F=o.get(z))==null?void 0:F[E],ie=function(){return j(V())},re=Object.assign(L?B.then(ie):ee&&!te?Promise.resolve(U):Promise.all([te,B]).then(ie),{arg:w,requestId:X,subscriptionOptions:I,queryCacheKey:E,abort:W,unwrap:function(){return r0(this,null,function(){var J;return Jy(this,function(de){switch(de.label){case 0:return[4,re];case 1:if(J=de.sent(),J.isError)throw J.error;return[2,J.data]}})})},refetch:function(){return z(b(w,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){M&&z(u({queryCacheKey:E,requestId:X}))},updateSubscriptionOptions:function(J){re.subscriptionOptions=J,z(f({endpointName:S,requestId:X,queryCacheKey:E,options:J}))}});if(!te&&!ee&&!L){var Q=o.get(z)||{};Q[E]=re,o.set(z,Q),re.then(function(){delete Q[E],Object.keys(Q).length||o.delete(z)})}return re}};return b}function x(S){return function(_,b){var w=b===void 0?{}:b,C=w.track,A=C===void 0?!0:C,T=w.fixedCacheKey;return function(M,k){var I=n({type:"mutation",endpointName:S,originalArgs:_,track:A,fixedCacheKey:T}),P=M(I),L=P.requestId,z=P.abort,V=P.unwrap,N=P.unwrap().then(function(j){return{data:j}}).catch(function(j){return{error:j}}),F=function(){M(c({requestId:L,fixedCacheKey:T}))},E=Object.assign(N,{arg:P.arg,requestId:L,abort:z,unwrap:V,unsubscribe:F,reset:F}),G=s.get(M)||{};return s.set(M,G),G[L]=E,E.then(function(){delete G[L],Object.keys(G).length||s.delete(M)}),T&&(G[T]=E,E.then(function(){G[T]===E&&(delete G[T],Object.keys(G).length||s.delete(M))})),E}}}}function gL(e){return e}function jue(e){var t=this,r=e.reducerPath,n=e.baseQuery,i=e.context.endpointDefinitions,a=e.serializeQueryArgs,o=e.api,s=function(x,S,_){return function(b){var w=i[x];b(o.internalActions.queryResultPatched({queryCacheKey:a({queryArgs:S,endpointDefinition:w,endpointName:x}),patches:_}))}},l=function(x,S,_){return function(b,w){var C,A,T=o.endpoints[x].select(S)(w()),M={patches:[],inversePatches:[],undo:function(){return b(o.util.patchQueryData(x,S,M.inversePatches))}};if(T.status===Ht.uninitialized)return M;if("data"in T)if(Ki(T.data)){var k=$4(T.data,_),I=k[1],P=k[2];(C=M.patches).push.apply(C,I),(A=M.inversePatches).push.apply(A,P)}else{var L=_(T.data);M.patches.push({op:"replace",path:[],value:L}),M.inversePatches.push({op:"replace",path:[],value:T.data})}return b(o.util.patchQueryData(x,S,M.patches)),M}},u=function(x,S,_){return function(b){var w;return b(o.endpoints[x].initiate(S,(w={subscribe:!1,forceRefetch:!0},w[Op]=function(){return{data:_}},w)))}},c=function(x,S){return r0(t,[x,S],function(_,b){var w,C,A,T,M,k,I,P,L,z,V,N,F,E,G,j,B,U,X=b.signal,W=b.abort,ee=b.rejectWithValue,te=b.fulfillWithValue,ie=b.dispatch,re=b.getState,Q=b.extra;return Jy(this,function(J){switch(J.label){case 0:w=i[_.endpointName],J.label=1;case 1:return J.trys.push([1,8,,13]),C=gL,A=void 0,T={signal:X,abort:W,dispatch:ie,getState:re,extra:Q,endpoint:_.endpointName,type:_.type,forced:_.type==="query"?f(_,re()):void 0},M=_.type==="query"?_[Op]:void 0,M?(A=M(),[3,6]):[3,2];case 2:return w.query?[4,n(w.query(_.originalArgs),T,w.extraOptions)]:[3,4];case 3:return A=J.sent(),w.transformResponse&&(C=w.transformResponse),[3,6];case 4:return[4,w.queryFn(_.originalArgs,T,w.extraOptions,function(de){return n(de,T,w.extraOptions)})];case 5:A=J.sent(),J.label=6;case 6:if(typeof process<"u",A.error)throw new vL(A.error,A.meta);return V=te,[4,C(A.data,A.meta,_.originalArgs)];case 7:return[2,V.apply(void 0,[J.sent(),(B={fulfilledTimeStamp:Date.now(),baseQueryMeta:A.meta},B[lh]=!0,B)])];case 8:if(N=J.sent(),F=N,!(F instanceof vL))return[3,12];E=gL,w.query&&w.transformErrorResponse&&(E=w.transformErrorResponse),J.label=9;case 9:return J.trys.push([9,11,,12]),G=ee,[4,E(F.value,F.meta,_.originalArgs)];case 10:return[2,G.apply(void 0,[J.sent(),(U={baseQueryMeta:F.meta},U[lh]=!0,U)])];case 11:return j=J.sent(),F=j,[3,12];case 12:throw typeof process<"u",console.error(F),F;case 13:return[2]}})})};function f(x,S){var _,b,w,C,A=(b=(_=S[r])==null?void 0:_.queries)==null?void 0:b[x.queryCacheKey],T=(w=S[r])==null?void 0:w.config.refetchOnMountOrArgChange,M=A==null?void 0:A.fulfilledTimeStamp,k=(C=x.forceRefetch)!=null?C:x.subscribe&&T;return k?k===!0||(Number(new Date)-Number(M))/1e3>=k:!1}var d=WD(r+"/executeQuery",c,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[lh]=!0,x},condition:function(x,S){var _=S.getState,b,w,C,A=_(),T=(w=(b=A[r])==null?void 0:b.queries)==null?void 0:w[x.queryCacheKey],M=T==null?void 0:T.fulfilledTimeStamp,k=x.originalArgs,I=T==null?void 0:T.originalArgs,P=i[x.endpointName];return QC(x)?!0:(T==null?void 0:T.status)==="pending"?!1:f(x,A)||YG(P)&&((C=P==null?void 0:P.forceRefetch)!=null&&C.call(P,{currentArg:k,previousArg:I,endpointState:T,state:A}))?!0:!M},dispatchConditionRejection:!0}),h=WD(r+"/executeMutation",c,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[lh]=!0,x}}),p=function(x){return"force"in x},v=function(x){return"ifOlderThan"in x},g=function(x,S,_){return function(b,w){var C=p(_)&&_.force,A=v(_)&&_.ifOlderThan,T=function(P){return P===void 0&&(P=!0),o.endpoints[x].initiate(S,{forceRefetch:P})},M=o.endpoints[x].select(S)(w());if(C)b(T());else if(A){var k=M==null?void 0:M.fulfilledTimeStamp;if(!k){b(T());return}var I=(Number(new Date)-Number(new Date(k)))/1e3>=A;I&&b(T())}else b(T(!1))}};function m(x){return function(S){var _,b;return((b=(_=S==null?void 0:S.meta)==null?void 0:_.arg)==null?void 0:b.endpointName)===x}}function y(x,S){return{matchPending:Nh(Q2(x),m(S)),matchFulfilled:Nh(Ou(x),m(S)),matchRejected:Nh(Mp(x),m(S))}}return{queryThunk:d,mutationThunk:h,prefetch:g,updateQueryData:l,upsertQueryData:u,patchQueryData:s,buildMatchThunkActions:y}}function ZG(e,t,r,n){return XG(r[e.meta.arg.endpointName][t],Ou(e)?e.payload:void 0,T1(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function Sg(e,t,r){var n=e[t];n&&r(n)}function Np(e){var t;return(t="arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)!=null?t:e.requestId}function mL(e,t,r){var n=e[Np(t)];n&&r(n)}var Ad={};function Uue(e){var t=e.reducerPath,r=e.queryThunk,n=e.mutationThunk,i=e.context,a=i.endpointDefinitions,o=i.apiUid,s=i.extractRehydrationInfo,l=i.hasRehydrationInfo,u=e.assertTagType,c=e.config,f=Mn(t+"/resetApiState"),d=ci({name:t+"/queries",initialState:Ad,reducers:{removeQueryResult:{reducer:function(_,b){var w=b.payload.queryCacheKey;delete _[w]},prepare:VS()},queryResultPatched:function(_,b){var w=b.payload,C=w.queryCacheKey,A=w.patches;Sg(_,C,function(T){T.data=ND(T.data,A.concat())})}},extraReducers:function(_){_.addCase(r.pending,function(b,w){var C=w.meta,A=w.meta.arg,T,M,k=QC(A);(A.subscribe||k)&&((M=b[T=A.queryCacheKey])!=null||(b[T]={status:Ht.uninitialized,endpointName:A.endpointName})),Sg(b,A.queryCacheKey,function(I){I.status=Ht.pending,I.requestId=k&&I.requestId?I.requestId:C.requestId,A.originalArgs!==void 0&&(I.originalArgs=A.originalArgs),I.startedTimeStamp=C.startedTimeStamp})}).addCase(r.fulfilled,function(b,w){var C=w.meta,A=w.payload;Sg(b,C.arg.queryCacheKey,function(T){var M;if(!(T.requestId!==C.requestId&&!QC(C.arg))){var k=a[C.arg.endpointName].merge;if(T.status=Ht.fulfilled,k)if(T.data!==void 0){var I=C.fulfilledTimeStamp,P=C.arg,L=C.baseQueryMeta,z=C.requestId,V=yv(T.data,function(N){return k(N,A,{arg:P.originalArgs,baseQueryMeta:L,fulfilledTimeStamp:I,requestId:z})});T.data=V}else T.data=A;else T.data=(M=a[C.arg.endpointName].structuralSharing)==null||M?jG(Zi(T.data)?OX(T.data):T.data,A):A;delete T.error,T.fulfilledTimeStamp=C.fulfilledTimeStamp}})}).addCase(r.rejected,function(b,w){var C=w.meta,A=C.condition,T=C.arg,M=C.requestId,k=w.error,I=w.payload;Sg(b,T.queryCacheKey,function(P){if(!A){if(P.requestId!==M)return;P.status=Ht.rejected,P.error=I??k}})}).addMatcher(l,function(b,w){for(var C=s(w).queries,A=0,T=Object.entries(C);A({getStats:e.query({query:()=>"stats/requests",transformResponse:Uc}),getTasks:e.query({query:()=>"tasks",transformResponse:Uc}),getExceptions:e.query({query:()=>"exceptions",transformResponse:Uc}),getLogs:e.query({query:()=>"logs",transformResponse:Uc}),startSwarm:e.mutation({query:t=>({url:"swarm",method:"POST",body:BK(rR(t)),headers:{"content-type":"application/x-www-form-urlencoded"}})}),updateUserSettings:e.mutation({query:t=>({url:"user",method:"POST",body:rR(t)})})})}),{useGetStatsQuery:Cce,useGetTasksQuery:Tce,useGetExceptionsQuery:Ace,useGetLogsQuery:Mce,useStartSwarmMutation:QG,useUpdateUserSettingsMutation:kce}=i0;function Ice({onSubmit:e,numUsers:t,spawnRate:r}){const[n]=QG(),i=a=>{e(),n(a)};return D.jsxs(Uf,{maxWidth:"md",sx:{my:2},children:[D.jsx(je,{component:"h2",noWrap:!0,variant:"h6",children:"Edit running load test"}),D.jsx(GM,{onSubmit:i,children:D.jsxs(it,{sx:{my:2,display:"flex",flexDirection:"column",rowGap:4},children:[D.jsx(wa,{defaultValue:t||1,label:"Number of users (peak concurrency)",name:"userCount"}),D.jsx(wa,{defaultValue:r||1,label:"Ramp up (users started/second)",name:"spawnRate"}),D.jsx(qa,{size:"large",type:"submit",variant:"contained",children:"Update"})]})})]})}const Pce=({swarm:{spawnRate:e,numUsers:t}})=>({spawnRate:e,numUsers:t}),Dce=Ln(Pce)(Ice);function Rce(){const[e,t]=O.useState(!1);return D.jsxs(D.Fragment,{children:[D.jsx(qa,{color:"secondary",onClick:()=>t(!0),type:"button",variant:"contained",children:"Edit"}),D.jsx(vx,{onClose:()=>t(!1),open:e,children:D.jsx(Dce,{onSubmit:()=>t(!1)})})]})}var jM={},Lce=Bu;Object.defineProperty(jM,"__esModule",{value:!0});var UM=jM.default=void 0,Ece=Lce($u()),Oce=D,Nce=(0,Ece.default)((0,Oce.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");UM=jM.default=Nce;function qM({label:e,name:t,options:r,multiple:n=!1,defaultValue:i,sx:a}){return D.jsxs(fG,{sx:a,children:[D.jsx(OM,{htmlFor:t,shrink:!0,children:e}),D.jsx(IG,{defaultValue:i||n&&r||r[0],id:t,label:e,multiple:n,name:t,native:!0,children:r.map((o,s)=>D.jsx("option",{value:o,children:o},`option-${o}-${s}`))})]})}function zce({label:e,defaultValue:t,choices:r,helpText:n,isSecret:i}){const a=mV(e),o=n?`${a} (${n})`:a;return r?D.jsx(qM,{defaultValue:t,label:o,name:e,options:r,sx:{width:"100%"}}):typeof t=="boolean"?D.jsx(hG,{control:D.jsx(XC,{defaultChecked:t}),label:o,name:e}):D.jsx(wa,{defaultValue:t,label:o,name:e,sx:{width:"100%"},type:i?"password":"text"})}function Bce({extraOptions:e}){return D.jsxs(eG,{children:[D.jsx(rG,{expandIcon:D.jsx(UM,{}),children:D.jsx(je,{children:"Custom parameters"})}),D.jsx(tG,{children:D.jsx(it,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:Object.entries(e).map(([t,r],n)=>D.jsx(zce,{label:t,...r},`valid-parameter-${n}`))})})]})}var YM={},$ce=Bu;Object.defineProperty(YM,"__esModule",{value:!0});var JG=YM.default=void 0,Fce=$ce($u()),Vce=D,Gce=(0,Fce.default)((0,Vce.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}),"Settings");JG=YM.default=Gce;function Tv(e,{payload:t}){return zK(e,t)}const Hce=Ra,e6=ci({name:"swarm",initialState:Hce,reducers:{setSwarm:Tv}}),XM=e6.actions,Wce=e6.reducer;function jce({availableTasks:e,userToEdit:t,handleEditUser:r}){const{tasks:n,...i}=t.userClass;return D.jsx(GM,{onSubmit:r,children:D.jsxs(it,{sx:{display:"flex",flexDirection:"column",rowGap:4,my:2},children:[D.jsx(je,{children:`${t.userClassName} Settings`}),D.jsx(qM,{defaultValue:n,label:"Tasks",multiple:!0,name:"tasks",options:e}),Object.entries(i).map(([a,o])=>D.jsx(wa,{defaultValue:o,inputProps:{"data-type":typeof o=="number"?"number":"text"},label:mV(a),name:a},`user-to-edit-${a}`)),D.jsx(qa,{size:"large",type:"submit",variant:"contained",children:"Save"})]})})}function Uce({availableUserClasses:e,availableUserTasks:t,selectedUserClasses:r,setSelectedUserClasses:n,setSwarm:i,users:a}){const[o,s]=O.useState(!1),[l,u]=O.useState(),[c]=kce(),f=g=>{l&&(i({users:{...a,[l.userClassName]:g}}),c({...g,userClassName:l.userClassName}),s(!1))},d=g=>()=>r.includes(g)?n(r.filter(m=>m!==g)):n(r.concat(g)),h=r.length,p=e.length,v=g=>g.target.checked?n(e):n([]);return D.jsxs(D.Fragment,{children:[D.jsx(it,{sx:{position:"relative",border:"1px",borderColor:"divider",borderStyle:"solid",padding:2,borderRadius:1},children:D.jsxs(it,{sx:{maxHeight:"30vh",overflow:"auto"},children:[D.jsx(OM,{shrink:!0,sx:{position:"absolute",backgroundColor:"background.paper",width:"fit-content",top:"0",marginTop:"-5px",padding:"0 5px"},children:"User Classes"}),D.jsx(pG,{children:D.jsx(LG,{component:Nu,children:D.jsxs(DG,{children:[D.jsx(EG,{children:D.jsx(Qy,{children:D.jsx($l,{colSpan:4,padding:"checkbox",children:D.jsx(XC,{checked:p>0&&h===p,indeterminate:h>0&&hD.jsxs(Qy,{hover:!0,children:[D.jsx($l,{onClick:d(g),padding:"checkbox",children:D.jsx(XC,{checked:r.includes(g)})}),D.jsx($l,{children:g}),D.jsx($l,{children:D.jsx(je,{variant:"subtitle2",children:m.host})}),D.jsx($l,{align:"right",children:D.jsx(Cv,{onClick:()=>{s(!o),u({userClass:m,userClassName:g})},children:D.jsx(JG,{})})})]},`user-class-${g}`))})]})})})]})}),D.jsx(vx,{onClose:()=>s(!1),open:o,children:l&&D.jsx(jce,{availableTasks:t[l.userClassName],handleEditUser:f,userToEdit:l})})]})}const qce={setSwarm:XM.setSwarm},Yce=({swarm:{availableUserTasks:e,users:t}})=>({availableUserTasks:e,users:t}),Xce=Ln(Yce,qce)(Uce);function Zce({availableShapeClasses:e,availableUserClasses:t,host:r,extraOptions:n,isShape:i,numUsers:a,overrideHostWarning:o,runTime:s,setSwarm:l,showUserclassPicker:u,spawnRate:c}){const[f]=QG(),[d,h]=O.useState(t),p=v=>{l({state:mi.RUNNING,host:v.host||r,runTime:v.runTime,spawnRate:Number(v.spawnRate)||null,numUsers:Number(v.userCount)||null}),f({...v,...u&&d?{userClasses:d}:{}})};return D.jsxs(Uf,{maxWidth:"md",sx:{my:2},children:[D.jsx(je,{component:"h2",noWrap:!0,variant:"h6",children:"Start new load test"}),u&&D.jsx(it,{marginBottom:2,marginTop:2,children:D.jsx(Xce,{availableUserClasses:t,selectedUserClasses:d,setSelectedUserClasses:h})}),D.jsx(GM,{onSubmit:p,children:D.jsxs(it,{sx:{marginBottom:2,marginTop:2,display:"flex",flexDirection:"column",rowGap:4},children:[u&&D.jsx(qM,{label:"Shape Class",name:"shapeClass",options:e}),D.jsx(wa,{defaultValue:i&&"-"||a||1,disabled:!!i,label:"Number of users (peak concurrency)",name:"userCount"}),D.jsx(wa,{defaultValue:i&&"-"||c||1,disabled:!!i,label:"Ramp up (users started/second)",name:"spawnRate",title:"Disabled for tests using LoadTestShape class"}),D.jsx(wa,{defaultValue:r,label:`Host ${o?"(setting this will override the host for the User classes)":""}`,name:"host",title:"Disabled for tests using LoadTestShape class"}),D.jsxs(eG,{children:[D.jsx(rG,{expandIcon:D.jsx(UM,{}),children:D.jsx(je,{children:"Advanced options"})}),D.jsx(tG,{children:D.jsx(wa,{defaultValue:s,label:"Run time (e.g. 20, 20s, 3m, 2h, 1h20m, 3h30m10s, etc.)",name:"runTime",sx:{width:"100%"}})})]}),!NK(n)&&D.jsx(Bce,{extraOptions:n}),D.jsx(qa,{size:"large",type:"submit",variant:"contained",children:"Start"})]})})]})}const Kce=({swarm:{availableShapeClasses:e,availableUserClasses:t,extraOptions:r,isShape:n,host:i,numUsers:a,overrideHostWarning:o,runTime:s,spawnRate:l,showUserclassPicker:u}})=>({availableShapeClasses:e,availableUserClasses:t,extraOptions:r,isShape:n,host:i,overrideHostWarning:o,showUserclassPicker:u,numUsers:a,runTime:s,spawnRate:l}),Qce={setSwarm:XM.setSwarm},t6=Ln(Kce,Qce)(Zce);function Jce(){const[e,t]=O.useState(!1);return D.jsxs(D.Fragment,{children:[D.jsx(qa,{color:"success",onClick:()=>t(!0),type:"button",variant:"contained",children:"New"}),D.jsx(vx,{onClose:()=>t(!1),open:e,children:D.jsx(t6,{})})]})}function efe(){const e=()=>{fetch("stats/reset")};return D.jsx(qa,{color:"warning",onClick:e,type:"button",variant:"contained",children:"Reset"})}function tfe(){const[e,t]=O.useState(!1);O.useEffect(()=>{t(!1)},[]);const r=()=>{fetch("stop"),t(!0)};return D.jsx(qa,{color:"error",disabled:e,onClick:r,type:"button",variant:"contained",children:e?"Loading":"Stop"})}function rfe(){const e=Xs(({swarm:t})=>t.state);return e===mi.READY?null:D.jsxs(it,{sx:{display:"flex",columnGap:2},children:[e===mi.STOPPED?D.jsx(Jce,{}):D.jsxs(D.Fragment,{children:[D.jsx(Rce,{}),D.jsx(tfe,{})]}),D.jsx(efe,{})]})}function nfe(){return D.jsx(ine,{position:"static",children:D.jsx(Uf,{maxWidth:"xl",children:D.jsxs(Sle,{sx:{display:"flex",justifyContent:"space-between"},children:[D.jsxs(on,{color:"inherit",href:"/",sx:{display:"flex",alignItems:"center",columnGap:2},underline:"none",children:[D.jsx("img",{height:"52",src:"./assets/logo.png",width:"52"}),D.jsx(je,{component:"h1",noWrap:!0,sx:{fontWeight:700,display:"flex",alignItems:"center"},variant:"h3",children:"Locust"})]}),D.jsxs(it,{sx:{display:"flex",columnGap:6},children:[D.jsx(Aue,{}),D.jsx(rfe,{}),D.jsx(VG,{})]})]})})})}function ife({children:e}){return D.jsxs(D.Fragment,{children:[D.jsxs(it,{sx:{minHeight:"calc(100vh - var(--footer-height))"},children:[D.jsx(nfe,{}),D.jsx("main",{children:e})]}),D.jsx(wue,{})]})}function fh(e,t,{shouldRunInterval:r}={shouldRunInterval:!0}){const n=O.useRef(e);O.useEffect(()=>{n.current=e},[e]),O.useEffect(()=>{if(!r)return;const i=setInterval(()=>n.current(),t);return()=>{clearInterval(i)}},[t,r])}const afe={},r6=ci({name:"notification",initialState:afe,reducers:{setNotification:Tv}}),n6=r6.actions,ofe=r6.reducer;function sfe(e,{key:t,shouldNotify:r}){const n=Xl(n6.setNotification),i=Xs(({url:{query:o}})=>o&&o.tab),a=`${t}Notification`;O.useEffect(()=>{Tc(e)>0&&Tc(e)(localStorage[a]||0)&&(!i||i!==t)&&(!r||r&&r())&&(n({[t]:!0}),localStorage[a]=Tc(e))},[e])}const lfe={logs:[]},i6=ci({name:"logViewer",initialState:lfe,reducers:{setLogs:Tv}}),ufe=i6.actions,cfe=i6.reducer,ffe=e=>e.includes("WARNING")||e.includes("ERROR")||e.includes("CRITICAL");function dfe(){const e=Xs(({swarm:o})=>o),t=Xl(ufe.setLogs),{data:r,refetch:n}=Mce(),i=r?r.logs:[],a=O.useCallback(()=>i.slice(localStorage.logViewer).some(ffe),[i]);return fh(n,5e3,{shouldRunInterval:e.state===mi.SPAWNING||e.state==mi.RUNNING}),sfe(i,{key:"logViewer",shouldNotify:a}),O.useEffect(()=>{t({logs:i})},[i]),i}var ZM={},hfe=Bu;Object.defineProperty(ZM,"__esModule",{value:!0});var a6=ZM.default=void 0,pfe=hfe($u()),ML=D,vfe=(0,pfe.default)([(0,ML.jsx)("circle",{cx:"12",cy:"19",r:"2"},"0"),(0,ML.jsx)("path",{d:"M10 3h4v12h-4z"},"1")],"PriorityHigh");a6=ZM.default=vfe;function gfe(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const mfe=/[ \t\n\f\r]/g;function yfe(e){return typeof e=="object"?e.type==="text"?kL(e.value):!1:kL(e)}function kL(e){return e.replace(mfe,"")===""}class Av{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}}Av.prototype.property={};Av.prototype.normal={};Av.prototype.space=null;function o6(e,t){const r={},n={};let i=-1;for(;++i4&&r.slice(0,4)==="data"&&wfe.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(PL,Mfe);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!PL.test(a)){let o=a.replace(Cfe,Afe);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=KM}return new i(n,t)}function Afe(e){return"-"+e.toLowerCase()}function Mfe(e){return e.charAt(1).toUpperCase()}const kfe={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Ife=o6([u6,l6,d6,h6,bfe],"html"),p6=o6([u6,l6,d6,h6,_fe],"svg");function Pfe(e){return e.join(" ").trim()}var QM={exports:{}},DL=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Dfe=/\n/g,Rfe=/^\s*/,Lfe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Efe=/^:\s*/,Ofe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Nfe=/^[;\s]*/,zfe=/^\s+|\s+$/g,Bfe=` -`,RL="/",LL="*",Fl="",$fe="comment",Ffe="declaration",Vfe=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,n=1;function i(p){var v=p.match(Dfe);v&&(r+=v.length);var g=p.lastIndexOf(Bfe);n=~g?p.length-g:n+p.length}function a(){var p={line:r,column:n};return function(v){return v.position=new o(p),u(),v}}function o(p){this.start=p,this.end={line:r,column:n},this.source=t.source}o.prototype.content=e;function s(p){var v=new Error(t.source+":"+r+":"+n+": "+p);if(v.reason=p,v.filename=t.source,v.line=r,v.column=n,v.source=e,!t.silent)throw v}function l(p){var v=p.exec(e);if(v){var g=v[0];return i(g),e=e.slice(g.length),v}}function u(){l(Rfe)}function c(p){var v;for(p=p||[];v=f();)v!==!1&&p.push(v);return p}function f(){var p=a();if(!(RL!=e.charAt(0)||LL!=e.charAt(1))){for(var v=2;Fl!=e.charAt(v)&&(LL!=e.charAt(v)||RL!=e.charAt(v+1));)++v;if(v+=2,Fl===e.charAt(v-1))return s("End of comment missing");var g=e.slice(2,v-2);return n+=2,i(g),e=e.slice(v),n+=2,p({type:$fe,comment:g})}}function d(){var p=a(),v=l(Lfe);if(v){if(f(),!l(Efe))return s("property missing ':'");var g=l(Ofe),m=p({type:Ffe,property:EL(v[0].replace(DL,Fl)),value:g?EL(g[0].replace(DL,Fl)):Fl});return l(Nfe),m}}function h(){var p=[];c(p);for(var v;v=d();)v!==!1&&(p.push(v),c(p));return p}return u(),h()};function EL(e){return e?e.replace(zfe,Fl):Fl}var Gfe=Vfe;function v6(e,t){var r=null;if(!e||typeof e!="string")return r;for(var n,i=Gfe(e),a=typeof t=="function",o,s,l=0,u=i.length;l0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function jfe(e){const t=JM(e),r=g6(e);if(t&&r)return{start:t,end:r}}function Hh(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?OL(e.position):"start"in e||"end"in e?OL(e):"line"in e||"column"in e?tT(e):""}function tT(e){return NL(e&&e.line)+":"+NL(e&&e.column)}function OL(e){return tT(e&&e.start)+"-"+tT(e&&e.end)}function NL(e){return e&&typeof e=="number"?e:1}class pn extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",a={},o=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof t=="string"?i=t:!a.cause&&t&&(o=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof n=="string"){const l=n.indexOf(":");l===-1?a.ruleId=n:(a.source=n.slice(0,l),a.ruleId=n.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=Hh(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}pn.prototype.file="";pn.prototype.name="";pn.prototype.reason="";pn.prototype.message="";pn.prototype.stack="";pn.prototype.column=void 0;pn.prototype.line=void 0;pn.prototype.ancestors=void 0;pn.prototype.cause=void 0;pn.prototype.fatal=void 0;pn.prototype.place=void 0;pn.prototype.ruleId=void 0;pn.prototype.source=void 0;const ek={}.hasOwnProperty,Ufe=new Map,qfe=/[A-Z]/g,Yfe=/-([a-z])/g,Xfe=new Set(["table","tbody","thead","tfoot","tr"]),Zfe=new Set(["td","th"]);function Kfe(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let n;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=Jfe(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");n=Qfe(r,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?p6:Ife,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=y6(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function y6(e,t,r){if(t.type==="element"||t.type==="root"){const n=e.schema;let i=n;t.type==="element"&&t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(i=p6,e.schema=i),e.ancestors.push(t);let a=ede(e,t);const o=tde(e,e.ancestors);let s=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(a&&Xfe.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!yfe(l):!0})),ek.call(e.components,t.tagName)){const l=t.tagName;s=e.components[l],typeof s!="string"&&s!==e.Fragment&&e.passNode&&(o.node=t)}else s=t.tagName;if(a.length>0){const l=a.length>1?a:a[0];l&&(o.children=l)}return e.schema=n,e.create(t,s,o,r)}if(t.type==="text")return t.value}function Qfe(e,t,r){return n;function n(i,a,o,s){const u=Array.isArray(o.children)?r:t;return s?u(a,o,s):u(a,o)}}function Jfe(e,t){return r;function r(n,i,a,o){const s=Array.isArray(a.children),l=JM(n);return t(i,a,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function ede(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:Ufe;for(;++n-1&&e.test(String.fromCharCode(r))}}const hde={'"':"quot","&":"amp","<":"lt",">":"gt"};function pde(e){return e.replace(/["&<>]/g,t);function t(r){return"&"+hde[r]+";"}}function vde(e,t){const r=pde(Vu(e||""));if(!t)return r;const n=r.indexOf(":"),i=r.indexOf("?"),a=r.indexOf("#"),o=r.indexOf("/");return n<0||o>-1&&n>o||i>-1&&n>i||a>-1&&n>a||t.test(r.slice(0,n))?r:""}function Vu(e){const t=[];let r=-1,n=0,i=0;for(;++r55295&&a<57344){const s=e.charCodeAt(r+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(n,r),encodeURIComponent(o)),n=r+i+1,o=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}const gde={};function mde(e,t){const r=t||gde,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return S6(e,n,i)}function S6(e,t,r){if(yde(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return zL(e.children,t,r)}return Array.isArray(e)?zL(e,t,r):""}function zL(e,t,r){const n=[];let i=-1;for(;++ii?0:i+t:t=t>i?i:t,r=r>0?r:0,n.length<1e4)o=Array.from(n),o.unshift(t,r),e.splice(...o);else for(r&&e.splice(t,r);a0?($a(e,e.length,0,t),e):t}const $L={}.hasOwnProperty;function xde(e){const t={};let r=-1;for(;++r13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCharCode(r)}function uf(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function Nt(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(l){return mt(l)?(e.enter(r),s(l)):t(l)}function s(l){return mt(l)&&a++o))return;const w=t.events.length;let C=w,A,T;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){if(A){T=t.events[C][1].end;break}A=!0}for(m(n),b=w;bx;){const _=r[S];t.containerState=_[1],_[0].exit.call(t,e)}r.length=x}function y(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Ade(e,t,r){return Nt(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function VL(e){if(e===null||In(e)||dde(e))return 1;if(fde(e))return 2}function rk(e,t,r){const n=[];let i=-1;for(;++i1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const f=Object.assign({},e[n][1].end),d=Object.assign({},e[r][1].start);GL(f,-l),GL(d,l),o={type:l>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[n][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[r][1].start),end:d},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[r][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[n][1].end=Object.assign({},o.start),e[r][1].start=Object.assign({},s.end),u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=fi(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=fi(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),u=fi(u,rk(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=fi(u,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,u=fi(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,$a(e,n-1,r-n+3,u),r=n+u.length-c-2;break}}for(r=-1;++r0&&mt(b)?Nt(e,y,"linePrefix",a+1)(b):y(b)}function y(b){return b===null||Ue(b)?e.check(HL,v,S)(b):(e.enter("codeFlowValue"),x(b))}function x(b){return b===null||Ue(b)?(e.exit("codeFlowValue"),y(b)):(e.consume(b),x)}function S(b){return e.exit("codeFenced"),t(b)}function _(b,w,C){let A=0;return T;function T(L){return b.enter("lineEnding"),b.consume(L),b.exit("lineEnding"),M}function M(L){return b.enter("codeFencedFence"),mt(L)?Nt(b,k,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):k(L)}function k(L){return L===s?(b.enter("codeFencedFenceSequence"),I(L)):C(L)}function I(L){return L===s?(A++,b.consume(L),I):A>=o?(b.exit("codeFencedFenceSequence"),mt(L)?Nt(b,P,"whitespace")(L):P(L)):C(L)}function P(L){return L===null||Ue(L)?(b.exit("codeFencedFence"),w(L)):C(L)}}}function Bde(e,t,r){const n=this;return i;function i(o){return o===null?r(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return n.parser.lazy[n.now().line]?r(o):t(o)}}const ob={name:"codeIndented",tokenize:Fde},$de={tokenize:Vde,partial:!0};function Fde(e,t,r){const n=this;return i;function i(u){return e.enter("codeIndented"),Nt(e,a,"linePrefix",4+1)(u)}function a(u){const c=n.events[n.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):r(u)}function o(u){return u===null?l(u):Ue(u)?e.attempt($de,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||Ue(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function Vde(e,t,r){const n=this;return i;function i(o){return n.parser.lazy[n.now().line]?r(o):Ue(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Nt(e,a,"linePrefix",4+1)(o)}function a(o){const s=n.events[n.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):Ue(o)?i(o):r(o)}}const Gde={name:"codeText",tokenize:jde,resolve:Hde,previous:Wde};function Hde(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n=4?t(o):e.interrupt(n.parser.constructs.flow,r,t)(o)}}function A6(e,t,r,n,i,a,o,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return f;function f(m){return m===60?(e.enter(n),e.enter(i),e.enter(a),e.consume(m),e.exit(a),d):m===null||m===32||m===41||rT(m)?r(m):(e.enter(n),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(m))}function d(m){return m===62?(e.enter(a),e.consume(m),e.exit(a),e.exit(i),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===62?(e.exit("chunkString"),e.exit(s),d(m)):m===null||m===60||Ue(m)?r(m):(e.consume(m),m===92?p:h)}function p(m){return m===60||m===62||m===92?(e.consume(m),h):h(m)}function v(m){return!c&&(m===null||m===41||In(m))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(n),t(m)):c999||h===null||h===91||h===93&&!l||h===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?r(h):h===93?(e.exit(a),e.enter(i),e.consume(h),e.exit(i),e.exit(n),t):Ue(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||Ue(h)||s++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!mt(h)),h===92?d:f)}function d(h){return h===91||h===92||h===93?(e.consume(h),s++,f):f(h)}}function k6(e,t,r,n,i,a){let o;return s;function s(d){return d===34||d===39||d===40?(e.enter(n),e.enter(i),e.consume(d),e.exit(i),o=d===40?41:d,l):r(d)}function l(d){return d===o?(e.enter(i),e.consume(d),e.exit(i),e.exit(n),t):(e.enter(a),u(d))}function u(d){return d===o?(e.exit(a),l(o)):d===null?r(d):Ue(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),Nt(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===o||d===null||Ue(d)?(e.exit("chunkString"),u(d)):(e.consume(d),d===92?f:c)}function f(d){return d===o||d===92?(e.consume(d),c):c(d)}}function Wh(e,t){let r;return n;function n(i){return Ue(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):mt(i)?Nt(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}const Qde={name:"definition",tokenize:ehe},Jde={tokenize:the,partial:!0};function ehe(e,t,r){const n=this;let i;return a;function a(h){return e.enter("definition"),o(h)}function o(h){return M6.call(n,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=uf(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):r(h)}function l(h){return In(h)?Wh(e,u)(h):u(h)}function u(h){return A6(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(Jde,f,f)(h)}function f(h){return mt(h)?Nt(e,d,"whitespace")(h):d(h)}function d(h){return h===null||Ue(h)?(e.exit("definition"),n.parser.defined.push(i),t(h)):r(h)}}function the(e,t,r){return n;function n(s){return In(s)?Wh(e,i)(s):r(s)}function i(s){return k6(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return mt(s)?Nt(e,o,"whitespace")(s):o(s)}function o(s){return s===null||Ue(s)?t(s):r(s)}}const rhe={name:"hardBreakEscape",tokenize:nhe};function nhe(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Ue(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const ihe={name:"headingAtx",tokenize:ohe,resolve:ahe};function ahe(e,t){let r=e.length-2,n=3,i,a;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},a={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},$a(e,n,r-n+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function ohe(e,t,r){let n=0;return i;function i(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&n++<6?(e.consume(c),o):c===null||In(c)?(e.exit("atxHeadingSequence"),s(c)):r(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||Ue(c)?(e.exit("atxHeading"),t(c)):mt(c)?Nt(e,s,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),s(c))}function u(c){return c===null||c===35||In(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const she=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],jL=["pre","script","style","textarea"],lhe={name:"htmlFlow",tokenize:dhe,resolveTo:fhe,concrete:!0},uhe={tokenize:phe,partial:!0},che={tokenize:hhe,partial:!0};function fhe(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function dhe(e,t,r){const n=this;let i,a,o,s,l;return u;function u(B){return c(B)}function c(B){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(B),f}function f(B){return B===33?(e.consume(B),d):B===47?(e.consume(B),a=!0,v):B===63?(e.consume(B),i=3,n.interrupt?t:E):ya(B)?(e.consume(B),o=String.fromCharCode(B),g):r(B)}function d(B){return B===45?(e.consume(B),i=2,h):B===91?(e.consume(B),i=5,s=0,p):ya(B)?(e.consume(B),i=4,n.interrupt?t:E):r(B)}function h(B){return B===45?(e.consume(B),n.interrupt?t:E):r(B)}function p(B){const U="CDATA[";return B===U.charCodeAt(s++)?(e.consume(B),s===U.length?n.interrupt?t:k:p):r(B)}function v(B){return ya(B)?(e.consume(B),o=String.fromCharCode(B),g):r(B)}function g(B){if(B===null||B===47||B===62||In(B)){const U=B===47,X=o.toLowerCase();return!U&&!a&&jL.includes(X)?(i=1,n.interrupt?t(B):k(B)):she.includes(o.toLowerCase())?(i=6,U?(e.consume(B),m):n.interrupt?t(B):k(B)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(B):a?y(B):x(B))}return B===45||Vn(B)?(e.consume(B),o+=String.fromCharCode(B),g):r(B)}function m(B){return B===62?(e.consume(B),n.interrupt?t:k):r(B)}function y(B){return mt(B)?(e.consume(B),y):T(B)}function x(B){return B===47?(e.consume(B),T):B===58||B===95||ya(B)?(e.consume(B),S):mt(B)?(e.consume(B),x):T(B)}function S(B){return B===45||B===46||B===58||B===95||Vn(B)?(e.consume(B),S):_(B)}function _(B){return B===61?(e.consume(B),b):mt(B)?(e.consume(B),_):x(B)}function b(B){return B===null||B===60||B===61||B===62||B===96?r(B):B===34||B===39?(e.consume(B),l=B,w):mt(B)?(e.consume(B),b):C(B)}function w(B){return B===l?(e.consume(B),l=null,A):B===null||Ue(B)?r(B):(e.consume(B),w)}function C(B){return B===null||B===34||B===39||B===47||B===60||B===61||B===62||B===96||In(B)?_(B):(e.consume(B),C)}function A(B){return B===47||B===62||mt(B)?x(B):r(B)}function T(B){return B===62?(e.consume(B),M):r(B)}function M(B){return B===null||Ue(B)?k(B):mt(B)?(e.consume(B),M):r(B)}function k(B){return B===45&&i===2?(e.consume(B),z):B===60&&i===1?(e.consume(B),V):B===62&&i===4?(e.consume(B),G):B===63&&i===3?(e.consume(B),E):B===93&&i===5?(e.consume(B),F):Ue(B)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(uhe,j,I)(B)):B===null||Ue(B)?(e.exit("htmlFlowData"),I(B)):(e.consume(B),k)}function I(B){return e.check(che,P,j)(B)}function P(B){return e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),L}function L(B){return B===null||Ue(B)?I(B):(e.enter("htmlFlowData"),k(B))}function z(B){return B===45?(e.consume(B),E):k(B)}function V(B){return B===47?(e.consume(B),o="",N):k(B)}function N(B){if(B===62){const U=o.toLowerCase();return jL.includes(U)?(e.consume(B),G):k(B)}return ya(B)&&o.length<8?(e.consume(B),o+=String.fromCharCode(B),N):k(B)}function F(B){return B===93?(e.consume(B),E):k(B)}function E(B){return B===62?(e.consume(B),G):B===45&&i===2?(e.consume(B),E):k(B)}function G(B){return B===null||Ue(B)?(e.exit("htmlFlowData"),j(B)):(e.consume(B),G)}function j(B){return e.exit("htmlFlow"),t(B)}}function hhe(e,t,r){const n=this;return i;function i(o){return Ue(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):r(o)}function a(o){return n.parser.lazy[n.now().line]?r(o):t(o)}}function phe(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(gx,t,r)}}const vhe={name:"htmlText",tokenize:ghe};function ghe(e,t,r){const n=this;let i,a,o;return s;function s(E){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(E),l}function l(E){return E===33?(e.consume(E),u):E===47?(e.consume(E),_):E===63?(e.consume(E),x):ya(E)?(e.consume(E),C):r(E)}function u(E){return E===45?(e.consume(E),c):E===91?(e.consume(E),a=0,p):ya(E)?(e.consume(E),y):r(E)}function c(E){return E===45?(e.consume(E),h):r(E)}function f(E){return E===null?r(E):E===45?(e.consume(E),d):Ue(E)?(o=f,V(E)):(e.consume(E),f)}function d(E){return E===45?(e.consume(E),h):f(E)}function h(E){return E===62?z(E):E===45?d(E):f(E)}function p(E){const G="CDATA[";return E===G.charCodeAt(a++)?(e.consume(E),a===G.length?v:p):r(E)}function v(E){return E===null?r(E):E===93?(e.consume(E),g):Ue(E)?(o=v,V(E)):(e.consume(E),v)}function g(E){return E===93?(e.consume(E),m):v(E)}function m(E){return E===62?z(E):E===93?(e.consume(E),m):v(E)}function y(E){return E===null||E===62?z(E):Ue(E)?(o=y,V(E)):(e.consume(E),y)}function x(E){return E===null?r(E):E===63?(e.consume(E),S):Ue(E)?(o=x,V(E)):(e.consume(E),x)}function S(E){return E===62?z(E):x(E)}function _(E){return ya(E)?(e.consume(E),b):r(E)}function b(E){return E===45||Vn(E)?(e.consume(E),b):w(E)}function w(E){return Ue(E)?(o=w,V(E)):mt(E)?(e.consume(E),w):z(E)}function C(E){return E===45||Vn(E)?(e.consume(E),C):E===47||E===62||In(E)?A(E):r(E)}function A(E){return E===47?(e.consume(E),z):E===58||E===95||ya(E)?(e.consume(E),T):Ue(E)?(o=A,V(E)):mt(E)?(e.consume(E),A):z(E)}function T(E){return E===45||E===46||E===58||E===95||Vn(E)?(e.consume(E),T):M(E)}function M(E){return E===61?(e.consume(E),k):Ue(E)?(o=M,V(E)):mt(E)?(e.consume(E),M):A(E)}function k(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(e.consume(E),i=E,I):Ue(E)?(o=k,V(E)):mt(E)?(e.consume(E),k):(e.consume(E),P)}function I(E){return E===i?(e.consume(E),i=void 0,L):E===null?r(E):Ue(E)?(o=I,V(E)):(e.consume(E),I)}function P(E){return E===null||E===34||E===39||E===60||E===61||E===96?r(E):E===47||E===62||In(E)?A(E):(e.consume(E),P)}function L(E){return E===47||E===62||In(E)?A(E):r(E)}function z(E){return E===62?(e.consume(E),e.exit("htmlTextData"),e.exit("htmlText"),t):r(E)}function V(E){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),N}function N(E){return mt(E)?Nt(e,F,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):F(E)}function F(E){return e.enter("htmlTextData"),o(E)}}const nk={name:"labelEnd",tokenize:_he,resolveTo:bhe,resolveAll:She},mhe={tokenize:whe},yhe={tokenize:Che},xhe={tokenize:The};function She(e){let t=-1;for(;++t=3&&(u===null||Ue(u))?(e.exit("thematicBreak"),t(u)):r(u)}function l(u){return u===i?(e.consume(u),n++,l):(e.exit("thematicBreakSequence"),mt(u)?Nt(e,s,"whitespace")(u):s(u))}}const mn={name:"list",tokenize:Ehe,continuation:{tokenize:Ohe},exit:zhe},Rhe={tokenize:Bhe,partial:!0},Lhe={tokenize:Nhe,partial:!0};function Ehe(e,t,r){const n=this,i=n.events[n.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(h){const p=n.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!n.containerState.marker||h===n.containerState.marker:nT(h)){if(n.containerState.type||(n.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(qm,r,u)(h):u(h);if(!n.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return r(h)}function l(h){return nT(h)&&++o<10?(e.consume(h),l):(!n.interrupt||o<2)&&(n.containerState.marker?h===n.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):r(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||h,e.check(gx,n.interrupt?r:c,e.attempt(Rhe,d,f))}function c(h){return n.containerState.initialBlankLine=!0,a++,d(h)}function f(h){return mt(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),d):r(h)}function d(h){return n.containerState.size=a+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function Ohe(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(gx,i,a);function i(s){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Nt(e,t,"listItemIndent",n.containerState.size+1)(s)}function a(s){return n.containerState.furtherBlankLines||!mt(s)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,o(s)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(Lhe,t,o)(s))}function o(s){return n.containerState._closeFlow=!0,n.interrupt=void 0,Nt(e,e.attempt(mn,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function Nhe(e,t,r){const n=this;return Nt(e,i,"listItemIndent",n.containerState.size+1);function i(a){const o=n.events[n.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===n.containerState.size?t(a):r(a)}}function zhe(e){e.exit(this.containerState.type)}function Bhe(e,t,r){const n=this;return Nt(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(a){const o=n.events[n.events.length-1];return!mt(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}const UL={name:"setextUnderline",tokenize:Fhe,resolveTo:$he};function $he(e,t){let r=e.length,n,i,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[a][1].end)):e[n][1]=o,e.push(["exit",o,t]),e}function Fhe(e,t,r){const n=this;let i;return a;function a(u){let c=n.events.length,f;for(;c--;)if(n.events[c][1].type!=="lineEnding"&&n.events[c][1].type!=="linePrefix"&&n.events[c][1].type!=="content"){f=n.events[c][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||f)?(e.enter("setextHeadingLine"),i=u,o(u)):r(u)}function o(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),mt(u)?Nt(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||Ue(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const Vhe={tokenize:Ghe};function Ghe(e){const t=this,r=e.attempt(gx,n,e.attempt(this.parser.constructs.flowInitial,i,Nt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(qde,i)),"linePrefix")));return r;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const Hhe={resolveAll:P6()},Whe=I6("string"),jhe=I6("text");function I6(e){return{tokenize:t,resolveAll:P6(e==="text"?Uhe:void 0)};function t(r){const n=this,i=this.parser.constructs[e],a=r.attempt(i,o,s);return o;function o(c){return u(c)?a(c):s(c)}function s(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),l}function l(c){return u(c)?(r.exit("data"),a(c)):(r.consume(c),l)}function u(c){if(c===null)return!0;const f=i[c];let d=-1;if(f)for(;++d-1){const s=o[0];typeof s=="string"?o[0]=s.slice(n):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function Xhe(e,t){let r=-1;const n=[];let i;for(;++r=k:!1}var d=qD(r+"/executeQuery",c,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[lh]=!0,x},condition:function(x,S){var _=S.getState,b,w,C,A=_(),T=(w=(b=A[r])==null?void 0:b.queries)==null?void 0:w[x.queryCacheKey],M=T==null?void 0:T.fulfilledTimeStamp,k=x.originalArgs,I=T==null?void 0:T.originalArgs,D=i[x.endpointName];return JC(x)?!0:(T==null?void 0:T.status)==="pending"?!1:f(x,A)||XG(D)&&((C=D==null?void 0:D.forceRefetch)!=null&&C.call(D,{currentArg:k,previousArg:I,endpointState:T,state:A}))?!0:!M},dispatchConditionRejection:!0}),h=qD(r+"/executeMutation",c,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[lh]=!0,x}}),p=function(x){return"force"in x},v=function(x){return"ifOlderThan"in x},g=function(x,S,_){return function(b,w){var C=p(_)&&_.force,A=v(_)&&_.ifOlderThan,T=function(D){return D===void 0&&(D=!0),o.endpoints[x].initiate(S,{forceRefetch:D})},M=o.endpoints[x].select(S)(w());if(C)b(T());else if(A){var k=M==null?void 0:M.fulfilledTimeStamp;if(!k){b(T());return}var I=(Number(new Date)-Number(new Date(k)))/1e3>=A;I&&b(T())}else b(T(!1))}};function m(x){return function(S){var _,b;return((b=(_=S==null?void 0:S.meta)==null?void 0:_.arg)==null?void 0:b.endpointName)===x}}function y(x,S){return{matchPending:Nh(J2(x),m(S)),matchFulfilled:Nh(zu(x),m(S)),matchRejected:Nh(Mp(x),m(S))}}return{queryThunk:d,mutationThunk:h,prefetch:g,updateQueryData:l,upsertQueryData:u,patchQueryData:s,buildMatchThunkActions:y}}function KG(e,t,r,n){return ZG(r[e.meta.arg.endpointName][t],zu(e)?e.payload:void 0,T1(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function Sg(e,t,r){var n=e[t];n&&r(n)}function Np(e){var t;return(t="arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)!=null?t:e.requestId}function SL(e,t,r){var n=e[Np(t)];n&&r(n)}var Ad={};function que(e){var t=e.reducerPath,r=e.queryThunk,n=e.mutationThunk,i=e.context,a=i.endpointDefinitions,o=i.apiUid,s=i.extractRehydrationInfo,l=i.hasRehydrationInfo,u=e.assertTagType,c=e.config,f=Mn(t+"/resetApiState"),d=ci({name:t+"/queries",initialState:Ad,reducers:{removeQueryResult:{reducer:function(_,b){var w=b.payload.queryCacheKey;delete _[w]},prepare:GS()},queryResultPatched:function(_,b){var w=b.payload,C=w.queryCacheKey,A=w.patches;Sg(_,C,function(T){T.data=$D(T.data,A.concat())})}},extraReducers:function(_){_.addCase(r.pending,function(b,w){var C=w.meta,A=w.meta.arg,T,M,k=JC(A);(A.subscribe||k)&&((M=b[T=A.queryCacheKey])!=null||(b[T]={status:Ht.uninitialized,endpointName:A.endpointName})),Sg(b,A.queryCacheKey,function(I){I.status=Ht.pending,I.requestId=k&&I.requestId?I.requestId:C.requestId,A.originalArgs!==void 0&&(I.originalArgs=A.originalArgs),I.startedTimeStamp=C.startedTimeStamp})}).addCase(r.fulfilled,function(b,w){var C=w.meta,A=w.payload;Sg(b,C.arg.queryCacheKey,function(T){var M;if(!(T.requestId!==C.requestId&&!JC(C.arg))){var k=a[C.arg.endpointName].merge;if(T.status=Ht.fulfilled,k)if(T.data!==void 0){var I=C.fulfilledTimeStamp,D=C.arg,L=C.baseQueryMeta,z=C.requestId,V=yv(T.data,function(N){return k(N,A,{arg:D.originalArgs,baseQueryMeta:L,fulfilledTimeStamp:I,requestId:z})});T.data=V}else T.data=A;else T.data=(M=a[C.arg.endpointName].structuralSharing)==null||M?UG(Zi(T.data)?NX(T.data):T.data,A):A;delete T.error,T.fulfilledTimeStamp=C.fulfilledTimeStamp}})}).addCase(r.rejected,function(b,w){var C=w.meta,A=C.condition,T=C.arg,M=C.requestId,k=w.error,I=w.payload;Sg(b,T.queryCacheKey,function(D){if(!A){if(D.requestId!==M)return;D.status=Ht.rejected,D.error=I??k}})}).addMatcher(l,function(b,w){for(var C=s(w).queries,A=0,T=Object.entries(C);A({getStats:e.query({query:()=>"stats/requests",transformResponse:Uc}),getTasks:e.query({query:()=>"tasks",transformResponse:Uc}),getExceptions:e.query({query:()=>"exceptions",transformResponse:Uc}),getLogs:e.query({query:()=>"logs",transformResponse:Uc}),startSwarm:e.mutation({query:t=>({url:"swarm",method:"POST",body:$K(aR(t)),headers:{"content-type":"application/x-www-form-urlencoded"}})}),updateUserSettings:e.mutation({query:t=>({url:"user",method:"POST",body:aR(t)})})})}),{useGetStatsQuery:Tce,useGetTasksQuery:Ace,useGetExceptionsQuery:Mce,useGetLogsQuery:kce,useStartSwarmMutation:JG,useUpdateUserSettingsMutation:Ice}=i0;function Pce({onSubmit:e,numUsers:t,spawnRate:r}){const[n]=JG(),i=a=>{e(),n(a)};return P.jsxs(Uf,{maxWidth:"md",sx:{my:2},children:[P.jsx(We,{component:"h2",noWrap:!0,variant:"h6",children:"Edit running load test"}),P.jsx(UM,{onSubmit:i,children:P.jsxs(Qe,{sx:{my:2,display:"flex",flexDirection:"column",rowGap:4},children:[P.jsx(wa,{defaultValue:t||1,label:"Number of users (peak concurrency)",name:"userCount"}),P.jsx(wa,{defaultValue:r||1,label:"Ramp up (users started/second)",name:"spawnRate"}),P.jsx(qa,{size:"large",type:"submit",variant:"contained",children:"Update"})]})})]})}const Dce=({swarm:{spawnRate:e,numUsers:t}})=>({spawnRate:e,numUsers:t}),Rce=Ln(Dce)(Pce);function Lce(){const[e,t]=O.useState(!1);return P.jsxs(P.Fragment,{children:[P.jsx(qa,{color:"secondary",onClick:()=>t(!0),type:"button",variant:"contained",children:"Edit"}),P.jsx(vx,{onClose:()=>t(!1),open:e,children:P.jsx(Rce,{onSubmit:()=>t(!1)})})]})}var XM={},Ece=$u;Object.defineProperty(XM,"__esModule",{value:!0});var gx=XM.default=void 0,Oce=Ece(Fu()),Nce=P,zce=(0,Oce.default)((0,Nce.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");gx=XM.default=zce;function ZM({label:e,name:t,options:r,multiple:n=!1,defaultValue:i,sx:a}){return P.jsxs(dG,{sx:a,children:[P.jsx($M,{htmlFor:t,shrink:!0,children:e}),P.jsx(PG,{defaultValue:i||n&&r||r[0],id:t,label:e,multiple:n,name:t,native:!0,children:r.map((o,s)=>P.jsx("option",{value:o,children:o},`option-${o}-${s}`))})]})}function Bce({label:e,defaultValue:t,choices:r,helpText:n,isSecret:i}){const a=bV(e),o=n?`${a} (${n})`:a;return r?P.jsx(ZM,{defaultValue:t,label:o,name:e,options:r,sx:{width:"100%"}}):typeof t=="boolean"?P.jsx(pG,{control:P.jsx(ZC,{defaultChecked:t}),label:o,name:e}):P.jsx(wa,{defaultValue:t,label:o,name:e,sx:{width:"100%"},type:i?"password":"text"})}function $ce({extraOptions:e}){return P.jsxs(LM,{children:[P.jsx(OM,{expandIcon:P.jsx(gx,{}),children:P.jsx(We,{children:"Custom parameters"})}),P.jsx(EM,{children:P.jsx(Qe,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:Object.entries(e).map(([t,r],n)=>P.jsx(Bce,{label:t,...r},`valid-parameter-${n}`))})})]})}var KM={},Fce=$u;Object.defineProperty(KM,"__esModule",{value:!0});var e6=KM.default=void 0,Vce=Fce(Fu()),Gce=P,Hce=(0,Vce.default)((0,Gce.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}),"Settings");e6=KM.default=Hce;function Tv(e,{payload:t}){return BK(e,t)}const Wce=Ra,t6=ci({name:"swarm",initialState:Wce,reducers:{setSwarm:Tv}}),QM=t6.actions,jce=t6.reducer;function Uce({availableTasks:e,userToEdit:t,handleEditUser:r}){const{tasks:n,...i}=t.userClass;return P.jsx(UM,{onSubmit:r,children:P.jsxs(Qe,{sx:{display:"flex",flexDirection:"column",rowGap:4,my:2},children:[P.jsx(We,{children:`${t.userClassName} Settings`}),P.jsx(ZM,{defaultValue:n,label:"Tasks",multiple:!0,name:"tasks",options:e}),Object.entries(i).map(([a,o])=>P.jsx(wa,{defaultValue:o,inputProps:{"data-type":typeof o=="number"?"number":"text"},label:bV(a),name:a},`user-to-edit-${a}`)),P.jsx(qa,{size:"large",type:"submit",variant:"contained",children:"Save"})]})})}function qce({availableUserClasses:e,availableUserTasks:t,selectedUserClasses:r,setSelectedUserClasses:n,setSwarm:i,users:a}){const[o,s]=O.useState(!1),[l,u]=O.useState(),[c]=Ice(),f=g=>{l&&(i({users:{...a,[l.userClassName]:g}}),c({...g,userClassName:l.userClassName}),s(!1))},d=g=>()=>r.includes(g)?n(r.filter(m=>m!==g)):n(r.concat(g)),h=r.length,p=e.length,v=g=>g.target.checked?n(e):n([]);return P.jsxs(P.Fragment,{children:[P.jsx(Qe,{sx:{position:"relative",border:"1px",borderColor:"divider",borderStyle:"solid",padding:2,borderRadius:1},children:P.jsxs(Qe,{sx:{maxHeight:"30vh",overflow:"auto"},children:[P.jsx($M,{shrink:!0,sx:{position:"absolute",backgroundColor:"background.paper",width:"fit-content",top:"0",marginTop:"-5px",padding:"0 5px"},children:"User Classes"}),P.jsx(vG,{children:P.jsx(EG,{component:Os,children:P.jsxs(RG,{children:[P.jsx(OG,{children:P.jsx(Qy,{children:P.jsx(Vl,{colSpan:4,padding:"checkbox",children:P.jsx(ZC,{checked:p>0&&h===p,indeterminate:h>0&&hP.jsxs(Qy,{hover:!0,children:[P.jsx(Vl,{onClick:d(g),padding:"checkbox",children:P.jsx(ZC,{checked:r.includes(g)})}),P.jsx(Vl,{children:g}),P.jsx(Vl,{children:P.jsx(We,{variant:"subtitle2",children:m.host})}),P.jsx(Vl,{align:"right",children:P.jsx(Cv,{onClick:()=>{s(!o),u({userClass:m,userClassName:g})},children:P.jsx(e6,{})})})]},`user-class-${g}`))})]})})})]})}),P.jsx(vx,{onClose:()=>s(!1),open:o,children:l&&P.jsx(Uce,{availableTasks:t[l.userClassName],handleEditUser:f,userToEdit:l})})]})}const Yce={setSwarm:QM.setSwarm},Xce=({swarm:{availableUserTasks:e,users:t}})=>({availableUserTasks:e,users:t}),Zce=Ln(Xce,Yce)(qce);function Kce({availableShapeClasses:e,availableUserClasses:t,host:r,extraOptions:n,isShape:i,numUsers:a,overrideHostWarning:o,runTime:s,setSwarm:l,showUserclassPicker:u,spawnRate:c}){const[f]=JG(),[d,h]=O.useState(t),p=v=>{l({state:mi.RUNNING,host:v.host||r,runTime:v.runTime,spawnRate:Number(v.spawnRate)||null,numUsers:Number(v.userCount)||null}),f({...v,...u&&d?{userClasses:d}:{}})};return P.jsxs(Uf,{maxWidth:"md",sx:{my:2},children:[P.jsx(We,{component:"h2",noWrap:!0,variant:"h6",children:"Start new load test"}),u&&P.jsx(Qe,{marginBottom:2,marginTop:2,children:P.jsx(Zce,{availableUserClasses:t,selectedUserClasses:d,setSelectedUserClasses:h})}),P.jsx(UM,{onSubmit:p,children:P.jsxs(Qe,{sx:{marginBottom:2,marginTop:2,display:"flex",flexDirection:"column",rowGap:4},children:[u&&P.jsx(ZM,{label:"Shape Class",name:"shapeClass",options:e}),P.jsx(wa,{defaultValue:i&&"-"||a||1,disabled:!!i,label:"Number of users (peak concurrency)",name:"userCount"}),P.jsx(wa,{defaultValue:i&&"-"||c||1,disabled:!!i,label:"Ramp up (users started/second)",name:"spawnRate",title:"Disabled for tests using LoadTestShape class"}),P.jsx(wa,{defaultValue:r,label:`Host ${o?"(setting this will override the host for the User classes)":""}`,name:"host",title:"Disabled for tests using LoadTestShape class"}),P.jsxs(LM,{children:[P.jsx(OM,{expandIcon:P.jsx(gx,{}),children:P.jsx(We,{children:"Advanced options"})}),P.jsx(EM,{children:P.jsx(wa,{defaultValue:s,label:"Run time (e.g. 20, 20s, 3m, 2h, 1h20m, 3h30m10s, etc.)",name:"runTime",sx:{width:"100%"}})})]}),!zK(n)&&P.jsx($ce,{extraOptions:n}),P.jsx(qa,{size:"large",type:"submit",variant:"contained",children:"Start"})]})})]})}const Qce=({swarm:{availableShapeClasses:e,availableUserClasses:t,extraOptions:r,isShape:n,host:i,numUsers:a,overrideHostWarning:o,runTime:s,spawnRate:l,showUserclassPicker:u}})=>({availableShapeClasses:e,availableUserClasses:t,extraOptions:r,isShape:n,host:i,overrideHostWarning:o,showUserclassPicker:u,numUsers:a,runTime:s,spawnRate:l}),Jce={setSwarm:QM.setSwarm},r6=Ln(Qce,Jce)(Kce);function efe(){const[e,t]=O.useState(!1);return P.jsxs(P.Fragment,{children:[P.jsx(qa,{color:"success",onClick:()=>t(!0),type:"button",variant:"contained",children:"New"}),P.jsx(vx,{onClose:()=>t(!1),open:e,children:P.jsx(r6,{})})]})}function tfe(){const e=()=>{fetch("stats/reset")};return P.jsx(qa,{color:"warning",onClick:e,type:"button",variant:"contained",children:"Reset"})}function rfe(){const[e,t]=O.useState(!1);O.useEffect(()=>{t(!1)},[]);const r=()=>{fetch("stop"),t(!0)};return P.jsx(qa,{color:"error",disabled:e,onClick:r,type:"button",variant:"contained",children:e?"Loading":"Stop"})}function nfe(){const e=Zs(({swarm:t})=>t.state);return e===mi.READY?null:P.jsxs(Qe,{sx:{display:"flex",columnGap:2},children:[e===mi.STOPPED?P.jsx(efe,{}):P.jsxs(P.Fragment,{children:[P.jsx(Lce,{}),P.jsx(rfe,{})]}),P.jsx(tfe,{})]})}function ife(){return P.jsx(ane,{position:"static",children:P.jsx(Uf,{maxWidth:"xl",children:P.jsxs(ble,{sx:{display:"flex",justifyContent:"space-between"},children:[P.jsxs(on,{color:"inherit",href:"/",sx:{display:"flex",alignItems:"center",columnGap:2},underline:"none",children:[P.jsx("img",{height:"52",src:"./assets/logo.png",width:"52"}),P.jsx(We,{component:"h1",noWrap:!0,sx:{fontWeight:700,display:"flex",alignItems:"center"},variant:"h3",children:"Locust"})]}),P.jsxs(Qe,{sx:{display:"flex",columnGap:6},children:[P.jsx(Mue,{}),P.jsx(nfe,{}),P.jsx(GG,{})]})]})})})}function afe({children:e}){return P.jsxs(P.Fragment,{children:[P.jsxs(Qe,{sx:{minHeight:"calc(100vh - var(--footer-height))"},children:[P.jsx(ife,{}),P.jsx("main",{children:e})]}),P.jsx(Cue,{})]})}function fh(e,t,{shouldRunInterval:r}={shouldRunInterval:!0}){const n=O.useRef(e);O.useEffect(()=>{n.current=e},[e]),O.useEffect(()=>{if(!r)return;const i=setInterval(()=>n.current(),t);return()=>{clearInterval(i)}},[t,r])}const ofe={},n6=ci({name:"notification",initialState:ofe,reducers:{setNotification:Tv}}),i6=n6.actions,sfe=n6.reducer;function lfe(e,{key:t,shouldNotify:r}){const n=Kl(i6.setNotification),i=Zs(({url:{query:o}})=>o&&o.tab),a=`${t}Notification`;O.useEffect(()=>{$l(e)>0&&$l(e)(localStorage[a]||0)&&(!i||i!==t)&&(!r||r&&r())&&(n({[t]:!0}),localStorage[a]=$l(e))},[e])}const ufe={master:[],workers:{}},a6=ci({name:"logViewer",initialState:ufe,reducers:{setLogs:Tv}}),cfe=a6.actions,ffe=a6.reducer,dfe=e=>e.includes("WARNING")||e.includes("ERROR")||e.includes("CRITICAL");function hfe(){const e=Zs(({swarm:o})=>o),t=Kl(cfe.setLogs),{data:r,refetch:n}=kce(),i=r||{master:[],workers:{}},a=O.useCallback(()=>i.master.slice(localStorage.logViewer).some(dfe),[i]);return fh(n,5e3,{shouldRunInterval:e.state===mi.SPAWNING||e.state==mi.RUNNING}),lfe(i.master,{key:"logViewer",shouldNotify:a}),O.useEffect(()=>{t(i)},[i]),i}var JM={},pfe=$u;Object.defineProperty(JM,"__esModule",{value:!0});var o6=JM.default=void 0,vfe=pfe(Fu()),PL=P,gfe=(0,vfe.default)([(0,PL.jsx)("circle",{cx:"12",cy:"19",r:"2"},"0"),(0,PL.jsx)("path",{d:"M10 3h4v12h-4z"},"1")],"PriorityHigh");o6=JM.default=gfe;function mfe(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const yfe=/[ \t\n\f\r]/g;function xfe(e){return typeof e=="object"?e.type==="text"?DL(e.value):!1:DL(e)}function DL(e){return e.replace(yfe,"")===""}class Av{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}}Av.prototype.property={};Av.prototype.normal={};Av.prototype.space=null;function s6(e,t){const r={},n={};let i=-1;for(;++i4&&r.slice(0,4)==="data"&&Cfe.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(LL,kfe);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!LL.test(a)){let o=a.replace(Tfe,Mfe);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=ek}return new i(n,t)}function Mfe(e){return"-"+e.toLowerCase()}function kfe(e){return e.charAt(1).toUpperCase()}const Ife={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Pfe=s6([c6,u6,h6,p6,_fe],"html"),v6=s6([c6,u6,h6,p6,wfe],"svg");function Dfe(e){return e.join(" ").trim()}var tk={exports:{}},EL=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Rfe=/\n/g,Lfe=/^\s*/,Efe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Ofe=/^:\s*/,Nfe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,zfe=/^[;\s]*/,Bfe=/^\s+|\s+$/g,$fe=` +`,OL="/",NL="*",Gl="",Ffe="comment",Vfe="declaration",Gfe=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,n=1;function i(p){var v=p.match(Rfe);v&&(r+=v.length);var g=p.lastIndexOf($fe);n=~g?p.length-g:n+p.length}function a(){var p={line:r,column:n};return function(v){return v.position=new o(p),u(),v}}function o(p){this.start=p,this.end={line:r,column:n},this.source=t.source}o.prototype.content=e;function s(p){var v=new Error(t.source+":"+r+":"+n+": "+p);if(v.reason=p,v.filename=t.source,v.line=r,v.column=n,v.source=e,!t.silent)throw v}function l(p){var v=p.exec(e);if(v){var g=v[0];return i(g),e=e.slice(g.length),v}}function u(){l(Lfe)}function c(p){var v;for(p=p||[];v=f();)v!==!1&&p.push(v);return p}function f(){var p=a();if(!(OL!=e.charAt(0)||NL!=e.charAt(1))){for(var v=2;Gl!=e.charAt(v)&&(NL!=e.charAt(v)||OL!=e.charAt(v+1));)++v;if(v+=2,Gl===e.charAt(v-1))return s("End of comment missing");var g=e.slice(2,v-2);return n+=2,i(g),e=e.slice(v),n+=2,p({type:Ffe,comment:g})}}function d(){var p=a(),v=l(Efe);if(v){if(f(),!l(Ofe))return s("property missing ':'");var g=l(Nfe),m=p({type:Vfe,property:zL(v[0].replace(EL,Gl)),value:g?zL(g[0].replace(EL,Gl)):Gl});return l(zfe),m}}function h(){var p=[];c(p);for(var v;v=d();)v!==!1&&(p.push(v),c(p));return p}return u(),h()};function zL(e){return e?e.replace(Bfe,Gl):Gl}var Hfe=Gfe;function g6(e,t){var r=null;if(!e||typeof e!="string")return r;for(var n,i=Hfe(e),a=typeof t=="function",o,s,l=0,u=i.length;l0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function Ufe(e){const t=rk(e),r=m6(e);if(t&&r)return{start:t,end:r}}function Hh(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?BL(e.position):"start"in e||"end"in e?BL(e):"line"in e||"column"in e?rT(e):""}function rT(e){return $L(e&&e.line)+":"+$L(e&&e.column)}function BL(e){return rT(e&&e.start)+"-"+rT(e&&e.end)}function $L(e){return e&&typeof e=="number"?e:1}class pn extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",a={},o=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof t=="string"?i=t:!a.cause&&t&&(o=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof n=="string"){const l=n.indexOf(":");l===-1?a.ruleId=n:(a.source=n.slice(0,l),a.ruleId=n.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=Hh(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}pn.prototype.file="";pn.prototype.name="";pn.prototype.reason="";pn.prototype.message="";pn.prototype.stack="";pn.prototype.column=void 0;pn.prototype.line=void 0;pn.prototype.ancestors=void 0;pn.prototype.cause=void 0;pn.prototype.fatal=void 0;pn.prototype.place=void 0;pn.prototype.ruleId=void 0;pn.prototype.source=void 0;const nk={}.hasOwnProperty,qfe=new Map,Yfe=/[A-Z]/g,Xfe=/-([a-z])/g,Zfe=new Set(["table","tbody","thead","tfoot","tr"]),Kfe=new Set(["td","th"]);function Qfe(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let n;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=ede(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");n=Jfe(r,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?v6:Pfe,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=x6(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function x6(e,t,r){if(t.type==="element"||t.type==="root"){const n=e.schema;let i=n;t.type==="element"&&t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(i=v6,e.schema=i),e.ancestors.push(t);let a=tde(e,t);const o=rde(e,e.ancestors);let s=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(a&&Zfe.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!xfe(l):!0})),nk.call(e.components,t.tagName)){const l=t.tagName;s=e.components[l],typeof s!="string"&&s!==e.Fragment&&e.passNode&&(o.node=t)}else s=t.tagName;if(a.length>0){const l=a.length>1?a:a[0];l&&(o.children=l)}return e.schema=n,e.create(t,s,o,r)}if(t.type==="text")return t.value}function Jfe(e,t,r){return n;function n(i,a,o,s){const u=Array.isArray(o.children)?r:t;return s?u(a,o,s):u(a,o)}}function ede(e,t){return r;function r(n,i,a,o){const s=Array.isArray(a.children),l=rk(n);return t(i,a,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function tde(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:qfe;for(;++n-1&&e.test(String.fromCharCode(r))}}const pde={'"':"quot","&":"amp","<":"lt",">":"gt"};function vde(e){return e.replace(/["&<>]/g,t);function t(r){return"&"+pde[r]+";"}}function gde(e,t){const r=vde(Gu(e||""));if(!t)return r;const n=r.indexOf(":"),i=r.indexOf("?"),a=r.indexOf("#"),o=r.indexOf("/");return n<0||o>-1&&n>o||i>-1&&n>i||a>-1&&n>a||t.test(r.slice(0,n))?r:""}function Gu(e){const t=[];let r=-1,n=0,i=0;for(;++r55295&&a<57344){const s=e.charCodeAt(r+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(n,r),encodeURIComponent(o)),n=r+i+1,o=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}const mde={};function yde(e,t){const r=t||mde,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return b6(e,n,i)}function b6(e,t,r){if(xde(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return FL(e.children,t,r)}return Array.isArray(e)?FL(e,t,r):""}function FL(e,t,r){const n=[];let i=-1;for(;++ii?0:i+t:t=t>i?i:t,r=r>0?r:0,n.length<1e4)o=Array.from(n),o.unshift(t,r),e.splice(...o);else for(r&&e.splice(t,r);a0?($a(e,e.length,0,t),e):t}const GL={}.hasOwnProperty;function Sde(e){const t={};let r=-1;for(;++r13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCharCode(r)}function uf(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function Nt(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(l){return mt(l)?(e.enter(r),s(l)):t(l)}function s(l){return mt(l)&&a++o))return;const w=t.events.length;let C=w,A,T;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){if(A){T=t.events[C][1].end;break}A=!0}for(m(n),b=w;bx;){const _=r[S];t.containerState=_[1],_[0].exit.call(t,e)}r.length=x}function y(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Mde(e,t,r){return Nt(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function WL(e){if(e===null||In(e)||hde(e))return 1;if(dde(e))return 2}function ak(e,t,r){const n=[];let i=-1;for(;++i1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const f=Object.assign({},e[n][1].end),d=Object.assign({},e[r][1].start);jL(f,-l),jL(d,l),o={type:l>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[n][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[r][1].start),end:d},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[r][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[n][1].end=Object.assign({},o.start),e[r][1].start=Object.assign({},s.end),u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=fi(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=fi(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),u=fi(u,ak(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=fi(u,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,u=fi(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,$a(e,n-1,r-n+3,u),r=n+u.length-c-2;break}}for(r=-1;++r0&&mt(b)?Nt(e,y,"linePrefix",a+1)(b):y(b)}function y(b){return b===null||Ue(b)?e.check(UL,v,S)(b):(e.enter("codeFlowValue"),x(b))}function x(b){return b===null||Ue(b)?(e.exit("codeFlowValue"),y(b)):(e.consume(b),x)}function S(b){return e.exit("codeFenced"),t(b)}function _(b,w,C){let A=0;return T;function T(L){return b.enter("lineEnding"),b.consume(L),b.exit("lineEnding"),M}function M(L){return b.enter("codeFencedFence"),mt(L)?Nt(b,k,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):k(L)}function k(L){return L===s?(b.enter("codeFencedFenceSequence"),I(L)):C(L)}function I(L){return L===s?(A++,b.consume(L),I):A>=o?(b.exit("codeFencedFenceSequence"),mt(L)?Nt(b,D,"whitespace")(L):D(L)):C(L)}function D(L){return L===null||Ue(L)?(b.exit("codeFencedFence"),w(L)):C(L)}}}function $de(e,t,r){const n=this;return i;function i(o){return o===null?r(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return n.parser.lazy[n.now().line]?r(o):t(o)}}const sb={name:"codeIndented",tokenize:Vde},Fde={tokenize:Gde,partial:!0};function Vde(e,t,r){const n=this;return i;function i(u){return e.enter("codeIndented"),Nt(e,a,"linePrefix",4+1)(u)}function a(u){const c=n.events[n.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):r(u)}function o(u){return u===null?l(u):Ue(u)?e.attempt(Fde,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||Ue(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function Gde(e,t,r){const n=this;return i;function i(o){return n.parser.lazy[n.now().line]?r(o):Ue(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Nt(e,a,"linePrefix",4+1)(o)}function a(o){const s=n.events[n.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):Ue(o)?i(o):r(o)}}const Hde={name:"codeText",tokenize:Ude,resolve:Wde,previous:jde};function Wde(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n=4?t(o):e.interrupt(n.parser.constructs.flow,r,t)(o)}}function M6(e,t,r,n,i,a,o,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return f;function f(m){return m===60?(e.enter(n),e.enter(i),e.enter(a),e.consume(m),e.exit(a),d):m===null||m===32||m===41||nT(m)?r(m):(e.enter(n),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(m))}function d(m){return m===62?(e.enter(a),e.consume(m),e.exit(a),e.exit(i),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===62?(e.exit("chunkString"),e.exit(s),d(m)):m===null||m===60||Ue(m)?r(m):(e.consume(m),m===92?p:h)}function p(m){return m===60||m===62||m===92?(e.consume(m),h):h(m)}function v(m){return!c&&(m===null||m===41||In(m))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(n),t(m)):c999||h===null||h===91||h===93&&!l||h===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?r(h):h===93?(e.exit(a),e.enter(i),e.consume(h),e.exit(i),e.exit(n),t):Ue(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||Ue(h)||s++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!mt(h)),h===92?d:f)}function d(h){return h===91||h===92||h===93?(e.consume(h),s++,f):f(h)}}function I6(e,t,r,n,i,a){let o;return s;function s(d){return d===34||d===39||d===40?(e.enter(n),e.enter(i),e.consume(d),e.exit(i),o=d===40?41:d,l):r(d)}function l(d){return d===o?(e.enter(i),e.consume(d),e.exit(i),e.exit(n),t):(e.enter(a),u(d))}function u(d){return d===o?(e.exit(a),l(o)):d===null?r(d):Ue(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),Nt(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===o||d===null||Ue(d)?(e.exit("chunkString"),u(d)):(e.consume(d),d===92?f:c)}function f(d){return d===o||d===92?(e.consume(d),c):c(d)}}function Wh(e,t){let r;return n;function n(i){return Ue(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):mt(i)?Nt(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}const Jde={name:"definition",tokenize:the},ehe={tokenize:rhe,partial:!0};function the(e,t,r){const n=this;let i;return a;function a(h){return e.enter("definition"),o(h)}function o(h){return k6.call(n,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=uf(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):r(h)}function l(h){return In(h)?Wh(e,u)(h):u(h)}function u(h){return M6(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(ehe,f,f)(h)}function f(h){return mt(h)?Nt(e,d,"whitespace")(h):d(h)}function d(h){return h===null||Ue(h)?(e.exit("definition"),n.parser.defined.push(i),t(h)):r(h)}}function rhe(e,t,r){return n;function n(s){return In(s)?Wh(e,i)(s):r(s)}function i(s){return I6(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return mt(s)?Nt(e,o,"whitespace")(s):o(s)}function o(s){return s===null||Ue(s)?t(s):r(s)}}const nhe={name:"hardBreakEscape",tokenize:ihe};function ihe(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Ue(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const ahe={name:"headingAtx",tokenize:she,resolve:ohe};function ohe(e,t){let r=e.length-2,n=3,i,a;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},a={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},$a(e,n,r-n+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function she(e,t,r){let n=0;return i;function i(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&n++<6?(e.consume(c),o):c===null||In(c)?(e.exit("atxHeadingSequence"),s(c)):r(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||Ue(c)?(e.exit("atxHeading"),t(c)):mt(c)?Nt(e,s,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),s(c))}function u(c){return c===null||c===35||In(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const lhe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],YL=["pre","script","style","textarea"],uhe={name:"htmlFlow",tokenize:hhe,resolveTo:dhe,concrete:!0},che={tokenize:vhe,partial:!0},fhe={tokenize:phe,partial:!0};function dhe(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function hhe(e,t,r){const n=this;let i,a,o,s,l;return u;function u(B){return c(B)}function c(B){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(B),f}function f(B){return B===33?(e.consume(B),d):B===47?(e.consume(B),a=!0,v):B===63?(e.consume(B),i=3,n.interrupt?t:E):ya(B)?(e.consume(B),o=String.fromCharCode(B),g):r(B)}function d(B){return B===45?(e.consume(B),i=2,h):B===91?(e.consume(B),i=5,s=0,p):ya(B)?(e.consume(B),i=4,n.interrupt?t:E):r(B)}function h(B){return B===45?(e.consume(B),n.interrupt?t:E):r(B)}function p(B){const U="CDATA[";return B===U.charCodeAt(s++)?(e.consume(B),s===U.length?n.interrupt?t:k:p):r(B)}function v(B){return ya(B)?(e.consume(B),o=String.fromCharCode(B),g):r(B)}function g(B){if(B===null||B===47||B===62||In(B)){const U=B===47,X=o.toLowerCase();return!U&&!a&&YL.includes(X)?(i=1,n.interrupt?t(B):k(B)):lhe.includes(o.toLowerCase())?(i=6,U?(e.consume(B),m):n.interrupt?t(B):k(B)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(B):a?y(B):x(B))}return B===45||Vn(B)?(e.consume(B),o+=String.fromCharCode(B),g):r(B)}function m(B){return B===62?(e.consume(B),n.interrupt?t:k):r(B)}function y(B){return mt(B)?(e.consume(B),y):T(B)}function x(B){return B===47?(e.consume(B),T):B===58||B===95||ya(B)?(e.consume(B),S):mt(B)?(e.consume(B),x):T(B)}function S(B){return B===45||B===46||B===58||B===95||Vn(B)?(e.consume(B),S):_(B)}function _(B){return B===61?(e.consume(B),b):mt(B)?(e.consume(B),_):x(B)}function b(B){return B===null||B===60||B===61||B===62||B===96?r(B):B===34||B===39?(e.consume(B),l=B,w):mt(B)?(e.consume(B),b):C(B)}function w(B){return B===l?(e.consume(B),l=null,A):B===null||Ue(B)?r(B):(e.consume(B),w)}function C(B){return B===null||B===34||B===39||B===47||B===60||B===61||B===62||B===96||In(B)?_(B):(e.consume(B),C)}function A(B){return B===47||B===62||mt(B)?x(B):r(B)}function T(B){return B===62?(e.consume(B),M):r(B)}function M(B){return B===null||Ue(B)?k(B):mt(B)?(e.consume(B),M):r(B)}function k(B){return B===45&&i===2?(e.consume(B),z):B===60&&i===1?(e.consume(B),V):B===62&&i===4?(e.consume(B),G):B===63&&i===3?(e.consume(B),E):B===93&&i===5?(e.consume(B),F):Ue(B)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(che,j,I)(B)):B===null||Ue(B)?(e.exit("htmlFlowData"),I(B)):(e.consume(B),k)}function I(B){return e.check(fhe,D,j)(B)}function D(B){return e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),L}function L(B){return B===null||Ue(B)?I(B):(e.enter("htmlFlowData"),k(B))}function z(B){return B===45?(e.consume(B),E):k(B)}function V(B){return B===47?(e.consume(B),o="",N):k(B)}function N(B){if(B===62){const U=o.toLowerCase();return YL.includes(U)?(e.consume(B),G):k(B)}return ya(B)&&o.length<8?(e.consume(B),o+=String.fromCharCode(B),N):k(B)}function F(B){return B===93?(e.consume(B),E):k(B)}function E(B){return B===62?(e.consume(B),G):B===45&&i===2?(e.consume(B),E):k(B)}function G(B){return B===null||Ue(B)?(e.exit("htmlFlowData"),j(B)):(e.consume(B),G)}function j(B){return e.exit("htmlFlow"),t(B)}}function phe(e,t,r){const n=this;return i;function i(o){return Ue(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):r(o)}function a(o){return n.parser.lazy[n.now().line]?r(o):t(o)}}function vhe(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(mx,t,r)}}const ghe={name:"htmlText",tokenize:mhe};function mhe(e,t,r){const n=this;let i,a,o;return s;function s(E){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(E),l}function l(E){return E===33?(e.consume(E),u):E===47?(e.consume(E),_):E===63?(e.consume(E),x):ya(E)?(e.consume(E),C):r(E)}function u(E){return E===45?(e.consume(E),c):E===91?(e.consume(E),a=0,p):ya(E)?(e.consume(E),y):r(E)}function c(E){return E===45?(e.consume(E),h):r(E)}function f(E){return E===null?r(E):E===45?(e.consume(E),d):Ue(E)?(o=f,V(E)):(e.consume(E),f)}function d(E){return E===45?(e.consume(E),h):f(E)}function h(E){return E===62?z(E):E===45?d(E):f(E)}function p(E){const G="CDATA[";return E===G.charCodeAt(a++)?(e.consume(E),a===G.length?v:p):r(E)}function v(E){return E===null?r(E):E===93?(e.consume(E),g):Ue(E)?(o=v,V(E)):(e.consume(E),v)}function g(E){return E===93?(e.consume(E),m):v(E)}function m(E){return E===62?z(E):E===93?(e.consume(E),m):v(E)}function y(E){return E===null||E===62?z(E):Ue(E)?(o=y,V(E)):(e.consume(E),y)}function x(E){return E===null?r(E):E===63?(e.consume(E),S):Ue(E)?(o=x,V(E)):(e.consume(E),x)}function S(E){return E===62?z(E):x(E)}function _(E){return ya(E)?(e.consume(E),b):r(E)}function b(E){return E===45||Vn(E)?(e.consume(E),b):w(E)}function w(E){return Ue(E)?(o=w,V(E)):mt(E)?(e.consume(E),w):z(E)}function C(E){return E===45||Vn(E)?(e.consume(E),C):E===47||E===62||In(E)?A(E):r(E)}function A(E){return E===47?(e.consume(E),z):E===58||E===95||ya(E)?(e.consume(E),T):Ue(E)?(o=A,V(E)):mt(E)?(e.consume(E),A):z(E)}function T(E){return E===45||E===46||E===58||E===95||Vn(E)?(e.consume(E),T):M(E)}function M(E){return E===61?(e.consume(E),k):Ue(E)?(o=M,V(E)):mt(E)?(e.consume(E),M):A(E)}function k(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(e.consume(E),i=E,I):Ue(E)?(o=k,V(E)):mt(E)?(e.consume(E),k):(e.consume(E),D)}function I(E){return E===i?(e.consume(E),i=void 0,L):E===null?r(E):Ue(E)?(o=I,V(E)):(e.consume(E),I)}function D(E){return E===null||E===34||E===39||E===60||E===61||E===96?r(E):E===47||E===62||In(E)?A(E):(e.consume(E),D)}function L(E){return E===47||E===62||In(E)?A(E):r(E)}function z(E){return E===62?(e.consume(E),e.exit("htmlTextData"),e.exit("htmlText"),t):r(E)}function V(E){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),N}function N(E){return mt(E)?Nt(e,F,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):F(E)}function F(E){return e.enter("htmlTextData"),o(E)}}const ok={name:"labelEnd",tokenize:whe,resolveTo:_he,resolveAll:bhe},yhe={tokenize:Che},xhe={tokenize:The},She={tokenize:Ahe};function bhe(e){let t=-1;for(;++t=3&&(u===null||Ue(u))?(e.exit("thematicBreak"),t(u)):r(u)}function l(u){return u===i?(e.consume(u),n++,l):(e.exit("thematicBreakSequence"),mt(u)?Nt(e,s,"whitespace")(u):s(u))}}const mn={name:"list",tokenize:Ohe,continuation:{tokenize:Nhe},exit:Bhe},Lhe={tokenize:$he,partial:!0},Ehe={tokenize:zhe,partial:!0};function Ohe(e,t,r){const n=this,i=n.events[n.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(h){const p=n.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!n.containerState.marker||h===n.containerState.marker:iT(h)){if(n.containerState.type||(n.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(qm,r,u)(h):u(h);if(!n.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return r(h)}function l(h){return iT(h)&&++o<10?(e.consume(h),l):(!n.interrupt||o<2)&&(n.containerState.marker?h===n.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):r(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||h,e.check(mx,n.interrupt?r:c,e.attempt(Lhe,d,f))}function c(h){return n.containerState.initialBlankLine=!0,a++,d(h)}function f(h){return mt(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),d):r(h)}function d(h){return n.containerState.size=a+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function Nhe(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(mx,i,a);function i(s){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Nt(e,t,"listItemIndent",n.containerState.size+1)(s)}function a(s){return n.containerState.furtherBlankLines||!mt(s)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,o(s)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(Ehe,t,o)(s))}function o(s){return n.containerState._closeFlow=!0,n.interrupt=void 0,Nt(e,e.attempt(mn,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function zhe(e,t,r){const n=this;return Nt(e,i,"listItemIndent",n.containerState.size+1);function i(a){const o=n.events[n.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===n.containerState.size?t(a):r(a)}}function Bhe(e){e.exit(this.containerState.type)}function $he(e,t,r){const n=this;return Nt(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(a){const o=n.events[n.events.length-1];return!mt(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}const XL={name:"setextUnderline",tokenize:Vhe,resolveTo:Fhe};function Fhe(e,t){let r=e.length,n,i,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[a][1].end)):e[n][1]=o,e.push(["exit",o,t]),e}function Vhe(e,t,r){const n=this;let i;return a;function a(u){let c=n.events.length,f;for(;c--;)if(n.events[c][1].type!=="lineEnding"&&n.events[c][1].type!=="linePrefix"&&n.events[c][1].type!=="content"){f=n.events[c][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||f)?(e.enter("setextHeadingLine"),i=u,o(u)):r(u)}function o(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),mt(u)?Nt(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||Ue(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const Ghe={tokenize:Hhe};function Hhe(e){const t=this,r=e.attempt(mx,n,e.attempt(this.parser.constructs.flowInitial,i,Nt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Yde,i)),"linePrefix")));return r;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const Whe={resolveAll:D6()},jhe=P6("string"),Uhe=P6("text");function P6(e){return{tokenize:t,resolveAll:D6(e==="text"?qhe:void 0)};function t(r){const n=this,i=this.parser.constructs[e],a=r.attempt(i,o,s);return o;function o(c){return u(c)?a(c):s(c)}function s(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),l}function l(c){return u(c)?(r.exit("data"),a(c)):(r.consume(c),l)}function u(c){if(c===null)return!0;const f=i[c];let d=-1;if(f)for(;++d-1){const s=o[0];typeof s=="string"?o[0]=s.slice(n):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function Zhe(e,t){let r=-1;const n=[];let i;for(;++r0){const Vt=Re.tokenStack[Re.tokenStack.length-1];(Vt[1]||YL).call(Re,void 0,Vt[0])}for(ue.position={start:Bo(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:Bo(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},pe=-1;++pe1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function _pe(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function wpe(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function L6(e,t){const r=t.referenceType;let n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=n:i.push({type:"text",value:n}),i}function Cpe(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return L6(e,t);const i={src:Vu(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function Tpe(e,t){const r={src:Vu(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)}function Ape(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)}function Mpe(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return L6(e,t);const i={href:Vu(n.url||"")};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function kpe(e,t){const r={href:Vu(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ipe(e,t,r){const n=e.all(t),i=r?Ppe(r):E6(t),a={},o=[];if(typeof t.checked=="boolean"){const c=n[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},n.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s0){const Vt=Re.tokenStack[Re.tokenStack.length-1];(Vt[1]||KL).call(Re,void 0,Vt[0])}for(ue.position={start:Bo(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:Bo(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},pe=-1;++pe1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function wpe(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Cpe(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function E6(e,t){const r=t.referenceType;let n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=n:i.push({type:"text",value:n}),i}function Tpe(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return E6(e,t);const i={src:Gu(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function Ape(e,t){const r={src:Gu(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)}function Mpe(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)}function kpe(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return E6(e,t);const i={href:Gu(n.url||"")};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Ipe(e,t){const r={href:Gu(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ppe(e,t,r){const n=e.all(t),i=r?Dpe(r):O6(t),a={},o=[];if(typeof t.checked=="boolean"){const c=n[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},n.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s1}function Dpe(e,t){const r={},n=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++i0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},s=JM(t.children[1]),l=g6(t.children[t.children.length-1]);s&&l&&(o.position={start:s,end:l}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Npe(e,t,r){const n=r?r.children:void 0,a=(n?n.indexOf(t):1)===0?"th":"td",o=r&&r.type==="table"?r.align:void 0,s=o?o.length:t.children.length;let l=-1;const u=[];for(;++l0,!0),n[0]),i=n.index+n[0].length,n=r.exec(t);return a.push(KL(t.slice(i),i>0,!1)),a.join("")}function KL(e,t,r){let n=0,i=e.length;if(t){let a=e.codePointAt(n);for(;a===XL||a===ZL;)n++,a=e.codePointAt(n)}if(r){let a=e.codePointAt(i-1);for(;a===XL||a===ZL;)i--,a=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}function $pe(e,t){const r={type:"text",value:Bpe(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function Fpe(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const Vpe={blockquote:gpe,break:mpe,code:ype,delete:xpe,emphasis:Spe,footnoteReference:bpe,heading:_pe,html:wpe,imageReference:Cpe,image:Tpe,inlineCode:Ape,linkReference:Mpe,link:kpe,listItem:Ipe,list:Dpe,paragraph:Rpe,root:Lpe,strong:Epe,table:Ope,tableCell:zpe,tableRow:Npe,text:$pe,thematicBreak:Fpe,toml:Cg,yaml:Cg,definition:Cg,footnoteDefinition:Cg};function Cg(){}const O6=-1,mx=0,a0=1,o0=2,ik=3,ak=4,ok=5,sk=6,N6=7,z6=8,QL=typeof self=="object"?self:globalThis,Gpe=(e,t)=>{const r=(i,a)=>(e.set(a,i),i),n=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case mx:case O6:return r(o,i);case a0:{const s=r([],i);for(const l of o)s.push(n(l));return s}case o0:{const s=r({},i);for(const[l,u]of o)s[n(l)]=n(u);return s}case ik:return r(new Date(o),i);case ak:{const{source:s,flags:l}=o;return r(new RegExp(s,l),i)}case ok:{const s=r(new Map,i);for(const[l,u]of o)s.set(n(l),n(u));return s}case sk:{const s=r(new Set,i);for(const l of o)s.add(n(l));return s}case N6:{const{name:s,message:l}=o;return r(new QL[s](l),i)}case z6:return r(BigInt(o),i);case"BigInt":return r(Object(BigInt(o)),i)}return r(new QL[a](o),i)};return n},JL=e=>Gpe(new Map,e)(0),nc="",{toString:Hpe}={},{keys:Wpe}=Object,Md=e=>{const t=typeof e;if(t!=="object"||!e)return[mx,t];const r=Hpe.call(e).slice(8,-1);switch(r){case"Array":return[a0,nc];case"Object":return[o0,nc];case"Date":return[ik,nc];case"RegExp":return[ak,nc];case"Map":return[ok,nc];case"Set":return[sk,nc]}return r.includes("Array")?[a0,r]:r.includes("Error")?[N6,r]:[o0,r]},Tg=([e,t])=>e===mx&&(t==="function"||t==="symbol"),jpe=(e,t,r,n)=>{const i=(o,s)=>{const l=n.push(o)-1;return r.set(s,l),l},a=o=>{if(r.has(o))return r.get(o);let[s,l]=Md(o);switch(s){case mx:{let c=o;switch(l){case"bigint":s=z6,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([O6],o)}return i([s,c],o)}case a0:{if(l)return i([l,[...o]],o);const c=[],f=i([s,c],o);for(const d of o)c.push(a(d));return f}case o0:{if(l)switch(l){case"BigInt":return i([l,o.toString()],o);case"Boolean":case"Number":case"String":return i([l,o.valueOf()],o)}if(t&&"toJSON"in o)return a(o.toJSON());const c=[],f=i([s,c],o);for(const d of Wpe(o))(e||!Tg(Md(o[d])))&&c.push([a(d),a(o[d])]);return f}case ik:return i([s,o.toISOString()],o);case ak:{const{source:c,flags:f}=o;return i([s,{source:c,flags:f}],o)}case ok:{const c=[],f=i([s,c],o);for(const[d,h]of o)(e||!(Tg(Md(d))||Tg(Md(h))))&&c.push([a(d),a(h)]);return f}case sk:{const c=[],f=i([s,c],o);for(const d of o)(e||!Tg(Md(d)))&&c.push(a(d));return f}}const{message:u}=o;return i([s,{name:l,message:u}],o)};return a},eE=(e,{json:t,lossy:r}={})=>{const n=[];return jpe(!(t||r),!!t,new Map,n)(e),n},s0=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?JL(eE(e,t)):structuredClone(e):(e,t)=>JL(eE(e,t));function Upe(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function qpe(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Ype(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||Upe,n=e.options.footnoteBackLabel||qpe,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l0&&p.push({type:"text",value:" "});let y=typeof r=="string"?r:r(l,h);typeof y=="string"&&(y={type:"text",value:y}),p.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(l,h),className:["data-footnote-backref"]},children:Array.isArray(y)?y:[y]})}const g=c[c.length-1];if(g&&g.type==="element"&&g.tagName==="p"){const y=g.children[g.children.length-1];y&&y.type==="text"?y.value+=" ":g.children.push({type:"text",value:" "}),g.children.push(...p)}else c.push(...p);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(c,!0)};e.patch(u,m),s.push(m)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...s0(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` +`});const u={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,u),e.applyData(t,u)}function Dpe(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let n=-1;for(;!t&&++n1}function Rpe(e,t){const r={},n=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++i0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},s=rk(t.children[1]),l=m6(t.children[t.children.length-1]);s&&l&&(o.position={start:s,end:l}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function zpe(e,t,r){const n=r?r.children:void 0,a=(n?n.indexOf(t):1)===0?"th":"td",o=r&&r.type==="table"?r.align:void 0,s=o?o.length:t.children.length;let l=-1;const u=[];for(;++l0,!0),n[0]),i=n.index+n[0].length,n=r.exec(t);return a.push(eE(t.slice(i),i>0,!1)),a.join("")}function eE(e,t,r){let n=0,i=e.length;if(t){let a=e.codePointAt(n);for(;a===QL||a===JL;)n++,a=e.codePointAt(n)}if(r){let a=e.codePointAt(i-1);for(;a===QL||a===JL;)i--,a=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}function Fpe(e,t){const r={type:"text",value:$pe(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function Vpe(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const Gpe={blockquote:mpe,break:ype,code:xpe,delete:Spe,emphasis:bpe,footnoteReference:_pe,heading:wpe,html:Cpe,imageReference:Tpe,image:Ape,inlineCode:Mpe,linkReference:kpe,link:Ipe,listItem:Ppe,list:Rpe,paragraph:Lpe,root:Epe,strong:Ope,table:Npe,tableCell:Bpe,tableRow:zpe,text:Fpe,thematicBreak:Vpe,toml:Cg,yaml:Cg,definition:Cg,footnoteDefinition:Cg};function Cg(){}const N6=-1,yx=0,a0=1,o0=2,sk=3,lk=4,uk=5,ck=6,z6=7,B6=8,tE=typeof self=="object"?self:globalThis,Hpe=(e,t)=>{const r=(i,a)=>(e.set(a,i),i),n=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case yx:case N6:return r(o,i);case a0:{const s=r([],i);for(const l of o)s.push(n(l));return s}case o0:{const s=r({},i);for(const[l,u]of o)s[n(l)]=n(u);return s}case sk:return r(new Date(o),i);case lk:{const{source:s,flags:l}=o;return r(new RegExp(s,l),i)}case uk:{const s=r(new Map,i);for(const[l,u]of o)s.set(n(l),n(u));return s}case ck:{const s=r(new Set,i);for(const l of o)s.add(n(l));return s}case z6:{const{name:s,message:l}=o;return r(new tE[s](l),i)}case B6:return r(BigInt(o),i);case"BigInt":return r(Object(BigInt(o)),i)}return r(new tE[a](o),i)};return n},rE=e=>Hpe(new Map,e)(0),ic="",{toString:Wpe}={},{keys:jpe}=Object,Md=e=>{const t=typeof e;if(t!=="object"||!e)return[yx,t];const r=Wpe.call(e).slice(8,-1);switch(r){case"Array":return[a0,ic];case"Object":return[o0,ic];case"Date":return[sk,ic];case"RegExp":return[lk,ic];case"Map":return[uk,ic];case"Set":return[ck,ic]}return r.includes("Array")?[a0,r]:r.includes("Error")?[z6,r]:[o0,r]},Tg=([e,t])=>e===yx&&(t==="function"||t==="symbol"),Upe=(e,t,r,n)=>{const i=(o,s)=>{const l=n.push(o)-1;return r.set(s,l),l},a=o=>{if(r.has(o))return r.get(o);let[s,l]=Md(o);switch(s){case yx:{let c=o;switch(l){case"bigint":s=B6,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([N6],o)}return i([s,c],o)}case a0:{if(l)return i([l,[...o]],o);const c=[],f=i([s,c],o);for(const d of o)c.push(a(d));return f}case o0:{if(l)switch(l){case"BigInt":return i([l,o.toString()],o);case"Boolean":case"Number":case"String":return i([l,o.valueOf()],o)}if(t&&"toJSON"in o)return a(o.toJSON());const c=[],f=i([s,c],o);for(const d of jpe(o))(e||!Tg(Md(o[d])))&&c.push([a(d),a(o[d])]);return f}case sk:return i([s,o.toISOString()],o);case lk:{const{source:c,flags:f}=o;return i([s,{source:c,flags:f}],o)}case uk:{const c=[],f=i([s,c],o);for(const[d,h]of o)(e||!(Tg(Md(d))||Tg(Md(h))))&&c.push([a(d),a(h)]);return f}case ck:{const c=[],f=i([s,c],o);for(const d of o)(e||!Tg(Md(d)))&&c.push(a(d));return f}}const{message:u}=o;return i([s,{name:l,message:u}],o)};return a},nE=(e,{json:t,lossy:r}={})=>{const n=[];return Upe(!(t||r),!!t,new Map,n)(e),n},s0=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?rE(nE(e,t)):structuredClone(e):(e,t)=>rE(nE(e,t));function qpe(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function Ype(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Xpe(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||qpe,n=e.options.footnoteBackLabel||Ype,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l0&&p.push({type:"text",value:" "});let y=typeof r=="string"?r:r(l,h);typeof y=="string"&&(y={type:"text",value:y}),p.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(l,h),className:["data-footnote-backref"]},children:Array.isArray(y)?y:[y]})}const g=c[c.length-1];if(g&&g.type==="element"&&g.tagName==="p"){const y=g.children[g.children.length-1];y&&y.type==="text"?y.value+=" ":g.children.push({type:"text",value:" "}),g.children.push(...p)}else c.push(...p);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(c,!0)};e.patch(u,m),s.push(m)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...s0(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` `},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:` -`}]}}const B6=function(e){if(e==null)return Qpe;if(typeof e=="function")return yx(e);if(typeof e=="object")return Array.isArray(e)?Xpe(e):Zpe(e);if(typeof e=="string")return Kpe(e);throw new Error("Expected function, string, or object as test")};function Xpe(e){const t=[];let r=-1;for(;++r":""))+")"})}return d;function d(){let h=$6,p,v,g;if((!t||a(l,u,c[c.length-1]||void 0))&&(h=nve(r(l,c)),h[0]===tE))return h;if("children"in l&&l.children){const m=l;if(m.children&&h[0]!==tve)for(v=(n?m.children.length:-1)+o,g=c.concat(m);v>-1&&v":""))+")"})}return d;function d(){let h=F6,p,v,g;if((!t||a(l,u,c[c.length-1]||void 0))&&(h=ive(r(l,c)),h[0]===iE))return h;if("children"in l&&l.children){const m=l;if(m.children&&h[0]!==rve)for(v=(n?m.children.length:-1)+o,g=c.concat(m);v>-1&&v0&&r.push({type:"text",value:` -`}),r}function rE(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function nE(e,t){const r=ave(e,t),n=r.one(e,void 0),i=Ype(r),a=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` -`},i),a}function cve(e,t){return e&&"run"in e?async function(r,n){const i=nE(r,t);await e.run(i,n)}:function(r){return nE(r,t||e)}}function iE(e){if(e)throw e}var Ym=Object.prototype.hasOwnProperty,V6=Object.prototype.toString,aE=Object.defineProperty,oE=Object.getOwnPropertyDescriptor,sE=function(t){return typeof Array.isArray=="function"?Array.isArray(t):V6.call(t)==="[object Array]"},lE=function(t){if(!t||V6.call(t)!=="[object Object]")return!1;var r=Ym.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&Ym.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;var i;for(i in t);return typeof i>"u"||Ym.call(t,i)},uE=function(t,r){aE&&r.name==="__proto__"?aE(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},cE=function(t,r){if(r==="__proto__")if(Ym.call(t,r)){if(oE)return oE(t,r).value}else return;return t[r]},fve=function e(){var t,r,n,i,a,o,s=arguments[0],l=1,u=arguments.length,c=!1;for(typeof s=="boolean"&&(c=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});lo.length;let l;s&&o.push(i);try{l=e.apply(this,o)}catch(u){const c=u;if(s&&r)throw c;return i(c)}s||(l instanceof Promise?l.then(a,i):l instanceof Error?i(l):a(l))}function i(o,...s){r||(r=!0,t(o,...s))}function a(o){i(null,o)}}const da={basename:pve,dirname:vve,extname:gve,join:mve,sep:"/"};function pve(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Mv(e);let r=0,n=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else n<0&&(a=!0,n=i+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(n=i):(s=-1,n=o));return r===n?n=o:n<0&&(n=e.length),e.slice(r,n)}function vve(e){if(Mv(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function gve(e){Mv(e);let t=e.length,r=-1,n=0,i=-1,a=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){n=t+1;break}continue}r<0&&(o=!0,r=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||r<0||a===0||a===1&&i===r-1&&i===n+1?"":e.slice(i,r)}function mve(...e){let t=-1,r;for(;++t0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function xve(e,t){let r="",n=0,i=-1,a=0,o=-1,s,l;for(;++o<=e.length;){if(o2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),i=o,a=0;continue}}else if(r.length>0){r="",n=0,i=o,a=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(i+1,o):r=e.slice(i+1,o),n=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return r}function Mv(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Sve={cwd:bve};function bve(){return"/"}function sT(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function _ve(e){if(typeof e=="string")e=new URL(e);else if(!sT(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return wve(e)}function wve(e){if(e.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const t=e.pathname;let r=-1;for(;++r0){let[h,...p]=c;const v=n[d][1];oT(v)&&oT(h)&&(h=lb(!0,v,h)),n[d]=[u,h,...p]}}}}const Mve=new lk().freeze();function db(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function hb(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function pb(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function dE(e){if(!oT(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function hE(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ag(e){return kve(e)?e:new G6(e)}function kve(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Ive(e){return typeof e=="string"||Pve(e)}function Pve(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const pE={}.hasOwnProperty,Dve="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",vE=[],gE={allowDangerousHtml:!0},Rve=/^(https?|ircs?|mailto|xmpp)$/i,Lve=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Eve(e){const t=e.allowedElements,r=e.allowElement,n=e.children||"",i=e.className,a=e.components,o=e.disallowedElements,s=e.rehypePlugins||vE,l=e.remarkPlugins||vE,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...gE}:gE,c=e.skipHtml,f=e.unwrapDisallowed,d=e.urlTransform||Ove,h=Mve().use(vpe).use(l).use(cve,u).use(s),p=new G6;typeof n=="string"&&(p.value=n);for(const y of Lve)Object.hasOwn(e,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+Dve+y.id,void 0);const v=h.parse(p);let g=h.runSync(v,p);return i&&(g={type:"element",tagName:"div",properties:{className:i},children:g.type==="root"?g.children:[g]}),F6(g,m),Kfe(g,{Fragment:D.Fragment,components:a,ignoreInvalidStyle:!0,jsx:D.jsx,jsxs:D.jsxs,passKeys:!0,passNode:!0});function m(y,x,S){if(y.type==="raw"&&S&&typeof x=="number")return c?S.children.splice(x,1):S.children[x]={type:"text",value:y.value},x;if(y.type==="element"){let _;for(_ in ab)if(pE.call(ab,_)&&pE.call(y.properties,_)){const b=y.properties[_],w=ab[_];(w===null||w.includes(y.tagName))&&(y.properties[_]=d(String(b||""),_,y))}}if(y.type==="element"){let _=t?!t.includes(y.tagName):o?o.includes(y.tagName):!1;if(!_&&r&&typeof x=="number"&&(_=!r(y,x,S)),_&&S&&typeof x=="number")return f&&y.children?S.children.splice(x,1,...y.children):S.children.splice(x,1),x}}}function Ove(e){return vde(e,Rve)}function Nve(e,t){const r=t?-1:1;return function(n,i){const a=n[e],o=i[e];return ao?r*1:0}}function zve(e,{hasTotalRow:t=!1,defaultSortKey:r="name"}={hasTotalRow:!1,defaultSortKey:"name"}){const[n,i]=O.useState(e),[a,o]=O.useState(!1),s=O.useRef(),l=c=>{const d=(t?e.slice(0,-1):[...e]).sort(Nve(c,c===s.current&&!a));i(t?[...d,...e.slice(-1)]:d)},u=O.useCallback(c=>{s.current||(s.current=r);const f=c.target.getAttribute("data-sortkey");if(f===s.current)if(a){o(!1),s.current=void 0,l(r);return}else o(!0);else a&&o(!1);l(f),s.current=f},[s,e,a]);return O.useEffect(()=>{e.length&&l(s.current||r)},[e]),{onTableHeadClick:u,sortedRows:n,currentSortField:s.current}}const dh=(e,t=0)=>{const r=Math.pow(10,t);return Math.round(e*r)/r};function Bve({content:e,formatter:t,round:r,markdown:n}){return t?t(e):r?dh(e,r):n?D.jsx(Eve,{skipHtml:!1,children:e}):e}function Yf({rows:e,structure:t,hasTotalRow:r,defaultSortKey:n}){const{onTableHeadClick:i,sortedRows:a,currentSortField:o}=zve(e,{hasTotalRow:r,defaultSortKey:n});return D.jsx(LG,{component:Nu,sx:{overflowX:"visible"},children:D.jsxs(DG,{children:[D.jsx(EG,{sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper"},children:D.jsx(Qy,{children:t.map(({title:s,key:l})=>D.jsx($l,{"data-sortkey":l,onClick:i,sx:{cursor:"pointer",color:o===l?"primary.main":"text.primary"},children:s},`table-head-${l}`))})}),D.jsx(RG,{children:a.map((s,l)=>D.jsx(Qy,{children:t.map(({key:u,...c},f)=>D.jsx($l,{children:D.jsx(Bve,{content:s[u],...c})},`table-row=${f}`))},`${s.name}-${l}`))})]})})}function $ve({rows:e,tableStructure:t}){return t?D.jsx(Yf,{rows:e,structure:t}):null}const Fve=({swarm:{extendedTables:e},ui:{extendedStats:t},url:{query:r}})=>{const n=r&&r.tab&&e&&e.find(({key:a})=>a===r.tab),i=r&&r.tab&&t&&t.find(({key:a})=>a===r.tab);return{tableStructure:n?n.structure.map(({key:a,...o})=>({key:gV(a),...o})):null,rows:i?i.data:[]}},Vve=Ln(Fve)($ve),Gve=[{key:"count",title:"# occurrences"},{key:"msg",title:"Message",markdown:!0},{key:"traceback",title:"Traceback",markdown:!0}];function H6({exceptions:e}){return D.jsx(Yf,{rows:e,structure:Gve})}const Hve=({ui:{exceptions:e}})=>({exceptions:e}),Wve=Ln(Hve)(H6),jve=[{key:"occurrences",title:"# Failures"},{key:"method",title:"Method"},{key:"name",title:"Name"},{key:"error",title:"Message",markdown:!0}];function W6({errors:e}){return D.jsx(Yf,{rows:e,structure:jve})}const Uve=({ui:{errors:e}})=>({errors:e}),qve=Ln(Uve)(W6),Yve=e=>e.includes("CRITICAL")?Qo[600]:e.includes("ERROR")?Qo[400]:e.includes("WARNING")?Ac[500]:e.includes("DEBUG")?kl[500]:"white";function Xve(){const e=Xs(({logViewer:{logs:t}})=>t);return D.jsxs(it,{children:[D.jsx(je,{sx:{mb:2},variant:"h5",children:"Logs"}),D.jsx(Nu,{elevation:3,sx:{p:2,fontFamily:"monospace"},children:e.map((t,r)=>D.jsx(je,{color:Yve(t),variant:"body2",children:t},`log-${r}`))})]})}function Zve({extendedCsvFiles:e,statsHistoryEnabled:t}){const r=Xs(({theme:{isDarkMode:n}})=>n);return D.jsxs(xG,{sx:{display:"flex",flexDirection:"column"},children:[D.jsx(rc,{children:D.jsx(on,{href:"/stats/requests/csv",children:"Download requests CSV"})}),t&&D.jsx(rc,{children:D.jsx(on,{href:"/stats/requests_full_history/csv",children:"Download full request statistics history CSV"})}),D.jsx(rc,{children:D.jsx(on,{href:"/stats/failures/csv",children:"Download failures CSV"})}),D.jsx(rc,{children:D.jsx(on,{href:"/exceptions/csv",children:"Download exceptions CSV"})}),D.jsx(rc,{children:D.jsx(on,{href:`/stats/report?theme=${r?Si.DARK:Si.LIGHT}`,target:"_blank",children:"Download Report"})}),e&&e.map(({href:n,title:i},a)=>D.jsx(rc,{children:D.jsx(on,{href:n,children:i})},`extended-csv-${a}`))]})}const Kve=({swarm:{extendedCsvFiles:e,statsHistoryEnabled:t}})=>({extendedCsvFiles:e,statsHistoryEnabled:t}),Qve=Ln(Kve)(Zve);var uk={},Jve=Bu;Object.defineProperty(uk,"__esModule",{value:!0});var j6=uk.default=void 0,ege=Jve($u()),tge=D,rge=(0,ege.default)((0,tge.jsx)("path",{d:"M14.67 5v14H9.33V5h5.34zm1 14H21V5h-5.33v14zm-7.34 0V5H3v14h5.33z"}),"ViewColumn");j6=uk.default=rge;function nge({structure:e,selectedColumns:t,addColumn:r,removeColumn:n}){const[i,a]=O.useState(null);return D.jsxs(dG,{direction:"row",justifyContent:"end",my:2,spacing:1,children:[D.jsx(qa,{onClick:o=>a(o.currentTarget),variant:"outlined",children:D.jsx(j6,{})}),D.jsx(wG,{anchorEl:i,anchorOrigin:{vertical:"bottom",horizontal:"left"},onClose:()=>a(null),open:!!i,children:D.jsx(pG,{sx:{p:2},children:e.map(({key:o,title:s})=>D.jsx(hG,{control:D.jsx(Pse,{checked:t.includes(o),onChange:()=>{t.includes(o)?n(o):r(o)}}),label:s},o))})})]})}function ige(e){const[t,r]=O.useState(e.map(o=>o.key));return{selectedColumns:t,addColumn:o=>{r([...t,o])},removeColumn:o=>{r(t.filter(s=>s!==o))},filteredStructure:(o=>o.filter(s=>t.includes(s.key)))(e)}}const age=Ra.percentilesToStatistics?Ra.percentilesToStatistics.map(e=>({title:`${e*100}%ile (ms)`,key:`responseTimePercentile${e}`})):[],mE=[{key:"method",title:"Type"},{key:"name",title:"Name"},{key:"numRequests",title:"# Requests"},{key:"numFailures",title:"# Fails"},{key:"medianResponseTime",title:"Median (ms)",round:2},...age,{key:"avgResponseTime",title:"Average (ms)",round:2},{key:"minResponseTime",title:"Min (ms)"},{key:"maxResponseTime",title:"Max (ms)"},{key:"avgContentLength",title:"Average size (bytes)",round:2},{key:"currentRps",title:"Current RPS",round:2},{key:"currentFailPerSec",title:"Current Failures/s",round:2}];function U6({stats:e}){const{selectedColumns:t,addColumn:r,removeColumn:n,filteredStructure:i}=ige(mE);return D.jsxs(D.Fragment,{children:[D.jsx(nge,{addColumn:r,removeColumn:n,selectedColumns:t,structure:mE}),D.jsx(Yf,{hasTotalRow:!0,rows:e,structure:i})]})}const oge=({ui:{stats:e}})=>({stats:e}),sge=Ln(oge)(U6);/*! ***************************************************************************** +`}),r}function aE(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function oE(e,t){const r=ove(e,t),n=r.one(e,void 0),i=Xpe(r),a=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` +`},i),a}function fve(e,t){return e&&"run"in e?async function(r,n){const i=oE(r,t);await e.run(i,n)}:function(r){return oE(r,t||e)}}function sE(e){if(e)throw e}var Ym=Object.prototype.hasOwnProperty,G6=Object.prototype.toString,lE=Object.defineProperty,uE=Object.getOwnPropertyDescriptor,cE=function(t){return typeof Array.isArray=="function"?Array.isArray(t):G6.call(t)==="[object Array]"},fE=function(t){if(!t||G6.call(t)!=="[object Object]")return!1;var r=Ym.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&Ym.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;var i;for(i in t);return typeof i>"u"||Ym.call(t,i)},dE=function(t,r){lE&&r.name==="__proto__"?lE(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},hE=function(t,r){if(r==="__proto__")if(Ym.call(t,r)){if(uE)return uE(t,r).value}else return;return t[r]},dve=function e(){var t,r,n,i,a,o,s=arguments[0],l=1,u=arguments.length,c=!1;for(typeof s=="boolean"&&(c=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});lo.length;let l;s&&o.push(i);try{l=e.apply(this,o)}catch(u){const c=u;if(s&&r)throw c;return i(c)}s||(l instanceof Promise?l.then(a,i):l instanceof Error?i(l):a(l))}function i(o,...s){r||(r=!0,t(o,...s))}function a(o){i(null,o)}}const da={basename:vve,dirname:gve,extname:mve,join:yve,sep:"/"};function vve(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Mv(e);let r=0,n=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else n<0&&(a=!0,n=i+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(n=i):(s=-1,n=o));return r===n?n=o:n<0&&(n=e.length),e.slice(r,n)}function gve(e){if(Mv(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function mve(e){Mv(e);let t=e.length,r=-1,n=0,i=-1,a=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){n=t+1;break}continue}r<0&&(o=!0,r=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||r<0||a===0||a===1&&i===r-1&&i===n+1?"":e.slice(i,r)}function yve(...e){let t=-1,r;for(;++t0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function Sve(e,t){let r="",n=0,i=-1,a=0,o=-1,s,l;for(;++o<=e.length;){if(o2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),i=o,a=0;continue}}else if(r.length>0){r="",n=0,i=o,a=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(i+1,o):r=e.slice(i+1,o),n=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return r}function Mv(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const bve={cwd:_ve};function _ve(){return"/"}function lT(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function wve(e){if(typeof e=="string")e=new URL(e);else if(!lT(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Cve(e)}function Cve(e){if(e.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const t=e.pathname;let r=-1;for(;++r0){let[h,...p]=c;const v=n[d][1];sT(v)&&sT(h)&&(h=ub(!0,v,h)),n[d]=[u,h,...p]}}}}const kve=new fk().freeze();function hb(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function pb(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function vb(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function vE(e){if(!sT(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function gE(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ag(e){return Ive(e)?e:new H6(e)}function Ive(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Pve(e){return typeof e=="string"||Dve(e)}function Dve(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const mE={}.hasOwnProperty,Rve="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",yE=[],xE={allowDangerousHtml:!0},Lve=/^(https?|ircs?|mailto|xmpp)$/i,Eve=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Ove(e){const t=e.allowedElements,r=e.allowElement,n=e.children||"",i=e.className,a=e.components,o=e.disallowedElements,s=e.rehypePlugins||yE,l=e.remarkPlugins||yE,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...xE}:xE,c=e.skipHtml,f=e.unwrapDisallowed,d=e.urlTransform||Nve,h=kve().use(gpe).use(l).use(fve,u).use(s),p=new H6;typeof n=="string"&&(p.value=n);for(const y of Eve)Object.hasOwn(e,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+Rve+y.id,void 0);const v=h.parse(p);let g=h.runSync(v,p);return i&&(g={type:"element",tagName:"div",properties:{className:i},children:g.type==="root"?g.children:[g]}),V6(g,m),Qfe(g,{Fragment:P.Fragment,components:a,ignoreInvalidStyle:!0,jsx:P.jsx,jsxs:P.jsxs,passKeys:!0,passNode:!0});function m(y,x,S){if(y.type==="raw"&&S&&typeof x=="number")return c?S.children.splice(x,1):S.children[x]={type:"text",value:y.value},x;if(y.type==="element"){let _;for(_ in ob)if(mE.call(ob,_)&&mE.call(y.properties,_)){const b=y.properties[_],w=ob[_];(w===null||w.includes(y.tagName))&&(y.properties[_]=d(String(b||""),_,y))}}if(y.type==="element"){let _=t?!t.includes(y.tagName):o?o.includes(y.tagName):!1;if(!_&&r&&typeof x=="number"&&(_=!r(y,x,S)),_&&S&&typeof x=="number")return f&&y.children?S.children.splice(x,1,...y.children):S.children.splice(x,1),x}}}function Nve(e){return gde(e,Lve)}function zve(e,t){const r=t?-1:1;return function(n,i){const a=n[e],o=i[e];return ao?r*1:0}}function Bve(e,{hasTotalRow:t=!1,defaultSortKey:r="name"}={hasTotalRow:!1,defaultSortKey:"name"}){const[n,i]=O.useState(e),[a,o]=O.useState(!1),s=O.useRef(),l=c=>{const d=(t?e.slice(0,-1):[...e]).sort(zve(c,c===s.current&&!a));i(t?[...d,...e.slice(-1)]:d)},u=O.useCallback(c=>{s.current||(s.current=r);const f=c.target.getAttribute("data-sortkey");if(f===s.current)if(a){o(!1),s.current=void 0,l(r);return}else o(!0);else a&&o(!1);l(f),s.current=f},[s,e,a]);return O.useEffect(()=>{e.length&&l(s.current||r)},[e]),{onTableHeadClick:u,sortedRows:n,currentSortField:s.current}}const dh=(e,t=0)=>{const r=Math.pow(10,t);return Math.round(e*r)/r};function $ve({content:e,formatter:t,round:r,markdown:n}){return t?t(e):r?dh(e,r):n?P.jsx(Ove,{skipHtml:!1,children:e}):e}function Yf({rows:e,structure:t,hasTotalRow:r,defaultSortKey:n}){const{onTableHeadClick:i,sortedRows:a,currentSortField:o}=Bve(e,{hasTotalRow:r,defaultSortKey:n});return P.jsx(EG,{component:Os,sx:{overflowX:"visible"},children:P.jsxs(RG,{children:[P.jsx(OG,{sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper"},children:P.jsx(Qy,{children:t.map(({title:s,key:l})=>P.jsx(Vl,{"data-sortkey":l,onClick:i,sx:{cursor:"pointer",color:o===l?"primary.main":"text.primary"},children:s},`table-head-${l}`))})}),P.jsx(LG,{children:a.map((s,l)=>P.jsx(Qy,{children:t.map(({key:u,...c},f)=>P.jsx(Vl,{children:P.jsx($ve,{content:s[u],...c})},`table-row=${f}`))},`${s.name}-${l}`))})]})})}function Fve({rows:e,tableStructure:t}){return t?P.jsx(Yf,{rows:e,structure:t}):null}const Vve=({swarm:{extendedTables:e},ui:{extendedStats:t},url:{query:r}})=>{const n=r&&r.tab&&e&&e.find(({key:a})=>a===r.tab),i=r&&r.tab&&t&&t.find(({key:a})=>a===r.tab);return{tableStructure:n?n.structure.map(({key:a,...o})=>({key:SV(a),...o})):null,rows:i?i.data:[]}},Gve=Ln(Vve)(Fve),Hve=[{key:"count",title:"# occurrences"},{key:"msg",title:"Message",markdown:!0},{key:"traceback",title:"Traceback",markdown:!0}];function W6({exceptions:e}){return P.jsx(Yf,{rows:e,structure:Hve})}const Wve=({ui:{exceptions:e}})=>({exceptions:e}),jve=Ln(Wve)(W6),Uve=[{key:"occurrences",title:"# Failures"},{key:"method",title:"Method"},{key:"name",title:"Name"},{key:"error",title:"Message",markdown:!0}];function j6({errors:e}){return P.jsx(Yf,{rows:e,structure:Uve})}const qve=({ui:{errors:e}})=>({errors:e}),Yve=Ln(qve)(j6),Xve=e=>e.includes("CRITICAL")?Qo[600]:e.includes("ERROR")?Qo[400]:e.includes("WARNING")?Ac[500]:e.includes("DEBUG")?Il[500]:"white";function SE({log:e}){return P.jsx(We,{color:Xve(e),variant:"body2",children:e})}function Zve(){const{master:e,workers:t}=Zs(({logViewer:r})=>r);return P.jsxs(Qe,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[P.jsxs(Qe,{children:[P.jsx(We,{sx:{mb:2},variant:"h5",children:"Master Logs"}),P.jsx(Os,{elevation:3,sx:{p:2,fontFamily:"monospace"},children:e.map((r,n)=>P.jsx(SE,{log:r},`master-log-${n}`))})]}),!!$l(t)&&P.jsxs(Qe,{children:[P.jsx(We,{sx:{mb:2},variant:"h5",children:"Worker Logs"}),Object.entries(t).map(([r,n],i)=>P.jsxs(LM,{children:[P.jsx(OM,{expandIcon:P.jsx(gx,{}),children:r}),P.jsx(EM,{children:P.jsx(Os,{elevation:3,sx:{p:2,fontFamily:"monospace"},children:n.map((a,o)=>P.jsx(SE,{log:a},`worker-${r}-log-${o}`))})})]},`worker-log-${i}`))]})]})}function Kve({extendedCsvFiles:e,statsHistoryEnabled:t}){const r=Zs(({theme:{isDarkMode:n}})=>n);return P.jsxs(SG,{sx:{display:"flex",flexDirection:"column"},children:[P.jsx(nc,{children:P.jsx(on,{href:"/stats/requests/csv",children:"Download requests CSV"})}),t&&P.jsx(nc,{children:P.jsx(on,{href:"/stats/requests_full_history/csv",children:"Download full request statistics history CSV"})}),P.jsx(nc,{children:P.jsx(on,{href:"/stats/failures/csv",children:"Download failures CSV"})}),P.jsx(nc,{children:P.jsx(on,{href:"/exceptions/csv",children:"Download exceptions CSV"})}),P.jsx(nc,{children:P.jsx(on,{href:`/stats/report?theme=${r?Si.DARK:Si.LIGHT}`,target:"_blank",children:"Download Report"})}),e&&e.map(({href:n,title:i},a)=>P.jsx(nc,{children:P.jsx(on,{href:n,children:i})},`extended-csv-${a}`))]})}const Qve=({swarm:{extendedCsvFiles:e,statsHistoryEnabled:t}})=>({extendedCsvFiles:e,statsHistoryEnabled:t}),Jve=Ln(Qve)(Kve);var dk={},ege=$u;Object.defineProperty(dk,"__esModule",{value:!0});var U6=dk.default=void 0,tge=ege(Fu()),rge=P,nge=(0,tge.default)((0,rge.jsx)("path",{d:"M14.67 5v14H9.33V5h5.34zm1 14H21V5h-5.33v14zm-7.34 0V5H3v14h5.33z"}),"ViewColumn");U6=dk.default=nge;function ige({structure:e,selectedColumns:t,addColumn:r,removeColumn:n}){const[i,a]=O.useState(null);return P.jsxs(hG,{direction:"row",justifyContent:"end",my:2,spacing:1,children:[P.jsx(qa,{onClick:o=>a(o.currentTarget),variant:"outlined",children:P.jsx(U6,{})}),P.jsx(CG,{anchorEl:i,anchorOrigin:{vertical:"bottom",horizontal:"left"},onClose:()=>a(null),open:!!i,children:P.jsx(vG,{sx:{p:2},children:e.map(({key:o,title:s})=>P.jsx(pG,{control:P.jsx(Dse,{checked:t.includes(o),onChange:()=>{t.includes(o)?n(o):r(o)}}),label:s},o))})})]})}function age(e){const[t,r]=O.useState(e.map(o=>o.key));return{selectedColumns:t,addColumn:o=>{r([...t,o])},removeColumn:o=>{r(t.filter(s=>s!==o))},filteredStructure:(o=>o.filter(s=>t.includes(s.key)))(e)}}const oge=Ra.percentilesToStatistics?Ra.percentilesToStatistics.map(e=>({title:`${e*100}%ile (ms)`,key:`responseTimePercentile${e}`})):[],bE=[{key:"method",title:"Type"},{key:"name",title:"Name"},{key:"numRequests",title:"# Requests"},{key:"numFailures",title:"# Fails"},{key:"medianResponseTime",title:"Median (ms)",round:2},...oge,{key:"avgResponseTime",title:"Average (ms)",round:2},{key:"minResponseTime",title:"Min (ms)"},{key:"maxResponseTime",title:"Max (ms)"},{key:"avgContentLength",title:"Average size (bytes)",round:2},{key:"currentRps",title:"Current RPS",round:2},{key:"currentFailPerSec",title:"Current Failures/s",round:2}];function q6({stats:e}){const{selectedColumns:t,addColumn:r,removeColumn:n,filteredStructure:i}=age(bE);return P.jsxs(P.Fragment,{children:[P.jsx(ige,{addColumn:r,removeColumn:n,selectedColumns:t,structure:bE}),P.jsx(Yf,{hasTotalRow:!0,rows:e,structure:i})]})}const sge=({ui:{stats:e}})=>({stats:e}),lge=Ln(sge)(q6);/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -181,7 +181,7 @@ 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 lT=function(e,t){return lT=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},lT(e,t)};function H(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");lT(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var lge=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),uge=function(){function e(){this.browser=new lge,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e}(),Dl=new uge;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Dl.wxa=!0,Dl.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Dl.worker=!0:typeof navigator>"u"?(Dl.node=!0,Dl.svgSupported=!0):cge(navigator.userAgent,Dl);function cge(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}const tt=Dl;var ck=12,q6="sans-serif",Os=ck+"px "+q6,fge=20,dge=100,hge="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function pge(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r=0)s=o*r.length;else for(var l=0;l"u"&&typeof self<"u"?Rl.worker=!0:typeof navigator>"u"?(Rl.node=!0,Rl.svgSupported=!0):fge(navigator.userAgent,Rl);function fge(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}const rt=Rl;var hk=12,Y6="sans-serif",Ns=hk+"px "+Y6,dge=20,hge=100,pge="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function vge(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r=0)s=o*r.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function zge(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),f=2*u,d=c.left,h=c.top;o.push(d,h),l=l&&a&&d===a[f]&&h===a[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=r?bE(s,o):bE(o,s))}function eH(e){return e.nodeName.toUpperCase()==="CANVAS"}var Bge=/([&<>"'])/g,$ge={"&":"&","<":"<",">":">",'"':""","'":"'"};function xn(e){return e==null?"":(e+"").replace(Bge,function(t,r){return $ge[r]})}var Fge=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,gb=[],Vge=tt.browser.firefox&&+tt.browser.version.split(".")[0]<39;function gT(e,t,r,n){return r=r||{},n?wE(e,t,r):Vge&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):wE(e,t,r),r}function wE(e,t,r){if(tt.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(eH(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(vT(gb,e,n,i)){r.zrX=gb[0],r.zrY=gb[1];return}}r.zrX=r.zrY=0}function mk(e){return e||window.event}function ni(e,t,r){if(t=mk(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&gT(e,o,t,r)}else{gT(e,t,t,r);var a=Gge(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Fge.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Gge(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function mT(e,t,r,n){e.addEventListener(t,r,n)}function Hge(e,t,r,n){e.removeEventListener(t,r,n)}var bo=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function CE(e){return e.which===2||e.which===3}var Wge=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:r,event:t},o=0,s=i.length;o1&&n&&n.length>1){var a=TE(n)/TE(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=jge(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Ci(){return[1,0,0,1,0,0]}function _x(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function yk(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function co(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function Va(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function Hu(e,t,r){var n=t[0],i=t[2],a=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(r),c=Math.cos(r);return e[0]=n*c+o*u,e[1]=-n*u+o*c,e[2]=i*c+s*u,e[3]=-i*u+c*s,e[4]=c*a+u*l,e[5]=c*l-u*a,e}function xk(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e}function Kf(e,t){var r=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=r*o-a*n;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*i)*l,e[5]=(a*i-r*s)*l,e):null}function Uge(e){var t=Ci();return yk(t,e),t}var qge=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,i){t.x=r.x+n.x*i,t.y=r.y+n.y*i},e.lerp=function(t,r,n,i){var a=1-i;t.x=a*r.x+i*n.x,t.y=a*r.y+i*n.y},e}();const Le=qge;var kg=Math.min,Ig=Math.max,tl=new Le,rl=new Le,nl=new Le,il=new Le,kd=new Le,Id=new Le,Yge=function(){function e(t,r,n,i){n<0&&(t=t+n,n=-n),i<0&&(r=r+i,i=-i),this.x=t,this.y=r,this.width=n,this.height=i}return e.prototype.union=function(t){var r=kg(t.x,this.x),n=kg(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ig(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ig(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,i=t.height/r.height,a=Ci();return Va(a,a,[-r.x,-r.y]),xk(a,a,[n,i]),Va(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,c=t.y,f=t.y+t.height,d=!(ap&&(p=x,vp&&(p=S,m=n.x&&t<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=r.x*i+o,t.y=r.y*a+s,t.width=r.width*i,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}tl.x=nl.x=r.x,tl.y=il.y=r.y,rl.x=il.x=r.x+r.width,rl.y=nl.y=r.y+r.height,tl.transform(n),il.transform(n),rl.transform(n),nl.transform(n),t.x=kg(tl.x,rl.x,nl.x,il.x),t.y=kg(tl.y,rl.y,nl.y,il.y);var l=Ig(tl.x,rl.x,nl.x,il.x),u=Ig(tl.y,rl.y,nl.y,il.y);t.width=l-t.x,t.height=u-t.y},e}();const Ne=Yge;var tH="silent";function Xge(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:Zge}}function Zge(){bo(this.event)}var Kge=function(e){Dt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Ii),Pd=function(){function e(t,r){this.x=t,this.y=r}return e}(),Qge=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],yb=new Ne(0,0,0,0),rH=function(e){Dt(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new Pd(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new Kge,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new Rge(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(R(Qge,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=nH(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Pd(n,i):this.findHover(n,i),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new Pd(0,0)},t.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=Xge(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new Pd(r,n);if(AE(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Ne(r-u,n-u,l,l),f=a.length-1;f>=0;f--){var d=a[f];d!==i&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(yb.copy(d.getBoundingRect()),d.transform&&yb.applyTransform(d.transform),yb.intersect(c)&&s.push(d))}if(s.length)for(var h=4,p=Math.PI/12,v=Math.PI*2,g=0;g4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function Jge(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1;n.silent&&(i=!0)}var s=n.__hostTarget;n=s||n.parent}return i?tH:!0}return!1}function AE(e,t,r,n,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=Jge(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==tH)){t.target=o;break}}}function nH(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const eme=rH;var iH=32,Dd=7;function tme(e){for(var t=0;e>=iH;)t|=e&1,e>>=1;return e+t}function ME(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i=0;)i++;return i-t}function rme(e,t,r){for(r--;t>>1,i(a,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=a}}function xb(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])>0){for(s=n-i;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o>>1);a(e,t[r+c])>0?o=c+1:l=c}return l}function Sb(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])<0){for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o>>1);a(e,t[r+c])<0?l=c:o=c+1}return l}function nme(e,t){var r=Dd,n,i,a=0;e.length;var o=[];n=[],i=[];function s(h,p){n[a]=h,i[a]=p,a+=1}function l(){for(;a>1;){var h=a-2;if(h>=1&&i[h-1]<=i[h]+i[h+1]||h>=2&&i[h-2]<=i[h]+i[h-1])i[h-1]i[h+1])break;c(h)}}function u(){for(;a>1;){var h=a-2;h>0&&i[h-1]=Dd||w>=Dd);if(C)break;_<0&&(_=0),_+=2}if(r=_,r<1&&(r=1),p===1){for(m=0;m=0;m--)e[b+m]=e[_+m];e[S]=o[x];return}for(var w=r;;){var C=0,A=0,T=!1;do if(t(o[x],e[y])<0){if(e[S--]=e[y--],C++,A=0,--p===0){T=!0;break}}else if(e[S--]=o[x--],A++,C=0,--g===1){T=!0;break}while((C|A)=0;m--)e[b+m]=e[_+m];if(p===0){T=!0;break}}if(e[S--]=o[x--],--g===1){T=!0;break}if(A=g-xb(e[y],o,0,g,g-1,t),A!==0){for(S-=A,x-=A,g-=A,b=S+1,_=x+1,m=0;m=Dd||A>=Dd);if(T)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),g===1){for(S-=p,y-=p,b=S+1,_=y+1,m=p-1;m>=0;m--)e[b+m]=e[_+m];e[S]=o[x]}else{if(g===0)throw new Error;for(_=S-(g-1),m=0;ms&&(l=s),kE(e,r,r+l,r+a,t),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var $n=1,hh=2,Ic=4,IE=!1;function bb(){IE||(IE=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function PE(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var ime=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=PE}return e.prototype.traverse=function(t,r){for(var n=0;n0&&(c.__clipPaths=[]),isNaN(c.z)&&(bb(),c.z=0),isNaN(c.z2)&&(bb(),c.z2=0),isNaN(c.zlevel)&&(bb(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,r,n);var d=t.getTextGuideLine();d&&this._updateAndAddDisplayable(d,r,n);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,r,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}();const ame=ime;var aH;aH=tt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const yT=aH;var Jm={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Jm.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Jm.bounceIn(e*2)*.5:Jm.bounceOut(e*2-1)*.5+.5}};const oH=Jm;var Pg=Math.pow,Ts=Math.sqrt,c0=1e-8,sH=1e-4,DE=Ts(3),Dg=1/3,xa=Gu(),di=Gu(),cf=Gu();function us(e){return e>-c0&&ec0||e<-c0}function gr(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function RE(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function f0(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-i,c=s*s-3*o*l,f=s*l-9*o*u,d=l*l-3*s*u,h=0;if(us(c)&&us(f))if(us(s))a[0]=0;else{var p=-l/s;p>=0&&p<=1&&(a[h++]=p)}else{var v=f*f-4*c*d;if(us(v)){var g=f/c,p=-s/o+g,m=-g/2;p>=0&&p<=1&&(a[h++]=p),m>=0&&m<=1&&(a[h++]=m)}else if(v>0){var y=Ts(v),x=c*s+1.5*o*(-f+y),S=c*s+1.5*o*(-f-y);x<0?x=-Pg(-x,Dg):x=Pg(x,Dg),S<0?S=-Pg(-S,Dg):S=Pg(S,Dg);var p=(-s-(x+S))/(3*o);p>=0&&p<=1&&(a[h++]=p)}else{var _=(2*c*s-3*o*f)/(2*Ts(c*c*c)),b=Math.acos(_)/3,w=Ts(c),C=Math.cos(b),p=(-s-2*w*C)/(3*o),m=(-s+w*(C+DE*Math.sin(b)))/(3*o),A=(-s+w*(C-DE*Math.sin(b)))/(3*o);p>=0&&p<=1&&(a[h++]=p),m>=0&&m<=1&&(a[h++]=m),A>=0&&A<=1&&(a[h++]=A)}}return h}function uH(e,t,r,n,i){var a=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(us(o)){if(lH(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(us(c))i[0]=-a/(2*o);else if(c>0){var f=Ts(c),u=(-a+f)/(2*o),d=(-a-f)/(2*o);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function zs(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,l=(n-r)*i+r,u=(s-o)*i+o,c=(l-s)*i+s,f=(c-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=f,a[4]=f,a[5]=c,a[6]=l,a[7]=n}function cH(e,t,r,n,i,a,o,s,l,u,c){var f,d=.005,h=1/0,p,v,g,m;xa[0]=l,xa[1]=u;for(var y=0;y<1;y+=.05)di[0]=gr(e,r,i,o,y),di[1]=gr(t,n,a,s,y),g=lu(xa,di),g=0&&g=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(us(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=Ts(c),u=(-o+f)/(2*a),d=(-o-f)/(2*a);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function fH(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function $p(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function dH(e,t,r,n,i,a,o,s,l){var u,c=.005,f=1/0;xa[0]=o,xa[1]=s;for(var d=0;d<1;d+=.05){di[0]=wr(e,r,i,d),di[1]=wr(t,n,a,d);var h=lu(xa,di);h=0&&h=1?1:f0(0,n,a,1,l,s)&&gr(0,i,o,1,s[0])}}}var cme=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||rr,this.ondestroy=t.ondestroy||rr,this.onrestart=t.onrestart||rr,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Se(t)?t:oH[t]||Sk(t)},e}();const fme=cme;var hH=function(){function e(t){this.value=t}return e}(),dme=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new hH(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),hme=function(){function e(t){this._list=new dme,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new hH(r),s.key=t,n.insertEntry(s),i[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();const kv=hme;var LE={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 qi(e){return e=Math.round(e),e<0?0:e>255?255:e}function pme(e){return e=Math.round(e),e<0?0:e>360?360:e}function Fp(e){return e<0?0:e>1?1:e}function _b(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?qi(parseFloat(t)/100*255):qi(parseInt(t,10))}function uu(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Fp(parseFloat(t)/100):Fp(parseFloat(t))}function wb(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function cs(e,t,r){return e+(t-e)*r}function ri(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function ST(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var pH=new kv(20),Rg=null;function ac(e,t){Rg&&ST(Rg,t),Rg=pH.put(e,Rg||t.slice())}function Wn(e,t){if(e){t=t||[];var r=pH.get(e);if(r)return ST(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in LE)return ST(t,LE[n]),ac(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){ri(t,0,0,0,1);return}return ri(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),ac(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){ri(t,0,0,0,1);return}return ri(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),ac(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?ri(t,+u[0],+u[1],+u[2],1):ri(t,0,0,0,1);c=uu(u.pop());case"rgb":if(u.length>=3)return ri(t,_b(u[0]),_b(u[1]),_b(u[2]),u.length===3?c:uu(u[3])),ac(e,t),t;ri(t,0,0,0,1);return;case"hsla":if(u.length!==4){ri(t,0,0,0,1);return}return u[3]=uu(u[3]),bT(u,t),ac(e,t),t;case"hsl":if(u.length!==3){ri(t,0,0,0,1);return}return bT(u,t),ac(e,t),t;default:return}}ri(t,0,0,0,1)}}function bT(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=uu(e[1]),i=uu(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],ri(t,qi(wb(o,a,r+1/3)*255),qi(wb(o,a,r)*255),qi(wb(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function vme(e){if(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var c=((a-t)/6+o/2)/o,f=((a-r)/6+o/2)/o,d=((a-n)/6+o/2)/o;t===a?l=d-f:r===a?l=1/3+c-d:n===a&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return e[3]!=null&&h.push(e[3]),h}}function _T(e,t){var r=Wn(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return fo(r,r.length===4?"rgba":"rgb")}}function Cb(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=t[i],s=t[a],l=n-i;return r[0]=qi(cs(o[0],s[0],l)),r[1]=qi(cs(o[1],s[1],l)),r[2]=qi(cs(o[2],s[2],l)),r[3]=Fp(cs(o[3],s[3],l)),r}}function gme(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=Wn(t[i]),s=Wn(t[a]),l=n-i,u=fo([qi(cs(o[0],s[0],l)),qi(cs(o[1],s[1],l)),qi(cs(o[2],s[2],l)),Fp(cs(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function Uh(e,t,r,n){var i=Wn(e);if(e)return i=vme(i),t!=null&&(i[0]=pme(t)),r!=null&&(i[1]=uu(r)),n!=null&&(i[2]=uu(n)),fo(bT(i),"rgba")}function d0(e,t){var r=Wn(e);if(r&&t!=null)return r[3]=Fp(t),fo(r,"rgba")}function fo(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function h0(e,t){var r=Wn(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var p0=Math.round;function Vp(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=Wn(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var EE=1e-4;function fs(e){return e-EE}function Lg(e){return p0(e*1e3)/1e3}function wT(e){return p0(e*1e4)/1e4}function mme(e){return"matrix("+Lg(e[0])+","+Lg(e[1])+","+Lg(e[2])+","+Lg(e[3])+","+wT(e[4])+","+wT(e[5])+")"}var yme={left:"start",right:"end",center:"middle",middle:"middle"};function xme(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function Sme(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function bme(e){var t=e.style,r=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function vH(e){return e&&!!e.image}function _me(e){return e&&!!e.svgElement}function bk(e){return vH(e)||_me(e)}function gH(e){return e.type==="linear"}function mH(e){return e.type==="radial"}function yH(e){return e&&(e.type==="linear"||e.type==="radial")}function Cx(e){return"url(#"+e+")"}function xH(e){var t=e.getGlobalScale(),r=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function SH(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*Xm,i=Ee(e.scaleX,1),a=Ee(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,l=[];return(t||r)&&l.push("translate("+t+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+p0(o*Xm)+"deg, "+p0(s*Xm)+"deg)"),l.join(" ")}var wme=function(){return tt.hasGlobalWindow&&Se(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}}(),CT=Array.prototype.slice;function to(e,t,r){return(t-e)*r+e}function Tb(e,t,r,n){for(var i=t.length,a=0;an?t:e,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)n.length=o;else for(var l=a;l=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=NE,l=r;if(Zr(r)){var u=Mme(r);s=u,(u===1&&!nt(r[0])||u===2&&!nt(r[0][0]))&&(o=!0)}else if(nt(r)&&!Bp(r))s=Og;else if(oe(r))if(!isNaN(+r))s=Og;else{var c=Wn(r);c&&(l=c,s=ph)}else if(Sx(r)){var f=q({},l);f.colorStops=Z(r.colorStops,function(h){return{offset:h.offset,color:Wn(h.color)}}),gH(r)?s=TT:mH(r)&&(s=AT),l=f}a===0?this.valType=s:(s!==this.valType||s===NE)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=Se(n)?n:oH[n]||Sk(n)),i.push(d),d},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(v,g){return v.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Ng(i),u=zE(i),c=0;c=0&&!(o[c].percent<=r);c--);c=d(c,s-2)}else{for(c=f;cr);c++);c=d(c-1,s-2)}p=o[c+1],h=o[c]}if(h&&p){this._lastFr=c,this._lastFrP=r;var g=p.percent-h.percent,m=g===0?1:d((r-h.percent)/g,1);p.easingFunc&&(m=p.easingFunc(m));var y=n?this._additiveValue:u?Rd:t[l];if((Ng(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?h.rawValue:p.rawValue;else if(Ng(a))a===ty?Tb(y,h[i],p[i],m):Cme(y,h[i],p[i],m);else if(zE(a)){var x=h[i],S=p[i],_=a===TT;t[l]={type:_?"linear":"radial",x:to(x.x,S.x,m),y:to(x.y,S.y,m),colorStops:Z(x.colorStops,function(w,C){var A=S.colorStops[C];return{offset:to(w.offset,A.offset,m),color:ey(Tb([],w.color,A.color,m))}}),global:S.global},_?(t[l].x2=to(x.x2,S.x2,m),t[l].y2=to(x.y2,S.y2,m)):t[l].r=to(x.r,S.r,m)}else if(u)Tb(y,h[i],p[i],m),n||(t[l]=ey(y));else{var b=to(h[i],p[i],m);n?this._additiveValue=b:t[l]=b}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===Og?t[n]=t[n]+i:r===ph?(Wn(t[n],Rd),Eg(Rd,Rd,i,1),t[n]=ey(Rd)):r===ty?Eg(t[n],t[n],i,1):r===bH&&OE(t[n],t[n],i,1)},e}(),_k=function(){function e(t,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&i){hk("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,Ye(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o0&&l.addKeyframe(0,qh(u),i),this._trackKeys.push(s)}l.addKeyframe(t,qh(r[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();function Yc(){return new Date().getTime()}var Ime=function(e){Dt(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=Yc()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(yT(n),!r._paused&&r.update())}yT(n)},t.prototype.start=function(){this._running||(this._time=Yc(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Yc(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Yc()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var i=new _k(r,n.loop);return this.addAnimator(i),i},t}(Ii);const Pme=Ime;var Dme=300,Ab=tt.domSupported,Mb=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=Z(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}}(),BE={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},$E=!1;function MT(e){var t=e.pointerType;return t==="pen"||t==="touch"}function Rme(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function kb(e){e&&(e.zrByTouch=!0)}function Lme(e,t){return ni(e.dom,new Eme(e,t),!0)}function _H(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var Eme=function(){function e(t,r){this.stopPropagation=rr,this.stopImmediatePropagation=rr,this.preventDefault=rr,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),Ni={mousedown:function(e){e=ni(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=ni(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=ni(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=ni(this.dom,e);var t=e.toElement||e.relatedTarget;_H(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){$E=!0,e=ni(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){$E||(e=ni(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=ni(this.dom,e),kb(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Ni.mousemove.call(this,e),Ni.mousedown.call(this,e)},touchmove:function(e){e=ni(this.dom,e),kb(e),this.handler.processGesture(e,"change"),Ni.mousemove.call(this,e)},touchend:function(e){e=ni(this.dom,e),kb(e),this.handler.processGesture(e,"end"),Ni.mouseup.call(this,e),+new Date-+this.__lastTouchMomentGE||e<-GE}var ol=[],oc=[],Pb=Ci(),Db=Math.abs,Fme=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return al(this.rotation)||al(this.x)||al(this.y)||al(this.scaleX-1)||al(this.scaleY-1)||al(this.skewX)||al(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(VE(n),this.invTransform=null);return}n=n||Ci(),r?this.getLocalTransform(n):VE(n),t&&(r?co(n,t,n):yk(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(ol);var n=ol[0]<0?-1:1,i=ol[1]<0?-1:1,a=((ol[0]-n)*r+n)/ol[0]||0,o=((ol[1]-i)*r+i)/ol[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Ci(),Kf(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(co(oc,t.invTransform,r),r=oc);var n=this.originX,i=this.originY;(n||i)&&(Pb[4]=n,Pb[5]=i,co(oc,r,Pb),oc[4]-=n,oc[5]-=i,r=oc),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],i=this.invTransform;return i&&Er(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&Er(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&Db(t[0]-1)>1e-10&&Db(t[3]-1)>1e-10?Math.sqrt(Db(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){CH(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,f=t.y,d=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var p=n+s,v=i+l;r[4]=-p*a-d*v*o,r[5]=-v*o-h*p*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=d*o,u&&Hu(r,r,u),r[4]+=n+c,r[5]+=i+f,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),Ga=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function CH(e,t){for(var r=0;r=0?parseFloat(e)/100*t:parseFloat(e):e}function g0(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,c="left",f="top";if(n instanceof Array)l+=Ji(n[0],r.width),u+=Ji(n[1],r.height),c=null,f=null;else switch(n){case"left":l-=i,u+=s,c="right",f="middle";break;case"right":l+=i+o,u+=s,f="middle";break;case"top":l+=o/2,u-=i,c="center",f="bottom";break;case"bottom":l+=o/2,u+=a+i,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=i,u+=s,f="middle";break;case"insideRight":l+=o-i,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=i,c="center";break;case"insideBottom":l+=o/2,u+=a-i,c="center",f="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=a-i,f="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var Rb="__zr_normal__",Lb=Ga.concat(["ignore"]),Vme=Fa(Ga,function(e,t){return e[t]=!0,e},{ignore:!1}),sc={},Gme=new Ne(0,0,0,0),wk=function(){function e(t){this.id=Z6(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(r),n.position!=null){var c=Gme;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(sc,n,c):g0(sc,n,c),a.x=sc.x,a.y=sc.y,o=sc.align,s=sc.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var d=void 0,h=void 0;f==="center"?(d=c.width*.5,h=c.height*.5):(d=Ji(f[0],c.width),h=Ji(f[1],c.height)),u=!0,a.originX=-a.x+d+(i?0:c.x),a.originY=-a.y+h+(i?0:c.y)}}n.rotation!=null&&(a.rotation=n.rotation);var p=n.offset;p&&(a.x+=p[0],a.y+=p[1],u||(a.originX=-p[0],a.originY=-p[1]));var v=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,x=void 0;v&&this.canBeInsideText()?(m=n.insideFill,y=n.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(m),x=!0)):(m=n.outsideFill,y=n.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),x=!0)),m=m||"#000",(m!==g.fill||y!==g.stroke||x!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=m,g.stroke=y,g.autoStroke=x,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=$n,l&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?DT:PT},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Wn(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,fo(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},q(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(_e(t))for(var n=t,i=Ye(n),a=0;a0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(Rb,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===Rb,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(ze(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){hk("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,d=this._textGuide;return f&&f.useState(t,r,n,c),d&&d.useState(t,r,n,c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~$n),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l0,p);var v=this._textContent,g=this._textGuide;v&&v.useStates(t,r,d),g&&g.useStates(t,r,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~$n)}},e.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var i=this.currentStates.slice(),a=ze(i,t),o=ze(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,i=0;i=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,i=n.length,a=[],o=0;o0&&r.during&&a[0].during(function(p,v){r.during(v)});for(var d=0;d0||i.force&&!o.length){var C=void 0,A=void 0,T=void 0;if(s){A={},d&&(C={});for(var S=0;S=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=ze(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,i=this._children,a=ze(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function Bge(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),f=2*u,d=c.left,h=c.top;o.push(d,h),l=l&&a&&d===a[f]&&h===a[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=r?TE(s,o):TE(o,s))}function tH(e){return e.nodeName.toUpperCase()==="CANVAS"}var $ge=/([&<>"'])/g,Fge={"&":"&","<":"<",">":">",'"':""","'":"'"};function xn(e){return e==null?"":(e+"").replace($ge,function(t,r){return Fge[r]})}var Vge=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,mb=[],Gge=rt.browser.firefox&&+rt.browser.version.split(".")[0]<39;function mT(e,t,r,n){return r=r||{},n?ME(e,t,r):Gge&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):ME(e,t,r),r}function ME(e,t,r){if(rt.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(tH(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(gT(mb,e,n,i)){r.zrX=mb[0],r.zrY=mb[1];return}}r.zrX=r.zrY=0}function Sk(e){return e||window.event}function ni(e,t,r){if(t=Sk(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&mT(e,o,t,r)}else{mT(e,t,t,r);var a=Hge(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Vge.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Hge(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function yT(e,t,r,n){e.addEventListener(t,r,n)}function Wge(e,t,r,n){e.removeEventListener(t,r,n)}var bo=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function kE(e){return e.which===2||e.which===3}var jge=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:r,event:t},o=0,s=i.length;o1&&n&&n.length>1){var a=IE(n)/IE(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Uge(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Ci(){return[1,0,0,1,0,0]}function Cx(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function bk(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function co(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function Va(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function Wu(e,t,r){var n=t[0],i=t[2],a=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(r),c=Math.cos(r);return e[0]=n*c+o*u,e[1]=-n*u+o*c,e[2]=i*c+s*u,e[3]=-i*u+c*s,e[4]=c*a+u*l,e[5]=c*l-u*a,e}function _k(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e}function Kf(e,t){var r=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=r*o-a*n;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*i)*l,e[5]=(a*i-r*s)*l,e):null}function qge(e){var t=Ci();return bk(t,e),t}var Yge=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,i){t.x=r.x+n.x*i,t.y=r.y+n.y*i},e.lerp=function(t,r,n,i){var a=1-i;t.x=a*r.x+i*n.x,t.y=a*r.y+i*n.y},e}();const Le=Yge;var kg=Math.min,Ig=Math.max,rl=new Le,nl=new Le,il=new Le,al=new Le,kd=new Le,Id=new Le,Xge=function(){function e(t,r,n,i){n<0&&(t=t+n,n=-n),i<0&&(r=r+i,i=-i),this.x=t,this.y=r,this.width=n,this.height=i}return e.prototype.union=function(t){var r=kg(t.x,this.x),n=kg(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ig(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ig(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,i=t.height/r.height,a=Ci();return Va(a,a,[-r.x,-r.y]),_k(a,a,[n,i]),Va(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,c=t.y,f=t.y+t.height,d=!(ap&&(p=x,vp&&(p=S,m=n.x&&t<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=r.x*i+o,t.y=r.y*a+s,t.width=r.width*i,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}rl.x=il.x=r.x,rl.y=al.y=r.y,nl.x=al.x=r.x+r.width,nl.y=il.y=r.y+r.height,rl.transform(n),al.transform(n),nl.transform(n),il.transform(n),t.x=kg(rl.x,nl.x,il.x,al.x),t.y=kg(rl.y,nl.y,il.y,al.y);var l=Ig(rl.x,nl.x,il.x,al.x),u=Ig(rl.y,nl.y,il.y,al.y);t.width=l-t.x,t.height=u-t.y},e}();const Ne=Xge;var rH="silent";function Zge(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:Kge}}function Kge(){bo(this.event)}var Qge=function(e){Dt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Ii),Pd=function(){function e(t,r){this.x=t,this.y=r}return e}(),Jge=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],xb=new Ne(0,0,0,0),nH=function(e){Dt(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new Pd(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new Qge,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new Lge(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(R(Jge,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=iH(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Pd(n,i):this.findHover(n,i),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new Pd(0,0)},t.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=Zge(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new Pd(r,n);if(PE(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Ne(r-u,n-u,l,l),f=a.length-1;f>=0;f--){var d=a[f];d!==i&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(xb.copy(d.getBoundingRect()),d.transform&&xb.applyTransform(d.transform),xb.intersect(c)&&s.push(d))}if(s.length)for(var h=4,p=Math.PI/12,v=Math.PI*2,g=0;g4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function eme(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1;n.silent&&(i=!0)}var s=n.__hostTarget;n=s||n.parent}return i?rH:!0}return!1}function PE(e,t,r,n,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=eme(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==rH)){t.target=o;break}}}function iH(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const tme=nH;var aH=32,Dd=7;function rme(e){for(var t=0;e>=aH;)t|=e&1,e>>=1;return e+t}function DE(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i=0;)i++;return i-t}function nme(e,t,r){for(r--;t>>1,i(a,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=a}}function Sb(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])>0){for(s=n-i;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o>>1);a(e,t[r+c])>0?o=c+1:l=c}return l}function bb(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])<0){for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o>>1);a(e,t[r+c])<0?l=c:o=c+1}return l}function ime(e,t){var r=Dd,n,i,a=0;e.length;var o=[];n=[],i=[];function s(h,p){n[a]=h,i[a]=p,a+=1}function l(){for(;a>1;){var h=a-2;if(h>=1&&i[h-1]<=i[h]+i[h+1]||h>=2&&i[h-2]<=i[h]+i[h-1])i[h-1]i[h+1])break;c(h)}}function u(){for(;a>1;){var h=a-2;h>0&&i[h-1]=Dd||w>=Dd);if(C)break;_<0&&(_=0),_+=2}if(r=_,r<1&&(r=1),p===1){for(m=0;m=0;m--)e[b+m]=e[_+m];e[S]=o[x];return}for(var w=r;;){var C=0,A=0,T=!1;do if(t(o[x],e[y])<0){if(e[S--]=e[y--],C++,A=0,--p===0){T=!0;break}}else if(e[S--]=o[x--],A++,C=0,--g===1){T=!0;break}while((C|A)=0;m--)e[b+m]=e[_+m];if(p===0){T=!0;break}}if(e[S--]=o[x--],--g===1){T=!0;break}if(A=g-Sb(e[y],o,0,g,g-1,t),A!==0){for(S-=A,x-=A,g-=A,b=S+1,_=x+1,m=0;m=Dd||A>=Dd);if(T)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),g===1){for(S-=p,y-=p,b=S+1,_=y+1,m=p-1;m>=0;m--)e[b+m]=e[_+m];e[S]=o[x]}else{if(g===0)throw new Error;for(_=S-(g-1),m=0;ms&&(l=s),RE(e,r,r+l,r+a,t),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var $n=1,hh=2,Ic=4,LE=!1;function _b(){LE||(LE=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function EE(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var ame=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=EE}return e.prototype.traverse=function(t,r){for(var n=0;n0&&(c.__clipPaths=[]),isNaN(c.z)&&(_b(),c.z=0),isNaN(c.z2)&&(_b(),c.z2=0),isNaN(c.zlevel)&&(_b(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,r,n);var d=t.getTextGuideLine();d&&this._updateAndAddDisplayable(d,r,n);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,r,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}();const ome=ame;var oH;oH=rt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const xT=oH;var Jm={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Jm.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Jm.bounceIn(e*2)*.5:Jm.bounceOut(e*2-1)*.5+.5}};const sH=Jm;var Pg=Math.pow,Ts=Math.sqrt,c0=1e-8,lH=1e-4,OE=Ts(3),Dg=1/3,xa=Hu(),di=Hu(),cf=Hu();function us(e){return e>-c0&&ec0||e<-c0}function gr(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function NE(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function f0(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-i,c=s*s-3*o*l,f=s*l-9*o*u,d=l*l-3*s*u,h=0;if(us(c)&&us(f))if(us(s))a[0]=0;else{var p=-l/s;p>=0&&p<=1&&(a[h++]=p)}else{var v=f*f-4*c*d;if(us(v)){var g=f/c,p=-s/o+g,m=-g/2;p>=0&&p<=1&&(a[h++]=p),m>=0&&m<=1&&(a[h++]=m)}else if(v>0){var y=Ts(v),x=c*s+1.5*o*(-f+y),S=c*s+1.5*o*(-f-y);x<0?x=-Pg(-x,Dg):x=Pg(x,Dg),S<0?S=-Pg(-S,Dg):S=Pg(S,Dg);var p=(-s-(x+S))/(3*o);p>=0&&p<=1&&(a[h++]=p)}else{var _=(2*c*s-3*o*f)/(2*Ts(c*c*c)),b=Math.acos(_)/3,w=Ts(c),C=Math.cos(b),p=(-s-2*w*C)/(3*o),m=(-s+w*(C+OE*Math.sin(b)))/(3*o),A=(-s+w*(C-OE*Math.sin(b)))/(3*o);p>=0&&p<=1&&(a[h++]=p),m>=0&&m<=1&&(a[h++]=m),A>=0&&A<=1&&(a[h++]=A)}}return h}function cH(e,t,r,n,i){var a=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(us(o)){if(uH(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(us(c))i[0]=-a/(2*o);else if(c>0){var f=Ts(c),u=(-a+f)/(2*o),d=(-a-f)/(2*o);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function Bs(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,l=(n-r)*i+r,u=(s-o)*i+o,c=(l-s)*i+s,f=(c-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=f,a[4]=f,a[5]=c,a[6]=l,a[7]=n}function fH(e,t,r,n,i,a,o,s,l,u,c){var f,d=.005,h=1/0,p,v,g,m;xa[0]=l,xa[1]=u;for(var y=0;y<1;y+=.05)di[0]=gr(e,r,i,o,y),di[1]=gr(t,n,a,s,y),g=cu(xa,di),g=0&&g=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(us(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=Ts(c),u=(-o+f)/(2*a),d=(-o-f)/(2*a);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function dH(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function $p(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function hH(e,t,r,n,i,a,o,s,l){var u,c=.005,f=1/0;xa[0]=o,xa[1]=s;for(var d=0;d<1;d+=.05){di[0]=wr(e,r,i,d),di[1]=wr(t,n,a,d);var h=cu(xa,di);h=0&&h=1?1:f0(0,n,a,1,l,s)&&gr(0,i,o,1,s[0])}}}var fme=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||rr,this.ondestroy=t.ondestroy||rr,this.onrestart=t.onrestart||rr,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Se(t)?t:sH[t]||wk(t)},e}();const dme=fme;var pH=function(){function e(t){this.value=t}return e}(),hme=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new pH(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),pme=function(){function e(t){this._list=new hme,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new pH(r),s.key=t,n.insertEntry(s),i[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();const kv=pme;var zE={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 qi(e){return e=Math.round(e),e<0?0:e>255?255:e}function vme(e){return e=Math.round(e),e<0?0:e>360?360:e}function Fp(e){return e<0?0:e>1?1:e}function wb(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?qi(parseFloat(t)/100*255):qi(parseInt(t,10))}function fu(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Fp(parseFloat(t)/100):Fp(parseFloat(t))}function Cb(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function cs(e,t,r){return e+(t-e)*r}function ri(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function bT(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var vH=new kv(20),Rg=null;function oc(e,t){Rg&&bT(Rg,t),Rg=vH.put(e,Rg||t.slice())}function Wn(e,t){if(e){t=t||[];var r=vH.get(e);if(r)return bT(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in zE)return bT(t,zE[n]),oc(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){ri(t,0,0,0,1);return}return ri(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),oc(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){ri(t,0,0,0,1);return}return ri(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),oc(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?ri(t,+u[0],+u[1],+u[2],1):ri(t,0,0,0,1);c=fu(u.pop());case"rgb":if(u.length>=3)return ri(t,wb(u[0]),wb(u[1]),wb(u[2]),u.length===3?c:fu(u[3])),oc(e,t),t;ri(t,0,0,0,1);return;case"hsla":if(u.length!==4){ri(t,0,0,0,1);return}return u[3]=fu(u[3]),_T(u,t),oc(e,t),t;case"hsl":if(u.length!==3){ri(t,0,0,0,1);return}return _T(u,t),oc(e,t),t;default:return}}ri(t,0,0,0,1)}}function _T(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=fu(e[1]),i=fu(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],ri(t,qi(Cb(o,a,r+1/3)*255),qi(Cb(o,a,r)*255),qi(Cb(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function gme(e){if(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var c=((a-t)/6+o/2)/o,f=((a-r)/6+o/2)/o,d=((a-n)/6+o/2)/o;t===a?l=d-f:r===a?l=1/3+c-d:n===a&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return e[3]!=null&&h.push(e[3]),h}}function wT(e,t){var r=Wn(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return fo(r,r.length===4?"rgba":"rgb")}}function Tb(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=t[i],s=t[a],l=n-i;return r[0]=qi(cs(o[0],s[0],l)),r[1]=qi(cs(o[1],s[1],l)),r[2]=qi(cs(o[2],s[2],l)),r[3]=Fp(cs(o[3],s[3],l)),r}}function mme(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=Wn(t[i]),s=Wn(t[a]),l=n-i,u=fo([qi(cs(o[0],s[0],l)),qi(cs(o[1],s[1],l)),qi(cs(o[2],s[2],l)),Fp(cs(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function Uh(e,t,r,n){var i=Wn(e);if(e)return i=gme(i),t!=null&&(i[0]=vme(t)),r!=null&&(i[1]=fu(r)),n!=null&&(i[2]=fu(n)),fo(_T(i),"rgba")}function d0(e,t){var r=Wn(e);if(r&&t!=null)return r[3]=Fp(t),fo(r,"rgba")}function fo(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function h0(e,t){var r=Wn(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var p0=Math.round;function Vp(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=Wn(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var BE=1e-4;function fs(e){return e-BE}function Lg(e){return p0(e*1e3)/1e3}function CT(e){return p0(e*1e4)/1e4}function yme(e){return"matrix("+Lg(e[0])+","+Lg(e[1])+","+Lg(e[2])+","+Lg(e[3])+","+CT(e[4])+","+CT(e[5])+")"}var xme={left:"start",right:"end",center:"middle",middle:"middle"};function Sme(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function bme(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function _me(e){var t=e.style,r=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function gH(e){return e&&!!e.image}function wme(e){return e&&!!e.svgElement}function Ck(e){return gH(e)||wme(e)}function mH(e){return e.type==="linear"}function yH(e){return e.type==="radial"}function xH(e){return e&&(e.type==="linear"||e.type==="radial")}function Tx(e){return"url(#"+e+")"}function SH(e){var t=e.getGlobalScale(),r=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function bH(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*Xm,i=Ee(e.scaleX,1),a=Ee(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,l=[];return(t||r)&&l.push("translate("+t+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+p0(o*Xm)+"deg, "+p0(s*Xm)+"deg)"),l.join(" ")}var Cme=function(){return rt.hasGlobalWindow&&Se(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}}(),TT=Array.prototype.slice;function to(e,t,r){return(t-e)*r+e}function Ab(e,t,r,n){for(var i=t.length,a=0;an?t:e,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)n.length=o;else for(var l=a;l=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=FE,l=r;if(Zr(r)){var u=kme(r);s=u,(u===1&&!it(r[0])||u===2&&!it(r[0][0]))&&(o=!0)}else if(it(r)&&!Bp(r))s=Og;else if(oe(r))if(!isNaN(+r))s=Og;else{var c=Wn(r);c&&(l=c,s=ph)}else if(bx(r)){var f=q({},l);f.colorStops=Z(r.colorStops,function(h){return{offset:h.offset,color:Wn(h.color)}}),mH(r)?s=AT:yH(r)&&(s=MT),l=f}a===0?this.valType=s:(s!==this.valType||s===FE)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=Se(n)?n:sH[n]||wk(n)),i.push(d),d},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(v,g){return v.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Ng(i),u=VE(i),c=0;c=0&&!(o[c].percent<=r);c--);c=d(c,s-2)}else{for(c=f;cr);c++);c=d(c-1,s-2)}p=o[c+1],h=o[c]}if(h&&p){this._lastFr=c,this._lastFrP=r;var g=p.percent-h.percent,m=g===0?1:d((r-h.percent)/g,1);p.easingFunc&&(m=p.easingFunc(m));var y=n?this._additiveValue:u?Rd:t[l];if((Ng(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?h.rawValue:p.rawValue;else if(Ng(a))a===ty?Ab(y,h[i],p[i],m):Tme(y,h[i],p[i],m);else if(VE(a)){var x=h[i],S=p[i],_=a===AT;t[l]={type:_?"linear":"radial",x:to(x.x,S.x,m),y:to(x.y,S.y,m),colorStops:Z(x.colorStops,function(w,C){var A=S.colorStops[C];return{offset:to(w.offset,A.offset,m),color:ey(Ab([],w.color,A.color,m))}}),global:S.global},_?(t[l].x2=to(x.x2,S.x2,m),t[l].y2=to(x.y2,S.y2,m)):t[l].r=to(x.r,S.r,m)}else if(u)Ab(y,h[i],p[i],m),n||(t[l]=ey(y));else{var b=to(h[i],p[i],m);n?this._additiveValue=b:t[l]=b}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===Og?t[n]=t[n]+i:r===ph?(Wn(t[n],Rd),Eg(Rd,Rd,i,1),t[n]=ey(Rd)):r===ty?Eg(t[n],t[n],i,1):r===_H&&$E(t[n],t[n],i,1)},e}(),Tk=function(){function e(t,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&i){gk("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,Ye(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o0&&l.addKeyframe(0,qh(u),i),this._trackKeys.push(s)}l.addKeyframe(t,qh(r[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();function Yc(){return new Date().getTime()}var Pme=function(e){Dt(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=Yc()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(xT(n),!r._paused&&r.update())}xT(n)},t.prototype.start=function(){this._running||(this._time=Yc(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Yc(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Yc()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var i=new Tk(r,n.loop);return this.addAnimator(i),i},t}(Ii);const Dme=Pme;var Rme=300,Mb=rt.domSupported,kb=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=Z(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}}(),GE={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},HE=!1;function kT(e){var t=e.pointerType;return t==="pen"||t==="touch"}function Lme(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function Ib(e){e&&(e.zrByTouch=!0)}function Eme(e,t){return ni(e.dom,new Ome(e,t),!0)}function wH(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var Ome=function(){function e(t,r){this.stopPropagation=rr,this.stopImmediatePropagation=rr,this.preventDefault=rr,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),Ni={mousedown:function(e){e=ni(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=ni(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=ni(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=ni(this.dom,e);var t=e.toElement||e.relatedTarget;wH(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){HE=!0,e=ni(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){HE||(e=ni(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=ni(this.dom,e),Ib(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Ni.mousemove.call(this,e),Ni.mousedown.call(this,e)},touchmove:function(e){e=ni(this.dom,e),Ib(e),this.handler.processGesture(e,"change"),Ni.mousemove.call(this,e)},touchend:function(e){e=ni(this.dom,e),Ib(e),this.handler.processGesture(e,"end"),Ni.mouseup.call(this,e),+new Date-+this.__lastTouchMomentUE||e<-UE}var sl=[],sc=[],Db=Ci(),Rb=Math.abs,Vme=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return ol(this.rotation)||ol(this.x)||ol(this.y)||ol(this.scaleX-1)||ol(this.scaleY-1)||ol(this.skewX)||ol(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(jE(n),this.invTransform=null);return}n=n||Ci(),r?this.getLocalTransform(n):jE(n),t&&(r?co(n,t,n):bk(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(sl);var n=sl[0]<0?-1:1,i=sl[1]<0?-1:1,a=((sl[0]-n)*r+n)/sl[0]||0,o=((sl[1]-i)*r+i)/sl[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Ci(),Kf(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(co(sc,t.invTransform,r),r=sc);var n=this.originX,i=this.originY;(n||i)&&(Db[4]=n,Db[5]=i,co(sc,r,Db),sc[4]-=n,sc[5]-=i,r=sc),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],i=this.invTransform;return i&&Er(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&Er(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&Rb(t[0]-1)>1e-10&&Rb(t[3]-1)>1e-10?Math.sqrt(Rb(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){TH(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,f=t.y,d=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var p=n+s,v=i+l;r[4]=-p*a-d*v*o,r[5]=-v*o-h*p*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=d*o,u&&Wu(r,r,u),r[4]+=n+c,r[5]+=i+f,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),Ga=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function TH(e,t){for(var r=0;r=0?parseFloat(e)/100*t:parseFloat(e):e}function g0(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,c="left",f="top";if(n instanceof Array)l+=Ji(n[0],r.width),u+=Ji(n[1],r.height),c=null,f=null;else switch(n){case"left":l-=i,u+=s,c="right",f="middle";break;case"right":l+=i+o,u+=s,f="middle";break;case"top":l+=o/2,u-=i,c="center",f="bottom";break;case"bottom":l+=o/2,u+=a+i,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=i,u+=s,f="middle";break;case"insideRight":l+=o-i,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=i,c="center";break;case"insideBottom":l+=o/2,u+=a-i,c="center",f="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=a-i,f="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var Lb="__zr_normal__",Eb=Ga.concat(["ignore"]),Gme=Fa(Ga,function(e,t){return e[t]=!0,e},{ignore:!1}),lc={},Hme=new Ne(0,0,0,0),Ak=function(){function e(t){this.id=K6(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(r),n.position!=null){var c=Hme;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(lc,n,c):g0(lc,n,c),a.x=lc.x,a.y=lc.y,o=lc.align,s=lc.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var d=void 0,h=void 0;f==="center"?(d=c.width*.5,h=c.height*.5):(d=Ji(f[0],c.width),h=Ji(f[1],c.height)),u=!0,a.originX=-a.x+d+(i?0:c.x),a.originY=-a.y+h+(i?0:c.y)}}n.rotation!=null&&(a.rotation=n.rotation);var p=n.offset;p&&(a.x+=p[0],a.y+=p[1],u||(a.originX=-p[0],a.originY=-p[1]));var v=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,x=void 0;v&&this.canBeInsideText()?(m=n.insideFill,y=n.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(m),x=!0)):(m=n.outsideFill,y=n.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),x=!0)),m=m||"#000",(m!==g.fill||y!==g.stroke||x!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=m,g.stroke=y,g.autoStroke=x,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=$n,l&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?RT:DT},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Wn(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,fo(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},q(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(_e(t))for(var n=t,i=Ye(n),a=0;a0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(Lb,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===Lb,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(ze(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){gk("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,d=this._textGuide;return f&&f.useState(t,r,n,c),d&&d.useState(t,r,n,c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~$n),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l0,p);var v=this._textContent,g=this._textGuide;v&&v.useStates(t,r,d),g&&g.useStates(t,r,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~$n)}},e.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var i=this.currentStates.slice(),a=ze(i,t),o=ze(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,i=0;i=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,i=n.length,a=[],o=0;o0&&r.during&&a[0].during(function(p,v){r.during(v)});for(var d=0;d0||i.force&&!o.length){var C=void 0,A=void 0,T=void 0;if(s){A={},d&&(C={});for(var S=0;S=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=ze(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,i=this._children,a=ze(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},e.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this.handler.off(t,r)},e.prototype.trigger=function(t,r){this.handler.trigger(t,r)},e.prototype.clear=function(){for(var t=this.storage.getRoots(),r=0;r0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/l*u+o}function ne(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return oe(e)?Kme(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Xt(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),IH),e=(+e).toFixed(t),r?e:+e}function yi(e){return e.sort(function(t,r){return t-r}),e}function Ta(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return Qme(e)}function Qme(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function PH(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function Jme(e,t){var r=Fa(e,function(h,p){return h+(isNaN(p)?0:p)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=Z(e,function(h){return(isNaN(h)?0:h)/r*n*100}),a=n*100,o=Z(i,function(h){return Math.floor(h)}),s=Fa(o,function(h,p){return h+p},0),l=Z(i,function(h,p){return h-o[p]});su&&(u=l[f],c=f);++o[c],l[c]=0,++s}return Z(o,function(h){return h/n})}function eye(e,t){var r=Math.max(Ta(e),Ta(t)),n=e+t;return r>IH?n:Xt(n,r)}var qE=9007199254740991;function DH(e){var t=Math.PI*2;return(e%t+t)%t}function m0(e){return e>-UE&&e=10&&t++,t}function RH(e,t){var r=Ck(e),n=Math.pow(10,r),i=e/n,a;return t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,e=a*n,r>=-20?+e.toFixed(r<0?-r:0):e}function Nb(e,t){var r=(e.length-1)*t+1,n=Math.floor(r),i=+e[n-1],a=r-n;return a?i+a*(e[n]-i):i}function YE(e){e.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,r=1,n=0;n=0||a&&ze(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var Aye=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Mye=ku(Aye),kye=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return Mye(this,t,r)},e}(),LT=new kv(50);function Iye(e){if(typeof e=="string"){var t=LT.get(e);return t&&t.image}else return e}function kk(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=LT.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!Mx(t)&&a.pending.push(o)):(t=Ns.loadImage(e,QE,QE),t.__zrImageSrc=e,LT.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function QE(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;l++)s-=o;var u=jn(r,t);return u>s&&(r="",u=0),s=e-u,i.ellipsis=r,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function jH(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=jn(e,n);if(a<=r)return e;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?Dye(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=jn(e,n)}return e===""&&(e=t.placeholder),e}function Dye(e,t,r,n){for(var i=0,a=0,o=e.length;ah&&u){var p=Math.floor(h/s);f=f.slice(0,p)}if(e&&a&&c!=null)for(var v=WH(c,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;gs&&Bb(r,e.substring(s,u),t,o),Bb(r,l[2],t,o,l[1]),s=zb.lastIndex}si){_>0?(y.tokens=y.tokens.slice(0,_),g(y,S,x),r.lines=r.lines.slice(0,m+1)):r.lines=r.lines.slice(0,m);break e}var k=w.width,I=k==null||k==="auto";if(typeof k=="string"&&k.charAt(k.length-1)==="%")b.percentWidth=k,c.push(b),b.contentWidth=jn(b.text,T);else{if(I){var P=w.backgroundColor,L=P&&P.image;L&&(L=Iye(L),Mx(L)&&(b.width=Math.max(b.width,L.width*M/L.height)))}var z=p&&n!=null?n-S:null;z!=null&&z0&&p+n.accumWidth>n.width&&(c=t.split(` -`),u=!0),n.accumWidth=p}else{var v=UH(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=v.accumWidth+h,f=v.linesWidths,c=v.lines}}else c=t.split(` -`);for(var g=0;g=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var zye=Fa(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Bye(e){return Nye(e)?!!zye[e]:!0}function UH(e,t,r,n,i){for(var a=[],o=[],s="",l="",u=0,c=0,f=0;fr:i+c+h>r){c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),a.push(s),o.push(c-u),l+=d,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=d,c=h)):p?(a.push(l),o.push(u),l=d,u=h):(a.push(d),o.push(h));continue}c+=h,p?(l+=d,u+=h):(l&&(s+=l,l="",u=0),s+=d)}return!a.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(c)),a.length===1&&(c+=i),{accumWidth:c,lines:a,linesWidths:o}}var ET="__zr_style_"+Math.round(Math.random()*10),cu={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},kx={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};cu[ET]=!0;var eO=["z","z2","invisible"],$ye=["invisible"],Fye=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=Ye(r),i=0;i1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(zg[0]=Gb(i)*r+e,zg[1]=Vb(i)*n+t,Bg[0]=Gb(a)*r+e,Bg[1]=Vb(a)*n+t,u(s,zg,Bg),c(l,zg,Bg),i=i%ll,i<0&&(i=i+ll),a=a%ll,a<0&&(a=a+ll),i>a&&!o?a+=ll:ii&&($g[0]=Gb(h)*r+e,$g[1]=Vb(h)*n+t,u(s,$g,s),c(l,$g,l))}var xt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ul=[],cl=[],ia=[],$o=[],aa=[],oa=[],Hb=Math.min,Wb=Math.max,fl=Math.cos,dl=Math.sin,Za=Math.abs,OT=Math.PI,Yo=OT*2,jb=typeof Float32Array<"u",Ld=[];function Ub(e){var t=Math.round(e/OT*1e8)/1e8;return t%2*OT}function qH(e,t){var r=Ub(e[0]);r<0&&(r+=Yo);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=Yo?i=r+Yo:t&&r-i>=Yo?i=r-Yo:!t&&r>i?i=r+(Yo-Ub(r-i)):t&&r0&&(this._ux=Za(n/v0/t)||0,this._uy=Za(n/v0/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(xt.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=Za(t-this._xi),i=Za(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(xt.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){return this._drawPendingPt(),this.addData(xt.C,t,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,i,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,i){return this._drawPendingPt(),this.addData(xt.Q,t,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,r,n,i,a,o){this._drawPendingPt(),Ld[0]=i,Ld[1]=a,qH(Ld,o),i=Ld[0],a=Ld[1];var s=a-i;return this.addData(xt.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=fl(a)*n+t,this._yi=dl(a)*n+r,this},e.prototype.arcTo=function(t,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,a),this},e.prototype.rect=function(t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,i),this.addData(xt.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(xt.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&jb&&(this.data=new Float32Array(r));for(var n=0;nc.length&&(this._expandData(),c=this.data);for(var f=0;f0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){ia[0]=ia[1]=aa[0]=aa[1]=Number.MAX_VALUE,$o[0]=$o[1]=oa[0]=oa[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;on||Za(x)>i||d===r-1)&&(v=Math.sqrt(y*y+x*x),a=g,o=m);break}case xt.C:{var S=t[d++],_=t[d++],g=t[d++],m=t[d++],b=t[d++],w=t[d++];v=ome(a,o,S,_,g,m,b,w,10),a=b,o=w;break}case xt.Q:{var S=t[d++],_=t[d++],g=t[d++],m=t[d++];v=lme(a,o,S,_,g,m,10),a=g,o=m;break}case xt.A:var C=t[d++],A=t[d++],T=t[d++],M=t[d++],k=t[d++],I=t[d++],P=I+k;d+=1,t[d++],p&&(s=fl(k)*T+C,l=dl(k)*M+A),v=Wb(T,M)*Hb(Yo,Math.abs(I)),a=fl(P)*T+C,o=dl(P)*M+A;break;case xt.R:{s=a=t[d++],l=o=t[d++];var L=t[d++],z=t[d++];v=L*2+z*2;break}case xt.Z:{var y=s-a,x=l-o;v=Math.sqrt(y*y+x*x),a=s,o=l;break}}v>=0&&(u[f++]=v,c+=v)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,c,f,d,h=r<1,p,v,g=0,m=0,y,x=0,S,_;if(!(h&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,v=this._pathLen,y=r*v,!y)))e:for(var b=0;b0&&(t.lineTo(S,_),x=0),w){case xt.M:s=u=n[b++],l=c=n[b++],t.moveTo(u,c);break;case xt.L:{f=n[b++],d=n[b++];var A=Za(f-u),T=Za(d-c);if(A>i||T>a){if(h){var M=p[m++];if(g+M>y){var k=(y-g)/M;t.lineTo(u*(1-k)+f*k,c*(1-k)+d*k);break e}g+=M}t.lineTo(f,d),u=f,c=d,x=0}else{var I=A*A+T*T;I>x&&(S=f,_=d,x=I)}break}case xt.C:{var P=n[b++],L=n[b++],z=n[b++],V=n[b++],N=n[b++],F=n[b++];if(h){var M=p[m++];if(g+M>y){var k=(y-g)/M;zs(u,P,z,N,k,ul),zs(c,L,V,F,k,cl),t.bezierCurveTo(ul[1],cl[1],ul[2],cl[2],ul[3],cl[3]);break e}g+=M}t.bezierCurveTo(P,L,z,V,N,F),u=N,c=F;break}case xt.Q:{var P=n[b++],L=n[b++],z=n[b++],V=n[b++];if(h){var M=p[m++];if(g+M>y){var k=(y-g)/M;$p(u,P,z,k,ul),$p(c,L,V,k,cl),t.quadraticCurveTo(ul[1],cl[1],ul[2],cl[2]);break e}g+=M}t.quadraticCurveTo(P,L,z,V),u=z,c=V;break}case xt.A:var E=n[b++],G=n[b++],j=n[b++],B=n[b++],U=n[b++],X=n[b++],W=n[b++],ee=!n[b++],te=j>B?j:B,ie=Za(j-B)>.001,re=U+X,Q=!1;if(h){var M=p[m++];g+M>y&&(re=U+X*(y-g)/M,Q=!0),g+=M}if(ie&&t.ellipse?t.ellipse(E,G,j,B,W,U,re,ee):t.arc(E,G,te,U,re,ee),Q)break e;C&&(s=fl(U)*j+E,l=dl(U)*B+G),u=fl(re)*j+E,c=dl(re)*B+G;break;case xt.R:s=u=n[b],l=c=n[b+1],f=n[b++],d=n[b++];var J=n[b++],de=n[b++];if(h){var M=p[m++];if(g+M>y){var he=y-g;t.moveTo(f,d),t.lineTo(f+Hb(he,J),d),he-=J,he>0&&t.lineTo(f+J,d+Hb(he,de)),he-=de,he>0&&t.lineTo(f+Wb(J-he,0),d+de),he-=J,he>0&&t.lineTo(f,d+Wb(de-he,0));break e}g+=M}t.rect(f,d,J,de);break;case xt.Z:if(h){var M=p[m++];if(g+M>y){var k=(y-g)/M;t.lineTo(u*(1-k)+s*k,c*(1-k)+l*k);break e}g+=M}t.closePath(),u=s,c=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=xt,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();const Wa=jye;function Jo(e,t,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=e;if(o>t+s&&o>n+s||oe+s&&a>r+s||at+f&&c>n+f&&c>a+f&&c>s+f||ce+f&&u>r+f&&u>i+f&&u>o+f||ut+u&&l>n+u&&l>a+u||le+u&&s>r+u&&s>i+u||sr||c+ui&&(i+=Ed);var d=Math.atan2(l,s);return d<0&&(d+=Ed),d>=n&&d<=i||d+Ed>=n&&d+Ed<=i}function ro(e,t,r,n,i,a){if(a>t&&a>n||ai?s:0}var Fo=Wa.CMD,hl=Math.PI*2,Yye=1e-4;function Xye(e,t){return Math.abs(e-t)t&&u>n&&u>a&&u>s||u1&&Zye(),h=gr(t,n,a,s,ai[0]),d>1&&(p=gr(t,n,a,s,ai[1]))),d===2?gt&&s>n&&s>a||s=0&&u<=1){for(var c=0,f=wr(t,n,a,u),d=0;dr||s<-r)return 0;var l=Math.sqrt(r*r-s*s);nn[0]=-l,nn[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=hl-1e-4){n=0,i=hl;var c=a?1:-1;return o>=nn[0]+e&&o<=nn[1]+e?c:0}if(n>i){var f=n;n=i,i=f}n<0&&(n+=hl,i+=hl);for(var d=0,h=0;h<2;h++){var p=nn[h];if(p+e>o){var v=Math.atan2(s,p),c=a?1:-1;v<0&&(v=hl+v),(v>=n&&v<=i||v+hl>=n&&v+hl<=i)&&(v>Math.PI/2&&v1&&(r||(s+=ro(l,u,c,f,n,i))),g&&(l=a[p],u=a[p+1],c=l,f=u),v){case Fo.M:c=a[p++],f=a[p++],l=c,u=f;break;case Fo.L:if(r){if(Jo(l,u,a[p],a[p+1],t,n,i))return!0}else s+=ro(l,u,a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case Fo.C:if(r){if(Uye(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],t,n,i))return!0}else s+=Kye(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case Fo.Q:if(r){if(YH(l,u,a[p++],a[p++],a[p],a[p+1],t,n,i))return!0}else s+=Qye(l,u,a[p++],a[p++],a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case Fo.A:var m=a[p++],y=a[p++],x=a[p++],S=a[p++],_=a[p++],b=a[p++];p+=1;var w=!!(1-a[p++]);d=Math.cos(_)*x+m,h=Math.sin(_)*S+y,g?(c=d,f=h):s+=ro(l,u,d,h,n,i);var C=(n-m)*S/x+m;if(r){if(qye(m,y,S,_,_+b,w,t,C,i))return!0}else s+=Jye(m,y,S,_,_+b,w,C,i);l=Math.cos(_+b)*x+m,u=Math.sin(_+b)*S+y;break;case Fo.R:c=l=a[p++],f=u=a[p++];var A=a[p++],T=a[p++];if(d=c+A,h=f+T,r){if(Jo(c,f,d,f,t,n,i)||Jo(d,f,d,h,t,n,i)||Jo(d,h,c,h,t,n,i)||Jo(c,h,c,f,t,n,i))return!0}else s+=ro(d,f,d,h,n,i),s+=ro(c,h,c,f,n,i);break;case Fo.Z:if(r){if(Jo(l,u,c,f,t,n,i))return!0}else s+=ro(l,u,c,f,n,i);l=c,u=f;break}}return!r&&!Xye(u,f)&&(s+=ro(l,u,c,f,n,i)||0),s!==0}function e0e(e,t,r){return XH(e,0,!1,t,r)}function t0e(e,t,r,n){return XH(e,t,!0,r,n)}var y0=be({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},cu),r0e={style:be({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},kx.style)},qb=Ga.concat(["invisible","culling","z","z2","zlevel","parent"]),n0e=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s.5?PT:n>.2?$me:DT}else if(r)return DT}return PT},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(oe(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=h0(r,0)0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Ic)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),t0e(s,l/u,r,n)))return!0}if(this.hasFill())return e0e(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Ic,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:q(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Ic)},t.prototype.createStyle=function(r){return bx(y0,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=q({},this.shape))},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=q({},i.shape),q(u,n.shape)):(u=q({},a?this.shape:i.shape),q(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=q({},this.shape);for(var c={},f=Ye(u),d=0;d0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return bx(i0e,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var i=Iv(n,r.font,r.textAlign,r.textBaseline);if(i.x+=r.x||0,i.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(Ti);ZH.prototype.type="tspan";const Hp=ZH;var a0e=be({x:0,y:0},cu),o0e={style:be({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},kx.style)};function s0e(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var KH=function(e){Dt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return bx(a0e,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=s0e(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return o0e},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new Ne(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Ti);KH.prototype.type="image";const $r=KH;function l0e(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,c;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var f;s+l>i&&(f=s+l,s*=i/f,l*=i/f),u+c>i&&(f=u+c,u*=i/f,c*=i/f),l+u>a&&(f=l+u,l*=a/f,u*=a/f),s+c>a&&(f=s+c,s*=a/f,c*=a/f),e.moveTo(r+s,n),e.lineTo(r+i-l,n),l!==0&&e.arc(r+i-l,n+l,l,-Math.PI/2,0),e.lineTo(r+i,n+a-u),u!==0&&e.arc(r+i-u,n+a-u,u,0,Math.PI/2),e.lineTo(r+c,n+a),c!==0&&e.arc(r+c,n+a-c,c,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var Xc=Math.round;function QH(e,t,r){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=n,e.x2=i,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(Xc(n*2)===Xc(i*2)&&(e.x1=e.x2=Ql(n,s,!0)),Xc(a*2)===Xc(o*2)&&(e.y1=e.y2=Ql(a,s,!0))),e}}function JH(e,t,r){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;e.x=n,e.y=i,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=Ql(n,s,!0),e.y=Ql(i,s,!0),e.width=Math.max(Ql(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Ql(i+o,s,!1)-e.y,o===0?0:1)),e}}function Ql(e,t,r){if(!t)return e;var n=Xc(e*2);return(n+Xc(t))%2===0?n/2:(n+(r?1:-1))/2}var u0e=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),c0e={},eW=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new u0e},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=JH(c0e,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?l0e(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(We);eW.prototype.type="rect";const Qe=eW;var aO={fill:"#000"},oO=2,f0e={style:be({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},kx.style)},tW=function(e){Dt(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=aO,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r0,k=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),I=o.calculatedLineHeight,P=0;P=0&&(P=b[I],P.align==="right");)this._placeToken(P,r,C,m,k,"right",x),A-=P.width,k-=P.width,I--;for(M+=(a-(M-g)-(y-k)-A)/2;T<=I;)P=b[T],this._placeToken(P,r,C,m,M+P.width/2,"center",x),M+=P.width,T++;m+=C}},t.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var c=r.verticalAlign,f=a+i/2;c==="top"?f=a+r.height/2:c==="bottom"&&(f=a+i-r.height/2);var d=!r.isLineHolder&&Yb(u);d&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,f-r.height/2,r.width,r.height);var h=!!u.backgroundColor,p=r.textPadding;p&&(o=dO(o,s,p),f-=r.height/2-p[0]-r.innerHeight/2);var v=this._getOrCreateChild(Hp),g=v.createStyle();v.useStyle(g);var m=this._defaultStyle,y=!1,x=0,S=fO("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),_=cO("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!m.autoStroke||y)?(x=oO,m.stroke):null),b=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=f,b&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=r.font||Os,g.opacity=Ea(u.opacity,n.opacity,1),lO(g,u),_&&(g.lineWidth=Ea(u.lineWidth,n.lineWidth,x),g.lineDash=Ee(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=_),S&&(g.fill=S);var w=r.contentWidth,C=r.contentHeight;v.setBoundingRect(new Ne(vh(g.x,w,g.textAlign),Pc(g.y,C,g.textBaseline),w,C))},t.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,c=r.borderColor,f=l&&l.image,d=l&&!f,h=r.borderRadius,p=this,v,g;if(d||r.lineHeight||u&&c){v=this._getOrCreateChild(Qe),v.useStyle(v.createStyle()),v.style.fill=null;var m=v.shape;m.x=i,m.y=a,m.width=o,m.height=s,m.r=h,v.dirtyShape()}if(d){var y=v.style;y.fill=l||null,y.fillOpacity=Ee(r.fillOpacity,1)}else if(f){g=this._getOrCreateChild($r),g.onload=function(){p.dirtyStyle()};var x=g.style;x.image=l.image,x.x=i,x.y=a,x.width=o,x.height=s}if(u&&c){var y=v.style;y.lineWidth=u,y.stroke=c,y.strokeOpacity=Ee(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,v.strokeContainThreshold=0,v.hasFill()&&v.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var S=(v||g).style;S.shadowBlur=r.shadowBlur||0,S.shadowColor=r.shadowColor||"transparent",S.shadowOffsetX=r.shadowOffsetX||0,S.shadowOffsetY=r.shadowOffsetY||0,S.opacity=Ea(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return nW(r)&&(n=[r.fontStyle,r.fontWeight,rW(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Gi(n)||r.textFont||r.font},t}(Ti),d0e={left:!0,right:1,center:1},h0e={top:1,bottom:1,middle:1},sO=["fontStyle","fontWeight","fontSize","fontFamily"];function rW(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?ck+"px":e+"px"}function lO(e,t){for(var r=0;r=0,a=!1;if(e instanceof We){var o=iW(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(lc(s)||lc(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=q({},n),u=q({},u),u.fill=s):!lc(u.fill)&&lc(s)?(a=!0,n=q({},n),u=q({},u),u.fill=mO(s)):!lc(u.stroke)&&lc(l)&&(a||(n=q({},n),u=q({},u)),u.stroke=mO(l)),n.style=u}}if(n&&n.z2==null){a||(n=q({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??Jf)}return n}function S0e(e,t,r){if(r&&r.z2==null){r=q({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??v0e)}return r}function b0e(e,t,r){var n=ze(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:y0e(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=q({},r),o=q({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Xb(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return x0e(this,e,t,r);if(e==="blur")return b0e(this,e,r);if(e==="select")return S0e(this,e,r)}return r}function Iu(e){e.stateProxy=Xb;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Xb),r&&(r.stateProxy=Xb)}function xO(e,t){!fW(e,t)&&!e.__highByOuter&&Do(e,aW)}function SO(e,t){!fW(e,t)&&!e.__highByOuter&&Do(e,oW)}function wo(e,t){e.__highByOuter|=1<<(t||0),Do(e,aW)}function Co(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Do(e,oW)}function lW(e){Do(e,Dk)}function Rk(e){Do(e,sW)}function uW(e){Do(e,g0e)}function cW(e){Do(e,m0e)}function fW(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function dW(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=Ik(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){sW(u)}),s&&r.push(a)),o.isBlured=!1}),R(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function zT(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,c){for(var f=0;f0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function du(e,t,r){Jl(e,!0),Do(e,Iu),$T(e,t,r)}function M0e(e){Jl(e,!1)}function jt(e,t,r,n){n?M0e(e):du(e,t,r)}function $T(e,t,r){var n=ke(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var _O=["emphasis","blur","select"],k0e={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function zr(e,t,r,n){r=r||"itemStyle";for(var i=0;i<_O.length;i++){var a=_O[i],o=t.getModel([a,r]),s=e.ensureState(a);s.style=n?n(o):o[k0e[r]]()}}function Jl(e,t){var r=t===!1,n=e;e.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function jp(e){return!!(e&&e.__highDownDispatcher)}function I0e(e,t,r){var n=ke(e);n.componentMainType=t.mainType,n.componentIndex=t.componentIndex,n.componentHighDownName=r}function P0e(e){var t=vO[e];return t==null&&pO<=32&&(t=vO[e]=pO++),t}function FT(e){var t=e.type;return t===Zh||t===ay||t===Kh}function wO(e){var t=e.type;return t===fu||t===iy}function D0e(e){var t=iW(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var uc=Wa.CMD,R0e=[[],[],[]],CO=Math.sqrt,L0e=Math.atan2;function hW(e,t){if(t){var r=e.data,n=e.len(),i,a,o,s,l,u,c=uc.M,f=uc.C,d=uc.L,h=uc.R,p=uc.A,v=uc.Q;for(o=0,s=0;o1&&(o*=Zb(p),s*=Zb(p));var v=(i===a?-1:1)*Zb((o*o*(s*s)-o*o*(h*h)-s*s*(d*d))/(o*o*(h*h)+s*s*(d*d)))||0,g=v*o*h/s,m=v*-s*d/o,y=(e+r)/2+Vg(f)*g-Fg(f)*m,x=(t+n)/2+Fg(f)*g+Vg(f)*m,S=AO([1,0],[(d-g)/o,(h-m)/s]),_=[(d-g)/o,(h-m)/s],b=[(-1*d-g)/o,(-1*h-m)/s],w=AO(_,b);if(VT(_,b)<=-1&&(w=Od),VT(_,b)>=1&&(w=0),w<0){var C=Math.round(w/Od*1e6)/1e6;w=Od*2+C%2*Od}c.addData(u,y,x,o,s,S,w,f,a)}var E0e=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,O0e=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function N0e(e){var t=new Wa;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=Wa.CMD,l=e.match(E0e);if(!l)return t;for(var u=0;uP*P+L*L&&(C=T,A=M),{cx:C,cy:A,x0:-c,y0:-f,x1:C*(i/_-1),y1:A*(i/_-1)}}function H0e(e){var t;if(Y(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function W0e(e,t){var r,n=gh(t.r,0),i=gh(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,f=t.cy,d=!!t.clockwise,h=kO(u-l),p=h>Kb&&h%Kb;if(p>Oi&&(h=p),!(n>Oi))e.moveTo(c,f);else if(h>Kb-Oi)e.moveTo(c+n*cc(l),f+n*pl(l)),e.arc(c,f,n,l,u,!d),i>Oi&&(e.moveTo(c+i*cc(u),f+i*pl(u)),e.arc(c,f,i,u,l,d));else{var v=void 0,g=void 0,m=void 0,y=void 0,x=void 0,S=void 0,_=void 0,b=void 0,w=void 0,C=void 0,A=void 0,T=void 0,M=void 0,k=void 0,I=void 0,P=void 0,L=n*cc(l),z=n*pl(l),V=i*cc(u),N=i*pl(u),F=h>Oi;if(F){var E=t.cornerRadius;E&&(r=H0e(E),v=r[0],g=r[1],m=r[2],y=r[3]);var G=kO(n-i)/2;if(x=sa(G,m),S=sa(G,y),_=sa(G,v),b=sa(G,g),A=w=gh(x,S),T=C=gh(_,b),(w>Oi||C>Oi)&&(M=n*cc(u),k=n*pl(u),I=i*cc(l),P=i*pl(l),hOi){var ie=sa(m,A),re=sa(y,A),Q=Gg(I,P,L,z,n,ie,d),J=Gg(M,k,V,N,n,re,d);e.moveTo(c+Q.cx+Q.x0,f+Q.cy+Q.y0),A0&&e.arc(c+Q.cx,f+Q.cy,ie,Hr(Q.y0,Q.x0),Hr(Q.y1,Q.x1),!d),e.arc(c,f,n,Hr(Q.cy+Q.y1,Q.cx+Q.x1),Hr(J.cy+J.y1,J.cx+J.x1),!d),re>0&&e.arc(c+J.cx,f+J.cy,re,Hr(J.y1,J.x1),Hr(J.y0,J.x0),!d))}else e.moveTo(c+L,f+z),e.arc(c,f,n,l,u,!d);if(!(i>Oi)||!F)e.lineTo(c+V,f+N);else if(T>Oi){var ie=sa(v,T),re=sa(g,T),Q=Gg(V,N,M,k,i,-re,d),J=Gg(L,z,I,P,i,-ie,d);e.lineTo(c+Q.cx+Q.x0,f+Q.cy+Q.y0),T0&&e.arc(c+Q.cx,f+Q.cy,re,Hr(Q.y0,Q.x0),Hr(Q.y1,Q.x1),!d),e.arc(c,f,i,Hr(Q.cy+Q.y1,Q.cx+Q.x1),Hr(J.cy+J.y1,J.cx+J.x1),d),ie>0&&e.arc(c+J.cx,f+J.cy,ie,Hr(J.y1,J.x1),Hr(J.y0,J.x0),!d))}else e.lineTo(c+V,f+N),e.arc(c,f,i,u,l,d)}e.closePath()}}}var j0e=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),bW=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new j0e},t.prototype.buildPath=function(r,n){W0e(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(We);bW.prototype.type="sector";const Dn=bW;var U0e=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),_W=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new U0e},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},t}(We);_W.prototype.type="ring";const Rx=_W;function q0e(e,t,r,n){var i=[],a=[],o=[],s=[],l,u,c,f;if(n){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,h=e.length;d=2){if(n){var a=q0e(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],c=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,f=i.length;sgl[1]){if(s=!1,a)return s;var c=Math.abs(gl[0]-vl[1]),f=Math.abs(vl[0]-gl[1]);Math.min(c,f)>i.len()&&(c0){var f=c.duration,d=c.delay,h=c.easing,p={duration:f,delay:d||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,p):t.animateTo(r,p)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function at(e,t,r,n,i,a){Bk("update",e,t,r,n,i,a)}function Lt(e,t,r,n,i,a){Bk("enter",e,t,r,n,i,a)}function ff(e){if(!e.__zr)return!0;for(var t=0;tMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function DO(e){return!e.isGroup}function h1e(e){return e.shape!=null}function Lv(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){DO(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return h1e(o)&&(s.shape=q({},o.shape)),s}var a=n(e);t.traverse(function(o){if(DO(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),at(o,l,r,ke(o).dataIndex)}}})}function OW(e,t){return Z(e,function(r){var n=r[0];n=b0(n,t.x),n=_0(n,t.x+t.width);var i=r[1];return i=b0(i,t.y),i=_0(i,t.y+t.height),[n,i]})}function p1e(e,t){var r=b0(e.x,t.x),n=_0(e.x+e.width,t.x+t.width),i=b0(e.y,t.y),a=_0(e.y+e.height,t.y+t.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function Ev(e,t,r){var n=q({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),be(i,r),new $r(n)):Ex(e.replace("path://",""),n,r,"center")}function mh(e,t,r,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var g=Qb(h,p,c,f)/d;return!(g<0||g>1)}function Qb(e,t,r,n){return e*n-r*t}function v1e(e){return e<=1e-6&&e>=-1e-6}function td(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=oe(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=e.formatterParamsExtra;l&&R(Ye(l),function(c){fe(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=ke(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:be({content:n,formatterParams:s},i)}}function RO(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Ks(e,t){if(e)if(Y(e))for(var r=0;r=0&&s.push(l)}),s}}function Qs(e,t){return Oe(Oe({},e,!0),t,!0)}const k1e={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:". "}}}},I1e={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 C0="ZH",Fk="EN",qp=Fk,sy={},Vk={},HW=tt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(C0)>-1?C0:qp}():qp;function WW(e,t){e=e.toUpperCase(),Vk[e]=new wt(t),sy[e]=t}function P1e(e){if(oe(e)){var t=sy[e.toUpperCase()]||{};return e===C0||e===Fk?Te(t):Oe(Te(t),Te(sy[qp]),!1)}else return Oe(Te(e),Te(sy[qp]),!1)}function WT(e){return Vk[e]}function D1e(){return Vk[qp]}WW(Fk,k1e);WW(C0,I1e);var Gk=1e3,Hk=Gk*60,Jh=Hk*60,vi=Jh*24,zO=vi*365,yh={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}"},jg="{yyyy}-{MM}-{dd}",BO={year:"{yyyy}",month:"{yyyy}-{MM}",day:jg,hour:jg+" "+yh.hour,minute:jg+" "+yh.minute,second:jg+" "+yh.second,millisecond:yh.none},t_=["year","month","day","hour","minute","second","millisecond"],jW=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Vo(e,t){return e+="","0000".substr(0,t-e.length)+e}function df(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function R1e(e){return e===df(e)}function L1e(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function zx(e,t,r,n){var i=Ha(e),a=i[Wk(r)](),o=i[hf(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[Bx(r)](),u=i["get"+(r?"UTC":"")+"Day"](),c=i[Yp(r)](),f=(c-1)%12+1,d=i[$x(r)](),h=i[Fx(r)](),p=i[Vx(r)](),v=n instanceof wt?n:WT(n||HW)||D1e(),g=v.getModel("time"),m=g.get("month"),y=g.get("monthAbbr"),x=g.get("dayOfWeek"),S=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Vo(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Vo(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Vo(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Vo(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Vo(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Vo(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Vo(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Vo(p,3)).replace(/{S}/g,p+"")}function E1e(e,t,r,n,i){var a=null;if(oe(r))a=r;else if(Se(r))a=r(e.value,t,{level:e.level});else{var o=q({},yh);if(e.level>0)for(var s=0;s=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(Y(a)){var f=e.level==null?0:e.level>=0?e.level:a.length+e.level;f=Math.min(f,a.length-1),a=a[f]}}return zx(new Date(e.value),a,i,n)}function UW(e,t){var r=Ha(e),n=r[hf(t)]()+1,i=r[Bx(t)](),a=r[Yp(t)](),o=r[$x(t)](),s=r[Fx(t)](),l=r[Vx(t)](),u=l===0,c=u&&s===0,f=c&&o===0,d=f&&a===0,h=d&&i===1,p=h&&n===1;return p?"year":h?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function $O(e,t,r){var n=nt(e)?Ha(e):e;switch(t=t||UW(e,r),t){case"year":return n[Wk(r)]();case"half-year":return n[hf(r)]()>=6?1:0;case"quarter":return Math.floor((n[hf(r)]()+1)/4);case"month":return n[hf(r)]();case"day":return n[Bx(r)]();case"half-day":return n[Yp(r)]()/24;case"hour":return n[Yp(r)]();case"minute":return n[$x(r)]();case"second":return n[Fx(r)]();case"millisecond":return n[Vx(r)]()}}function Wk(e){return e?"getUTCFullYear":"getFullYear"}function hf(e){return e?"getUTCMonth":"getMonth"}function Bx(e){return e?"getUTCDate":"getDate"}function Yp(e){return e?"getUTCHours":"getHours"}function $x(e){return e?"getUTCMinutes":"getMinutes"}function Fx(e){return e?"getUTCSeconds":"getSeconds"}function Vx(e){return e?"getUTCMilliseconds":"getMilliseconds"}function O1e(e){return e?"setUTCFullYear":"setFullYear"}function qW(e){return e?"setUTCMonth":"setMonth"}function YW(e){return e?"setUTCDate":"setDate"}function XW(e){return e?"setUTCHours":"setHours"}function ZW(e){return e?"setUTCMinutes":"setMinutes"}function KW(e){return e?"setUTCSeconds":"setSeconds"}function QW(e){return e?"setUTCMilliseconds":"setMilliseconds"}function JW(e){if(!LH(e))return oe(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function ej(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var id=gk;function jT(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Gi(c)?c:"-"}function a(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?Ha(e):e;if(isNaN(+l)){if(s)return"-"}else return zx(l,n,r)}if(t==="ordinal")return uT(e)?i(e):nt(e)&&a(e)?e+"":"-";var u=_o(e);return a(u)?JW(u):uT(e)?i(e):typeof e=="boolean"?e+"":"-"}var FO=["a","b","c","d","e","f","g"],r_=function(e,t){return"{"+e+(t??"")+"}"};function tj(e,t,r){Y(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a':'';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function Pu(e,t){return t=t||"transparent",oe(e)?e:_e(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function T0(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var ly=R,rj=["left","right","top","bottom","width","height"],eu=[["width","left","right"],["height","top","bottom"]];function jk(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),d=f&&f.getBoundingRect(),h,p;if(e==="horizontal"){var v=c.width+(d?-d.x+c.x:0);h=a+v,h>n||l.newline?(a=0,h=v,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(d?-d.y+c.y:0);p=o+g,p>i||l.newline?(a+=s+r,o=0,p=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=h+r:o=p+r)})}var pu=jk;Ie(jk,"vertical");Ie(jk,"horizontal");function B1e(e,t,r){var n=t.width,i=t.height,a=ne(e.left,n),o=ne(e.top,i),s=ne(e.right,n),l=ne(e.bottom,i);return(isNaN(a)||isNaN(parseFloat(e.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(e.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=i),r=id(r||0),{width:Math.max(s-a-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function pr(e,t,r){r=id(r||0);var n=t.width,i=t.height,a=ne(e.left,n),o=ne(e.top,i),s=ne(e.right,n),l=ne(e.bottom,i),u=ne(e.width,n),c=ne(e.height,i),f=r[2]+r[0],d=r[1]+r[3],h=e.aspect;switch(isNaN(u)&&(u=n-s-d-a),isNaN(c)&&(c=i-l-f-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>n/i?u=n*.8:c=i*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(a)&&(a=n-s-u-d),isNaN(o)&&(o=i-l-c-f),e.left||e.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-d;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-c/2-r[0];break;case"bottom":o=i-c-f;break}a=a||0,o=o||0,isNaN(u)&&(u=n-d-a-(s||0)),isNaN(c)&&(c=i-f-o-(l||0));var p=new Ne(a+r[3],o+r[0],u,c);return p.margin=r,p}function Gx(e,t,r,n,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(a=a||e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var u;if(l==="raw")u=e.type==="group"?new Ne(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(u=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=pr(be({width:u.width,height:u.height},t),r,n),d=o?f.x-u.x:0,h=s?f.y-u.y:0;return l==="raw"?(a.x=d,a.y=h):(a.x+=d,a.y+=h),a===e&&e.markRedraw(),!0}function $1e(e,t){return e[eu[t][0]]!=null||e[eu[t][1]]!=null&&e[eu[t][2]]!=null}function Xp(e){var t=e.layoutMode||e.constructor.layoutMode;return _e(t)?t:t?{type:t}:null}function $s(e,t,r){var n=r&&r.ignoreSize;!Y(n)&&(n=[n,n]);var i=o(eu[0],0),a=o(eu[1],1);u(eu[0],e,i),u(eu[1],e,a);function o(c,f){var d={},h=0,p={},v=0,g=2;if(ly(c,function(x){p[x]=e[x]}),ly(c,function(x){s(t,x)&&(d[x]=p[x]=t[x]),l(d,x)&&h++,l(p,x)&&v++}),n[f])return l(t,c[1])?p[c[2]]=null:l(t,c[2])&&(p[c[1]]=null),p;if(v===g||!h)return p;if(h>=g)return d;for(var m=0;m=0;l--)s=Oe(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return Pv(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(wt);HH(od,wt);Ax(od);A1e(od);M1e(od,V1e);function V1e(e){var t=[];return R(od.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=Z(t,function(r){return Aa(r).main}),e!=="dataset"&&ze(t,"dataset")<=0&&t.unshift("dataset"),t}const et=od;var ij="";typeof navigator<"u"&&(ij=navigator.platform||"");var fc="rgba(0, 0, 0, 0.2)";const G1e={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:fc,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:fc,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:fc,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:fc,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:fc,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:fc,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:ij.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 aj=ge(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Pi="original",Kr="arrayRows",Di="objectRows",Ya="keyedColumns",As="typedArray",oj="unknown",Oa="column",sd="row",Pr={Must:1,Might:2,Not:3},sj=Je();function H1e(e){sj(e).datasetMap=ge()}function lj(e,t,r){var n={},i=qk(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=sj(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),R(e,function(v,g){var m=_e(v)?v:e[g]={name:v};m.type==="ordinal"&&c==null&&(c=g,f=p(m)),n[m.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});R(e,function(v,g){var m=v.name,y=p(v);if(c==null){var x=d.valueWayDim;h(n[m],x,y),h(o,x,y),d.valueWayDim+=y}else if(c===g)h(n[m],0,y),h(a,0,y);else{var x=d.categoryWayDim;h(n[m],x,y),h(o,x,y),d.categoryWayDim+=y}});function h(v,g,m){for(var y=0;yt)return e[n];return e[r-1]}function fj(e,t,r,n,i,a,o){a=a||e;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=o==null||!n?r:Y1e(n,o);if(c=c||r,!(!c||!c.length)){var f=c[l];return i&&(u[i]=f),s.paletteIdx=(l+1)%c.length,f}}function X1e(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Ug,Nd,GO,HO="\0_ec_inner",Z1e=1,dj=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new wt(a),this._locale=new wt(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=UO(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,UO(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?GO(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&R(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=ge(),u=n&&n.replaceMergeMainTypeMap;H1e(this),R(r,function(f,d){f!=null&&(et.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?Te(f):Oe(i[d],f,!0))}),u&&u.each(function(f,d){et.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),et.topologicalTravel(s,et.getAllClassMainTypes(),c,this);function c(f){var d=U1e(this,f,pt(r[f])),h=a.get(f),p=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",v=BH(h,d,p);fye(v,f,et),i[f]=null,a.set(f,null),o.set(f,0);var g=[],m=[],y=0,x;R(v,function(S,_){var b=S.existing,w=S.newOption;if(!w)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var C=f==="series",A=et.getClass(f,S.keyInfo.subType,!C);if(!A)return;if(f==="tooltip"){if(x)return;x=!0}if(b&&b.constructor===A)b.name=S.keyInfo.name,b.mergeOption(w,this),b.optionUpdated(w,!1);else{var T=q({componentIndex:_},S.keyInfo);b=new A(w,this,this,T),q(b,T),S.brandNew&&(b.__requireNewView=!0),b.init(w,this,this),b.optionUpdated(null,!0)}}b?(g.push(b.option),m.push(b),y++):(g.push(void 0),m.push(void 0))},this),i[f]=g,a.set(f,m),o.set(f,y),f==="series"&&Ug(this)}this._seriesIndices||Ug(this)},t.prototype.getOption=function(){var r=Te(this.option);return R(r,function(n,i){if(et.hasClass(i)){for(var a=pt(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Gp(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[HO],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o=t:r==="max"?e<=t:e===t}function sxe(e,t){return e.join(",")===t.join(",")}const lxe=nxe;var Li=R,Zp=_e,qO=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function i_(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=qO.length;r=0;g--){var m=e[g];if(s||(p=m.data.rawIndexOf(m.stackedByDimension,h)),p>=0){var y=m.data.getByRawIndex(m.stackResultDimension,p);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&d>=0&&y>0||l==="samesign"&&d<=0&&y<0){d=eye(d,y),v=y;break}}}return n[0]=d,n[1]=v,n})})}var Hx=function(){function e(t){this.data=t.data||(t.sourceFormat===Ya?{}:[]),this.sourceFormat=t.sourceFormat||oj,this.seriesLayoutBy=t.seriesLayoutBy||Oa,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;nv&&(v=x)}h[0]=p,h[1]=v}},i=function(){return this._data?this._data.length/this._dimSize:0};eN=(t={},t[Kr+"_"+Oa]={pure:!0,appendData:a},t[Kr+"_"+sd]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Di]={pure:!0,appendData:a},t[Ya]={pure:!0,appendData:function(o){var s=this._data;R(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[Pi]={appendData:a},t[As]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s=0&&(v=o.interpolatedValue[g])}return v!=null?v+"":""})}},e.prototype.getRawValue=function(t,r){return Df(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function iN(e){var t,r;return _e(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function ep(e){return new Txe(e)}var Txe=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function c(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||a==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=l,this._modDataCount=u;var d=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!n&&(f||h1&&n>0?s:o}};return a;function o(){return t=e?null:lt},gte:function(e,t){return e>=t}},Mxe=function(){function e(t,r){if(!nt(r)){var n="";lt(n)}this._opFn=Cj[t],this._rvalFloat=_o(r)}return e.prototype.evaluate=function(t){return nt(t)?this._opFn(t,this._rvalFloat):this._opFn(_o(t),this._rvalFloat)},e}(),Tj=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=nt(t)?t:_o(t),i=nt(r)?r:_o(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=oe(t),l=oe(r);s&&(n=l?t:0),l&&(i=s?r:0)}return ni?-this._resultLT:0},e}(),kxe=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=_o(r)}return e.prototype.evaluate=function(t){var r=t===this._rval;if(!r){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=_o(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function Ixe(e,t){return e==="eq"||e==="ne"?new kxe(e==="eq",t):fe(Cj,e)?new Mxe(e,t):null}var Pxe=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return Ms(t,r)},e}();function Dxe(e,t){var r=new Pxe,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==Oa&<(o);var s=[],l={},u=e.dimensionsDefine;if(u)R(u,function(v,g){var m=v.name,y={index:g,name:m,displayName:v.displayName};if(s.push(y),m!=null){var x="";fe(l,m)&<(x),l[m]=y}});else for(var c=0;c65535?$xe:Fxe}function dc(){return[1/0,-1/0]}function Vxe(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function sN(e,t,r,n,i){var a=kj[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;ug[1]&&(g[1]=v)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Z(o,function(y){return y.property}),c=0;cm[1]&&(m[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r=0&&r=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&nt)a=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c=0&&l<0)&&(s=p,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a=f&&y<=d||isNaN(y))&&(l[u++]=v),v++}p=!0}else if(a===2){for(var g=h[i[0]],x=h[i[1]],S=t[i[1]][0],_=t[i[1]][1],m=0;m=f&&y<=d||isNaN(y))&&(b>=S&&b<=_||isNaN(b))&&(l[u++]=v),v++}p=!0}}if(!p)if(a===1)for(var m=0;m=f&&y<=d||isNaN(y))&&(l[u++]=w)}else for(var m=0;mt[T][1])&&(C=!1)}C&&(l[u++]=r.getRawIndex(m))}return um[1]&&(m[1]=g)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,f,d,h=new(Bd(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var p=1;pc&&(c=f,d=S)}M>0&&Mc-p&&(l=c-p,s.length=l);for(var v=0;vf[1]&&(f[1]=m),d[h++]=y}return a._count=h,a._indices=d,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();al&&(l=f)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,i,a){return Ms(r[a],this._dimensions[a])}s_={arrayRows:t,objectRows:function(r,n,i,a){return Ms(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Ms(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),Ij=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(qg(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var c=r[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),l=Yn(s)?As:Pi,a=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=Ee(f.seriesLayoutBy,d.seriesLayoutBy)||null,p=Ee(f.sourceHeader,d.sourceHeader),v=Ee(f.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||v;i=g?[YT(s,{seriesLayoutBy:h,sourceHeader:p,dimensions:v},l)]:[]}else{var m=t;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var x=m.get("source",!0);i=[YT(x,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&uN(a)}var o,s=[],l=[];return R(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&uN(f),s.push(c),l.push(u._getVersionSign())}),n?o=zxe(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[yxe(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},e.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this.handler.off(t,r)},e.prototype.trigger=function(t,r){this.handler.trigger(t,r)},e.prototype.clear=function(){for(var t=this.storage.getRoots(),r=0;r0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/l*u+o}function ne(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return oe(e)?Qme(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Xt(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),PH),e=(+e).toFixed(t),r?e:+e}function yi(e){return e.sort(function(t,r){return t-r}),e}function Ta(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return Jme(e)}function Jme(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function DH(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function eye(e,t){var r=Fa(e,function(h,p){return h+(isNaN(p)?0:p)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=Z(e,function(h){return(isNaN(h)?0:h)/r*n*100}),a=n*100,o=Z(i,function(h){return Math.floor(h)}),s=Fa(o,function(h,p){return h+p},0),l=Z(i,function(h,p){return h-o[p]});su&&(u=l[f],c=f);++o[c],l[c]=0,++s}return Z(o,function(h){return h/n})}function tye(e,t){var r=Math.max(Ta(e),Ta(t)),n=e+t;return r>PH?n:Xt(n,r)}var KE=9007199254740991;function RH(e){var t=Math.PI*2;return(e%t+t)%t}function m0(e){return e>-ZE&&e=10&&t++,t}function LH(e,t){var r=Mk(e),n=Math.pow(10,r),i=e/n,a;return t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,e=a*n,r>=-20?+e.toFixed(r<0?-r:0):e}function zb(e,t){var r=(e.length-1)*t+1,n=Math.floor(r),i=+e[n-1],a=r-n;return a?i+a*(e[n]-i):i}function QE(e){e.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,r=1,n=0;n=0||a&&ze(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var Mye=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],kye=Pu(Mye),Iye=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return kye(this,t,r)},e}(),ET=new kv(50);function Pye(e){if(typeof e=="string"){var t=ET.get(e);return t&&t.image}else return e}function Dk(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=ET.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!kx(t)&&a.pending.push(o)):(t=zs.loadImage(e,rO,rO),t.__zrImageSrc=e,ET.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function rO(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;l++)s-=o;var u=jn(r,t);return u>s&&(r="",u=0),s=e-u,i.ellipsis=r,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function UH(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=jn(e,n);if(a<=r)return e;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?Rye(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=jn(e,n)}return e===""&&(e=t.placeholder),e}function Rye(e,t,r,n){for(var i=0,a=0,o=e.length;ah&&u){var p=Math.floor(h/s);f=f.slice(0,p)}if(e&&a&&c!=null)for(var v=jH(c,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;gs&&$b(r,e.substring(s,u),t,o),$b(r,l[2],t,o,l[1]),s=Bb.lastIndex}si){_>0?(y.tokens=y.tokens.slice(0,_),g(y,S,x),r.lines=r.lines.slice(0,m+1)):r.lines=r.lines.slice(0,m);break e}var k=w.width,I=k==null||k==="auto";if(typeof k=="string"&&k.charAt(k.length-1)==="%")b.percentWidth=k,c.push(b),b.contentWidth=jn(b.text,T);else{if(I){var D=w.backgroundColor,L=D&&D.image;L&&(L=Pye(L),kx(L)&&(b.width=Math.max(b.width,L.width*M/L.height)))}var z=p&&n!=null?n-S:null;z!=null&&z0&&p+n.accumWidth>n.width&&(c=t.split(` +`),u=!0),n.accumWidth=p}else{var v=qH(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=v.accumWidth+h,f=v.linesWidths,c=v.lines}}else c=t.split(` +`);for(var g=0;g=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Bye=Fa(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function $ye(e){return zye(e)?!!Bye[e]:!0}function qH(e,t,r,n,i){for(var a=[],o=[],s="",l="",u=0,c=0,f=0;fr:i+c+h>r){c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),a.push(s),o.push(c-u),l+=d,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=d,c=h)):p?(a.push(l),o.push(u),l=d,u=h):(a.push(d),o.push(h));continue}c+=h,p?(l+=d,u+=h):(l&&(s+=l,l="",u=0),s+=d)}return!a.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(c)),a.length===1&&(c+=i),{accumWidth:c,lines:a,linesWidths:o}}var OT="__zr_style_"+Math.round(Math.random()*10),du={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ix={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};du[OT]=!0;var iO=["z","z2","invisible"],Fye=["invisible"],Vye=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=Ye(r),i=0;i1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(zg[0]=Hb(i)*r+e,zg[1]=Gb(i)*n+t,Bg[0]=Hb(a)*r+e,Bg[1]=Gb(a)*n+t,u(s,zg,Bg),c(l,zg,Bg),i=i%ul,i<0&&(i=i+ul),a=a%ul,a<0&&(a=a+ul),i>a&&!o?a+=ul:ii&&($g[0]=Hb(h)*r+e,$g[1]=Gb(h)*n+t,u(s,$g,s),c(l,$g,l))}var xt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},cl=[],fl=[],ia=[],$o=[],aa=[],oa=[],Wb=Math.min,jb=Math.max,dl=Math.cos,hl=Math.sin,Za=Math.abs,NT=Math.PI,Yo=NT*2,Ub=typeof Float32Array<"u",Ld=[];function qb(e){var t=Math.round(e/NT*1e8)/1e8;return t%2*NT}function YH(e,t){var r=qb(e[0]);r<0&&(r+=Yo);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=Yo?i=r+Yo:t&&r-i>=Yo?i=r-Yo:!t&&r>i?i=r+(Yo-qb(r-i)):t&&r0&&(this._ux=Za(n/v0/t)||0,this._uy=Za(n/v0/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(xt.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=Za(t-this._xi),i=Za(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(xt.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){return this._drawPendingPt(),this.addData(xt.C,t,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,i,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,i){return this._drawPendingPt(),this.addData(xt.Q,t,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,r,n,i,a,o){this._drawPendingPt(),Ld[0]=i,Ld[1]=a,YH(Ld,o),i=Ld[0],a=Ld[1];var s=a-i;return this.addData(xt.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=dl(a)*n+t,this._yi=hl(a)*n+r,this},e.prototype.arcTo=function(t,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,a),this},e.prototype.rect=function(t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,i),this.addData(xt.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(xt.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&Ub&&(this.data=new Float32Array(r));for(var n=0;nc.length&&(this._expandData(),c=this.data);for(var f=0;f0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){ia[0]=ia[1]=aa[0]=aa[1]=Number.MAX_VALUE,$o[0]=$o[1]=oa[0]=oa[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;on||Za(x)>i||d===r-1)&&(v=Math.sqrt(y*y+x*x),a=g,o=m);break}case xt.C:{var S=t[d++],_=t[d++],g=t[d++],m=t[d++],b=t[d++],w=t[d++];v=sme(a,o,S,_,g,m,b,w,10),a=b,o=w;break}case xt.Q:{var S=t[d++],_=t[d++],g=t[d++],m=t[d++];v=ume(a,o,S,_,g,m,10),a=g,o=m;break}case xt.A:var C=t[d++],A=t[d++],T=t[d++],M=t[d++],k=t[d++],I=t[d++],D=I+k;d+=1,t[d++],p&&(s=dl(k)*T+C,l=hl(k)*M+A),v=jb(T,M)*Wb(Yo,Math.abs(I)),a=dl(D)*T+C,o=hl(D)*M+A;break;case xt.R:{s=a=t[d++],l=o=t[d++];var L=t[d++],z=t[d++];v=L*2+z*2;break}case xt.Z:{var y=s-a,x=l-o;v=Math.sqrt(y*y+x*x),a=s,o=l;break}}v>=0&&(u[f++]=v,c+=v)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,c,f,d,h=r<1,p,v,g=0,m=0,y,x=0,S,_;if(!(h&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,v=this._pathLen,y=r*v,!y)))e:for(var b=0;b0&&(t.lineTo(S,_),x=0),w){case xt.M:s=u=n[b++],l=c=n[b++],t.moveTo(u,c);break;case xt.L:{f=n[b++],d=n[b++];var A=Za(f-u),T=Za(d-c);if(A>i||T>a){if(h){var M=p[m++];if(g+M>y){var k=(y-g)/M;t.lineTo(u*(1-k)+f*k,c*(1-k)+d*k);break e}g+=M}t.lineTo(f,d),u=f,c=d,x=0}else{var I=A*A+T*T;I>x&&(S=f,_=d,x=I)}break}case xt.C:{var D=n[b++],L=n[b++],z=n[b++],V=n[b++],N=n[b++],F=n[b++];if(h){var M=p[m++];if(g+M>y){var k=(y-g)/M;Bs(u,D,z,N,k,cl),Bs(c,L,V,F,k,fl),t.bezierCurveTo(cl[1],fl[1],cl[2],fl[2],cl[3],fl[3]);break e}g+=M}t.bezierCurveTo(D,L,z,V,N,F),u=N,c=F;break}case xt.Q:{var D=n[b++],L=n[b++],z=n[b++],V=n[b++];if(h){var M=p[m++];if(g+M>y){var k=(y-g)/M;$p(u,D,z,k,cl),$p(c,L,V,k,fl),t.quadraticCurveTo(cl[1],fl[1],cl[2],fl[2]);break e}g+=M}t.quadraticCurveTo(D,L,z,V),u=z,c=V;break}case xt.A:var E=n[b++],G=n[b++],j=n[b++],B=n[b++],U=n[b++],X=n[b++],W=n[b++],ee=!n[b++],te=j>B?j:B,ie=Za(j-B)>.001,re=U+X,Q=!1;if(h){var M=p[m++];g+M>y&&(re=U+X*(y-g)/M,Q=!0),g+=M}if(ie&&t.ellipse?t.ellipse(E,G,j,B,W,U,re,ee):t.arc(E,G,te,U,re,ee),Q)break e;C&&(s=dl(U)*j+E,l=hl(U)*B+G),u=dl(re)*j+E,c=hl(re)*B+G;break;case xt.R:s=u=n[b],l=c=n[b+1],f=n[b++],d=n[b++];var J=n[b++],de=n[b++];if(h){var M=p[m++];if(g+M>y){var he=y-g;t.moveTo(f,d),t.lineTo(f+Wb(he,J),d),he-=J,he>0&&t.lineTo(f+J,d+Wb(he,de)),he-=de,he>0&&t.lineTo(f+jb(J-he,0),d+de),he-=J,he>0&&t.lineTo(f,d+jb(de-he,0));break e}g+=M}t.rect(f,d,J,de);break;case xt.Z:if(h){var M=p[m++];if(g+M>y){var k=(y-g)/M;t.lineTo(u*(1-k)+s*k,c*(1-k)+l*k);break e}g+=M}t.closePath(),u=s,c=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=xt,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();const Wa=Uye;function Jo(e,t,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=e;if(o>t+s&&o>n+s||oe+s&&a>r+s||at+f&&c>n+f&&c>a+f&&c>s+f||ce+f&&u>r+f&&u>i+f&&u>o+f||ut+u&&l>n+u&&l>a+u||le+u&&s>r+u&&s>i+u||sr||c+ui&&(i+=Ed);var d=Math.atan2(l,s);return d<0&&(d+=Ed),d>=n&&d<=i||d+Ed>=n&&d+Ed<=i}function ro(e,t,r,n,i,a){if(a>t&&a>n||ai?s:0}var Fo=Wa.CMD,pl=Math.PI*2,Xye=1e-4;function Zye(e,t){return Math.abs(e-t)t&&u>n&&u>a&&u>s||u1&&Kye(),h=gr(t,n,a,s,ai[0]),d>1&&(p=gr(t,n,a,s,ai[1]))),d===2?gt&&s>n&&s>a||s=0&&u<=1){for(var c=0,f=wr(t,n,a,u),d=0;dr||s<-r)return 0;var l=Math.sqrt(r*r-s*s);nn[0]=-l,nn[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=pl-1e-4){n=0,i=pl;var c=a?1:-1;return o>=nn[0]+e&&o<=nn[1]+e?c:0}if(n>i){var f=n;n=i,i=f}n<0&&(n+=pl,i+=pl);for(var d=0,h=0;h<2;h++){var p=nn[h];if(p+e>o){var v=Math.atan2(s,p),c=a?1:-1;v<0&&(v=pl+v),(v>=n&&v<=i||v+pl>=n&&v+pl<=i)&&(v>Math.PI/2&&v1&&(r||(s+=ro(l,u,c,f,n,i))),g&&(l=a[p],u=a[p+1],c=l,f=u),v){case Fo.M:c=a[p++],f=a[p++],l=c,u=f;break;case Fo.L:if(r){if(Jo(l,u,a[p],a[p+1],t,n,i))return!0}else s+=ro(l,u,a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case Fo.C:if(r){if(qye(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],t,n,i))return!0}else s+=Qye(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case Fo.Q:if(r){if(XH(l,u,a[p++],a[p++],a[p],a[p+1],t,n,i))return!0}else s+=Jye(l,u,a[p++],a[p++],a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case Fo.A:var m=a[p++],y=a[p++],x=a[p++],S=a[p++],_=a[p++],b=a[p++];p+=1;var w=!!(1-a[p++]);d=Math.cos(_)*x+m,h=Math.sin(_)*S+y,g?(c=d,f=h):s+=ro(l,u,d,h,n,i);var C=(n-m)*S/x+m;if(r){if(Yye(m,y,S,_,_+b,w,t,C,i))return!0}else s+=e0e(m,y,S,_,_+b,w,C,i);l=Math.cos(_+b)*x+m,u=Math.sin(_+b)*S+y;break;case Fo.R:c=l=a[p++],f=u=a[p++];var A=a[p++],T=a[p++];if(d=c+A,h=f+T,r){if(Jo(c,f,d,f,t,n,i)||Jo(d,f,d,h,t,n,i)||Jo(d,h,c,h,t,n,i)||Jo(c,h,c,f,t,n,i))return!0}else s+=ro(d,f,d,h,n,i),s+=ro(c,h,c,f,n,i);break;case Fo.Z:if(r){if(Jo(l,u,c,f,t,n,i))return!0}else s+=ro(l,u,c,f,n,i);l=c,u=f;break}}return!r&&!Zye(u,f)&&(s+=ro(l,u,c,f,n,i)||0),s!==0}function t0e(e,t,r){return ZH(e,0,!1,t,r)}function r0e(e,t,r,n){return ZH(e,t,!0,r,n)}var y0=be({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},du),n0e={style:be({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ix.style)},Yb=Ga.concat(["invisible","culling","z","z2","zlevel","parent"]),i0e=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s.5?DT:n>.2?Fme:RT}else if(r)return RT}return DT},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(oe(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=h0(r,0)0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Ic)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),r0e(s,l/u,r,n)))return!0}if(this.hasFill())return t0e(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Ic,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:q(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Ic)},t.prototype.createStyle=function(r){return _x(y0,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=q({},this.shape))},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=q({},i.shape),q(u,n.shape)):(u=q({},a?this.shape:i.shape),q(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=q({},this.shape);for(var c={},f=Ye(u),d=0;d0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return _x(a0e,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var i=Iv(n,r.font,r.textAlign,r.textBaseline);if(i.x+=r.x||0,i.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(Ti);KH.prototype.type="tspan";const Hp=KH;var o0e=be({x:0,y:0},du),s0e={style:be({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ix.style)};function l0e(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var QH=function(e){Dt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return _x(o0e,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=l0e(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return s0e},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new Ne(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Ti);QH.prototype.type="image";const $r=QH;function u0e(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,c;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var f;s+l>i&&(f=s+l,s*=i/f,l*=i/f),u+c>i&&(f=u+c,u*=i/f,c*=i/f),l+u>a&&(f=l+u,l*=a/f,u*=a/f),s+c>a&&(f=s+c,s*=a/f,c*=a/f),e.moveTo(r+s,n),e.lineTo(r+i-l,n),l!==0&&e.arc(r+i-l,n+l,l,-Math.PI/2,0),e.lineTo(r+i,n+a-u),u!==0&&e.arc(r+i-u,n+a-u,u,0,Math.PI/2),e.lineTo(r+c,n+a),c!==0&&e.arc(r+c,n+a-c,c,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var Xc=Math.round;function JH(e,t,r){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=n,e.x2=i,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(Xc(n*2)===Xc(i*2)&&(e.x1=e.x2=eu(n,s,!0)),Xc(a*2)===Xc(o*2)&&(e.y1=e.y2=eu(a,s,!0))),e}}function eW(e,t,r){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;e.x=n,e.y=i,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=eu(n,s,!0),e.y=eu(i,s,!0),e.width=Math.max(eu(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(eu(i+o,s,!1)-e.y,o===0?0:1)),e}}function eu(e,t,r){if(!t)return e;var n=Xc(e*2);return(n+Xc(t))%2===0?n/2:(n+(r?1:-1))/2}var c0e=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),f0e={},tW=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new c0e},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=eW(f0e,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?u0e(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(je);tW.prototype.type="rect";const Je=tW;var uO={fill:"#000"},cO=2,d0e={style:be({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},Ix.style)},rW=function(e){Dt(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=uO,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r0,k=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),I=o.calculatedLineHeight,D=0;D=0&&(D=b[I],D.align==="right");)this._placeToken(D,r,C,m,k,"right",x),A-=D.width,k-=D.width,I--;for(M+=(a-(M-g)-(y-k)-A)/2;T<=I;)D=b[T],this._placeToken(D,r,C,m,M+D.width/2,"center",x),M+=D.width,T++;m+=C}},t.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var c=r.verticalAlign,f=a+i/2;c==="top"?f=a+r.height/2:c==="bottom"&&(f=a+i-r.height/2);var d=!r.isLineHolder&&Xb(u);d&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,f-r.height/2,r.width,r.height);var h=!!u.backgroundColor,p=r.textPadding;p&&(o=gO(o,s,p),f-=r.height/2-p[0]-r.innerHeight/2);var v=this._getOrCreateChild(Hp),g=v.createStyle();v.useStyle(g);var m=this._defaultStyle,y=!1,x=0,S=vO("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),_=pO("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!m.autoStroke||y)?(x=cO,m.stroke):null),b=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=f,b&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=r.font||Ns,g.opacity=Ea(u.opacity,n.opacity,1),dO(g,u),_&&(g.lineWidth=Ea(u.lineWidth,n.lineWidth,x),g.lineDash=Ee(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=_),S&&(g.fill=S);var w=r.contentWidth,C=r.contentHeight;v.setBoundingRect(new Ne(vh(g.x,w,g.textAlign),Pc(g.y,C,g.textBaseline),w,C))},t.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,c=r.borderColor,f=l&&l.image,d=l&&!f,h=r.borderRadius,p=this,v,g;if(d||r.lineHeight||u&&c){v=this._getOrCreateChild(Je),v.useStyle(v.createStyle()),v.style.fill=null;var m=v.shape;m.x=i,m.y=a,m.width=o,m.height=s,m.r=h,v.dirtyShape()}if(d){var y=v.style;y.fill=l||null,y.fillOpacity=Ee(r.fillOpacity,1)}else if(f){g=this._getOrCreateChild($r),g.onload=function(){p.dirtyStyle()};var x=g.style;x.image=l.image,x.x=i,x.y=a,x.width=o,x.height=s}if(u&&c){var y=v.style;y.lineWidth=u,y.stroke=c,y.strokeOpacity=Ee(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,v.strokeContainThreshold=0,v.hasFill()&&v.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var S=(v||g).style;S.shadowBlur=r.shadowBlur||0,S.shadowColor=r.shadowColor||"transparent",S.shadowOffsetX=r.shadowOffsetX||0,S.shadowOffsetY=r.shadowOffsetY||0,S.opacity=Ea(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return iW(r)&&(n=[r.fontStyle,r.fontWeight,nW(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Gi(n)||r.textFont||r.font},t}(Ti),h0e={left:!0,right:1,center:1},p0e={top:1,bottom:1,middle:1},fO=["fontStyle","fontWeight","fontSize","fontFamily"];function nW(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?hk+"px":e+"px"}function dO(e,t){for(var r=0;r=0,a=!1;if(e instanceof je){var o=aW(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(uc(s)||uc(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=q({},n),u=q({},u),u.fill=s):!uc(u.fill)&&uc(s)?(a=!0,n=q({},n),u=q({},u),u.fill=bO(s)):!uc(u.stroke)&&uc(l)&&(a||(n=q({},n),u=q({},u)),u.stroke=bO(l)),n.style=u}}if(n&&n.z2==null){a||(n=q({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??Jf)}return n}function b0e(e,t,r){if(r&&r.z2==null){r=q({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??g0e)}return r}function _0e(e,t,r){var n=ze(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:x0e(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=q({},r),o=q({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Zb(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return S0e(this,e,t,r);if(e==="blur")return _0e(this,e,r);if(e==="select")return b0e(this,e,r)}return r}function Du(e){e.stateProxy=Zb;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Zb),r&&(r.stateProxy=Zb)}function wO(e,t){!dW(e,t)&&!e.__highByOuter&&Do(e,oW)}function CO(e,t){!dW(e,t)&&!e.__highByOuter&&Do(e,sW)}function wo(e,t){e.__highByOuter|=1<<(t||0),Do(e,oW)}function Co(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Do(e,sW)}function uW(e){Do(e,Ek)}function Ok(e){Do(e,lW)}function cW(e){Do(e,m0e)}function fW(e){Do(e,y0e)}function dW(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function hW(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=Rk(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){lW(u)}),s&&r.push(a)),o.isBlured=!1}),R(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function BT(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,c){for(var f=0;f0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function pu(e,t,r){tu(e,!0),Do(e,Du),FT(e,t,r)}function k0e(e){tu(e,!1)}function jt(e,t,r,n){n?k0e(e):pu(e,t,r)}function FT(e,t,r){var n=ke(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var AO=["emphasis","blur","select"],I0e={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function zr(e,t,r,n){r=r||"itemStyle";for(var i=0;i1&&(o*=Kb(p),s*=Kb(p));var v=(i===a?-1:1)*Kb((o*o*(s*s)-o*o*(h*h)-s*s*(d*d))/(o*o*(h*h)+s*s*(d*d)))||0,g=v*o*h/s,m=v*-s*d/o,y=(e+r)/2+Vg(f)*g-Fg(f)*m,x=(t+n)/2+Fg(f)*g+Vg(f)*m,S=PO([1,0],[(d-g)/o,(h-m)/s]),_=[(d-g)/o,(h-m)/s],b=[(-1*d-g)/o,(-1*h-m)/s],w=PO(_,b);if(GT(_,b)<=-1&&(w=Od),GT(_,b)>=1&&(w=0),w<0){var C=Math.round(w/Od*1e6)/1e6;w=Od*2+C%2*Od}c.addData(u,y,x,o,s,S,w,f,a)}var O0e=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,N0e=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function z0e(e){var t=new Wa;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=Wa.CMD,l=e.match(O0e);if(!l)return t;for(var u=0;uD*D+L*L&&(C=T,A=M),{cx:C,cy:A,x0:-c,y0:-f,x1:C*(i/_-1),y1:A*(i/_-1)}}function W0e(e){var t;if(Y(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function j0e(e,t){var r,n=gh(t.r,0),i=gh(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,f=t.cy,d=!!t.clockwise,h=RO(u-l),p=h>Qb&&h%Qb;if(p>Oi&&(h=p),!(n>Oi))e.moveTo(c,f);else if(h>Qb-Oi)e.moveTo(c+n*fc(l),f+n*vl(l)),e.arc(c,f,n,l,u,!d),i>Oi&&(e.moveTo(c+i*fc(u),f+i*vl(u)),e.arc(c,f,i,u,l,d));else{var v=void 0,g=void 0,m=void 0,y=void 0,x=void 0,S=void 0,_=void 0,b=void 0,w=void 0,C=void 0,A=void 0,T=void 0,M=void 0,k=void 0,I=void 0,D=void 0,L=n*fc(l),z=n*vl(l),V=i*fc(u),N=i*vl(u),F=h>Oi;if(F){var E=t.cornerRadius;E&&(r=W0e(E),v=r[0],g=r[1],m=r[2],y=r[3]);var G=RO(n-i)/2;if(x=sa(G,m),S=sa(G,y),_=sa(G,v),b=sa(G,g),A=w=gh(x,S),T=C=gh(_,b),(w>Oi||C>Oi)&&(M=n*fc(u),k=n*vl(u),I=i*fc(l),D=i*vl(l),hOi){var ie=sa(m,A),re=sa(y,A),Q=Gg(I,D,L,z,n,ie,d),J=Gg(M,k,V,N,n,re,d);e.moveTo(c+Q.cx+Q.x0,f+Q.cy+Q.y0),A0&&e.arc(c+Q.cx,f+Q.cy,ie,Hr(Q.y0,Q.x0),Hr(Q.y1,Q.x1),!d),e.arc(c,f,n,Hr(Q.cy+Q.y1,Q.cx+Q.x1),Hr(J.cy+J.y1,J.cx+J.x1),!d),re>0&&e.arc(c+J.cx,f+J.cy,re,Hr(J.y1,J.x1),Hr(J.y0,J.x0),!d))}else e.moveTo(c+L,f+z),e.arc(c,f,n,l,u,!d);if(!(i>Oi)||!F)e.lineTo(c+V,f+N);else if(T>Oi){var ie=sa(v,T),re=sa(g,T),Q=Gg(V,N,M,k,i,-re,d),J=Gg(L,z,I,D,i,-ie,d);e.lineTo(c+Q.cx+Q.x0,f+Q.cy+Q.y0),T0&&e.arc(c+Q.cx,f+Q.cy,re,Hr(Q.y0,Q.x0),Hr(Q.y1,Q.x1),!d),e.arc(c,f,i,Hr(Q.cy+Q.y1,Q.cx+Q.x1),Hr(J.cy+J.y1,J.cx+J.x1),d),ie>0&&e.arc(c+J.cx,f+J.cy,ie,Hr(J.y1,J.x1),Hr(J.y0,J.x0),!d))}else e.lineTo(c+V,f+N),e.arc(c,f,i,u,l,d)}e.closePath()}}}var U0e=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),_W=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new U0e},t.prototype.buildPath=function(r,n){j0e(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(je);_W.prototype.type="sector";const Dn=_W;var q0e=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),wW=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new q0e},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},t}(je);wW.prototype.type="ring";const Lx=wW;function Y0e(e,t,r,n){var i=[],a=[],o=[],s=[],l,u,c,f;if(n){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,h=e.length;d=2){if(n){var a=Y0e(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],c=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,f=i.length;sml[1]){if(s=!1,a)return s;var c=Math.abs(ml[0]-gl[1]),f=Math.abs(gl[0]-ml[1]);Math.min(c,f)>i.len()&&(c0){var f=c.duration,d=c.delay,h=c.easing,p={duration:f,delay:d||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,p):t.animateTo(r,p)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function at(e,t,r,n,i,a){Vk("update",e,t,r,n,i,a)}function Lt(e,t,r,n,i,a){Vk("enter",e,t,r,n,i,a)}function ff(e){if(!e.__zr)return!0;for(var t=0;tMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function OO(e){return!e.isGroup}function p1e(e){return e.shape!=null}function Lv(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){OO(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return p1e(o)&&(s.shape=q({},o.shape)),s}var a=n(e);t.traverse(function(o){if(OO(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),at(o,l,r,ke(o).dataIndex)}}})}function NW(e,t){return Z(e,function(r){var n=r[0];n=b0(n,t.x),n=_0(n,t.x+t.width);var i=r[1];return i=b0(i,t.y),i=_0(i,t.y+t.height),[n,i]})}function v1e(e,t){var r=b0(e.x,t.x),n=_0(e.x+e.width,t.x+t.width),i=b0(e.y,t.y),a=_0(e.y+e.height,t.y+t.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function Ev(e,t,r){var n=q({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),be(i,r),new $r(n)):Ox(e.replace("path://",""),n,r,"center")}function mh(e,t,r,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var g=Jb(h,p,c,f)/d;return!(g<0||g>1)}function Jb(e,t,r,n){return e*n-r*t}function g1e(e){return e<=1e-6&&e>=-1e-6}function td(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=oe(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=e.formatterParamsExtra;l&&R(Ye(l),function(c){fe(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=ke(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:be({content:n,formatterParams:s},i)}}function NO(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Qs(e,t){if(e)if(Y(e))for(var r=0;r=0&&s.push(l)}),s}}function Js(e,t){return Oe(Oe({},e,!0),t,!0)}const I1e={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:". "}}}},P1e={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 C0="ZH",Hk="EN",qp=Hk,sy={},Wk={},WW=rt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(C0)>-1?C0:qp}():qp;function jW(e,t){e=e.toUpperCase(),Wk[e]=new wt(t),sy[e]=t}function D1e(e){if(oe(e)){var t=sy[e.toUpperCase()]||{};return e===C0||e===Hk?Te(t):Oe(Te(t),Te(sy[qp]),!1)}else return Oe(Te(e),Te(sy[qp]),!1)}function jT(e){return Wk[e]}function R1e(){return Wk[qp]}jW(Hk,I1e);jW(C0,P1e);var jk=1e3,Uk=jk*60,Jh=Uk*60,vi=Jh*24,VO=vi*365,yh={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}"},jg="{yyyy}-{MM}-{dd}",GO={year:"{yyyy}",month:"{yyyy}-{MM}",day:jg,hour:jg+" "+yh.hour,minute:jg+" "+yh.minute,second:jg+" "+yh.second,millisecond:yh.none},r_=["year","month","day","hour","minute","second","millisecond"],UW=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Vo(e,t){return e+="","0000".substr(0,t-e.length)+e}function df(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function L1e(e){return e===df(e)}function E1e(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Bx(e,t,r,n){var i=Ha(e),a=i[qk(r)](),o=i[hf(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[$x(r)](),u=i["get"+(r?"UTC":"")+"Day"](),c=i[Yp(r)](),f=(c-1)%12+1,d=i[Fx(r)](),h=i[Vx(r)](),p=i[Gx(r)](),v=n instanceof wt?n:jT(n||WW)||R1e(),g=v.getModel("time"),m=g.get("month"),y=g.get("monthAbbr"),x=g.get("dayOfWeek"),S=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Vo(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Vo(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Vo(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Vo(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Vo(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Vo(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Vo(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Vo(p,3)).replace(/{S}/g,p+"")}function O1e(e,t,r,n,i){var a=null;if(oe(r))a=r;else if(Se(r))a=r(e.value,t,{level:e.level});else{var o=q({},yh);if(e.level>0)for(var s=0;s=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(Y(a)){var f=e.level==null?0:e.level>=0?e.level:a.length+e.level;f=Math.min(f,a.length-1),a=a[f]}}return Bx(new Date(e.value),a,i,n)}function qW(e,t){var r=Ha(e),n=r[hf(t)]()+1,i=r[$x(t)](),a=r[Yp(t)](),o=r[Fx(t)](),s=r[Vx(t)](),l=r[Gx(t)](),u=l===0,c=u&&s===0,f=c&&o===0,d=f&&a===0,h=d&&i===1,p=h&&n===1;return p?"year":h?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function HO(e,t,r){var n=it(e)?Ha(e):e;switch(t=t||qW(e,r),t){case"year":return n[qk(r)]();case"half-year":return n[hf(r)]()>=6?1:0;case"quarter":return Math.floor((n[hf(r)]()+1)/4);case"month":return n[hf(r)]();case"day":return n[$x(r)]();case"half-day":return n[Yp(r)]()/24;case"hour":return n[Yp(r)]();case"minute":return n[Fx(r)]();case"second":return n[Vx(r)]();case"millisecond":return n[Gx(r)]()}}function qk(e){return e?"getUTCFullYear":"getFullYear"}function hf(e){return e?"getUTCMonth":"getMonth"}function $x(e){return e?"getUTCDate":"getDate"}function Yp(e){return e?"getUTCHours":"getHours"}function Fx(e){return e?"getUTCMinutes":"getMinutes"}function Vx(e){return e?"getUTCSeconds":"getSeconds"}function Gx(e){return e?"getUTCMilliseconds":"getMilliseconds"}function N1e(e){return e?"setUTCFullYear":"setFullYear"}function YW(e){return e?"setUTCMonth":"setMonth"}function XW(e){return e?"setUTCDate":"setDate"}function ZW(e){return e?"setUTCHours":"setHours"}function KW(e){return e?"setUTCMinutes":"setMinutes"}function QW(e){return e?"setUTCSeconds":"setSeconds"}function JW(e){return e?"setUTCMilliseconds":"setMilliseconds"}function ej(e){if(!EH(e))return oe(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function tj(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var id=xk;function UT(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Gi(c)?c:"-"}function a(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?Ha(e):e;if(isNaN(+l)){if(s)return"-"}else return Bx(l,n,r)}if(t==="ordinal")return cT(e)?i(e):it(e)&&a(e)?e+"":"-";var u=_o(e);return a(u)?ej(u):cT(e)?i(e):typeof e=="boolean"?e+"":"-"}var WO=["a","b","c","d","e","f","g"],n_=function(e,t){return"{"+e+(t??"")+"}"};function rj(e,t,r){Y(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a':'';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function Ru(e,t){return t=t||"transparent",oe(e)?e:_e(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function T0(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var ly=R,nj=["left","right","top","bottom","width","height"],ru=[["width","left","right"],["height","top","bottom"]];function Yk(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),d=f&&f.getBoundingRect(),h,p;if(e==="horizontal"){var v=c.width+(d?-d.x+c.x:0);h=a+v,h>n||l.newline?(a=0,h=v,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(d?-d.y+c.y:0);p=o+g,p>i||l.newline?(a+=s+r,o=0,p=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=h+r:o=p+r)})}var gu=Yk;Ie(Yk,"vertical");Ie(Yk,"horizontal");function $1e(e,t,r){var n=t.width,i=t.height,a=ne(e.left,n),o=ne(e.top,i),s=ne(e.right,n),l=ne(e.bottom,i);return(isNaN(a)||isNaN(parseFloat(e.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(e.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=i),r=id(r||0),{width:Math.max(s-a-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function pr(e,t,r){r=id(r||0);var n=t.width,i=t.height,a=ne(e.left,n),o=ne(e.top,i),s=ne(e.right,n),l=ne(e.bottom,i),u=ne(e.width,n),c=ne(e.height,i),f=r[2]+r[0],d=r[1]+r[3],h=e.aspect;switch(isNaN(u)&&(u=n-s-d-a),isNaN(c)&&(c=i-l-f-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>n/i?u=n*.8:c=i*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(a)&&(a=n-s-u-d),isNaN(o)&&(o=i-l-c-f),e.left||e.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-d;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-c/2-r[0];break;case"bottom":o=i-c-f;break}a=a||0,o=o||0,isNaN(u)&&(u=n-d-a-(s||0)),isNaN(c)&&(c=i-f-o-(l||0));var p=new Ne(a+r[3],o+r[0],u,c);return p.margin=r,p}function Hx(e,t,r,n,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(a=a||e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var u;if(l==="raw")u=e.type==="group"?new Ne(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(u=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=pr(be({width:u.width,height:u.height},t),r,n),d=o?f.x-u.x:0,h=s?f.y-u.y:0;return l==="raw"?(a.x=d,a.y=h):(a.x+=d,a.y+=h),a===e&&e.markRedraw(),!0}function F1e(e,t){return e[ru[t][0]]!=null||e[ru[t][1]]!=null&&e[ru[t][2]]!=null}function Xp(e){var t=e.layoutMode||e.constructor.layoutMode;return _e(t)?t:t?{type:t}:null}function Fs(e,t,r){var n=r&&r.ignoreSize;!Y(n)&&(n=[n,n]);var i=o(ru[0],0),a=o(ru[1],1);u(ru[0],e,i),u(ru[1],e,a);function o(c,f){var d={},h=0,p={},v=0,g=2;if(ly(c,function(x){p[x]=e[x]}),ly(c,function(x){s(t,x)&&(d[x]=p[x]=t[x]),l(d,x)&&h++,l(p,x)&&v++}),n[f])return l(t,c[1])?p[c[2]]=null:l(t,c[2])&&(p[c[1]]=null),p;if(v===g||!h)return p;if(h>=g)return d;for(var m=0;m=0;l--)s=Oe(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return Pv(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(wt);WH(od,wt);Mx(od);M1e(od);k1e(od,G1e);function G1e(e){var t=[];return R(od.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=Z(t,function(r){return Aa(r).main}),e!=="dataset"&&ze(t,"dataset")<=0&&t.unshift("dataset"),t}const tt=od;var aj="";typeof navigator<"u"&&(aj=navigator.platform||"");var dc="rgba(0, 0, 0, 0.2)";const H1e={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:dc,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:dc,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:dc,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:dc,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:dc,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:dc,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:aj.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 oj=ge(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Pi="original",Kr="arrayRows",Di="objectRows",Ya="keyedColumns",As="typedArray",sj="unknown",Oa="column",sd="row",Pr={Must:1,Might:2,Not:3},lj=et();function W1e(e){lj(e).datasetMap=ge()}function uj(e,t,r){var n={},i=Zk(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=lj(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),R(e,function(v,g){var m=_e(v)?v:e[g]={name:v};m.type==="ordinal"&&c==null&&(c=g,f=p(m)),n[m.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});R(e,function(v,g){var m=v.name,y=p(v);if(c==null){var x=d.valueWayDim;h(n[m],x,y),h(o,x,y),d.valueWayDim+=y}else if(c===g)h(n[m],0,y),h(a,0,y);else{var x=d.categoryWayDim;h(n[m],x,y),h(o,x,y),d.categoryWayDim+=y}});function h(v,g,m){for(var y=0;yt)return e[n];return e[r-1]}function dj(e,t,r,n,i,a,o){a=a||e;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=o==null||!n?r:X1e(n,o);if(c=c||r,!(!c||!c.length)){var f=c[l];return i&&(u[i]=f),s.paletteIdx=(l+1)%c.length,f}}function Z1e(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Ug,Nd,UO,qO="\0_ec_inner",K1e=1,hj=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new wt(a),this._locale=new wt(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=ZO(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,ZO(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?UO(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&R(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=ge(),u=n&&n.replaceMergeMainTypeMap;W1e(this),R(r,function(f,d){f!=null&&(tt.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?Te(f):Oe(i[d],f,!0))}),u&&u.each(function(f,d){tt.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),tt.topologicalTravel(s,tt.getAllClassMainTypes(),c,this);function c(f){var d=q1e(this,f,pt(r[f])),h=a.get(f),p=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",v=$H(h,d,p);dye(v,f,tt),i[f]=null,a.set(f,null),o.set(f,0);var g=[],m=[],y=0,x;R(v,function(S,_){var b=S.existing,w=S.newOption;if(!w)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var C=f==="series",A=tt.getClass(f,S.keyInfo.subType,!C);if(!A)return;if(f==="tooltip"){if(x)return;x=!0}if(b&&b.constructor===A)b.name=S.keyInfo.name,b.mergeOption(w,this),b.optionUpdated(w,!1);else{var T=q({componentIndex:_},S.keyInfo);b=new A(w,this,this,T),q(b,T),S.brandNew&&(b.__requireNewView=!0),b.init(w,this,this),b.optionUpdated(null,!0)}}b?(g.push(b.option),m.push(b),y++):(g.push(void 0),m.push(void 0))},this),i[f]=g,a.set(f,m),o.set(f,y),f==="series"&&Ug(this)}this._seriesIndices||Ug(this)},t.prototype.getOption=function(){var r=Te(this.option);return R(r,function(n,i){if(tt.hasClass(i)){for(var a=pt(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Gp(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[qO],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o=t:r==="max"?e<=t:e===t}function lxe(e,t){return e.join(",")===t.join(",")}const uxe=ixe;var Li=R,Zp=_e,KO=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function a_(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=KO.length;r=0;g--){var m=e[g];if(s||(p=m.data.rawIndexOf(m.stackedByDimension,h)),p>=0){var y=m.data.getByRawIndex(m.stackResultDimension,p);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&d>=0&&y>0||l==="samesign"&&d<=0&&y<0){d=tye(d,y),v=y;break}}}return n[0]=d,n[1]=v,n})})}var Wx=function(){function e(t){this.data=t.data||(t.sourceFormat===Ya?{}:[]),this.sourceFormat=t.sourceFormat||sj,this.seriesLayoutBy=t.seriesLayoutBy||Oa,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;nv&&(v=x)}h[0]=p,h[1]=v}},i=function(){return this._data?this._data.length/this._dimSize:0};iN=(t={},t[Kr+"_"+Oa]={pure:!0,appendData:a},t[Kr+"_"+sd]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Di]={pure:!0,appendData:a},t[Ya]={pure:!0,appendData:function(o){var s=this._data;R(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[Pi]={appendData:a},t[As]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s=0&&(v=o.interpolatedValue[g])}return v!=null?v+"":""})}},e.prototype.getRawValue=function(t,r){return Df(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function lN(e){var t,r;return _e(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function ep(e){return new Axe(e)}var Axe=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function c(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||a==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=l,this._modDataCount=u;var d=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!n&&(f||h1&&n>0?s:o}};return a;function o(){return t=e?null:lt},gte:function(e,t){return e>=t}},kxe=function(){function e(t,r){if(!it(r)){var n="";lt(n)}this._opFn=Tj[t],this._rvalFloat=_o(r)}return e.prototype.evaluate=function(t){return it(t)?this._opFn(t,this._rvalFloat):this._opFn(_o(t),this._rvalFloat)},e}(),Aj=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=it(t)?t:_o(t),i=it(r)?r:_o(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=oe(t),l=oe(r);s&&(n=l?t:0),l&&(i=s?r:0)}return ni?-this._resultLT:0},e}(),Ixe=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=_o(r)}return e.prototype.evaluate=function(t){var r=t===this._rval;if(!r){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=_o(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function Pxe(e,t){return e==="eq"||e==="ne"?new Ixe(e==="eq",t):fe(Tj,e)?new kxe(e,t):null}var Dxe=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return Ms(t,r)},e}();function Rxe(e,t){var r=new Dxe,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==Oa&<(o);var s=[],l={},u=e.dimensionsDefine;if(u)R(u,function(v,g){var m=v.name,y={index:g,name:m,displayName:v.displayName};if(s.push(y),m!=null){var x="";fe(l,m)&<(x),l[m]=y}});else for(var c=0;c65535?Fxe:Vxe}function hc(){return[1/0,-1/0]}function Gxe(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function fN(e,t,r,n,i){var a=Ij[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;ug[1]&&(g[1]=v)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Z(o,function(y){return y.property}),c=0;cm[1]&&(m[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r=0&&r=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&nt)a=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c=0&&l<0)&&(s=p,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a=f&&y<=d||isNaN(y))&&(l[u++]=v),v++}p=!0}else if(a===2){for(var g=h[i[0]],x=h[i[1]],S=t[i[1]][0],_=t[i[1]][1],m=0;m=f&&y<=d||isNaN(y))&&(b>=S&&b<=_||isNaN(b))&&(l[u++]=v),v++}p=!0}}if(!p)if(a===1)for(var m=0;m=f&&y<=d||isNaN(y))&&(l[u++]=w)}else for(var m=0;mt[T][1])&&(C=!1)}C&&(l[u++]=r.getRawIndex(m))}return um[1]&&(m[1]=g)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,f,d,h=new(Bd(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var p=1;pc&&(c=f,d=S)}M>0&&Mc-p&&(l=c-p,s.length=l);for(var v=0;vf[1]&&(f[1]=m),d[h++]=y}return a._count=h,a._indices=d,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();al&&(l=f)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,i,a){return Ms(r[a],this._dimensions[a])}l_={arrayRows:t,objectRows:function(r,n,i,a){return Ms(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Ms(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),Pj=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(qg(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var c=r[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),l=Yn(s)?As:Pi,a=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=Ee(f.seriesLayoutBy,d.seriesLayoutBy)||null,p=Ee(f.sourceHeader,d.sourceHeader),v=Ee(f.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||v;i=g?[XT(s,{seriesLayoutBy:h,sourceHeader:p,dimensions:v},l)]:[]}else{var m=t;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var x=m.get("source",!0);i=[XT(x,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&hN(a)}var o,s=[],l=[];return R(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&hN(f),s.push(c),l.push(u._getVersionSign())}),n?o=Bxe(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[xxe(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r1||r>0&&!e.noHeader;return R(e.blocks,function(i){var a=Lj(i);a>=t&&(t=a+ +(n&&(!a||ZT(i)&&!i.noHeader)))}),t}return 0}function Wxe(e,t,r,n){var i=t.noHeader,a=Uxe(Lj(t)),o=[],s=t.blocks||[];cn(!s||Y(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(fe(u,l)){var c=new Tj(u[l],null);s.sort(function(p,v){return c.evaluate(p.sortParam,v.sortParam)})}else l==="seriesDesc"&&s.reverse()}R(s,function(p,v){var g=t.valueFormatter,m=Rj(p)(g?q(q({},e),{valueFormatter:g}):e,p,v>0?a.html:0,n);m!=null&&o.push(m)});var f=e.renderMode==="richText"?o.join(a.richText):KT(o.join(""),i?r:a.html);if(i)return f;var d=jT(t.header,"ordinal",e.useUTC),h=Dj(n,e.renderMode).nameStyle;return e.renderMode==="richText"?Ej(e,d,h)+a.richText+f:KT('
'+xn(d)+"
"+f,r)}function jxe(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(S){return S=Y(S)?S:[S],Z(S,function(_,b){return jT(_,Y(h)?h[b]:h,u)})};if(!(a&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),d=a?"":jT(l,"ordinal",u),h=t.valueType,p=o?[]:c(t.value),v=!s||!a,g=!s&&a,m=Dj(n,i),y=m.nameStyle,x=m.valueStyle;return i==="richText"?(s?"":f)+(a?"":Ej(e,d,y))+(o?"":Xxe(e,p,v,g,x)):KT((s?"":f)+(a?"":qxe(d,!s,y))+(o?"":Yxe(p,v,g,x)),r)}}function cN(e,t,r,n,i,a){if(e){var o=Rj(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function Uxe(e){return{html:Gxe[e],richText:Hxe[e]}}function KT(e,t){var r='
',n="margin: "+t+"px 0 0";return'
'+e+r+"
"}function qxe(e,t,r){var n=t?"margin-left:2px":"";return''+xn(e)+""}function Yxe(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=Y(e)?e:[e],''+Z(e,function(o){return xn(o)}).join("  ")+""}function Ej(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function Xxe(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Y(t)?t.join(" "):t,a)}function Oj(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return Pu(n)}function Nj(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var l_=function(){function e(){this.richTextStyles={},this._nextStyleNameId=EH()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=z1e({color:r,type:t,renderMode:n,markerId:i});return oe(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};Y(r)?R(r,function(a){return q(n,a)}):q(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function zj(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),l=Y(s),u=Oj(t,r),c,f,d,h;if(o>1||l&&!o){var p=Zxe(s,t,r,a,u);c=p.inlineValues,f=p.inlineValueTypes,d=p.blocks,h=p.inlineValues[0]}else if(o){var v=i.getDimensionInfo(a[0]);h=c=Df(i,r,a[0]),f=v.type}else h=c=l?s[0]:s;var g=Tk(t),m=g&&t.name||"",y=i.getName(r),x=n?m:y;return Sr("section",{header:m,noHeader:n||!g,sortParam:h,blocks:[Sr("nameValue",{markerType:"item",markerColor:u,name:x,noName:!Gi(x),value:c,valueType:f})].concat(d||[])})}function Zxe(e,t,r,n,i){var a=t.getData(),o=Fa(e,function(f,d,h){var p=a.getDimensionInfo(h);return f=f||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];n.length?R(n,function(f){c(Df(a,r,f),f)}):R(e,c);function c(f,d){var h=a.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(Sr("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:f,valueType:h.type})):(s.push(f),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Go=Je();function Yg(e,t){return e.getName(t)||e.getId(t)}var uy="__universalTransitionEnabled",jx=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=ep({count:Qxe,reset:Jxe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Go(this).sourceManager=new Ij(this);a.prepareSource();var o=this.getInitialData(r,i);dN(o,this),this.dataTask.context.data=o,Go(this).dataBeforeProcessed=o,fN(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Xp(this),a=i?ad(r):{},o=this.subType;et.hasClass(o)&&(o+="Series"),Oe(r,n.getTheme().get(this.subType)),Oe(r,this.getDefaultOption()),Au(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&$s(r,a,i)},t.prototype.mergeOption=function(r,n){r=Oe(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Xp(this);i&&$s(this.option,r,i);var a=Go(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);dN(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Go(this).dataBeforeProcessed=o,fN(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!Yn(r))for(var n=["show"],i=0;ithis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=Yk.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Yg(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[uy])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){_e(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(r,n)}},t.registerClass=function(r){return et.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(et);ur(jx,Qk);ur(jx,Yk);HH(jx,et);function fN(e){var t=e.name;Tk(e)||(e.name=Kxe(e)||t)}function Kxe(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return R(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function Qxe(e){return e.model.getRawData().count()}function Jxe(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),eSe}function eSe(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function dN(e,t){R(u0(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Ie(tSe,t))})}function tSe(e,t){var r=QT(e);return r&&r.setOutputEnd((t||this).count()),t}function QT(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}const zt=jx;var eI=function(){function e(){this.group=new Me,this.uid=nd("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();Mk(eI);Ax(eI);const Ut=eI;function ld(){var e=Je();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var Bj=Je(),rSe=ld(),tI=function(){function e(){this.group=new Me,this.uid=nd("viewChart"),this.renderTask=ep({plan:nSe,reset:iSe}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.highlight=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&pN(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&pN(a,i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateLayout=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.eachRendered=function(t){Ks(this.group,t)},e.markUpdateMethod=function(t,r){Bj(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function hN(e,t,r){e&&jp(e)&&(t==="emphasis"?wo:Co)(e,r)}function pN(e,t,r){var n=Mu(e,t),i=t&&t.highlightKey!=null?P0e(t.highlightKey):null;n!=null?R(pt(n),function(a){hN(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){hN(a,r,i)})}Mk(tI);Ax(tI);function nSe(e){return rSe(e.model)}function iSe(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&Bj(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),aSe[l]}var aSe={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const Tt=tI;var A0="\0__throttleOriginMethod",vN="\0__throttleRate",gN="\0__throttleType";function rI(e,t,r){var n,i=0,a=0,o=null,s,l,u,c;t=t||0;function f(){a=new Date().getTime(),o=null,e.apply(l,u||[])}var d=function(){for(var h=[],p=0;p=0?f():o=setTimeout(f,-s),i=n};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(h){c=h},d}function ud(e,t,r,n){var i=e[t];if(i){var a=i[A0]||i,o=i[gN],s=i[vN];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=rI(a,r,n==="debounce"),i[A0]=a,i[gN]=n,i[vN]=r}return i}}function Kp(e,t){var r=e[t];r&&r[A0]&&(r.clear&&r.clear(),e[t]=r[A0])}var mN=Je(),yN={itemStyle:ku(GW,!0),lineStyle:ku(VW,!0)},oSe={lineStyle:"stroke",itemStyle:"fill"};function $j(e,t){var r=e.visualStyleMapper||yN[t];return r||(console.warn("Unknown style type '"+t+"'."),yN.itemStyle)}function Fj(e,t){var r=e.visualDrawType||oSe[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var sSe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=$j(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=Fj(e,n),u=o[l],c=Se(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=d,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Se(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||Se(o.stroke)?d:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,p){var v=e.getDataParams(p),g=q({},o);g[l]=c(v),h.setItemVisual(p,"style",g)}}}},$d=new wt,lSe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=$j(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){$d.option=l[n];var u=i($d),c=o.ensureUniqueItemVisual(s,"style");q(c,u),$d.option.decal&&(o.setItemVisual(s,"decal",$d.option.decal),$d.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},uSe={performRawSeries:!0,overallReset:function(e){var t=ge();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),mN(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=mN(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=Fj(r,s);a.each(function(u){var c=a.getRawIndex(u);i[c]=u}),n.each(function(u){var c=i[u],f=a.getItemVisual(c,"colorFromPalette");if(f){var d=a.ensureUniqueItemVisual(c,"style"),h=n.getName(u)||u+"",p=n.count();d[l]=r.getColorFromPalette(h,o,p)}})}})}},Xg=Math.PI;function cSe(e,t){t=t||{},be(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Me,n=new Qe({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new rt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Qe({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new Nk({shape:{startAngle:-Xg/2,endAngle:-Xg/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Xg*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Xg*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),a.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var fSe=function(){function e(t,r,n,i){this._stageTaskMap=ge(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=ge();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;R(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";cn(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var a=!1,o=this;R(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var h,p=d.agentStubMap;p.each(function(g){s(i,g)&&(g.dirty(),h=!0)}),h&&d.dirty(),o.updatePayload(d,n);var v=o.getPerformArgs(d,i.block);p.each(function(g){g.perform(v)}),d.perform(v)&&(a=!0)}else f&&f.each(function(g,m){s(i,g)&&g.dirty();var y=o.getPerformArgs(g,i.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=ge(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c);function c(f){var d=f.uid,h=s.set(d,o&&o.get(d)||ep({plan:gSe,reset:mSe,count:xSe}));h.context={model:f,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(f,h)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||ep({reset:dSe});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=ge(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,h="";cn(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,p):c?c(n,i).each(p):(f=!1,R(n.getSeries(),p));function p(v){var g=v.uid,m=l.set(g,s&&s.get(g)||(d=!0,ep({reset:hSe,onDirty:vSe})));m.context={model:v,overallProgress:f},m.agent=o,m.__block=f,a._pipe(v,m)}d&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},e.wrapStageHandler=function(t,r){return Se(t)&&(t={overallReset:t,seriesType:SSe(t)}),t.uid=nd("stageHandler"),r&&(t.visualType=r),t},e}();function dSe(e){e.overallReset(e.ecModel,e.api,e.payload)}function hSe(e){return e.overallProgress&&pSe}function pSe(){this.agent.dirty(),this.getDownstream().dirty()}function vSe(){this.agent&&this.agent.dirty()}function gSe(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function mSe(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=pt(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Z(t,function(r,n){return Vj(n)}):ySe}var ySe=Vj(0);function Vj(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a0&&h===u.length-d.length){var p=u.slice(0,h);p!=="data"&&(r.mainType=p,r[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,a,"name")&&c(u,a,"dataIndex")&&c(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,a));function c(f,d,h,p){return f[h]==null||d[p||h]===f[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),JT=["symbol","symbolSize","symbolRotate","symbolOffset"],_N=JT.concat(["symbolKeepAspect"]),CSe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o=0&&ru(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function eA(e,t,r){for(var n=t.type==="radial"?FSe(e,t,r):$Se(e,t,r),i=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:nt(e)?[e]:Y(e)?e:null}function iI(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&GSe(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=Z(r,function(a){return a/i}),n/=i)}return[r,n]}var HSe=new Wa(!0);function I0(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function wN(e){return typeof e=="string"&&e!=="none"}function P0(e){var t=e.fill;return t!=null&&t!=="none"}function CN(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function TN(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function tA(e,t,r){var n=kk(t.image,t.__image,r);if(Mx(n)){var i=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Xm),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function WSe(e,t,r,n){var i,a=I0(r),o=P0(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||HSe,f=t.__dirty;if(!n){var d=r.fill,h=r.stroke,p=o&&!!d.colorStops,v=a&&!!h.colorStops,g=o&&!!d.image,m=a&&!!h.image,y=void 0,x=void 0,S=void 0,_=void 0,b=void 0;(p||v)&&(b=t.getBoundingRect()),p&&(y=f?eA(e,d,b):t.__canvasFillGradient,t.__canvasFillGradient=y),v&&(x=f?eA(e,h,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=x),g&&(S=f||!t.__canvasFillPattern?tA(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=S),m&&(_=f||!t.__canvasStrokePattern?tA(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),p?e.fillStyle=y:g&&(S?e.fillStyle=S:o=!1),v?e.strokeStyle=x:m&&(_?e.strokeStyle=_:a=!1)}var w=t.getGlobalScale();c.setScale(w[0],w[1],t.segmentIgnoreThreshold);var C,A;e.setLineDash&&r.lineDash&&(i=iI(t),C=i[0],A=i[1]);var T=!0;(u||f&Ic)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),T=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),T&&c.rebuildPath(e,l?s:1),C&&(e.setLineDash(C),e.lineDashOffset=A),n||(r.strokeFirst?(a&&TN(e,r),o&&CN(e,r)):(o&&CN(e,r),a&&TN(e,r))),C&&e.setLineDash([])}function jSe(e,t,r){var n=t.__image=kk(r.image,t.__image,t,t.onload);if(!(!n||!Mx(n))){var i=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,c=r.sy||0;e.drawImage(n,u,c,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,c=r.sy,f=o-u,d=s-c;e.drawImage(n,u,c,f,d,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function USe(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||Os,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=iI(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(I0(r)&&e.strokeText(i,r.x,r.y),P0(r)&&e.fillText(i,r.x,r.y)):(P0(r)&&e.fillText(i,r.x,r.y),I0(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var AN=["shadowBlur","shadowOffsetX","shadowOffsetY"],MN=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Yj(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){_n(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?cu.opacity:o}(n||t.blend!==r.blend)&&(a||(_n(e,i),a=!0),e.globalCompositeOperation=t.blend||cu.blend);for(var s=0;s0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,i){if(!this[Wr]){if(this._disposed){this.id;return}var a,o,s;if(_e(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Wr]=!0,!this._model||n){var l=new lxe(this._api),u=this._theme,c=this._model=new hj;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},nA);var f={seriesTransition:s,optionChanged:!0};if(i)this[gn]={silent:a,updateParams:f},this[Wr]=!1,this.getZr().wakeUp();else{try{pc(this),Ho.update.call(this,null,f)}catch(d){throw this[gn]=null,this[Wr]=!1,d}this._ssr||this._zr.flush(),this[gn]=null,this[Wr]=!1,Fd.call(this,a),Vd.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||tt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(tt.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return R(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;R(n,function(l){i.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(a.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return R(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(aA[i]){var l=s,u=s,c=-s,f=-s,d=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();R(pf,function(x,S){if(x.group===i){var _=n?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(Te(r)),b=x.getDom().getBoundingClientRect();l=a(b.left,l),u=a(b.top,u),c=o(b.right,c),f=o(b.bottom,f),d.push({dom:_,left:b.left,top:b.top})}}),l*=h,u*=h,c*=h,f*=h;var p=c-l,v=f-u,g=Ns.createCanvas(),m=jE(g,{renderer:n?"svg":"canvas"});if(m.resize({width:p,height:v}),n){var y="";return R(d,function(x){var S=x.left-l,_=x.top-u;y+=''+x.dom+""}),m.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new Qe({shape:{x:0,y:0,width:p,height:v},style:{fill:r.connectedBackgroundColor}})),R(d,function(x){var S=new $r({style:{x:x.left*h-l,y:x.top*h-u,image:x.dom}});m.add(S)}),m.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return h_(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return h_(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Xh(i,r);return R(o,function(s,l){l.indexOf("Models")>=0&&R(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(a=a||f.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=Xh(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?nI(s,l,n):zv(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;R(ybe,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&tu(s,function(p){var v=ke(p);if(v&&v.dataIndex!=null){var g=v.dataModel||o.getSeriesByIndex(v.seriesIndex);return l=g&&g.getDataParams(v.dataIndex,v.dataType,s)||{},!0}else if(v.eventData)return l=q({},v.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&o.getComponent(c,f),h=d&&r[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:h},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),R(tp,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),R(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),ASe(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&FH(this.getDom(),sI,"");var n=this,i=n._api,a=n._model;R(n._componentsViews,function(o){o.dispose(a,i)}),R(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete pf[n.id]},t.prototype.resize=function(r){if(!this[Wr]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[gn]&&(a==null&&(a=this[gn].silent),i=!0,this[gn]=null),this[Wr]=!0;try{i&&pc(this),Ho.update.call(this,{type:"resize",animation:q({duration:0},r&&r.animation)})}catch(o){throw this[Wr]=!1,o}this[Wr]=!1,Fd.call(this,a),Vd.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(_e(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!iA[r]){var i=iA[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=q({},r);return n.type=tp[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(_e(n)||(n={silent:!!n}),!!R0[r.type]&&this._model){if(this[Wr]){this._pendingActions.push(r);return}var i=n.silent;v_.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&tt.browser.weChat&&this._throttledZrFlush(),Fd.call(this,i),Vd.call(this,i)}},t.prototype.updateLabelLayout=function(){zi.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){pc=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),d_(f,!0),d_(f,!1),d.plan()},d_=function(f,d){for(var h=f._model,p=f._scheduler,v=d?f._componentsViews:f._chartsViews,g=d?f._componentsMap:f._chartsMap,m=f._zr,y=f._api,x=0;xd.get("hoverLayerThreshold")&&!tt.node&&!tt.worker&&d.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=f._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(f,d){var h=f.get("blendMode")||null;d.eachRendered(function(p){p.isGroup||(p.style.blend=h)})}function s(f,d){if(!f.preventAutoZ){var h=f.get("z")||0,p=f.get("zlevel")||0;d.eachRendered(function(v){return l(v,h,p,-1/0),!0})}}function l(f,d,h,p){var v=f.getTextContent(),g=f.getTextGuideLine(),m=f.isGroup;if(m)for(var y=f.childrenRef(),x=0;x0?{duration:v,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(m){if(m.states&&m.states.emphasis){if(ff(m))return;if(m instanceof We&&D0e(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(p){m.stateTransition=g;var x=m.getTextContent(),S=m.getTextGuideLine();x&&(x.stateTransition=g),S&&(S.stateTransition=g)}m.__dirty&&i(m)}})}FN=function(f){return new(function(d){H(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(p){for(;p;){var v=p.__ecComponentInfo;if(v!=null)return f._model.getComponent(v.mainType,v.index);p=p.parent}},h.prototype.enterEmphasis=function(p,v){wo(p,v),Qn(f)},h.prototype.leaveEmphasis=function(p,v){Co(p,v),Qn(f)},h.prototype.enterBlur=function(p){lW(p),Qn(f)},h.prototype.leaveBlur=function(p){Rk(p),Qn(f)},h.prototype.enterSelect=function(p){uW(p),Qn(f)},h.prototype.leaveSelect=function(p){cW(p),Qn(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(p){return f.getViewOfComponentModel(p)},h.prototype.getViewOfSeriesModel=function(p){return f.getViewOfSeriesModel(p)},h}(pj))(f)},u9=function(f){function d(h,p){for(var v=0;v=0)){GN.push(r);var a=Wj.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function p9(e,t){iA[e]=t}function kbe(e,t,r){var n=nbe("registerMap");n&&n(e,t,r)}var Ibe=Nxe;Uu(aI,sSe);Uu(Ux,lSe);Uu(Ux,uSe);Uu(aI,CSe);Uu(Ux,TSe);Uu(n9,ebe);d9(gj);h9(obe,gxe);p9("default",cSe);Xa({type:fu,event:fu,update:fu},rr);Xa({type:iy,event:iy,update:iy},rr);Xa({type:Zh,event:Zh,update:Zh},rr);Xa({type:ay,event:ay,update:ay},rr);Xa({type:Kh,event:Kh,update:Kh},rr);lI("light",bSe);lI("dark",_Se);var HN=[],Pbe={registerPreprocessor:d9,registerProcessor:h9,registerPostInit:Cbe,registerPostUpdate:Tbe,registerUpdateLifecycle:uI,registerAction:Xa,registerCoordinateSystem:Abe,registerLayout:Mbe,registerVisual:Uu,registerTransform:Ibe,registerLoading:p9,registerMap:kbe,registerImpl:rbe,PRIORITY:vbe,ComponentModel:et,ComponentView:Ut,SeriesModel:zt,ChartView:Tt,registerComponentModel:function(e){et.registerClass(e)},registerComponentView:function(e){Ut.registerClass(e)},registerSeriesModel:function(e){zt.registerClass(e)},registerChartView:function(e){Tt.registerClass(e)},registerSubTypeDefaulter:function(e,t){et.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Zme(e,t)}};function Fe(e){if(Y(e)){R(e,function(t){Fe(t)});return}ze(HN,e)>=0||(HN.push(e),Se(e)&&(e={install:e}),e.install(Pbe))}function Gd(e){return e==null?0:e.length||1}function WN(e){return e}var Dbe=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||WN,this._newKeyGetter=i||WN,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},i=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),i[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(f>1)for(var h=0;h1)for(var s=0;s30}var Hd=_e,Wo=Z,Bbe=typeof Int32Array>"u"?Array:Int32Array,$be="e\0\0",jN=-1,Fbe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Vbe=["_approximateExtent"],UN,em,Wd,jd,y_,tm,x_,Gbe=function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;g9(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},c=0;c=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Pi;if(l&&!i.pure)for(var u=[],c=t;c0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[r];return a==null&&(a=this.getVisual(r),Y(a)?a=a.slice():Hd(a)&&(a=q({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Hd(r)?q(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Hd(t)?q(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?q(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;NT(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){R(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Wo(this.dimensions,this._getDimInfo,this),this.hostModel)),y_(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];Se(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(vk(arguments)))})},e.internalField=function(){UN=function(t){var r=t._invertedIndicesMap;R(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new Bbe(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),i[r]=l}}}(),e}();const un=Gbe;function Bv(e,t){Xk(e)||(e=Zk(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=ge(),a=[],o=Wbe(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&x9(o),l=n===e.dimensionsDefine,u=l?y9(e):m9(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=ge(c),d=new Mj(o),h=0;h0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function Wbe(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return R(t,function(a){var o;_e(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function jbe(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var Ube=function(){function e(t){this.coordSysDims=[],this.axisMap=ge(),this.categoryAxisMap=ge(),this.coordSysName=t}return e}();function qbe(e){var t=e.get("coordinateSystem"),r=new Ube(t),n=Ybe[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var Ybe={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",sr).models[0],a=e.getReferringComponents("yAxis",sr).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),vc(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),vc(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",sr).models[0];t.coordSysDims=["single"],r.set("single",i),vc(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",sr).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),vc(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),vc(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();R(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];r.set(c,u),vc(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function vc(e){return e.get("type")==="category"}function Xbe(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;Zbe(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(R(a,function(y,x){oe(y)&&(a[x]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!c&&y.type!=="ordinal"&&y.type!=="time"&&(!i||i===y.coordDim)&&(c=y))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,p=c.type,v=0;R(a,function(y){y.coordDim===h&&v++});var g={name:f,coordDim:h,coordDimIndex:v,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},m={name:d,coordDim:d,coordDimIndex:v+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(d,p),m.storeDimIndex=s.ensureCalculationDimension(f,p)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(a.push(g),a.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:d,stackResultDimension:f}}function Zbe(e){return!g9(e.schema)}function Fs(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function S9(e,t){return Fs(e,t)?e.getCalculationInfo("stackResultDimension"):t}function Kbe(e,t){var r=e.get("coordinateSystem"),n=Nv.get(r),i;return t&&t.coordSysDims&&(i=Z(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=E0(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function Qbe(e,t,r){var n,i;return r&&R(e,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function Ro(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=Zk(e)):(i=n.getSource(),a=i.sourceFormat===Pi);var o=qbe(t),s=Kbe(t,o),l=r.useEncodeDefaulter,u=Se(l)?l:l?Ie(lj,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=Bv(i,c),d=Qbe(f.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(f),p=Xbe(t,{schema:f,store:h}),v=new un(f,t);v.setCalculationInfo(p);var g=d!=null&&Jbe(i)?function(m,y,x,S){return S===d?x:this.defaultDimValueGetter(m,y,x,S)}:null;return v.hasItemOption=!1,v.initData(a?i:h,null,g),v}function Jbe(e){if(e.sourceFormat===Pi){var t=e_e(e.data||[]);return!Y(Qf(t))}}function e_e(e){for(var t=0;tr[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();Ax(b9);const Lo=b9;var t_e=0,r_e=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++t_e}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&Z(n,n_e);return new e({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!oe(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var i=this._getOrCreateMap();return r=i.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,i.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=ge(this.categories))},e}();function n_e(e){return _e(e)&&e.value!=null?e.value:e+""}const oA=r_e;function sA(e){return e.type==="interval"||e.type==="log"}function i_e(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=RH(a/t,!0);r!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=_9(o),l=i.niceTickExtent=[Xt(Math.ceil(e[0]/o)*o,s),Xt(Math.floor(e[1]/o)*o,s)];return a_e(l,e),i}function S_(e){var t=Math.pow(10,Ck(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Xt(r*t)}function _9(e){return Ta(e)+2}function qN(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function a_e(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),qN(e,0,t),qN(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function qx(e,t){return e>=t[0]&&e<=t[1]}function Yx(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Xx(e,t){return e*(t[1]-t[0])+t[0]}var w9=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new oA({})),Y(i)&&(i=new oA({categories:Z(i,function(a){return _e(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:oe(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),qx(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),Yx(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(Xx(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o=0&&r=0&&r=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Lo);Lo.registerClass(w9);const fI=w9;var Sl=Xt,C9=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return qx(r,this._extent)},t.prototype.normalize=function(r){return Yx(r,this._extent)},t.prototype.scale=function(r){return Xx(r,this._extent)},t.prototype.setExtent=function(r,n){var i=this._extent;isNaN(r)||(i[0]=parseFloat(r)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=_9(r)},t.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]l)return[];var c=s.length?s[s.length-1].value:a[1];return i[1]>c&&(r?s.push({value:Sl(c+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;oa[0]&&h0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function M9(e){var t=l_e(e),r=[];return R(e,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],c=Math.abs(o[1]-o[0]),f=a.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var h=n.getData();s=Math.abs(o[1]-o[0])/h.count()}var p=ne(n.get("barWidth"),s),v=ne(n.get("barMaxWidth"),s),g=ne(n.get("barMinWidth")||(R9(n)?.5:1),s),m=n.get("barGap"),y=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:p,barMaxWidth:v,barMinWidth:g,barGap:m,barCategoryGap:y,axisKey:hI(a),stackId:dI(n)})}),k9(r)}function k9(e){var t={};R(e,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=n.barMaxWidth;f&&(l[u].maxWidth=f);var d=n.barMinWidth;d&&(l[u].minWidth=d);var h=n.barGap;h!=null&&(s.gap=h);var p=n.barCategoryGap;p!=null&&(s.categoryGap=p)});var r={};return R(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Ye(a).length;s=Math.max(35-l*4,15)+"%"}var u=ne(s,o),c=ne(n.gap,1),f=n.remainedWidth,d=n.autoWidthCount,h=(f-u)/(d+(d-1)*c);h=Math.max(h,0),R(a,function(m){var y=m.maxWidth,x=m.minWidth;if(m.width){var S=m.width;y&&(S=Math.min(S,y)),x&&(S=Math.max(S,x)),m.width=S,f-=S+c*S,d--}else{var S=h;y&&yS&&(S=x),S!==h&&(m.width=S,f-=S+c*S,d--)}}),h=(f-u)/(d+(d-1)*c),h=Math.max(h,0);var p=0,v;R(a,function(m,y){m.width||(m.width=h),v=m,p+=m.width*(1+c)}),v&&(p-=v.width*c);var g=-p/2;R(a,function(m,y){r[i][y]=r[i][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+c)})}),r}function u_e(e,t,r){if(e&&t){var n=e[hI(t)];return n!=null&&r!=null?n[dI(r)]:n}}function I9(e,t){var r=A9(e,t),n=M9(r);R(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=dI(i),u=n[hI(s)][l],c=u.offset,f=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function P9(e){return{seriesType:e,plan:ld(),reset:function(t){if(D9(t)){var r=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=t.get("showBackground",!0),u=r.mapDimension(a.dim),c=r.getCalculationInfo("stackResultDimension"),f=Fs(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=a.isHorizontal(),h=c_e(i,a),p=R9(t),v=t.get("barMinHeight")||0,g=c&&r.getDimensionIndex(c),m=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(x,S){for(var _=x.count,b=p&&Ma(_*3),w=p&&l&&Ma(_*3),C=p&&Ma(_),A=n.master.getRect(),T=d?A.width:A.height,M,k=S.getStore(),I=0;(M=x.next())!=null;){var P=k.get(f?g:o,M),L=k.get(s,M),z=h,V=void 0;f&&(V=+P-k.get(o,M));var N=void 0,F=void 0,E=void 0,G=void 0;if(d){var j=n.dataToPoint([P,L]);if(f){var B=n.dataToPoint([V,L]);z=B[0]}N=z,F=j[1]+y,E=j[0]-z,G=m,Math.abs(E)>>1;e[i][1]i&&(this._approxInterval=i);var s=rm.length,l=Math.min(f_e(rm,this._approxInterval,0,s),s-1);this._interval=rm[l][1],this._minLevelUnit=rm[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return nt(r)?r:+Ha(r)},t.prototype.contain=function(r){return qx(this.parse(r),this._extent)},t.prototype.normalize=function(r){return Yx(this.parse(r),this._extent)},t.prototype.scale=function(r){return Xx(r,this._extent)},t.type="time",t}(Vs),rm=[["second",Gk],["minute",Hk],["hour",Jh],["quarter-day",Jh*6],["half-day",Jh*12],["day",vi*1.2],["half-week",vi*3.5],["week",vi*7],["month",vi*31],["quarter",vi*95],["half-year",zO/2],["year",zO]];function d_e(e,t,r,n){var i=Ha(t),a=Ha(r),o=function(p){return $O(i,p,n)===$O(a,p,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},d=function(){return f()&&o("second")},h=function(){return d()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return d();case"millisecond":return h()}}function h_e(e,t){return e/=vi,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function p_e(e){var t=30*vi;return e/=t,e>6?6:e>3?3:e>2?2:1}function v_e(e){return e/=Jh,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function YN(e,t){return e/=t?Hk:Gk,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function g_e(e){return RH(e,!0)}function m_e(e,t,r){var n=new Date(e);switch(df(t)){case"year":case"month":n[qW(r)](0);case"day":n[YW(r)](1);case"hour":n[XW(r)](0);case"minute":n[ZW(r)](0);case"second":n[KW(r)](0),n[QW(r)](0)}return n.getTime()}function y_e(e,t,r,n){var i=1e4,a=jW,o=0;function s(T,M,k,I,P,L,z){for(var V=new Date(M),N=M,F=V[I]();N1&&L===0&&k.unshift({value:k[0].value-N})}}for(var L=0;L=n[0]&&y<=n[1]&&f++)}var x=(n[1]-n[0])/t;if(f>x*1.5&&d>x/1.5||(u.push(g),f>x||e===a[h]))break}c=[]}}}for(var S=dt(Z(u,function(T){return dt(T,function(M){return M.value>=n[0]&&M.value<=n[1]&&!M.notAdd})}),function(T){return T.length>0}),_=[],b=S.length-1,h=0;h0;)a*=10;var s=[Xt(b_e(n[0]/a)*a),Xt(S_e(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){rp.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=Ei(r)/Ei(this.base),qx(r,this._extent)},t.prototype.normalize=function(r){return r=Ei(r)/Ei(this.base),Yx(r,this._extent)},t.prototype.scale=function(r){return r=Xx(r,this._extent),nm(this.base,r)},t.type="log",t}(Lo),O9=pI.prototype;O9.getMinorTicks=rp.getMinorTicks;O9.getLabel=rp.getLabel;function im(e,t){return x_e(e,Ta(t))}Lo.registerClass(pI);const __e=pI;var w_e=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,h=this._determinedMax;return d!=null&&(s=d,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,r){this[T_e[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=C_e[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),C_e={min:"_determinedMin",max:"_determinedMax"},T_e={min:"_dataMin",max:"_dataMax"};function N9(e,t,r){var n=e.rawExtentInfo;return n||(n=new w_e(e,t,r),e.rawExtentInfo=n,n)}function am(e,t){return t==null?null:Bp(t)?NaN:e.parse(t)}function z9(e,t){var r=e.type,n=N9(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&r==="time"){var s=A9("bar",o),l=!1;if(R(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=M9(s),c=A_e(i,a,t,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function A_e(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=u_e(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;R(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;R(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,f=1-(s+l)/a,d=c/f-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function Lf(e,t){var r=t,n=z9(e,r),i=n.extent,a=r.get("splitNumber");e instanceof __e&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),l=o==="interval"||o==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function Zx(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new fI({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new E9({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Lo.getClass(t)||Vs)}}function M_e(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function $v(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(n){return function(i,a){return e.scale.getFormattedLabel(i,a,n)}}(t):oe(t)?function(n){return function(i){var a=e.scale.getLabel(i),o=n.replace("{value}",a??"");return o}}(t):Se(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(vI(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function vI(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function k_e(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof fI?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=$v(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;ce[1]&&(e[1]=i[1])})}var Fv=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),D_e=1e-8;function ZN(e,t){return Math.abs(e-t)i&&(n=o,i=l)}if(n)return L_e(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return R(o,function(s){s.type==="polygon"?KN(s.exterior,i,a,r):R(s.points,function(l){KN(l,i,a,r)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new Ne(i[0],i[1],a[0]-i[0],a[1]-i[1]),r||(this._rect=n),n},t.prototype.contain=function(r){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(r[0],r[1]))return!1;e:for(var a=0,o=i.length;a>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,n.push([s/r,l/r])}return n}function N_e(e,t){return e=O_e(e),Z(dt(e.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,i=r.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new QN(o[0],o.slice(1)));break;case"MultiPolygon":R(i.coordinates,function(l){l[0]&&a.push(new QN(l[0],l.slice(1)))});break;case"LineString":a.push(new JN([i.coordinates]));break;case"MultiLineString":a.push(new JN(i.coordinates))}var s=new F9(n[t||"name"],a,n.cp);return s.properties=n,s})}var ev=Je();function z_e(e){return e.type==="category"?$_e(e):V_e(e)}function B_e(e,t){return e.type==="category"?F_e(e,t):{ticks:Z(e.scale.getTicks(),function(r){return r.value})}}function $_e(e){var t=e.getLabelModel(),r=G9(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function G9(e,t){var r=H9(e,"labels"),n=gI(t),i=W9(r,n);if(i)return i;var a,o;return Se(n)?a=q9(e,n):(o=n==="auto"?G_e(e):n,a=U9(e,o)),j9(r,n,{labels:a,labelCategoryInterval:o})}function F_e(e,t){var r=H9(e,"ticks"),n=gI(t),i=W9(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),Se(n))a=q9(e,n,!0);else if(n==="auto"){var s=G9(e,e.getLabelModel());o=s.labelCategoryInterval,a=Z(s.labels,function(l){return l.tickValue})}else o=n,a=U9(e,o,!0);return j9(r,n,{ticks:a,tickCategoryInterval:o})}function V_e(e){var t=e.scale.getTicks(),r=$v(e);return{labels:Z(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function H9(e,t){return ev(e)[t]||(ev(e)[t]=[])}function W9(e,t){for(var r=0;r40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(n)),f=Math.abs(u*Math.sin(n)),d=0,h=0;l<=a[1];l+=s){var p=0,v=0,g=Iv(r({value:l}),t.font,"center","top");p=g.width*1.3,v=g.height*1.3,d=Math.max(d,p,7),h=Math.max(h,v,7)}var m=d/c,y=h/f;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(m,y))),S=ev(e.model),_=e.getExtent(),b=S.lastAutoInterval,w=S.lastTickCount;return b!=null&&w!=null&&Math.abs(b-x)<=1&&Math.abs(w-o)<=1&&b>x&&S.axisExtent0===_[0]&&S.axisExtent1===_[1]?x=b:(S.lastTickCount=o,S.lastAutoInterval=x,S.axisExtent0=_[0],S.axisExtent1=_[1]),x}function W_e(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function U9(e,t,r){var n=$v(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=B9(e),d=o.get("showMinLabel")||f,h=o.get("showMaxLabel")||f;d&&u!==a[0]&&v(a[0]);for(var p=u;p<=a[1];p+=l)v(p);h&&p-l!==a[1]&&v(a[1]);function v(g){var m={value:g};s.push(r?g:{formattedLabel:n(m),rawLabel:i.getLabel(m),tickValue:g})}return s}function q9(e,t,r){var n=e.scale,i=$v(e),a=[];return R(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var ez=[0,1],j_e=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return t>=n&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return PH(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),tz(n,i.count())),ft(t,ez,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),tz(n,i.count()));var a=ft(t,n,ez,r);return this.scale.scale(a)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=B_e(this,r),i=n.ticks,a=Z(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return U_e(this,a,o,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=Z(n,function(a){return Z(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(){return z_e(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return H_e(this)},e}();function tz(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function U_e(e,t,r,n){var i=t.length;if(!e.onBand||r||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;R(t,function(h){h.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s},t.push(o)}var f=a[0]>a[1];d(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&d(a[0],t[0].coord)&&t.unshift({coord:a[0]}),d(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&d(o.coord,a[1])&&t.push({coord:a[1]});function d(h,p){return h=Xt(h),p=Xt(p),f?h>p:hi&&(i+=Ud);var h=Math.atan2(s,o);if(h<0&&(h+=Ud),h>=n&&h<=i||h+Ud>=n&&h+Ud<=i)return l[0]=c,l[1]=f,u-r;var p=r*Math.cos(n)+e,v=r*Math.sin(n)+t,g=r*Math.cos(i)+e,m=r*Math.sin(i)+t,y=(p-o)*(p-o)+(v-s)*(v-s),x=(g-o)*(g-o)+(m-s)*(m-s);return y0){t=t/180*Math.PI,Wi.fromArray(e[0]),bt.fromArray(e[1]),tr.fromArray(e[2]),Le.sub(ka,Wi,bt),Le.sub(Sa,tr,bt);var r=ka.len(),n=Sa.len();if(!(r<.001||n<.001)){ka.scale(1/r),Sa.scale(1/n);var i=ka.dot(Sa),a=Math.cos(t);if(a1&&Le.copy(an,tr),an.toArray(e[1])}}}}function Q_e(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,Wi.fromArray(e[0]),bt.fromArray(e[1]),tr.fromArray(e[2]),Le.sub(ka,bt,Wi),Le.sub(Sa,tr,bt);var n=ka.len(),i=Sa.len();if(!(n<.001||i<.001)){ka.scale(1/n),Sa.scale(1/i);var a=ka.dot(t),o=Math.cos(r);if(a=l)Le.copy(an,tr);else{an.scaleAndAdd(Sa,s/Math.tan(Math.PI/2-c));var f=tr.x!==bt.x?(an.x-bt.x)/(tr.x-bt.x):(an.y-bt.y)/(tr.y-bt.y);if(isNaN(f))return;f<0?Le.copy(an,bt):f>1&&Le.copy(an,tr)}an.toArray(e[1])}}}}function nz(e,t,r,n){var i=r==="normal",a=i?e:e.ensureState(r);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function J_e(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=os(n[0],n[1]),a=os(n[1],n[2]);if(!i||!a){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=Km([],n[1],n[0],o/i),l=Km([],n[1],n[2],o/a),u=Km([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c0&&a&&_(-c/o,0,o);var v=e[0],g=e[o-1],m,y;x(),m<0&&b(-m,.8),y<0&&b(y,.8),x(),S(m,y,1),S(y,m,-1),x(),m<0&&w(-m),y<0&&w(y);function x(){m=v.rect[t]-n,y=i-g.rect[t]-g.rect[r]}function S(C,A,T){if(C<0){var M=Math.min(A,-C);if(M>0){_(M*T,0,o);var k=M+C;k<0&&b(-k*T,1)}else b(-C*T,1)}}function _(C,A,T){C!==0&&(u=!0);for(var M=A;M0)for(var k=0;k0;k--){var z=T[k-1]*L;_(-z,k,o)}}}function w(C){var A=C<0?-1:1;C=Math.abs(C);for(var T=Math.ceil(C/(o-1)),M=0;M0?_(T,0,M+1):_(-T,o-M-1,o),C-=T,C<=0)return}return u}function ewe(e,t,r,n){return K9(e,"x","width",t,r,n)}function Q9(e,t,r,n){return K9(e,"y","height",t,r,n)}function J9(e){var t=[];e.sort(function(v,g){return g.priority-v.priority});var r=new Ne(0,0,0,0);function n(v){if(!v.ignore){var g=v.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}v.ignore=!0}for(var i=0;i=0&&n.attr(a.oldLayoutSelect),ze(d,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),at(n,u,r,l)}else if(n.attr(u),!rd(n).valueAnimation){var f=Ee(n.style.opacity,1);n.style.opacity=0,Lt(n,{style:{opacity:f}},r,l)}if(a.oldLayout=u,n.states.select){var h=a.oldLayoutSelect={};om(h,u,sm),om(h,n.states.select,sm)}if(n.states.emphasis){var p=a.oldLayoutEmphasis={};om(p,u,sm),om(p,n.states.emphasis,sm)}FW(n,l,c,r,r)}if(i&&!i.ignore&&!i.invisible){var a=nwe(i),o=a.oldLayout,v={points:i.shape.points};o?(i.attr({shape:o}),at(i,{shape:v},r)):(i.setShape(v),i.style.strokePercent=0,Lt(i,{style:{strokePercent:1}},r)),a.oldLayout=v}},e}();const awe=iwe;var C_=Je();function owe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=C_(r).labelManager;i||(i=C_(r).labelManager=new awe),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var i=C_(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}var T_=Math.sin,A_=Math.cos,e8=Math.PI,_l=Math.PI*2,swe=180/e8,lwe=function(){function e(){}return e.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},e.prototype.moveTo=function(t,r){this._add("M",t,r)},e.prototype.lineTo=function(t,r){this._add("L",t,r)},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){this._add("C",t,r,n,i,a,o)},e.prototype.quadraticCurveTo=function(t,r,n,i){this._add("Q",t,r,n,i)},e.prototype.arc=function(t,r,n,i,a,o){this.ellipse(t,r,n,n,0,i,a,o)},e.prototype.ellipse=function(t,r,n,i,a,o,s,l){var u=s-o,c=!l,f=Math.abs(u),d=fs(f-_l)||(c?u>=_l:-u>=_l),h=u>0?u%_l:u%_l+_l,p=!1;d?p=!0:fs(f)?p=!1:p=h>=e8==!!c;var v=t+n*A_(o),g=r+i*T_(o);this._start&&this._add("M",v,g);var m=Math.round(a*swe);if(d){var y=1/this._p,x=(c?1:-1)*(_l-y);this._add("A",n,i,m,1,+c,t+n*A_(o+x),r+i*T_(o+x)),y>.01&&this._add("A",n,i,m,0,+c,v,g)}else{var S=t+n*A_(s),_=r+i*T_(s);this._add("A",n,i,m,+p,+c,S,_)}},e.prototype.rect=function(t,r,n,i){this._add("M",t,r),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,r,n,i,a,o,s,l,u){for(var c=[],f=this._p,d=1;d"}function mwe(e){return""}function xI(e,t){t=t||{};var r=t.newline?` -`:"";function n(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return gwe(o,s)+(o!=="style"?xn(l):l||"")+(a?""+r+Z(a,function(u){return n(u)}).join(r)+r:"")+mwe(o)}return n(e)}function ywe(e,t,r){r=r||{};var n=r.newline?` -`:"",i=" {"+n,a=n+"}",o=Z(Ye(e),function(l){return l+i+Z(Ye(e[l]),function(u){return u+":"+e[l][u]+";"}).join(n)+a}).join(n),s=Z(Ye(t),function(l){return"@keyframes "+l+i+Z(Ye(t[l]),function(u){return u+i+Z(Ye(t[l][u]),function(c){var f=t[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":[""].join(n)}function cA(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function az(e,t,r,n){return yr("svg","root",{width:e,height:t,xmlns:r8,"xmlns:xlink":n8,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+e+" "+t:!1},r)}var oz={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"},Rl="transform-origin";function xwe(e,t,r){var n=q({},e.shape);q(n,t),e.buildPath(r,n);var i=new t8;return i.reset(xH(e)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function Swe(e,t){var r=t.originX,n=t.originY;(r||n)&&(e[Rl]=r+"px "+n+"px")}var bwe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function a8(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function _we(e,t,r){var n=e.shape.paths,i={},a,o;if(R(n,function(l){var u=cA(r.zrId);u.animation=!0,Kx(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=Ye(c),h=d.length;if(h){o=d[h-1];var p=c[o];for(var v in p){var g=p[v];i[v]=i[v]||{d:""},i[v].d+=g.d||""}for(var m in f){var y=f[m].animation;y.indexOf(o)>=0&&(a=y)}}}),!!a){t.d=!1;var s=a8(i,r);return a.replace(o,s)}}function sz(e){return oe(e)?oz[e]?"cubic-bezier("+oz[e]+")":Sk(e)?e:"":""}function Kx(e,t,r,n){var i=e.animators,a=i.length,o=[];if(e instanceof zk){var s=_we(e,t,r);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u0}).length){var ee=a8(w,r);return ee+" "+y[0]+" both"}}for(var g in l){var s=v(l[g]);s&&o.push(s)}if(o.length){var m=r.zrId+"-cls-"+r.cssClassIdx++;r.cssNodes["."+m]={animation:o.join(",")},t.class=m}}var tv=Math.round;function o8(e){return e&&oe(e.src)}function s8(e){return e&&Se(e.toDataURL)}function SI(e,t,r,n){hwe(function(i,a){var o=i==="fill"||i==="stroke";o&&yH(a)?u8(t,e,i,n):o&&bk(a)?c8(r,e,i,n):e[i]=a},t,r,!1),Iwe(r,e,n)}function lz(e){return fs(e[0]-1)&&fs(e[1])&&fs(e[2])&&fs(e[3]-1)}function wwe(e){return fs(e[4])&&fs(e[5])}function bI(e,t,r){if(t&&!(wwe(t)&&lz(t))){var n=r?10:1e4;e.transform=lz(t)?"translate("+tv(t[4]*n)/n+" "+tv(t[5]*n)/n+")":mme(t)}}function uz(e,t,r){for(var n=e.points,i=[],a=0;a"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";cn(d,g),cn(h,g)}else if(d==null||h==null){var m=function(T,M){if(T){var k=T.elm,I=d||M.width,P=h||M.height;T.tag==="pattern"&&(u?(P=1,I/=a.width):c&&(I=1,P/=a.height)),T.attrs.width=I,T.attrs.height=P,k&&(k.setAttribute("width",I),k.setAttribute("height",P))}},y=kk(p,null,e,function(T){l||m(b,T),m(f,T)});y&&y.width&&y.height&&(d=d||y.width,h=h||y.height)}f=yr("image","img",{href:p,width:d,height:h}),o.width=d,o.height=h}else i.svgElement&&(f=Te(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(f){var x,S;l?x=S=1:u?(S=1,x=o.width/a.width):c?(x=1,S=o.height/a.height):o.patternUnits="userSpaceOnUse",x!=null&&!isNaN(x)&&(o.width=x),S!=null&&!isNaN(S)&&(o.height=S);var _=SH(i);_&&(o.patternTransform=_);var b=yr("pattern","",o,[f]),w=xI(b),C=n.patternCache,A=C[w];A||(A=n.zrId+"-p"+n.patternIdx++,C[w]=A,o.id=A,b=n.defs[A]=yr("pattern",A,o,[f])),t[r]=Cx(A)}}function Pwe(e,t,r){var n=r.clipPathCache,i=r.defs,a=n[e.id];if(!a){a=r.zrId+"-c"+r.clipPathIdx++;var o={id:a};n[e.id]=a,i[a]=yr("clipPath",a,o,[l8(e,r)])}t["clip-path"]=Cx(a)}function dz(e){return document.createTextNode(e)}function Gl(e,t,r){e.insertBefore(t,r)}function hz(e,t){e.removeChild(t)}function pz(e,t){e.appendChild(t)}function f8(e){return e.parentNode}function d8(e){return e.nextSibling}function M_(e,t){e.textContent=t}var vz=58,Dwe=120,Rwe=yr("","");function fA(e){return e===void 0}function ha(e){return e!==void 0}function Lwe(e,t,r){for(var n={},i=t;i<=r;++i){var a=e[i].key;a!==void 0&&(n[a]=i)}return n}function Sh(e,t){var r=e.key===t.key,n=e.tag===t.tag;return n&&r}function rv(e){var t,r=e.children,n=e.tag;if(ha(n)){var i=e.elm=i8(n);if(_I(Rwe,e),Y(r))for(t=0;ta?(p=r[l+1]==null?null:r[l+1].elm,h8(e,p,r,i,l)):B0(e,t,n,a))}function Dc(e,t){var r=t.elm=e.elm,n=e.children,i=t.children;e!==t&&(_I(e,t),fA(t.text)?ha(n)&&ha(i)?n!==i&&Ewe(r,n,i):ha(i)?(ha(e.text)&&M_(r,""),h8(r,null,i,0,i.length-1)):ha(n)?B0(r,n,0,n.length-1):ha(e.text)&&M_(r,""):e.text!==t.text&&(ha(n)&&B0(r,n,0,n.length-1),M_(r,t.text)))}function Owe(e,t){if(Sh(e,t))Dc(e,t);else{var r=e.elm,n=f8(r);rv(t),n!==null&&(Gl(n,t.elm,d8(r)),B0(n,[e],0,0))}return t}var Nwe=0,zwe=function(){function e(t,r,n){if(this.type="svg",this.refreshHover=gz(),this.configLayer=gz(),this.storage=r,this._opts=n=q({},n),this.root=t,this._id="zr"+Nwe++,this._oldVNode=az(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=i8("svg");_I(null,this._oldVNode),i.appendChild(a),t.appendChild(i)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",Owe(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return fz(t,cA(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=cA(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress;var o=[],s=this._bgVNode=Bwe(n,i,this._backgroundColor,a);s&&o.push(s);var l=t.compress?null:this._mainVNode=yr("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=Z(Ye(a.defs),function(d){return a.defs[d]});if(u.length&&o.push(yr("defs","defs",{},u)),t.animation){var c=ywe(a.cssNodes,a.cssAnims,{newline:!0});if(c){var f=yr("style","stl",{},[],c);o.push(f)}}return az(n,i,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},xI(this.renderToVNode({animation:Ee(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Ee(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,r,n){for(var i=t.length,a=[],o=0,s,l,u=0,c=0;c=0&&!(d&&l&&d[v]===l[v]);v--);for(var g=p-1;g>v;g--)o--,s=a[o-1];for(var m=v+1;m=s)}}for(var f=this.__startIndex;f15)break}}P.prevElClipPaths&&m.restore()};if(y)if(y.length===0)C=g.__endIndex;else for(var T=h.dpr,M=0;M0&&t>i[0]){for(l=0;lt);l++);s=n[i[l]]}if(i.splice(l+1,0,t),n[t]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.__painter=this}},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,i=0;i0?lm:0),this._needsManuallyCompositing),c.__builtin__||hk("ZLevel "+u+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,r(l),a=c),i.__dirty&$n&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(f,d){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,R(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?Oe(n[t],r,!0):n[t]=r;for(var i=0;i-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(zt);const Xwe=Ywe;function Ef(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Df(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o=0&&n.push(t[a])}return n.join(" ")}var Zwe=function(e){H(t,e);function t(r,n,i,a){var o=e.call(this)||this;return o.updateData(r,n,i,a),o}return t.prototype._createSymbol=function(r,n,i,a,o){this.removeAll();var s=lr(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=Kwe,this._symbolType=r,this.add(s)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){wo(this.childAt(0))},t.prototype.downplay=function(){Co(this.childAt(0))},t.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},t.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},t.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),u=o!==this._symbolType,c=a&&a.disableAnimation;if(u){var f=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,f)}else{var d=this.childAt(0);d.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?d.attr(h):at(d,h,s,n),ea(d)}if(this._updateCommon(r,n,l,i,a),u){var d=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,Lt(d,h,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,c,f,d,h,p,v,g,m;if(a&&(u=a.emphasisItemStyle,c=a.blurItemStyle,f=a.selectItemStyle,d=a.focus,h=a.blurScope,v=a.labelStatesModels,g=a.hoverScale,m=a.cursorStyle,p=a.emphasisDisabled),!a||r.hasItemOption){var y=a&&a.itemModel?a.itemModel:r.getItemModel(n),x=y.getModel("emphasis");u=x.getModel("itemStyle").getItemStyle(),f=y.getModel(["select","itemStyle"]).getItemStyle(),c=y.getModel(["blur","itemStyle"]).getItemStyle(),d=x.get("focus"),h=x.get("blurScope"),p=x.get("disabled"),v=xr(y),g=x.getShallow("scale"),m=y.getShallow("cursor")}var S=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var _=ju(r.getItemVisual(n,"symbolOffset"),i);_&&(s.x=_[0],s.y=_[1]),m&&s.attr("cursor",m);var b=r.getItemVisual(n,"style"),w=b.fill;if(s instanceof $r){var C=s.style;s.useStyle(q({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},b))}else s.__isEmptyBrush?s.useStyle(q({},b)):s.useStyle(b),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var A=r.getItemVisual(n,"liftZ"),T=this._z2;A!=null?T==null&&(this._z2=s.z2,s.z2+=A):T!=null&&(s.z2=T,this._z2=null);var M=o&&o.useNameLabel;Br(s,v,{labelFetcher:l,labelDataIndex:n,defaultText:k,inheritColor:w,defaultOpacity:b.opacity});function k(L){return M?r.getName(L):Ef(r,L)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var I=s.ensureState("emphasis");I.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P,this.setSymbolScale(1),jt(this,d,h,p)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=ke(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&Bs(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Bs(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return cd(r.getItemVisual(n,"symbolSize"))},t}(Me);function Kwe(e,t){this.parent.drift(e,t)}const Vv=Zwe;function I_(e,t,r,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,"symbol")!=="none"}function xz(e){return e!=null&&!_e(e)&&(e={isIgnore:e}),e||{}}function Sz(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:xr(t),cursorStyle:t.get("cursor")}}var Qwe=function(){function e(t){this.group=new Me,this._SymbolCtor=t||Vv}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=xz(r);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=Sz(t),u={disableAnimation:s},c=r.getSymbolPoint||function(f){return t.getItemLayout(f)};a||n.removeAll(),t.diff(a).add(function(f){var d=c(f);if(I_(t,d,f,r)){var h=new o(t,f,l,u);h.setPosition(d),t.setItemGraphicEl(f,h),n.add(h)}}).update(function(f,d){var h=a.getItemGraphicEl(d),p=c(f);if(!I_(t,p,f,r)){n.remove(h);return}var v=t.getItemVisual(f,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==v)n.remove(h),h=new o(t,f,l,u),h.setPosition(p);else{h.updateData(t,f,l,u);var m={x:p[0],y:p[1]};s?h.attr(m):at(h,m,i)}n.add(h),t.setItemGraphicEl(f,h)}).remove(function(f){var d=a.getItemGraphicEl(f);d&&d.fadeOut(function(){n.remove(d)},i)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Sz(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=xz(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a0?r=n[0]:n[1]<0&&(r=n[1]),r}function g8(e,t,r,n){var i=NaN;e.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=r.get(e.baseDim,n),o[1-a]=i,t.dataToPoint(o)}function eCe(e,t){var r=[];return t.diff(e).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function tCe(e,t,r,n,i,a,o,s){for(var l=eCe(e,t),u=[],c=[],f=[],d=[],h=[],p=[],v=[],g=v8(i,t,o),m=e.getLayout("points")||[],y=t.getLayout("points")||[],x=0;x=i||v<0)break;if(vu(m,y)){if(l){v+=a;continue}break}if(v===r)e[a>0?"moveTo":"lineTo"](m,y),f=m,d=y;else{var x=m-u,S=y-c;if(x*x+S*S<.5){v+=a;continue}if(o>0){for(var _=v+a,b=t[_*2],w=t[_*2+1];b===m&&w===y&&g=n||vu(b,w))h=m,p=y;else{T=b-u,M=w-c;var P=m-u,L=b-m,z=y-c,V=w-y,N=void 0,F=void 0;if(s==="x"){N=Math.abs(P),F=Math.abs(L);var E=T>0?1:-1;h=m-E*N*o,p=y,k=m+E*F*o,I=y}else if(s==="y"){N=Math.abs(z),F=Math.abs(V);var G=M>0?1:-1;h=m,p=y-G*N*o,k=m,I=y+G*F*o}else N=Math.sqrt(P*P+z*z),F=Math.sqrt(L*L+V*V),A=F/(F+N),h=m-T*o*(1-A),p=y-M*o*(1-A),k=m+T*o*A,I=y+M*o*A,k=jo(k,Uo(b,m)),I=jo(I,Uo(w,y)),k=Uo(k,jo(b,m)),I=Uo(I,jo(w,y)),T=k-m,M=I-y,h=m-T*N/F,p=y-M*N/F,h=jo(h,Uo(u,m)),p=jo(p,Uo(c,y)),h=Uo(h,jo(u,m)),p=Uo(p,jo(c,y)),T=m-h,M=y-p,k=m+T*F/N,I=y+M*F/N}e.bezierCurveTo(f,d,h,p,m,y),f=k,d=I}else e.lineTo(m,y)}u=m,c=y,v+=a}return g}var m8=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),rCe=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new m8},t.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&vu(i[o*2-2],i[o*2-1]);o--);for(;a=0){var S=u?(p-l)*x+l:(h-s)*x+s;return u?[r,S]:[S,r]}s=h,l=p;break;case o.C:h=a[f++],p=a[f++],v=a[f++],g=a[f++],m=a[f++],y=a[f++];var _=u?f0(s,h,v,m,r,c):f0(l,p,g,y,r,c);if(_>0)for(var b=0;b<_;b++){var w=c[b];if(w<=1&&w>=0){var S=u?gr(l,p,g,y,w):gr(s,h,v,m,w);return u?[r,S]:[S,r]}}s=m,l=y;break}}},t}(We),nCe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(m8),y8=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new nCe},t.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&vu(i[s*2-2],i[s*2-1]);s--);for(;ot){a?r.push(o(a,l,t)):i&&r.push(o(i,l,0),o(i,l,t));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function oCe(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())&&t.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=e.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=t.getAxis(i),u=Z(a.stops,function(x){return{coord:l.toGlobalCoord(l.dataToCoord(x.value)),color:x.color}}),c=u.length,f=a.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=aCe(u,i==="x"?r.getWidth():r.getHeight()),h=d.length;if(!h&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var p=10,v=d[0].coord-p,g=d[h-1].coord+p,m=g-v;if(m<.001)return"transparent";R(d,function(x){x.offset=(x.coord-v)/m}),d.push({offset:h?d[h-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:h?d[0].offset:.5,color:f[0]||"transparent"});var y=new Rv(0,0,0,0,d,!0);return y[i]=v,y[i+"2"]=g,y}}}function sCe(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&lCe(a,t))){var o=t.mapDimension(a.dim),s={};return R(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function lCe(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;on)return!1;return!0}function uCe(e,t){return isNaN(e)||isNaN(t)}function cCe(e){for(var t=e.length/2;t>0&&uCe(e[t*2-2],e[t*2-1]);t--);return t-1}function Tz(e,t){return[e[t*2],e[t*2+1]]}function fCe(e,t,r){for(var n=e.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function b8(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var E=v.getState("emphasis").style;E.lineWidth=+v.style.lineWidth+1}ke(v).seriesIndex=r.seriesIndex,jt(v,V,N,F);var G=Cz(r.get("smooth")),j=r.get("smoothMonotone");if(v.setShape({smooth:G,smoothMonotone:j,connectNulls:C}),g){var B=l.getCalculationInfo("stackedOnSeries"),U=0;g.useStyle(be(c.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),B&&(U=Cz(B.get("smooth"))),g.setShape({smooth:G,stackedOnSmooth:U,smoothMonotone:j,connectNulls:C}),zr(g,r,"areaStyle"),ke(g).seriesIndex=r.seriesIndex,jt(g,V,N,F)}var X=function(W){a._changePolyState(W)};l.eachItemGraphicEl(function(W){W&&(W.onHoverStateChange=X)}),this._polyline.onHoverStateChange=X,this._data=l,this._coordSys=o,this._stackedOnPoints=b,this._points=f,this._step=M,this._valueOrigin=S,r.get("triggerLineEvent")&&(this.packEventData(r,v),g&&this.packEventData(r,g))},t.prototype.packEventData=function(r,n){ke(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=Mu(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var d=r.get("zlevel")||0,h=r.get("z")||0;u=new Vv(o,s),u.x=c,u.y=f,u.setZ(d,h);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=d,p.z=h,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Tt.prototype.highlight.call(this,r,n,i,a)},t.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=Mu(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Tt.prototype.downplay.call(this,r,n,i,a)},t.prototype._changePolyState=function(r){var n=this._polygon;x0(this._polyline,r),n&&x0(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new rCe({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new y8({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,c=u.get("animationDuration");Se(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=Se(f)?f(null):f;r.eachItemGraphicEl(function(h,p){var v=h;if(v){var g=[h.x,h.y],m=void 0,y=void 0,x=void 0;if(i)if(o){var S=i,_=n.pointToCoord(g);a?(m=S.startAngle,y=S.endAngle,x=-_[1]/180*Math.PI):(m=S.r0,y=S.r,x=_[0])}else{var b=i;a?(m=b.x,y=b.x+b.width,x=h.x):(m=b.y+b.height,y=b.y,x=h.y)}var w=y===m?0:(x-m)/(y-m);l&&(w=1-w);var C=Se(f)?f(p):c*w+d,A=v.getSymbolPath(),T=A.getTextContent();v.attr({scaleX:0,scaleY:0}),v.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),T&&T.animateFrom({style:{opacity:0}},{duration:300,delay:C}),A.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(b8(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 rt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=cCe(l);c>=0&&(Br(s,xr(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?p8(o,h):Ef(o,f)},enableTextSetter:!0},dCe(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,c=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var f=i.getLayout("points"),d=i.hostModel,h=d.get("connectNulls"),p=s.get("precision"),v=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,x=n.shape,S=y?m?x.x:x.y+x.height:m?x.x+x.width:x.y,_=(m?v:0)*(y?-1:1),b=(m?0:-v)*(y?-1:1),w=m?"x":"y",C=fCe(f,S,w),A=C.range,T=A[1]-A[0],M=void 0;if(T>=1){if(T>1&&!h){var k=Tz(f,A[0]);u.attr({x:k[0]+_,y:k[1]+b}),o&&(M=d.getRawValue(A[0]))}else{var k=c.getPointOn(S,w);k&&u.attr({x:k[0]+_,y:k[1]+b});var I=d.getRawValue(A[0]),P=d.getRawValue(A[1]);o&&(M=VH(i,p,I,P,C.t))}a.lastFrameIndex=A[0]}else{var L=r===1||a.lastFrameIndex>0?A[0]:0,k=Tz(f,L);o&&(M=d.getRawValue(L)),u.attr({x:k[0]+_,y:k[1]+b})}if(o){var z=rd(u);typeof z.setLabelText=="function"&&z.setLabelText(M)}}},t.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,c=this._polygon,f=r.hostModel,d=tCe(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),h=d.current,p=d.stackedOnCurrent,v=d.next,g=d.stackedOnNext;if(o&&(h=qo(d.current,i,o,l),p=qo(d.stackedOnCurrent,i,o,l),v=qo(d.next,i,o,l),g=qo(d.stackedOnNext,i,o,l)),wz(h,v)>3e3||c&&wz(p,g)>3e3){u.stopAnimation(),u.setShape({points:v}),c&&(c.stopAnimation(),c.setShape({points:v,stackedOnPoints:g}));return}u.shape.__points=d.current,u.shape.points=h;var m={shape:{points:v}};d.current!==h&&(m.shape.__points=d.next),u.stopAnimation(),at(u,m,f),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),at(c,{shape:{stackedOnPoints:g}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var y=[],x=d.status,S=0;St&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=n.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),h=Math.round(s/d);if(isFinite(h)&&h>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/h));var p=void 0;oe(a)?p=vCe[a]:Se(a)&&(p=a),p&&t.setData(i.downSample(i.mapDimension(u.dim),1/h,p,gCe))}}}}}function mCe(e){e.registerChartView(pCe),e.registerSeriesModel(Xwe),e.registerLayout(Hv("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,_8("line"))}var w8=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return Ro(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(i)R(a.getAxes(),function(d,h){if(d.type==="category"&&n!=null){var p=d.getTicksCoords(),v=o[h],g=n[h]==="x1"||n[h]==="y1";if(g&&(v+=1),p.length<2)return;if(p.length===2){s[h]=d.toGlobalCoord(d.getExtent()[g?1:0]);return}for(var m=void 0,y=void 0,x=1,S=0;Sv){y=(_+m)/2;break}S===1&&(x=b-p[0].tickValue)}y==null&&(m?m&&(y=p[p.length-1].coord):y=p[0].coord),s[h]=d.toGlobalCoord(y)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=a.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(zt);zt.registerClass(w8);const $0=w8;var yCe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return Ro(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},t.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Qs($0.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}($0);const xCe=yCe;var SCe=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),bCe=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new SCe},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,f=n.endAngle,d=n.clockwise,h=Math.PI*2,p=d?f-cMath.PI/2&&cs)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Up(a,r,ke(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Tt),Az={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=D_(t.x,e.x),s=R_(t.x+t.width,i),l=D_(t.y,e.y),u=R_(t.y+t.height,a),c=si?s:o,t.y=f&&l>a?u:l,t.width=c?0:s-o,t.height=f?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var i=R_(t.r,e.r),a=D_(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},Mz={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new Qe({shape:q({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var c=u.shape,f=i?"height":"width";c[f]=0}return u},polar:function(e,t,r,n,i,a,o,s,l){var u=!i&&l?F0:Dn,c=new u({shape:n,z2:1});c.name="item";var f=C8(i);if(c.calculateTextPosition=_Ce(f,{isRoundCap:u===F0}),a){var d=c.shape,h=i?"r":"endAngle",p={};d[h]=i?n.r0:n.startAngle,p[h]=n[h],(s?at:Lt)(c,{shape:p},a)}return c}};function ACe(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function kz(e,t,r,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?at:Lt)(r,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(o?at:Lt)(r,{shape:u},c,i)}function Iz(e,t){for(var r=0;r0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function ICe(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function C8(e){return function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(e)}function Dz(e,t,r,n,i,a,o,s){var l=t.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var c=e.shape,f=iu(n.getModel("itemStyle"),c,!0);q(c,f),e.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var d=n.getShallow("cursor");d&&e.attr("cursor",d);var h=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",p=xr(n);Br(e,p,{labelFetcher:a,labelDataIndex:r,defaultText:Ef(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var v=e.getTextContent();if(s&&v){var g=n.get(["label","position"]);e.textConfig.inside=g==="middle"?!0:null,wCe(e,g==="outside"?h:g,C8(o),n.get(["label","rotate"]))}$W(v,p,a.getRawValue(r),function(y){return p8(t,y)});var m=n.getModel(["emphasis"]);jt(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),zr(e,n),ICe(i)&&(e.style.fill="none",e.style.stroke="none",R(e.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function PCe(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var DCe=function(){function e(){}return e}(),Rz=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new DCe},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?r:null},30,!1);function RCe(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=a.length/3;c=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function T8(e,t,r){if(qu(r,"cartesian2d")){var n=t,i=r.getArea();return{x:e?n.x:i.x,y:e?i.y:n.y,width:e?n.width:i.width,height:e?i.height:n.height}}else{var i=r.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function LCe(e,t,r){var n=e.type==="polar"?Dn:Qe;return new n({shape:T8(t,r,e),silent:!0,z2:0})}const ECe=TCe;function OCe(e){e.registerChartView(ECe),e.registerSeriesModel(xCe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Ie(I9,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,P9("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,_8("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var dm=Math.PI*2,Oz=Math.PI/180;function A8(e,t){return pr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function M8(e,t){var r=A8(e,t),n=e.get("center"),i=e.get("radius");Y(i)||(i=[0,i]);var a=ne(r.width,t.getWidth()),o=ne(r.height,t.getHeight()),s=Math.min(a,o),l=ne(i[0],s/2),u=ne(i[1],s/2),c,f,d=e.coordinateSystem;if(d){var h=d.dataToPoint(n);c=h[0]||0,f=h[1]||0}else Y(n)||(n=[n,n]),c=ne(n[0],a)+r.x,f=ne(n[1],o)+r.y;return{cx:c,cy:f,r0:l,r:u}}function NCe(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=A8(n,r),s=M8(n,r),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-n.get("startAngle")*Oz,h=n.get("minAngle")*Oz,p=0;i.each(a,function(T){!isNaN(T)&&p++});var v=i.getSum(a),g=Math.PI/(v||p)*2,m=n.get("clockwise"),y=n.get("roseType"),x=n.get("stillShowZeroSum"),S=i.getDataExtent(a);S[0]=0;var _=dm,b=0,w=d,C=m?1:-1;if(i.setLayout({viewRect:o,r:c}),i.each(a,function(T,M){var k;if(isNaN(T)){i.setItemLayout(M,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:l,cy:u,r0:f,r:y?NaN:c});return}y!=="area"?k=v===0&&x?g:T*g:k=dm/p,kr?m:g,_=Math.abs(x.label.y-r);if(_>=S.maxY){var b=x.label.x-t-x.len2*i,w=n+x.len,C=Math.abs(b)e.unconstrainedWidth?null:h:null;n.setStyle("width",p)}var v=n.getBoundingRect();a.width=v.width;var g=(n.style.margin||0)+2.1;a.height=v.height+g,a.y-=(a.height-f)/2}}}function L_(e){return e.position==="center"}function $Ce(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*zCe,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function h(b){b.ignore=!0}function p(b){if(!b.ignore)return!0;for(var w in b.states)if(b.states[w].ignore===!1)return!0;return!1}t.each(function(b){var w=t.getItemGraphicEl(b),C=w.shape,A=w.getTextContent(),T=w.getTextGuideLine(),M=t.getItemModel(b),k=M.getModel("label"),I=k.get("position")||M.get(["emphasis","label","position"]),P=k.get("distanceToLabelLine"),L=k.get("alignTo"),z=ne(k.get("edgeDistance"),u),V=k.get("bleedMargin"),N=M.getModel("labelLine"),F=N.get("length");F=ne(F,u);var E=N.get("length2");if(E=ne(E,u),Math.abs(C.endAngle-C.startAngle)0?"right":"left":j>0?"left":"right"}var Pe=Math.PI,Xe=0,qe=k.get("rotate");if(nt(qe))Xe=qe*(Pe/180);else if(I==="center")Xe=0;else if(qe==="radial"||qe===!0){var ot=j<0?-G+Pe:-G;Xe=ot}else if(qe==="tangential"&&I!=="outside"&&I!=="outer"){var st=Math.atan2(j,B);st<0&&(st=Pe*2+st);var kt=B>0;kt&&(st=Pe+st),Xe=st-Pe}if(a=!!Xe,A.x=U,A.y=X,A.rotation=Xe,A.setStyle({verticalAlign:"middle"}),te){A.setStyle({align:ee});var qt=A.states.select;qt&&(qt.x+=A.x,qt.y+=A.y)}else{var $e=A.getBoundingRect().clone();$e.applyTransform(A.getComputedTransform());var It=(A.style.margin||0)+2.1;$e.y-=It/2,$e.height+=It,r.push({label:A,labelLine:T,position:I,len:F,len2:E,minTurnAngle:N.get("minTurnAngle"),maxSurfaceAngle:N.get("maxSurfaceAngle"),surfaceNormal:new Le(j,B),linePoints:W,textAlign:ee,labelDistance:P,labelAlignTo:L,edgeDistance:z,bleedMargin:V,rect:$e,unconstrainedWidth:$e.width,labelStyleWidth:A.style.width})}w.setTextConfig({inside:te})}}),!a&&e.get("avoidLabelOverlap")&&BCe(r,n,i,l,u,d,c,f);for(var v=0;v0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f=a.r0}},t.type="pie",t}(Tt);const GCe=VCe;function fd(e,t,r){t=Y(t)&&{coordDimensions:t}||q({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=Bv(n,t).dimensions,a=new un(i,e);return a.initData(n,r),a}var HCe=function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e}();const jv=HCe;var WCe=Je(),jCe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new jv(ce(this.getData,this),ce(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return fd(this,{coordDimensions:["value"],encodeDefaulter:Ie(Uk,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=WCe(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=Jme(o,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){Au(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(zt);const UCe=jCe;function qCe(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(nt(o)&&!isNaN(o)&&o<0)})}}}function YCe(e){e.registerChartView(GCe),e.registerSeriesModel(UCe),qj("pie",e.registerAction),e.registerLayout(Ie(NCe,"pie")),e.registerProcessor(Wv("pie")),e.registerProcessor(qCe("pie"))}var XCe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r,n){return Ro(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(r,n,i){return i.point(n.getItemLayout(r))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(zt);const ZCe=XCe;var I8=4,KCe=function(){function e(){}return e}(),QCe=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new KCe},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(r,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&a[0]=0;u--){var c=u*2,f=a[c]-s/2,d=a[c+1]-l/2;if(r>=f&&n>=d&&r<=f+s&&n<=d+l)return u}return-1},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.points,a=n.size,o=a[0],s=a[1],l=1/0,u=1/0,c=-1/0,f=-1/0,d=0;d=0&&(u.dataIndex=f+(t.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const eTe=JCe;var tTe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.updateData(a,{clipShape:this._getClipShape(r)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.incrementalPrepareUpdate(a),this._finished=!1},t.prototype.incrementalRender=function(r,n,i){this._symbolDraw.incrementalUpdate(r,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=r.end===n.getData().count()},t.prototype.updateTransform=function(r,n,i){var a=r.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=Hv("").reset(r,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},t.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},t.prototype._getClipShape=function(r){var n=r.coordinateSystem,i=n&&n.getArea&&n.getArea();return r.get("clip",!0)?i:null},t.prototype._updateSymbolDraw=function(r,n){var i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new eTe:new Gv,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Tt);const rTe=tTe;var nTe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(et);const iTe=nTe;var hA=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",sr).models[0]},t.type="cartesian2dAxis",t}(et);ur(hA,Fv);var P8={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},aTe=Oe({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},P8),wI=Oe({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},P8),oTe=Oe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},wI),sTe=be({logBase:10},wI);const D8={category:aTe,value:wI,time:oTe,log:sTe};var lTe={value:1,category:1,time:1,log:1};function Of(e,t,r,n){R(lTe,function(i,a){var o=Oe(Oe({},D8[a],!0),n,!0),s=function(l){H(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+a,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=Xp(this),h=d?ad(c):{},p=f.getTheme();Oe(c,p.get(a+"Axis")),Oe(c,this.getDefaultOption()),c.type=zz(c),d&&$s(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=oA.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",zz)}function zz(e){return e.type||(e.data?"category":"value")}var uTe=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return Z(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),dt(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e}();const cTe=uTe;var pA=["x","y"];function Bz(e){return e.type==="interval"||e.type==="time"}var fTe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=pA,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!Bz(r)||!Bz(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,d=o[0]-i[0]*c,h=o[1]-a[0]*f,p=this._transform=[c,0,0,f,d,h];this._invTransform=Kf([],p)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new Ne(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Er(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},t.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n){var i=[];if(this._invTransform)return Er(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(){var r=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(r[0],r[1]),a=Math.min(n[0],n[1]),o=Math.max(r[0],r[1])-i,s=Math.max(n[0],n[1])-a;return new Ne(i,a,o,s)},t}(cTe),dTe=function(e){H(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(ra);const hTe=dTe;function vA(e,t,r){r=r||{};var n=e.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,c=n.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,p=u==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(o){var v=o.toGlobalCoord(o.dataToCoord(0));p[d.onZero]=Math.max(Math.min(v,p[1]),p[0])}a.position=[u==="y"?p[d[l]]:f[0],u==="x"?p[d[l]]:f[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?p[d[s]]-p[d.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Cr(r.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var m=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-m:m,a.z2=1,a}function $z(e){return e.get("coordinateSystem")==="cartesian2d"}function Fz(e){var t={xAxisModel:null,yAxisModel:null};return R(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,sr).models[0];t[n]=a}),t}var E_=Math.log;function R8(e,t,r){var n=Vs.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=z9(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=E_(e.base);u=[E_(u[0])/d,E_(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var h=n.getExtent.call(e);c&&(u[0]=h[0]),f&&(u[1]=h[1]);var p=n.getInterval.call(e),v=u[0],g=u[1];if(c&&f)p=(g-v)/o;else if(c)for(g=u[0]+p*o;gu[0]&&isFinite(v)&&isFinite(u[0]);)p=S_(p),v=u[1]-p*o;else{var m=e.getTicks().length-1;m>o&&(p=S_(p));var y=p*o;g=Math.ceil(u[1]/p)*p,v=Xt(g-y),v<0&&u[0]>=0?(v=0,g=Xt(y)):g>0&&u[1]<=0&&(g=0,v=-Xt(y))}var x=(i[0].value-a[0].value)/s,S=(i[o].value-a[o].value)/s;n.setExtent.call(e,v+p*x,g+p*S),n.setInterval.call(e,p),(x||S)&&n.setNiceExtent.call(e,v+p,g-p)}var pTe=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=pA,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=Ye(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],h=o[d],p=h.model,v=h.scale;sA(v)&&p.get("alignTicks")&&p.get("interval")==null?c.push(h):(Lf(v,p),sA(v)&&(s=h))}c.length&&(s||(s=c.pop(),Lf(s.scale,s.model)),R(c,function(g){R8(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};R(n.x,function(o){Vz(n,"y",o,a)}),R(n.y,function(o){Vz(n,"x",o,a)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=pr(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(R(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=k_e(u);if(c){var f=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+d,u.position==="top"?o.y+=c.height+d:u.position==="left"&&(o.x+=c.width+d)}}}),l()),R(this._coordsList,function(u){u.calcAffineTransform()});function l(){R(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],d=u.inverse?1:0;u.setExtent(f[d],f[1-d]),vTe(u,c?o.x:o.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}_e(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):m0(i-ds)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),Hz={axisLine:function(e,t,r,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(Er(s,s,o),Er(l,l,o));var c=q({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new Tr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});Pf(f.shape,f.style.lineWidth),f.anid="line",r.add(f);var d=t.get(["axisLine","symbol"]);if(d!=null){var h=t.get(["axisLine","symbolSize"]);oe(d)&&(d=[d,d]),(oe(h)||nt(h))&&(h=[h,h]);var p=ju(t.get(["axisLine","symbolOffset"])||0,h),v=h[0],g=h[1];R([{rotate:e.rotation+Math.PI/2,offset:p[0],r:0},{rotate:e.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(d[y]!=="none"&&d[y]!=null){var x=lr(d[y],-v/2,-g/2,v,g,c.stroke,!0),S=m.r+m.offset,_=u?l:s;x.attr({rotation:m.rotate,x:_[0]+S*Math.cos(e.rotation),y:_[1]-S*Math.sin(e.rotation),silent:!0,z2:11}),r.add(x)}})}}},axisTickLabel:function(e,t,r,n){var i=xTe(r,n,t,e),a=bTe(r,n,t,e);if(yTe(t,a,i),STe(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=Z9(Z(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));J9(o)}},axisName:function(e,t,r,n){var i=Cr(e.axisName,t.get("name"));if(i){var a=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[a==="start"?u[0]-c*l:a==="end"?u[1]+c*l:(u[0]+u[1])/2,jz(a)?e.labelOffset+o*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*ds/180);var p;jz(a)?d=gu.innerTextLayout(e.rotation,h??e.rotation,o):(d=mTe(e.rotation,a,h||0,u),p=e.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(d.rotation)),!isFinite(p)&&(p=null)));var v=s.getFont(),g=t.get("nameTruncate",!0)||{},m=g.ellipsis,y=Cr(e.nameTruncateMaxWidth,g.maxWidth,p),x=new rt({x:f[0],y:f[1],rotation:d.rotation,silent:gu.isLabelSilent(t),style:_t(s,{text:i,font:v,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(td({el:x,componentModel:t,itemName:i}),x.__fullText=i,x.anid="name",t.get("triggerEvent")){var S=gu.makeAxisEventDataBase(t);S.targetType="axisName",S.name=i,ke(x).eventData=S}n.add(x),x.updateTransform(),r.add(x),x.decomposeTransform()}}};function mTe(e,t,r,n){var i=DH(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return m0(i-ds/2)?(o=l?"bottom":"top",a="center"):m0(i-ds*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",ids/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function yTe(e,t,r){if(!B9(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=r[0],c=r[1],f=r[r.length-1],d=r[r.length-2];n===!1?(Jn(a),Jn(u)):Wz(a,o)&&(n?(Jn(o),Jn(c)):(Jn(a),Jn(u))),i===!1?(Jn(s),Jn(f)):Wz(l,s)&&(i?(Jn(l),Jn(d)):(Jn(s),Jn(f)))}}function Jn(e){e&&(e.ignore=!0)}function Wz(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=_x([]);return Hu(i,i,-e.rotation),r.applyTransform(co([],i,e.getLocalTransform())),n.applyTransform(co([],i,t.getLocalTransform())),r.intersect(n)}}function jz(e){return e==="middle"||e==="center"}function L8(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l=0||e===t}function MTe(e){var t=CI(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=gA(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var v=l;p.color!=null&&(v=be({color:p.color},l));var g=Oe(Te(p),{boundaryGap:r,splitNumber:n,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:v,triggerEvent:d},!1);if(oe(c)){var m=g.name;g.name=c.replace("{value}",m??"")}else Se(c)&&(g.name=c(g.name,g));var y=new wt(g,null,this.ecModel);return ur(y,Fv.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y},this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Oe({lineStyle:{color:"#bbb"}},qd.axisLine),axisLabel:hm(qd.axisLabel,!1),axisTick:hm(qd.axisTick,!1),splitLine:hm(qd.splitLine,!0),splitArea:hm(qd.splitArea,!0),indicator:[]},t}(et);const HTe=GTe;var WTe=["axisLine","axisTickLabel","axisName"],jTe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=this.group;a.removeAll(),this._buildAxes(r),this._buildSplitLineAndArea(r)},t.prototype._buildAxes=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes(),a=Z(i,function(o){var s=o.model.get("showName")?o.name:"",l=new Ao(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});R(a,function(o){R(WTe,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var a=r.get("shape"),o=r.getModel("splitLine"),s=r.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),f=s.get("show"),d=l.get("color"),h=u.get("color"),p=Y(d)?d:[d],v=Y(h)?h:[h],g=[],m=[];function y(L,z,V){var N=V%z.length;return L[N]=L[N]||[],N}if(a==="circle")for(var x=i[0].getTicksCoords(),S=n.cx,_=n.cy,b=0;b3?1.4:o>1?1.2:1.1,c=a>0?u:1/u;z_(this,"zoom","zoomOnMouseWheel",r,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(i){var f=Math.abs(a),d=(a>0?1:-1)*(f>3?.4:f>1?.15:.05);z_(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!Kz(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;z_(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(Ii);function z_(e,t,r,n,i){e.pointerChecker&&e.pointerChecker(n,i.originX,i.originY)&&(bo(n.event),$8(e,t,r,n,i))}function $8(e,t,r,n,i){i.isAvailableBehavior=ce(fy,null,r,n),e.trigger(t,i)}function fy(e,t,r){var n=r[e];return!e||n&&(!oe(n)||t.event[n+"Key"])}const Uv=tAe;function AI(e,t,r){var n=e.target;n.x+=t,n.y+=r,n.dirty()}function MI(e,t,r,n){var i=e.target,a=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/e.zoom;e.zoom=o,i.x-=(r-i.x)*(u-1),i.y-=(n-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var rAe={axisPointer:1,tooltip:1,brush:1};function Jx(e,t,r){var n=t.getComponentByElement(e.topTarget),i=n&&n.coordinateSystem;return n&&n!==r&&!rAe.hasOwnProperty(n.mainType)&&i&&i.model!==r}function F8(e){if(oe(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var r=e;for(r.nodeType===9&&(r=r.firstChild);r.nodeName.toLowerCase()!=="svg"||r.nodeType!==1;)r=r.nextSibling;return r}var B_,V0={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"},Qz=Ye(V0),G0={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Jz=Ye(G0),nAe=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,r){r=r||{};var n=F8(t);this._defsUsePending=[];var i=new Me;this._root=i;var a=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||r.width),l=parseFloat(n.getAttribute("height")||r.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),On(n,i,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;oAe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var d=eS(o);d.length>=4&&(c={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(c&&s!=null&&l!=null&&(f=G8(c,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var h=i;i=new Me,i.add(h),h.scaleX=h.scaleY=f.scale,h.x=f.x,h.y=f.y}return!r.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new Qe({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:a}},e.prototype._parseNode=function(t,r,n,i,a,o){var s=t.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(a=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=r;else{if(!a){var c=B_[s];if(c&&fe(B_,s)){l=c.call(this,t,r);var f=t.getAttribute("name");if(f){var d={name:f,namedFrom:null,svgNodeTagLower:s,el:l};n.push(d),s==="g"&&(u=d)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});r.add(l)}}var h=e5[s];if(h&&fe(e5,s)){var p=h.call(this,t),v=t.getAttribute("id");v&&(this._defs[v]=p)}}if(l&&l.isGroup)for(var g=t.firstChild;g;)g.nodeType===1?this._parseNode(g,l,n,u,a,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},e.prototype._parseText=function(t,r){var n=new Hp({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});ei(r,n),On(t,n,this._defsUsePending,!1,!1),iAe(n,r);var i=n.style,a=i.fontSize;a&&a<9&&(i.fontSize=9,n.scaleX*=a/9,n.scaleY*=a/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=n.getBoundingRect();return this._textX+=s.width,r.add(n),n},e.internalField=function(){B_={g:function(t,r){var n=new Me;return ei(r,n),On(t,n,this._defsUsePending,!1,!1),n},rect:function(t,r){var n=new Qe;return ei(r,n),On(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,r){var n=new ja;return ei(r,n),On(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,r){var n=new Tr;return ei(r,n),On(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,r){var n=new Ok;return ei(r,n),On(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,r){var n=t.getAttribute("points"),i;n&&(i=n5(n));var a=new Rn({shape:{points:i||[]},silent:!0});return ei(r,a),On(t,a,this._defsUsePending,!1,!1),a},polyline:function(t,r){var n=t.getAttribute("points"),i;n&&(i=n5(n));var a=new En({shape:{points:i||[]},silent:!0});return ei(r,a),On(t,a,this._defsUsePending,!1,!1),a},image:function(t,r){var n=new $r;return ei(r,n),On(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,r){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(a),this._textY=parseFloat(i)+parseFloat(o);var s=new Me;return ei(r,s),On(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,r){var n=t.getAttribute("x"),i=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),i!=null&&(this._textY=parseFloat(i));var a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new Me;return ei(r,s),On(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(o),s},path:function(t,r){var n=t.getAttribute("d")||"",i=mW(n);return ei(r,i),On(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),e}(),e5={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),r=parseInt(e.getAttribute("y1")||"0",10),n=parseInt(e.getAttribute("x2")||"10",10),i=parseInt(e.getAttribute("y2")||"0",10),a=new Rv(t,r,n,i);return t5(e,a),r5(e,a),a},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),r=parseInt(e.getAttribute("cy")||"0",10),n=parseInt(e.getAttribute("r")||"0",10),i=new PW(t,r,n);return t5(e,i),r5(e,i),i}};function t5(e,t){var r=e.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(t.global=!0)}function r5(e,t){for(var r=e.firstChild;r;){if(r.nodeType===1&&r.nodeName.toLocaleLowerCase()==="stop"){var n=r.getAttribute("offset"),i=void 0;n&&n.indexOf("%")>0?i=parseInt(n,10)/100:n?i=parseFloat(n):i=0;var a={};V8(r,a,a);var o=a.stopColor||r.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}r=r.nextSibling}}function ei(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),be(t.__inheritedStyle,e.__inheritedStyle))}function n5(e){for(var t=eS(e),r=[],n=0;n0;a-=2){var o=n[a],s=n[a-1],l=eS(o);switch(i=i||Ci(),s){case"translate":Va(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":xk(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Hu(i,i,-parseFloat(l[0])*$_);break;case"skewX":var u=Math.tan(parseFloat(l[0])*$_);co(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*$_);co(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}t.setLocalTransform(i)}}var a5=/([^\s:;]+)\s*:\s*([^:;]+)/g;function V8(e,t,r){var n=e.getAttribute("style");if(n){a5.lastIndex=0;for(var i;(i=a5.exec(n))!=null;){var a=i[1],o=fe(V0,a)?V0[a]:null;o&&(t[o]=i[2]);var s=fe(G0,a)?G0[a]:null;s&&(r[s]=i[2])}}}function cAe(e,t,r){for(var n=0;n0,g={api:n,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:v,isGeo:o,transformInfoRaw:d};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(t,r,n),this._updateMapSelectHandler(t,u,n,i)},e.prototype._buildGeoJSON=function(t){var r=this._regionsGroupByName=ge(),n=ge(),i=this._regionsGroup,a=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(h,p){return p&&(h=p(h)),h&&[h[0]*a.scaleX+a.x,h[1]*a.scaleY+a.y]}function f(h){for(var p=[],v=!u&&l&&l.project,g=0;g=0)&&(d=i);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Br(t,xr(n),{labelFetcher:d,labelDataIndex:f,defaultText:r},h);var p=t.getTextContent();if(p&&(H8(p).ignore=p.ignore,t.textConfig&&o)){var v=t.getBoundingRect().clone();t.textConfig.layoutRect=v,t.textConfig.position=[(o[0]-v.x)/v.width*100+"%",(o[1]-v.y)/v.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function c5(e,t,r,n,i,a){e.data?e.data.setItemGraphicEl(a,t):ke(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:r,region:n&&n.option||{}}}function f5(e,t,r,n,i){e.data||td({el:t,componentModel:i,itemName:r,itemTooltipOption:n.get("tooltip")})}function d5(e,t,r,n,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var a=n.getModel("emphasis"),o=a.get("focus");return jt(t,o,a.get("blurScope"),a.get("disabled")),e.isGeo&&I0e(t,i,r),o}function h5(e,t,r){var n=[],i;function a(){i=[]}function o(){i.length&&(n.push(i),i=[])}var s=t({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!r&&s.polygonStart(),R(e,function(l){s.lineStart();for(var u=0;u-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(zt);const RAe=DAe;function LAe(e,t){var r={};return R(e,function(n){n.each(n.mapDimension("value"),function(i,a){var o="ec-"+n.getName(a);r[o]=r[o]||[],isNaN(i)||r[o].push(i)})}),e[0].map(e[0].mapDimension("value"),function(n,i){for(var a="ec-"+e[0].getName(i),o=0,s=1/0,l=-1/0,u=r[a].length,c=0;c1?(S.width=x,S.height=x/g):(S.height=x,S.width=x*g),S.y=y[1]-S.height/2,S.x=y[0]-S.width/2;else{var _=e.getBoxLayoutParams();_.aspect=g,S=pr(_,{width:p,height:v})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function BAe(e,t){R(t.get("geoCoord"),function(r,n){e.addGeoCoord(n,r)})}var $Ae=function(){function e(){this.dimensions=j8}return e.prototype.create=function(t,r){var n=[];function i(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new m5(l+s,l,q({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=y5,u.resize(o,r)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=n[l]}});var a={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();a[s]=a[s]||[],a[s].push(o)}}),R(a,function(o,s){var l=Z(o,function(c){return c.get("nameMap")}),u=new m5(s,s,q({nameMap:pk(l)},i(o[0])));u.zoomLimit=Cr.apply(null,Z(o,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=y5,u.resize(o[0],r),R(o,function(c){c.coordinateSystem=u,BAe(u,c)})}),n},e.prototype.getFilledRegions=function(t,r,n,i){for(var a=(t||[]).slice(),o=ge(),s=0;s=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(s)}}function YAe(e,t){var r=e.isExpand?e.children:[],n=e.parentNode.children,i=e.hierNode.i?n[e.hierNode.i-1]:null;if(r.length){KAe(e);var a=(r[0].hierNode.prelim+r[r.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-a):e.hierNode.prelim=a}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=QAe(e,i,e.parentNode.hierNode.defaultAncestor||n[0],t)}function XAe(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function S5(e){return arguments.length?e:t2e}function bh(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function ZAe(e,t){return pr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function KAe(e){for(var t=e.children,r=t.length,n=0,i=0;--r>=0;){var a=t[r];a.hierNode.prelim+=n,a.hierNode.modifier+=n,i+=a.hierNode.change,n+=a.hierNode.shift+i}}function QAe(e,t,r,n){if(t){for(var i=e,a=e,o=a.parentNode.children[0],s=t,l=i.hierNode.modifier,u=a.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=F_(s),a=V_(a),s&&a;){i=F_(i),o=V_(o),i.hierNode.ancestor=e;var d=s.hierNode.prelim+f-a.hierNode.prelim-u+n(s,a);d>0&&(e2e(JAe(s,e,r),e,d),u+=d,l+=d),f+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=i.hierNode.modifier,c+=o.hierNode.modifier}s&&!F_(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=f-l),a&&!V_(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,r=e)}return r}function F_(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function V_(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function JAe(e,t,r){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:r}function e2e(e,t,r){var n=r/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=r,t.hierNode.modifier+=r,t.hierNode.prelim+=r,e.hierNode.change+=n}function t2e(e,t){return e.parentNode===t.parentNode?1:2}var r2e=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),n2e=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new r2e},t.prototype.buildPath=function(r,n){var i=n.childPoints,a=i.length,o=n.parentPoint,s=i[0],l=i[a-1];if(a===1){r.moveTo(o[0],o[1]),r.lineTo(s[0],s[1]);return}var u=n.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,d=ne(n.forkPosition,1),h=[];h[c]=o[c],h[f]=o[f]+(l[f]-o[f])*d,r.moveTo(o[0],o[1]),r.lineTo(h[0],h[1]),r.moveTo(s[0],s[1]),h[c]=s[c],r.lineTo(h[0],h[1]),h[c]=l[c],r.lineTo(h[0],h[1]),r.lineTo(l[0],l[1]);for(var p=1;py.x,_||(S=S-Math.PI));var w=_?"left":"right",C=s.getModel("label"),A=C.get("rotate"),T=A*(Math.PI/180),M=g.getTextContent();M&&(g.setTextConfig({position:C.get("position")||w,rotation:A==null?-S:T,origin:"center"}),M.setStyle("verticalAlign","middle"))}var k=s.get(["emphasis","focus"]),I=k==="relative"?u0(o.getAncestorsIndices(),o.getDescendantIndices()):k==="ancestor"?o.getAncestorsIndices():k==="descendant"?o.getDescendantIndices():null;I&&(ke(r).focus=I),a2e(i,o,c,r,p,h,v,n),r.__edge&&(r.onHoverStateChange=function(P){if(P!=="blur"){var L=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);L&&L.hoverState===Dv||x0(r.__edge,P)}})}function a2e(e,t,r,n,i,a,o,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),f=e.getOrient(),d=e.get(["lineStyle","curveness"]),h=e.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),v=n.__edge;if(u==="curve")t.parentNode&&t.parentNode!==r&&(v||(v=n.__edge=new Lx({shape:xA(c,f,d,i,i)})),at(v,{shape:xA(c,f,d,a,o)},e));else if(u==="polyline"&&c==="orthogonal"&&t!==r&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,m=[],y=0;yr&&(r=i.height)}this.height=r+1},e.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var r=0,n=this.children,i=n.length;r=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,r)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostTree,n=r.data.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(t,r){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,r)},e.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,r=0;r=0){var n=r.getData().tree.root,i=e.targetNode;if(oe(i)&&(i=n.getNodeById(i)),i&&n.contains(i))return{node:i};var a=e.targetNodeId;if(a!=null&&(i=n.getNodeById(a)))return{node:i}}}function Q8(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function RI(e,t){var r=Q8(e);return ze(r,t)>=0}function tS(e,t){for(var r=[];e;){var n=e.dataIndex;r.push({name:e.name,dataIndex:n,value:t.getRawValue(n)}),e=e.parentNode}return r.reverse(),r}var g2e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.hasSymbolVisual=!0,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r){var n={name:r.name,children:r.data},i=r.leaves||{},a=new wt(i,this,this.ecModel),o=DI.createTree(n,this,s);function s(f){f.wrapMethod("getItemModel",function(d,h){var p=o.getNodeByDataIndex(h);return p&&p.children.length&&p.isExpand||(d.parentModel=a),d})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=r.expandAndCollapse,c=u&&r.initialTreeDepth>=0?r.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var d=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=d&&d.collapsed!=null?!d.collapsed:f.depth<=c}),o.data},t.prototype.getOrient=function(){var r=this.get("orient");return r==="horizontal"?r="LR":r==="vertical"&&(r="TB"),r},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.formatTooltip=function(r,n,i){for(var a=this.getData().tree,o=a.root.children[0],s=a.getNodeByDataIndex(r),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return Sr("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=tS(i,this),n.collapsed=!i.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(zt);const m2e=g2e;function y2e(e,t,r){for(var n=[e],i=[],a;a=n.pop();)if(i.push(a),a.isExpand){var o=a.children;if(o.length)for(var s=0;s=0;a--)r.push(i[a])}}function x2e(e,t){e.eachSeriesByType("tree",function(r){S2e(r,t)})}function S2e(e,t){var r=ZAe(e,t);e.layoutInfo=r;var n=e.get("layout"),i=0,a=0,o=null;n==="radial"?(i=2*Math.PI,a=Math.min(r.height,r.width)/2,o=S5(function(x,S){return(x.parentNode===S.parentNode?1:2)/x.depth})):(i=r.width,a=r.height,o=S5());var s=e.getData().tree.root,l=s.children[0];if(l){qAe(s),y2e(l,YAe,o),s.hierNode.modifier=-l.hierNode.prelim,Xd(l,XAe);var u=l,c=l,f=l;Xd(l,function(x){var S=x.getLayout().x;Sc.getLayout().x&&(c=x),x.depth>f.depth&&(f=x)});var d=u===c?1:o(u,c)/2,h=d-u.getLayout().x,p=0,v=0,g=0,m=0;if(n==="radial")p=i/(c.getLayout().x+d+h),v=a/(f.depth-1||1),Xd(l,function(x){g=(x.getLayout().x+h)*p,m=(x.depth-1)*v;var S=bh(g,m);x.setLayout({x:S.x,y:S.y,rawX:g,rawY:m},!0)});else{var y=e.getOrient();y==="RL"||y==="LR"?(v=a/(c.getLayout().x+d+h),p=i/(f.depth-1||1),Xd(l,function(x){m=(x.getLayout().x+h)*v,g=y==="LR"?(x.depth-1)*p:i-(x.depth-1)*p,x.setLayout({x:g,y:m},!0)})):(y==="TB"||y==="BT")&&(p=i/(c.getLayout().x+d+h),v=a/(f.depth-1||1),Xd(l,function(x){g=(x.getLayout().x+h)*p,m=y==="TB"?(x.depth-1)*v:a-(x.depth-1)*v,x.setLayout({x:g,y:m},!0)}))}}}function b2e(e){e.eachSeriesByType("tree",function(t){var r=t.getData(),n=r.tree;n.eachNode(function(i){var a=i.getModel(),o=a.getModel("itemStyle").getItemStyle(),s=r.ensureUniqueItemVisual(i.dataIndex,"style");q(s,o)})})}function _2e(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var i=t.dataIndex,a=n.getData().tree,o=a.getNodeByDataIndex(i);o.isExpand=!o.isExpand})}),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,r,n){r.eachComponent({mainType:"series",subType:"tree",query:t},function(i){var a=i.coordinateSystem,o=II(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function w2e(e){e.registerChartView(o2e),e.registerSeriesModel(m2e),e.registerLayout(x2e),e.registerVisual(b2e),_2e(e)}var T5=["treemapZoomToNode","treemapRender","treemapMove"];function C2e(e){for(var t=0;t1;)a=a.parentNode;var o=qT(e.ecModel,a.name||a.dataIndex+"",n);i.setVisual("decal",o)})}var T2e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.preventUsingHoverLayer=!0,r}return t.prototype.getInitialData=function(r,n){var i={name:r.name,children:r.data};eU(i);var a=r.levels||[],o=this.designatedVisualItemStyle={},s=new wt({itemStyle:o},this,n);a=r.levels=A2e(a,n);var l=Z(a||[],function(f){return new wt(f,s,n)},this),u=DI.createTree(i,this,c);function c(f){f.wrapMethod("getItemModel",function(d,h){var p=u.getNodeByDataIndex(h),v=p?l[p.depth]:null;return d.parentModel=v||s,d})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.getRawValue(r),s=a.getName(r);return Sr("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=tS(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},q(this.layoutInfo,r)},t.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=ge(),this._idIndexMapCount=0);var i=n.get(r);return i==null&&n.set(r,i=this._idIndexMapCount++),i},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){J8(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(zt);function eU(e){var t=0;R(e.children,function(n){eU(n);var i=n.value;Y(i)&&(i=i[0]),t+=i});var r=e.value;Y(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),Y(e.value)?e.value[0]=r:e.value=r}function A2e(e,t){var r=pt(t.get("color")),n=pt(t.get(["aria","decal","decals"]));if(r){e=e||[];var i,a;R(e,function(s){var l=new wt(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(a=!0)});var o=e[0]||(e[0]={});return i||(o.color=r.slice()),!a&&n&&(o.decal=n.slice()),e}}const M2e=T2e;var k2e=8,A5=8,G_=5,I2e=function(){function e(t){this.group=new Me,t.add(this.group)}return e.prototype.render=function(t,r,n,i){var a=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!a.get("show")||!n)){var s=a.getModel("itemStyle"),l=a.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),f={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:r.getWidth(),height:r.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,f,u),this._renderContent(t,f,s,l,u,c,i),Gx(o,f.pos,f.box)}},e.prototype._prepare=function(t,r,n){for(var i=t;i;i=i.parentNode){var a=hr(i.getModel().get("name"),""),o=n.getTextRect(a),s=Math.max(o.width+k2e*2,r.emptyItemWidth);r.totalWidth+=s+A5,r.renderList.push({node:i,text:a,width:s})}},e.prototype._renderContent=function(t,r,n,i,a,o,s){for(var l=0,u=r.emptyItemWidth,c=t.get(["breadcrumb","height"]),f=B1e(r.pos,r.box),d=r.totalWidth,h=r.renderList,p=i.getModel("itemStyle").getItemStyle(),v=h.length-1;v>=0;v--){var g=h[v],m=g.node,y=g.width,x=g.text;d>f.width&&(d-=y-u,y=u,x=null);var S=new Rn({shape:{points:P2e(l,0,y,c,v===h.length-1,v===0)},style:be(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new rt({style:_t(a,{text:x})}),textConfig:{position:"inside"},z2:Jf*1e4,onclick:Ie(s,m)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=_t(o,{text:x}),S.ensureState("emphasis").style=p,jt(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),D2e(S,t,m),l+=y+A5}},e.prototype.remove=function(){this.group.removeAll()},e}();function P2e(e,t,r,n,i,a){var o=[[i?e:e-G_,t],[e+r,t],[e+r,t+n],[i?e:e-G_,t+n]];return!a&&o.splice(2,0,[e+r+G_,t+n/2]),!i&&o.push([e,t+n/2]),o}function D2e(e,t,r){ke(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&tS(r,t)}}const R2e=I2e;var L2e=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(t,r,n,i,a){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:r,duration:n,delay:i,easing:a}),!0)},e.prototype.finished=function(t){return this._finishedCallback=t,this},e.prototype.start=function(){for(var t=this,r=this._storage.length,n=function(){r--,r<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,a=this._storage.length;ik5||Math.abs(r.dy)>k5)){var n=this.seriesModel.getData().tree.root;if(!n)return;var i=n.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+r.dx,y:i.y+r.dy,width:i.width,height:i.height}})}},t.prototype._onZoom=function(r){var n=r.originX,i=r.originY;if(this._state!=="animating"){var a=this.seriesModel.getData().tree.root;if(!a)return;var o=a.getLayout();if(!o)return;var s=new Ne(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;n-=l.x,i-=l.y;var u=Ci();Va(u,u,[-n,-i]),xk(u,u,[r.scale,r.scale]),Va(u,u,[n,i]),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}})}},t.prototype._initEvents=function(r){var n=this;r.on("click",function(i){if(n._state==="ready"){var a=n.seriesModel.get("nodeClick",!0);if(a){var o=n.findTarget(i.offsetX,i.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(a==="zoomToNode")n._zoomToNode(o);else if(a==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&T0(u,c)}}}}},this)},t.prototype._renderBreadcrumb=function(r,n,i){var a=this;i||(i=r.get("leafDepth",!0)!=null?{node:r.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),i||(i={node:r.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new R2e(this.group))).render(r,n,i.node,function(o){a._state!=="animating"&&(RI(r.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Zd(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(r){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype._rootToNode=function(r){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype.findTarget=function(r,n){var i,a=this.seriesModel.getViewRoot();return a.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(r,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)i={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},t.type="treemap",t}(Tt);function Zd(){return{nodeGroup:[],background:[],content:[]}}function $2e(e,t,r,n,i,a,o,s,l,u){if(!o)return;var c=o.getLayout(),f=e.getData(),d=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var h=c.width,p=c.height,v=c.borderWidth,g=c.invisible,m=o.getRawIndex(),y=s&&s.getRawIndex(),x=o.viewChildren,S=c.upperHeight,_=x&&x.length,b=d.getModel("itemStyle"),w=d.getModel(["emphasis","itemStyle"]),C=d.getModel(["blur","itemStyle"]),A=d.getModel(["select","itemStyle"]),T=b.get("borderRadius")||0,M=U("nodeGroup",SA);if(!M)return;if(l.add(M),M.x=c.x||0,M.y=c.y||0,M.markRedraw(),H0(M).nodeWidth=h,H0(M).nodeHeight=p,c.isAboveViewRoot)return M;var k=U("background",M5,u,N2e);k&&F(M,k,_&&c.upperLabelHeight);var I=d.getModel("emphasis"),P=I.get("focus"),L=I.get("blurScope"),z=I.get("disabled"),V=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(_)jp(M)&&Jl(M,!1),k&&(Jl(k,!z),f.setItemGraphicEl(o.dataIndex,k),$T(k,V,L));else{var N=U("content",M5,u,z2e);N&&E(M,N),k.disableMorphing=!0,k&&jp(k)&&Jl(k,!1),Jl(M,!z),f.setItemGraphicEl(o.dataIndex,M),$T(M,V,L)}return M;function F(ee,te,ie){var re=ke(te);if(re.dataIndex=o.dataIndex,re.seriesIndex=e.seriesIndex,te.setShape({x:0,y:0,width:h,height:p,r:T}),g)G(te);else{te.invisible=!1;var Q=o.getVisual("style"),J=Q.stroke,de=D5(b);de.fill=J;var he=El(w);he.fill=w.get("borderColor");var Pe=El(C);Pe.fill=C.get("borderColor");var Xe=El(A);if(Xe.fill=A.get("borderColor"),ie){var qe=h-2*v;j(te,J,Q.opacity,{x:v,y:0,width:qe,height:S})}else te.removeTextContent();te.setStyle(de),te.ensureState("emphasis").style=he,te.ensureState("blur").style=Pe,te.ensureState("select").style=Xe,Iu(te)}ee.add(te)}function E(ee,te){var ie=ke(te);ie.dataIndex=o.dataIndex,ie.seriesIndex=e.seriesIndex;var re=Math.max(h-2*v,0),Q=Math.max(p-2*v,0);if(te.culling=!0,te.setShape({x:v,y:v,width:re,height:Q,r:T}),g)G(te);else{te.invisible=!1;var J=o.getVisual("style"),de=J.fill,he=D5(b);he.fill=de,he.decal=J.decal;var Pe=El(w),Xe=El(C),qe=El(A);j(te,de,J.opacity,null),te.setStyle(he),te.ensureState("emphasis").style=Pe,te.ensureState("blur").style=Xe,te.ensureState("select").style=qe,Iu(te)}ee.add(te)}function G(ee){!ee.invisible&&a.push(ee)}function j(ee,te,ie,re){var Q=d.getModel(re?P5:I5),J=hr(d.get("name"),null),de=Q.getShallow("show");Br(ee,xr(d,re?P5:I5),{defaultText:de?J:null,inheritColor:te,defaultOpacity:ie,labelFetcher:e,labelDataIndex:o.dataIndex});var he=ee.getTextContent();if(he){var Pe=he.style,Xe=gk(Pe.padding||0);re&&(ee.setTextConfig({layoutRect:re}),he.disableLabelLayout=!0),he.beforeUpdate=function(){var ot=Math.max((re?re.width:ee.shape.width)-Xe[1]-Xe[3],0),st=Math.max((re?re.height:ee.shape.height)-Xe[0]-Xe[2],0);(Pe.width!==ot||Pe.height!==st)&&he.setStyle({width:ot,height:st})},Pe.truncateMinChar=2,Pe.lineOverflow="truncate",B(Pe,re,c);var qe=he.getState("emphasis");B(qe?qe.style:null,re,c)}}function B(ee,te,ie){var re=ee?ee.text:null;if(!te&&ie.isLeafRoot&&re!=null){var Q=e.get("drillDownIcon",!0);ee.text=Q?Q+" "+re:re}}function U(ee,te,ie,re){var Q=y!=null&&r[ee][y],J=i[ee];return Q?(r[ee][y]=null,X(J,Q)):g||(Q=new te,Q instanceof Ti&&(Q.z2=F2e(ie,re)),W(J,Q)),t[ee][m]=Q}function X(ee,te){var ie=ee[m]={};te instanceof SA?(ie.oldX=te.x,ie.oldY=te.y):ie.oldShape=q({},te.shape)}function W(ee,te){var ie=ee[m]={},re=o.parentNode,Q=te instanceof Me;if(re&&(!n||n.direction==="drillDown")){var J=0,de=0,he=i.background[re.getRawIndex()];!n&&he&&he.oldShape&&(J=he.oldShape.width,de=he.oldShape.height),Q?(ie.oldX=0,ie.oldY=de):ie.oldShape={x:J,y:de,width:0,height:0}}ie.fadein=!Q}}function F2e(e,t){return e*O2e+t}const V2e=B2e;var av=R,G2e=_e,W0=-1,LI=function(){function e(t){var r=t.mappingMethod,n=t.type,i=this.option=Te(t);this.type=n,this.mappingMethod=r,this._normalizeData=j2e[r];var a=e.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[r],r==="piecewise"?(H_(i),H2e(i)):r==="category"?i.categories?W2e(i):H_(i,!0):(cn(r!=="linear"||i.dataExtent),H_(i))}return e.prototype.mapValueToVisual=function(t){var r=this._normalizeData(t);return this._normalizedToVisual(r,t)},e.prototype.getNormalizer=function(){return ce(this._normalizeData,this)},e.listVisualTypes=function(){return Ye(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,r,n){_e(t)?R(t,r,n):r.call(n,t)},e.mapVisual=function(t,r,n){var i,a=Y(t)?[]:_e(t)?{}:(i=!0,null);return e.eachVisual(t,function(o,s){var l=r.call(n,o,s);i?a=l:a[s]=l}),a},e.retrieveVisuals=function(t){var r={},n;return t&&av(e.visualHandlers,function(i,a){t.hasOwnProperty(a)&&(r[a]=t[a],n=!0)}),n?r:null},e.prepareVisualTypes=function(t){if(Y(t))t=t.slice();else if(G2e(t)){var r=[];av(t,function(n,i){r.push(i)}),t=r}else return[];return t.sort(function(n,i){return i==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),t},e.dependsOn=function(t,r){return r==="color"?!!(t&&t.indexOf(r)===0):t===r},e.findPieceIndex=function(t,r,n){for(var i,a=1/0,o=0,s=r.length;o=0;a--)n[a]==null&&(delete r[t[a]],t.pop())}function H_(e,t){var r=e.visual,n=[];_e(r)?av(r,function(a){n.push(a)}):r!=null&&n.push(r);var i={color:1,symbol:1};!t&&n.length===1&&!i.hasOwnProperty(e.type)&&(n[1]=n[0]),tU(e,n)}function vm(e){return{applyVisual:function(t,r,n){var i=this.mapValueToVisual(t);n("color",e(r("color"),i))},_normalizedToVisual:bA([0,1])}}function R5(e){var t=this.option.visual;return t[Math.round(ft(e,[0,1],[0,t.length-1],!0))]||{}}function Kd(e){return function(t,r,n){n(e,this.mapValueToVisual(t))}}function _h(e){var t=this.option.visual;return t[this.option.loop&&e!==W0?e%t.length:e]}function Ol(){return this.option.visual[0]}function bA(e){return{linear:function(t){return ft(t,e,this.option.visual,!0)},category:_h,piecewise:function(t,r){var n=_A.call(this,r);return n==null&&(n=ft(t,e,this.option.visual,!0)),n},fixed:Ol}}function _A(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var n=LI.findPieceIndex(e,r),i=r[n];if(i&&i.visual)return i.visual[this.type]}}function tU(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=Z(t,function(r){var n=Wn(r);return n||[0,0,0,1]})),t}var j2e={linear:function(e){return ft(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,r=LI.findPieceIndex(e,t,!0);if(r!=null)return ft(r,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??W0},fixed:rr};function gm(e,t,r){return e?t<=r:t=r.length||v===r[v.depth]){var m=K2e(i,l,v,g,p,n);nU(v,m,r,n)}})}}}function Y2e(e,t,r){var n=q({},t),i=r.designatedVisualItemStyle;return R(["color","colorAlpha","colorSaturation"],function(a){i[a]=t[a];var o=e.get(a);i[a]=null,o!=null&&(n[a]=o)}),n}function L5(e){var t=W_(e,"color");if(t){var r=W_(e,"colorAlpha"),n=W_(e,"colorSaturation");return n&&(t=Uh(t,null,null,n)),r&&(t=d0(t,r)),t}}function X2e(e,t){return t!=null?Uh(t,null,null,e):null}function W_(e,t){var r=e[t];if(r!=null&&r!=="none")return r}function Z2e(e,t,r,n,i,a){if(!(!a||!a.length)){var o=j_(t,"color")||i.color!=null&&i.color!=="none"&&(j_(t,"colorAlpha")||j_(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=r.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var c=t.get("colorMappingBy"),f={type:o.name,dataExtent:u,visual:o.range};f.type==="color"&&(c==="index"||c==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var d=new Or(f);return rU(d).drColorMappingBy=c,d}}}function j_(e,t){var r=e.get(t);return Y(r)&&r.length?{name:t,range:r}:null}function K2e(e,t,r,n,i,a){var o=q({},t);if(i){var s=i.type,l=s==="color"&&rU(i).drColorMappingBy,u=l==="index"?n:l==="id"?a.mapIdToIndex(r.getId()):r.getValue(e.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}var ov=Math.max,j0=Math.min,E5=Cr,EI=R,iU=["itemStyle","borderWidth"],Q2e=["itemStyle","gapWidth"],J2e=["upperLabel","show"],eMe=["upperLabel","height"];const tMe={seriesType:"treemap",reset:function(e,t,r,n){var i=r.getWidth(),a=r.getHeight(),o=e.option,s=pr(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],u=ne(E5(s.width,l[0]),i),c=ne(E5(s.height,l[1]),a),f=n&&n.type,d=["treemapZoomToNode","treemapRootToNode"],h=iv(n,d,e),p=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,v=e.getViewRoot(),g=Q8(v);if(f!=="treemapMove"){var m=f==="treemapZoomToNode"?sMe(e,h,v,u,c):p?[p.width,p.height]:[u,c],y=o.sort;y&&y!=="asc"&&y!=="desc"&&(y="desc");var x={squareRatio:o.squareRatio,sort:y,leafDepth:o.leafDepth};v.hostTree.clearLayouts();var S={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};v.setLayout(S),aU(v,x,!1,0),S=v.getLayout(),EI(g,function(b,w){var C=(g[w+1]||v).getValue();b.setLayout(q({dataExtent:[C,C],borderWidth:0,upperHeight:0},S))})}var _=e.getData().tree.root;_.setLayout(lMe(s,p,h),!0),e.setLayoutInfo(s),oU(_,new Ne(-s.x,-s.y,i,a),g,v,0)}};function aU(e,t,r,n){var i,a;if(!e.isRemoved()){var o=e.getLayout();i=o.width,a=o.height;var s=e.getModel(),l=s.get(iU),u=s.get(Q2e)/2,c=sU(s),f=Math.max(l,c),d=l-u,h=f-u;e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),i=ov(i-2*d,0),a=ov(a-d-h,0);var p=i*a,v=rMe(e,s,p,t,r,n);if(v.length){var g={x:d,y:h,width:i,height:a},m=j0(i,a),y=1/0,x=[];x.area=0;for(var S=0,_=v.length;S<_;){var b=v[S];x.push(b),x.area+=b.getLayout().area;var w=oMe(x,m,t.squareRatio);w<=y?(S++,y=w):(x.area-=x.pop().getLayout().area,O5(x,m,g,u,!1),m=j0(g.width,g.height),x.length=x.area=0,y=1/0)}if(x.length&&O5(x,m,g,u,!0),!r){var C=s.get("childrenVisibleMin");C!=null&&p=0;l--){var u=i[n==="asc"?o-l-1:l].getValue();u/r*ts[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function oMe(e,t,r){for(var n=0,i=1/0,a=0,o=void 0,s=e.length;an&&(n=o));var l=e.area*e.area,u=t*t*r;return l?ov(u*n/l,l/(u*i)):1/0}function O5(e,t,r,n,i){var a=t===r.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=r[s[a]],c=t?e.area/t:0;(i||c>r[l[o]])&&(c=r[l[o]]);for(var f=0,d=e.length;fqE&&(u=qE),a=s}un&&(n=t);var a=n%2?n+2:n+3;i=[];for(var o=0;o0&&(_[0]=-_[0],_[1]=-_[1]);var w=S[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var C=-Math.atan2(S[1],S[0]);f[0].8?"left":d[0]<-.8?"right":"center",v=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":a.x=-d[0]*m+c[0],a.y=-d[1]*y+c[1],p=d[0]>.8?"right":d[0]<-.8?"left":"center",v=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=m*w+c[0],a.y=c[1]+A,p=S[0]<0?"right":"left",a.originX=-m*w,a.originY=-A;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=b[0],a.y=b[1]+A,p="center",a.originY=-A;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-m*w+f[0],a.y=f[1]+A,p=S[0]>=0?"right":"left",a.originX=m*w,a.originY=-A;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||v,align:a.__align||p})}},t}(Me);const BI=MMe;var kMe=function(){function e(t){this.group=new Me,this._LineCtor=t||BI}return e.prototype.updateData=function(t){var r=this;this._progressiveEls=null;var n=this,i=n.group,a=n._lineData;n._lineData=t,a||i.removeAll();var o=V5(t);t.diff(a).add(function(s){r._doAdd(t,s,o)}).update(function(s,l){r._doUpdate(a,t,l,s,o)}).remove(function(s){i.remove(a.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(r,n){r.updateLayout(t,n)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=V5(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!IMe(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0}function V5(e){var t=e.hostModel,r=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:xr(t)}}function G5(e){return isNaN(e[0])||isNaN(e[1])}function Z_(e){return e&&!G5(e[0])&&!G5(e[1])}const $I=kMe;var K_=[],Q_=[],J_=[],yc=wr,ew=lu,H5=Math.abs;function W5(e,t,r){for(var n=e[0],i=e[1],a=e[2],o=1/0,s,l=r*r,u=.1,c=.1;c<=.9;c+=.1){K_[0]=yc(n[0],i[0],a[0],c),K_[1]=yc(n[1],i[1],a[1],c);var f=H5(ew(K_,t)-l);f=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function tw(e,t){var r=[],n=$p,i=[[],[],[]],a=[[],[]],o=[];t/=2,e.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[uo(u[0]),uo(u[1])],u[2]&&u.__original.push(uo(u[2])));var d=u.__original;if(u[2]!=null){if(tn(i[0],d[0]),tn(i[1],d[2]),tn(i[2],d[1]),c&&c!=="none"){var h=Ch(s.node1),p=W5(i,d[0],h*t);n(i[0][0],i[1][0],i[2][0],p,r),i[0][0]=r[3],i[1][0]=r[4],n(i[0][1],i[1][1],i[2][1],p,r),i[0][1]=r[3],i[1][1]=r[4]}if(f&&f!=="none"){var h=Ch(s.node2),p=W5(i,d[1],h*t);n(i[0][0],i[1][0],i[2][0],p,r),i[1][0]=r[1],i[2][0]=r[2],n(i[0][1],i[1][1],i[2][1],p,r),i[1][1]=r[1],i[2][1]=r[2]}tn(u[0],i[0]),tn(u[1],i[2]),tn(u[2],i[1])}else{if(tn(a[0],d[0]),tn(a[1],d[1]),Kl(o,a[1],a[0]),Zf(o,o),c&&c!=="none"){var h=Ch(s.node1);fT(a[0],a[0],o,h*t)}if(f&&f!=="none"){var h=Ch(s.node2);fT(a[1],a[1],o,-h*t)}tn(u[0],a[0]),tn(u[1],a[1])}})}function j5(e){return e.type==="view"}var PMe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){var i=new Gv,a=new $I,o=this.group;this._controller=new Uv(n.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(a.group),this._symbolDraw=i,this._lineDraw=a,this._firstRender=!0},t.prototype.render=function(r,n,i){var a=this,o=r.coordinateSystem;this._model=r;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(j5(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):at(u,c,r)}tw(r.getGraph(),wh(r));var f=r.getData();s.updateData(f);var d=r.getEdgeData();l.updateData(d),this._updateNodeAndLinkScale(),this._updateController(r,n,i),clearTimeout(this._layoutTimeout);var h=r.forceLayout,p=r.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,p);var v=r.get("layout");f.graph.eachNode(function(x){var S=x.dataIndex,_=x.getGraphicEl(),b=x.getModel();if(_){_.off("drag").off("dragend");var w=b.get("draggable");w&&_.on("drag",function(A){switch(v){case"force":h.warmUp(),!a._layouting&&a._startForceLayoutIteration(h,p),h.setFixed(S),f.setItemLayout(S,[_.x,_.y]);break;case"circular":f.setItemLayout(S,[_.x,_.y]),x.setLayout({fixed:!0},!0),zI(r,"symbolSize",x,[A.offsetX,A.offsetY]),a.updateLayout(r);break;case"none":default:f.setItemLayout(S,[_.x,_.y]),NI(r.getGraph(),r),a.updateLayout(r);break}}).on("dragend",function(){h&&h.setUnfixed(S)}),_.setDraggable(w,!!b.get("cursor"));var C=b.get(["emphasis","focus"]);C==="adjacency"&&(ke(_).focus=x.getAdjacentDataIndices())}}),f.graph.eachEdge(function(x){var S=x.getGraphicEl(),_=x.getModel().get(["emphasis","focus"]);S&&_==="adjacency"&&(ke(S).focus={edge:[x.dataIndex],node:[x.node1.dataIndex,x.node2.dataIndex]})});var g=r.get("layout")==="circular"&&r.get(["circular","rotateLabel"]),m=f.getLayout("cx"),y=f.getLayout("cy");f.graph.eachNode(function(x){fU(x,g,m,y)}),this._firstRender=!1},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(r,n){var i=this;(function a(){r.step(function(o){i.updateLayout(i._model),(i._layouting=!o)&&(n?i._layoutTimeout=setTimeout(a,16):a())})})()},t.prototype._updateController=function(r,n,i){var a=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,f){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(c,f)&&!Jx(u,i,r)}),!j5(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){AI(s,u.dx,u.dy),i.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){MI(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:r.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(),tw(r.getGraph(),wh(r)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),i=wh(r);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},t.prototype.updateLayout=function(r){tw(r.getGraph(),wh(r)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(Tt);const DMe=PMe;function xc(e){return"_EC_"+e}var RMe=function(){function e(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(t,r){t=t==null?""+r:""+t;var n=this._nodesMap;if(!n[xc(t)]){var i=new Nl(t,r);return i.hostGraph=this,this.nodes.push(i),n[xc(t)]=i,i}},e.prototype.getNodeByIndex=function(t){var r=this.data.getRawIndex(t);return this.nodes[r]},e.prototype.getNodeById=function(t){return this._nodesMap[xc(t)]},e.prototype.addEdge=function(t,r,n){var i=this._nodesMap,a=this._edgesMap;if(nt(t)&&(t=this.nodes[t]),nt(r)&&(r=this.nodes[r]),t instanceof Nl||(t=i[xc(t)]),r instanceof Nl||(r=i[xc(r)]),!(!t||!r)){var o=t.id+"-"+r.id,s=new hU(t,r,n);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),r.inEdges.push(s)),t.edges.push(s),t!==r&&r.edges.push(s),this.edges.push(s),a[o]=s,s}},e.prototype.getEdgeByIndex=function(t){var r=this.edgeData.getRawIndex(t);return this.edges[r]},e.prototype.getEdge=function(t,r){t instanceof Nl&&(t=t.id),r instanceof Nl&&(r=r.id);var n=this._edgesMap;return this._directed?n[t+"-"+r]:n[t+"-"+r]||n[r+"-"+t]},e.prototype.eachNode=function(t,r){for(var n=this.nodes,i=n.length,a=0;a=0&&t.call(r,n[a],a)},e.prototype.eachEdge=function(t,r){for(var n=this.edges,i=n.length,a=0;a=0&&n[a].node1.dataIndex>=0&&n[a].node2.dataIndex>=0&&t.call(r,n[a],a)},e.prototype.breadthFirstTraverse=function(t,r,n,i){if(r instanceof Nl||(r=this._nodesMap[xc(r)]),!!r){for(var a=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var a=0,o=i.length;a=0&&this[e][t].setItemVisual(this.dataIndex,r,n)},getVisual:function(r){return this[e][t].getItemVisual(this.dataIndex,r)},setLayout:function(r,n){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,r,n)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}ur(Nl,pU("hostGraph","data"));ur(hU,pU("hostGraph","edgeData"));const LMe=RMe;function vU(e,t,r,n,i){for(var a=new LMe(n),o=0;o "+d)),u++)}var h=r.get("coordinateSystem"),p;if(h==="cartesian2d"||h==="polar")p=Ro(e,r);else{var v=Nv.get(h),g=v?v.dimensions||[]:[];ze(g,"value")<0&&g.concat(["value"]);var m=Bv(e,{coordDimensions:g,encodeDefine:r.getEncode()}).dimensions;p=new un(m,r),p.initData(e)}var y=new un(["value"],r);return y.initData(l,s),i&&i(p,y),Z8({mainData:p,struct:a,structAttr:"graph",datas:{node:p,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var EMe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new jv(i,i),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(r){e.prototype.mergeDefaultAndTheme.apply(this,arguments),Au(r,"edgeLabel",["show"])},t.prototype.getInitialData=function(r,n){var i=r.edges||r.links||[],a=r.data||r.nodes||[],o=this;if(a&&i){vMe(this);var s=vU(a,i,this,!0,l);return R(s.edges,function(u){gMe(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(p){var v=o._categoriesModels,g=p.getShallow("category"),m=v[g];return m&&(m.parentModel=p.parentModel,p.parentModel=m),p});var f=wt.prototype.getModel;function d(p,v){var g=f.call(this,p,v);return g.resolveParentPath=h,g}c.wrapMethod("getItemModel",function(p){return p.resolveParentPath=h,p.getModel=d,p});function h(p){if(p&&(p[0]==="label"||p[1]==="label")){var v=p.slice();return p[0]==="label"?v[0]="edgeLabel":p[1]==="label"&&(v[1]="edgeLabel"),v}return p}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(r,n,i){if(i==="edge"){var a=this.getData(),o=this.getDataParams(r,i),s=a.graph.getEdgeByIndex(r),l=a.getName(s.node1.dataIndex),u=a.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Sr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=zj({series:this,dataIndex:r,multipleSeries:n});return f},t.prototype._updateCategoriesData=function(){var r=Z(this.option.categories||[],function(i){return i.value!=null?i:q({value:0},i)}),n=new un(["value"],this);n.initData(r),this._categoriesData=n,this._categoriesModels=n.mapArray(function(i){return n.getItemModel(i)})},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(zt);const OMe=EMe;var NMe={type:"graphRoam",event:"graphRoam",update:"none"};function zMe(e){e.registerChartView(DMe),e.registerSeriesModel(OMe),e.registerProcessor(cMe),e.registerVisual(fMe),e.registerVisual(dMe),e.registerLayout(mMe),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,xMe),e.registerLayout(bMe),e.registerCoordinateSystem("graphView",{dimensions:qv.dimensions,create:wMe}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},rr),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},rr),e.registerAction(NMe,function(t,r,n){r.eachComponent({mainType:"series",query:t},function(i){var a=i.coordinateSystem,o=II(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var BMe=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),$Me=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new BMe},t.prototype.buildPath=function(r,n){var i=Math.cos,a=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-i(l)*s*(s>=o/3?1:2),c=n.y-a(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,r.moveTo(u,c),r.lineTo(n.x+i(l)*s,n.y+a(l)*s),r.lineTo(n.x+i(n.angle)*o,n.y+a(n.angle)*o),r.lineTo(n.x-i(l)*s,n.y-a(l)*s),r.lineTo(u,c)},t}(We);const FMe=$Me;function VMe(e,t){var r=e.get("center"),n=t.getWidth(),i=t.getHeight(),a=Math.min(n,i),o=ne(r[0],t.getWidth()),s=ne(r[1],t.getHeight()),l=ne(e.get("radius"),a/2);return{cx:o,cy:s,r:l}}function ym(e,t){var r=e==null?"":e+"";return t&&(oe(t)?r=t.replace("{value}",r):Se(t)&&(r=t(e))),r}var GMe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){this.group.removeAll();var a=r.get(["axisLine","lineStyle","color"]),o=VMe(r,i);this._renderMain(r,n,i,a,o),this._data=r.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(r,n,i,a,o){var s=this.group,l=r.get("clockwise"),u=-r.get("startAngle")/180*Math.PI,c=-r.get("endAngle")/180*Math.PI,f=r.getModel("axisLine"),d=f.get("roundCap"),h=d?F0:Dn,p=f.get("show"),v=f.getModel("lineStyle"),g=v.get("width"),m=[u,c];qH(m,!l),u=m[0],c=m[1];for(var y=c-u,x=u,S=[],_=0;p&&_=A&&(T===0?0:a[T-1][0])Math.PI/2&&(U+=Math.PI)):B==="tangential"?U=-C-Math.PI/2:nt(B)&&(U=B*Math.PI/180),U===0?f.add(new rt({style:_t(x,{text:F,x:G,y:j,verticalAlign:L<-.8?"top":L>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:E}),silent:!0})):f.add(new rt({style:_t(x,{text:F,x:G,y:j,verticalAlign:"middle",align:"center"},{inheritColor:E}),silent:!0,originX:G,originY:j,rotation:U}))}if(y.get("show")&&z!==S){var V=y.get("distance");V=V?V+c:c;for(var X=0;X<=_;X++){P=Math.cos(C),L=Math.sin(C);var W=new Tr({shape:{x1:P*(p-V)+d,y1:L*(p-V)+h,x2:P*(p-w-V)+d,y2:L*(p-w-V)+h},silent:!0,style:k});k.stroke==="auto"&&W.setStyle({stroke:a((z+X/_)/S)}),f.add(W),C+=T}C-=T}else C+=A}},t.prototype._renderPointer=function(r,n,i,a,o,s,l,u,c){var f=this.group,d=this._data,h=this._progressEls,p=[],v=r.get(["pointer","show"]),g=r.getModel("progress"),m=g.get("show"),y=r.getData(),x=y.mapDimension("value"),S=+r.get("min"),_=+r.get("max"),b=[S,_],w=[s,l];function C(T,M){var k=y.getItemModel(T),I=k.getModel("pointer"),P=ne(I.get("width"),o.r),L=ne(I.get("length"),o.r),z=r.get(["pointer","icon"]),V=I.get("offsetCenter"),N=ne(V[0],o.r),F=ne(V[1],o.r),E=I.get("keepAspect"),G;return z?G=lr(z,N-P/2,F-L,P,L,null,E):G=new FMe({shape:{angle:-Math.PI/2,width:P,r:L,x:N,y:F}}),G.rotation=-(M+Math.PI/2),G.x=o.cx,G.y=o.cy,G}function A(T,M){var k=g.get("roundCap"),I=k?F0:Dn,P=g.get("overlap"),L=P?g.get("width"):c/y.count(),z=P?o.r-L:o.r-(T+1)*L,V=P?o.r:o.r-T*L,N=new I({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:z,r:V}});return P&&(N.z2=_-y.get(x,T)%_),N}(m||v)&&(y.diff(d).add(function(T){var M=y.get(x,T);if(v){var k=C(T,s);Lt(k,{rotation:-((isNaN(+M)?w[0]:ft(M,b,w,!0))+Math.PI/2)},r),f.add(k),y.setItemGraphicEl(T,k)}if(m){var I=A(T,s),P=g.get("clip");Lt(I,{shape:{endAngle:ft(M,b,w,P)}},r),f.add(I),NT(r.seriesIndex,y.dataType,T,I),p[T]=I}}).update(function(T,M){var k=y.get(x,T);if(v){var I=d.getItemGraphicEl(M),P=I?I.rotation:s,L=C(T,P);L.rotation=P,at(L,{rotation:-((isNaN(+k)?w[0]:ft(k,b,w,!0))+Math.PI/2)},r),f.add(L),y.setItemGraphicEl(T,L)}if(m){var z=h[M],V=z?z.shape.endAngle:s,N=A(T,V),F=g.get("clip");at(N,{shape:{endAngle:ft(k,b,w,F)}},r),f.add(N),NT(r.seriesIndex,y.dataType,T,N),p[T]=N}}).execute(),y.each(function(T){var M=y.getItemModel(T),k=M.getModel("emphasis"),I=k.get("focus"),P=k.get("blurScope"),L=k.get("disabled");if(v){var z=y.getItemGraphicEl(T),V=y.getItemVisual(T,"style"),N=V.fill;if(z instanceof $r){var F=z.style;z.useStyle(q({image:F.image,x:F.x,y:F.y,width:F.width,height:F.height},V))}else z.useStyle(V),z.type!=="pointer"&&z.setColor(N);z.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),z.style.fill==="auto"&&z.setStyle("fill",a(ft(y.get(x,T),b,[0,1],!0))),z.z2EmphasisLift=0,zr(z,M),jt(z,I,P,L)}if(m){var E=p[T];E.useStyle(y.getItemVisual(T,"style")),E.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),E.z2EmphasisLift=0,zr(E,M),jt(E,I,P,L)}}),this._progressEls=p)},t.prototype._renderAnchor=function(r,n){var i=r.getModel("anchor"),a=i.get("show");if(a){var o=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),c=lr(s,n.cx-o/2+ne(l[0],n.r),n.cy-o/2+ne(l[1],n.r),o,o,null,u);c.z2=i.get("showAbove")?1:0,c.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(r,n,i,a,o){var s=this,l=r.getData(),u=l.mapDimension("value"),c=+r.get("min"),f=+r.get("max"),d=new Me,h=[],p=[],v=r.isAnimationEnabled(),g=r.get(["pointer","showAbove"]);l.diff(this._data).add(function(m){h[m]=new rt({silent:!0}),p[m]=new rt({silent:!0})}).update(function(m,y){h[m]=s._titleEls[y],p[m]=s._detailEls[y]}).execute(),l.each(function(m){var y=l.getItemModel(m),x=l.get(u,m),S=new Me,_=a(ft(x,[c,f],[0,1],!0)),b=y.getModel("title");if(b.get("show")){var w=b.get("offsetCenter"),C=o.cx+ne(w[0],o.r),A=o.cy+ne(w[1],o.r),T=h[m];T.attr({z2:g?0:2,style:_t(b,{x:C,y:A,text:l.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:_})}),S.add(T)}var M=y.getModel("detail");if(M.get("show")){var k=M.get("offsetCenter"),I=o.cx+ne(k[0],o.r),P=o.cy+ne(k[1],o.r),L=ne(M.get("width"),o.r),z=ne(M.get("height"),o.r),V=r.get(["progress","show"])?l.getItemVisual(m,"style").fill:_,T=p[m],N=M.get("formatter");T.attr({z2:g?0:2,style:_t(M,{x:I,y:P,text:ym(x,N),width:isNaN(L)?null:L,height:isNaN(z)?null:z,align:"center",verticalAlign:"middle"},{inheritColor:V})}),$W(T,{normal:M},x,function(E){return ym(E,N)}),v&&FW(T,m,l,r,{getFormattedLabel:function(E,G,j,B,U,X){return ym(X?X.interpolatedValue:x,N)}}),S.add(T)}d.add(S)}),this.group.add(d),this._titleEls=h,this._detailEls=p},t.type="gauge",t}(Tt);const HMe=GMe;var WMe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="itemStyle",r}return t.prototype.getInitialData=function(r,n){return fd(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(zt);const jMe=WMe;function UMe(e){e.registerChartView(HMe),e.registerSeriesModel(jMe)}var qMe=["itemStyle","opacity"],YMe=function(e){H(t,e);function t(r,n){var i=e.call(this)||this,a=i,o=new En,s=new rt;return a.setTextContent(s),i.setTextGuideLine(o),i.updateData(r,n,!0),i}return t.prototype.updateData=function(r,n,i){var a=this,o=r.hostModel,s=r.getItemModel(n),l=r.getItemLayout(n),u=s.getModel("emphasis"),c=s.get(qMe);c=c??1,i||ea(a),a.useStyle(r.getItemVisual(n,"style")),a.style.lineJoin="round",i?(a.setShape({points:l.points}),a.style.opacity=0,Lt(a,{style:{opacity:c}},o,n)):at(a,{style:{opacity:c},shape:{points:l.points}},o,n),zr(a,s),this._updateLabel(r,n),jt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n){var i=this,a=this.getTextGuideLine(),o=i.getTextContent(),s=r.hostModel,l=r.getItemModel(n),u=r.getItemLayout(n),c=u.label,f=r.getItemVisual(n,"style"),d=f.fill;Br(o,xr(l),{labelFetcher:r.hostModel,labelDataIndex:n,defaultOpacity:f.opacity,defaultText:r.getName(n)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),i.setTextConfig({local:!0,inside:!!c.inside,insideStroke:d,outsideFill:d});var h=c.linePoints;a.setShape({points:h}),i.textGuideLineConfig={anchor:h?new Le(h[0][0],h[0][1]):null},at(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),mI(i,yI(l),{stroke:d})},t}(Rn),XMe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this._data,s=this.group;a.diff(o).add(function(l){var u=new YMe(a,l);a.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(a,l),s.add(c),a.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);Up(u,r,l)}).execute(),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(Tt);const ZMe=XMe;var KMe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new jv(ce(this.getData,this),ce(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.getInitialData=function(r,n){return fd(this,{coordDimensions:["value"],encodeDefaulter:Ie(Uk,this)})},t.prototype._defaultLabelLine=function(r){Au(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.prototype.getDataParams=function(r){var n=this.getData(),i=e.prototype.getDataParams.call(this,r),a=n.mapDimension("value"),o=n.getSum(a);return i.percent=o?+(n.get(a,r)/o*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(zt);const QMe=KMe;function JMe(e,t){return pr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function eke(e,t){for(var r=e.mapDimension("value"),n=e.mapArray(r,function(l){return l}),i=[],a=t==="ascending",o=0,s=e.count();oxke)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!nw(this,"mousemove"))){var t=this._model,r=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),n=r.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:r.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function nw(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}const _ke=Ske;var wke=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(r){var n=this.option;r&&Oe(n,r,!0),this._initDimensions()},t.prototype.contains=function(r,n){var i=r.get("parallelIndex");return i!=null&&n.getComponent("parallel",i)===this},t.prototype.setAxisExpand=function(r){R(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){r.hasOwnProperty(n)&&(this.option[n]=r[n])},this)},t.prototype._initDimensions=function(){var r=this.dimensions=[],n=this.parallelAxisIndex=[],i=dt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);R(i,function(a){r.push("dim"+a.get("dim")),n.push(a.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(et);const Cke=wke;var Tke=function(e){H(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.type=a||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(ra);const Ake=Tke;function Xu(e,t,r,n,i,a){e=e||0;var o=r[1]-r[0];if(i!=null&&(i=Sc(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=Sc(s,[0,o]),i=a=Sc(s,[i,a]),n=0}t[0]=Sc(t[0],r),t[1]=Sc(t[1],r);var l=iw(t,n);t[n]+=e;var u=i||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=Sc(t[n],c);var f;return f=iw(t,n),i!=null&&(f.sign!==l.sign||f.spana&&(t[1-n]=t[n]+f.sign*a),t}function iw(e,t){var r=e[t]-e[1-t];return{span:Math.abs(r),sign:r>0?-1:r<0?1:t?-1:1}}function Sc(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var aw=R,mU=Math.min,yU=Math.max,Y5=Math.floor,Mke=Math.ceil,X5=Xt,kke=Math.PI,Ike=function(){function e(t,r,n){this.type="parallel",this._axesMap=ge(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var i=t.dimensions,a=t.parallelAxisIndex;aw(i,function(o,s){var l=a[s],u=r.getComponent("parallelAxis",l),c=this._axesMap.set(o,new Ake(o,Zx(u),[0,0],u.get("type"),l)),f=c.type==="category";c.onBand=f&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},e.prototype.update=function(t,r){this._updateAxesFromSeries(this._model,t)},e.prototype.containPoint=function(t){var r=this._makeLayoutInfo(),n=r.axisBase,i=r.layoutBase,a=r.pixelDimIndex,o=t[1-a],s=t[a];return o>=n&&o<=n+r.axisLength&&s>=i&&s<=i+r.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(t,r){r.eachSeries(function(n){if(t.contains(n,r)){var i=n.getData();aw(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),Lf(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,r){this._rect=pr(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var t=this._model,r=this._rect,n=["x","y"],i=["width","height"],a=t.get("layout"),o=a==="horizontal"?0:1,s=r[i[o]],l=[0,s],u=this.dimensions.length,c=xm(t.get("axisExpandWidth"),l),f=xm(t.get("axisExpandCount")||0,[0,u]),d=t.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,h=t.get("axisExpandWindow"),p;if(h)p=xm(h[1]-h[0],l),h[1]=h[0]+p;else{p=xm(c*(f-1),l);var v=t.get("axisExpandCenter")||Y5(u/2);h=[c*v-p/2],h[1]=h[0]+p}var g=(s-p)/(u-f);g<3&&(g=0);var m=[Y5(X5(h[0]/c,1))+1,Mke(X5(h[1]/c,1))-1],y=g/c*h[0];return{layout:a,pixelDimIndex:o,layoutBase:r[n[o]],layoutLength:s,axisBase:r[n[1-o]],axisLength:r[i[1-o]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:h,axisCount:u,winInnerIndices:m,axisExpandWindow0Pos:y}},e.prototype._layoutAxes=function(){var t=this._rect,r=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;r.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),aw(n,function(o,s){var l=(i.axisExpandable?Dke:Pke)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:kke/2,vertical:0},f=[u[a].x+t.x,u[a].y+t.y],d=c[a],h=Ci();Hu(h,h,d),Va(h,h,f),this._axesLayout[o]={position:f,rotation:d,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(t){return this._axesMap.get(t)},e.prototype.dataToPoint=function(t,r){return this.axisCoordToPoint(this._axesMap.get(r).dataToCoord(t),r)},e.prototype.eachActiveState=function(t,r,n,i){n==null&&(n=0),i==null&&(i=t.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];R(o,function(g){s.push(t.mapDimension(g)),l.push(a.get(g).model)});for(var u=this.hasAxisBrushed(),c=n;ca*(1-f[0])?(u="jump",l=s-a*(1-f[2])):(l=s-a*f[1])>=0&&(l=s-a*(1-f[1]))<=0&&(l=0),l*=r.axisExpandWidth/c,l?Xu(l,i,o,"all"):u="none";else{var h=i[1]-i[0],p=o[1]*s/h;i=[yU(0,p-h/2)],i[1]=mU(o[1],i[0]+h),i[0]=i[1]-h}return{axisExpandWindow:i,behavior:u}},e}();function xm(e,t){return mU(yU(e,t[0]),t[1])}function Pke(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function Dke(e,t){var r=t.layoutLength,n=t.axisExpandWidth,i=t.axisCount,a=t.axisCollapseWidth,o=t.winInnerIndices,s,l=a,u=!1,c;return e=0;i--)yi(n[i])},t.prototype.getActiveState=function(r){var n=this.activeIntervals;if(!n.length)return"normal";if(r==null||isNaN(+r))return"inactive";if(n.length===1){var i=n[0];if(i[0]<=r&&r<=i[1])return"active"}else for(var a=0,o=n.length;aBke}function TU(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function AU(e,t,r,n){var i=new Me;return i.add(new Qe({name:"main",style:HI(r),silent:!0,draggable:!0,cursor:"move",drift:Ie(J5,e,t,i,["n","s","w","e"]),ondragend:Ie(Ru,t,{isEnd:!0})})),R(n,function(a){i.add(new Qe({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Ie(J5,e,t,i,a),ondragend:Ie(Ru,t,{isEnd:!0})}))}),i}function MU(e,t,r,n){var i=n.brushStyle.lineWidth||0,a=Nf(i,$ke),o=r[0][0],s=r[1][0],l=o-i/2,u=s-i/2,c=r[0][1],f=r[1][1],d=c-a+i/2,h=f-a+i/2,p=c-o,v=f-s,g=p+i,m=v+i;Qa(e,t,"main",o,s,p,v),n.transformable&&(Qa(e,t,"w",l,u,a,m),Qa(e,t,"e",d,u,a,m),Qa(e,t,"n",l,u,g,a),Qa(e,t,"s",l,h,g,a),Qa(e,t,"nw",l,u,a,a),Qa(e,t,"ne",d,u,a,a),Qa(e,t,"sw",l,h,a,a),Qa(e,t,"se",d,h,a,a))}function MA(e,t){var r=t.__brushOption,n=r.transformable,i=t.childAt(0);i.useStyle(HI(r)),i.attr({silent:!n,cursor:n?"move":"default"}),R([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?kA(e,a[0]):Uke(e,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?Vke[s]+"-resize":null})})}function Qa(e,t,r,n,i,a,o){var s=t.childOfName(r);s&&s.setShape(Yke(WI(e,t,[[n,i],[n+a,i+o]])))}function HI(e){return be({strokeNoScale:!0},e.brushStyle)}function kU(e,t,r,n){var i=[lv(e,r),lv(t,n)],a=[Nf(e,r),Nf(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function jke(e){return hu(e.group)}function kA(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=Ox(r[t],jke(e));return n[i]}function Uke(e,t){var r=[kA(e,t[0]),kA(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function J5(e,t,r,n,i,a){var o=r.__brushOption,s=e.toRectRange(o.range),l=IU(t,i,a);R(n,function(u){var c=Fke[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(kU(s[0][0],s[1][0],s[0][1],s[1][1])),FI(t,r),Ru(t,{isEnd:!1})}function qke(e,t,r,n){var i=t.__brushOption.range,a=IU(e,r,n);R(i,function(o){o[0]+=a[0],o[1]+=a[1]}),FI(e,t),Ru(e,{isEnd:!1})}function IU(e,t,r){var n=e.group,i=n.transformCoordToLocal(t,r),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function WI(e,t,r){var n=CU(e,t);return n&&n!==Du?n.clipPath(r,e._transform):Te(r)}function Yke(e){var t=lv(e[0][0],e[1][0]),r=lv(e[0][1],e[1][1]),n=Nf(e[0][0],e[1][0]),i=Nf(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:i-r}}function Xke(e,t,r){if(!(!e._brushType||Kke(e,t.offsetX,t.offsetY))){var n=e._zr,i=e._covers,a=GI(e,t,r);if(!e._dragging)for(var o=0;on.getWidth()||r<0||r>n.getHeight()}var nS={lineX:rB(0),lineY:rB(1),rect:{createCover:function(e,t){function r(n){return n}return AU({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=TU(e);return kU(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){MU(e,t,r,n)},updateCommon:MA,contain:PA},polygon:{createCover:function(e,t){var r=new Me;return r.add(new En({name:"main",style:HI(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Rn({name:"main",draggable:!0,drift:Ie(qke,e,t),ondragend:Ie(Ru,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:WI(e,t,r)})},updateCommon:MA,contain:PA}};function rB(e){return{createCover:function(t,r){return AU({toRectRange:function(n){var i=[n,[0,100]];return e&&i.reverse(),i},fromRectRange:function(n){return n[e]}},t,r,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var r=TU(t),n=lv(r[0][e],r[1][e]),i=Nf(r[0][e],r[1][e]);return[n,i]},updateCoverShape:function(t,r,n,i){var a,o=CU(t,r);if(o!==Du&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[n,a];e&&l.reverse(),MU(t,r,l,i)},updateCommon:MA,contain:PA}}const jI=Hke;function DU(e){return e=UI(e),function(t){return OW(t,e)}}function RU(e,t){return e=UI(e),function(r){var n=t??r,i=n?e.width:e.height,a=n?e.x:e.y;return[a,a+(i||0)]}}function LU(e,t,r){var n=UI(e);return function(i,a){return n.contain(a[0],a[1])&&!Jx(i,t,r)}}function UI(e){return Ne.create(e)}var Qke=["axisLine","axisTickLabel","axisName"],Jke=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){e.prototype.init.apply(this,arguments),(this._brushController=new jI(n.getZr())).on("brush",ce(this._onBrush,this))},t.prototype.render=function(r,n,i,a){if(!eIe(r,n,a)){this.axisModel=r,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Me,this.group.add(this._axisGroup),!!r.get("show")){var s=rIe(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),c=u.width,f=r.axis.dim,d=l.getAxisLayout(f),h=q({strokeContainThreshold:c},d),p=new Ao(r,h);R(Qke,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(h,u,r,s,c,i),Lv(o,this._axisGroup,r)}}},t.prototype._refreshBrushController=function(r,n,i,a,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=Ne.create({x:l[0],y:-o/2,width:u,height:o});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:r.rotation,x:r.position[0],y:r.position[1]}).setPanels([{panelId:"pl",clipPath:DU(f),isTargetByCursor:LU(f,s,a),getLinearBrushOtherExtent:RU(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(tIe(i))},t.prototype._onBrush=function(r){var n=r.areas,i=this.axisModel,a=i.axis,o=Z(n,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});(!i.option.realtime===r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Ut);function eIe(e,t,r){return r&&r.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function tIe(e){var t=e.axis;return Z(e.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(r[0],!0),t.dataToCoord(r[1],!0)]}})}function rIe(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}const nIe=Jke;var iIe={type:"axisAreaSelect",event:"axisAreaSelected"};function aIe(e){e.registerAction(iIe,function(t,r){r.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),e.registerAction("parallelAxisExpand",function(t,r){r.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var oIe={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function EU(e){e.registerComponentView(_ke),e.registerComponentModel(Cke),e.registerCoordinateSystem("parallel",Oke),e.registerPreprocessor(gke),e.registerComponentModel(Z5),e.registerComponentView(nIe),Of(e,"parallel",Z5,oIe),aIe(e)}function sIe(e){Fe(EU),e.registerChartView(lke),e.registerSeriesModel(dke),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,vke)}var lIe=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),uIe=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new lIe},t.prototype.buildPath=function(r,n){var i=n.extent;r.moveTo(n.x1,n.y1),r.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(r.lineTo(n.x2+i,n.y2),r.bezierCurveTo(n.cpx2+i,n.cpy2,n.cpx1+i,n.cpy1,n.x1+i,n.y1)):(r.lineTo(n.x2,n.y2+i),r.bezierCurveTo(n.cpx2,n.cpy2+i,n.cpx1,n.cpy1+i,n.x1,n.y1+i)),r.closePath()},t.prototype.highlight=function(){wo(this)},t.prototype.downplay=function(){Co(this)},t}(We),cIe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._focusAdjacencyDisabled=!1,r}return t.prototype.render=function(r,n,i){var a=this,o=r.getGraph(),s=this.group,l=r.layoutInfo,u=l.width,c=l.height,f=r.getData(),d=r.getData("edge"),h=r.get("orient");this._model=r,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var v=new uIe,g=ke(v);g.dataIndex=p.dataIndex,g.seriesIndex=r.seriesIndex,g.dataType="edge";var m=p.getModel(),y=m.getModel("lineStyle"),x=y.get("curveness"),S=p.node1.getLayout(),_=p.node1.getModel(),b=_.get("localX"),w=_.get("localY"),C=p.node2.getLayout(),A=p.node2.getModel(),T=A.get("localX"),M=A.get("localY"),k=p.getLayout(),I,P,L,z,V,N,F,E;v.shape.extent=Math.max(1,k.dy),v.shape.orient=h,h==="vertical"?(I=(b!=null?b*u:S.x)+k.sy,P=(w!=null?w*c:S.y)+S.dy,L=(T!=null?T*u:C.x)+k.ty,z=M!=null?M*c:C.y,V=I,N=P*(1-x)+z*x,F=L,E=P*x+z*(1-x)):(I=(b!=null?b*u:S.x)+S.dx,P=(w!=null?w*c:S.y)+k.sy,L=T!=null?T*u:C.x,z=(M!=null?M*c:C.y)+k.ty,V=I*(1-x)+L*x,N=P,F=I*x+L*(1-x),E=z),v.setShape({x1:I,y1:P,x2:L,y2:z,cpx1:V,cpy1:N,cpx2:F,cpy2:E}),v.useStyle(y.getItemStyle()),nB(v.style,h,p);var G=""+m.get("value"),j=xr(m,"edgeLabel");Br(v,j,{labelFetcher:{getFormattedLabel:function(X,W,ee,te,ie,re){return r.getFormattedLabel(X,W,"edge",te,Ea(ie,j.normal&&j.normal.get("formatter"),G),re)}},labelDataIndex:p.dataIndex,defaultText:G}),v.setTextConfig({position:"inside"});var B=m.getModel("emphasis");zr(v,m,"lineStyle",function(X){var W=X.getItemStyle();return nB(W,h,p),W}),s.add(v),d.setItemGraphicEl(p.dataIndex,v);var U=B.get("focus");jt(v,U==="adjacency"?p.getAdjacentDataIndices():U==="trajectory"?p.getTrajectoryDataIndices():U,B.get("blurScope"),B.get("disabled"))}),o.eachNode(function(p){var v=p.getLayout(),g=p.getModel(),m=g.get("localX"),y=g.get("localY"),x=g.getModel("emphasis"),S=new Qe({shape:{x:m!=null?m*u:v.x,y:y!=null?y*c:v.y,width:v.dx,height:v.dy},style:g.getModel("itemStyle").getItemStyle(),z2:10});Br(S,xr(g),{labelFetcher:{getFormattedLabel:function(b,w){return r.getFormattedLabel(b,w,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),S.disableLabelAnimation=!0,S.setStyle("fill",p.getVisual("color")),S.setStyle("decal",p.getVisual("style").decal),zr(S,g),s.add(S),f.setItemGraphicEl(p.dataIndex,S),ke(S).dataType="node";var _=x.get("focus");jt(S,_==="adjacency"?p.getAdjacentDataIndices():_==="trajectory"?p.getTrajectoryDataIndices():_,x.get("blurScope"),x.get("disabled"))}),f.eachItemGraphicEl(function(p,v){var g=f.getItemModel(v);g.get("draggable")&&(p.drift=function(m,y){a._focusAdjacencyDisabled=!0,this.shape.x+=m,this.shape.y+=y,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:r.id,dataIndex:f.getRawIndex(v),localX:this.shape.x/u,localY:this.shape.y/c})},p.ondragend=function(){a._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&r.isAnimationEnabled()&&s.setClipPath(fIe(s.getBoundingRect(),r,function(){s.removeClipPath()})),this._data=r.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(Tt);function nB(e,t,r){switch(e.fill){case"source":e.fill=r.node1.getVisual("color"),e.decal=r.node1.getVisual("style").decal;break;case"target":e.fill=r.node2.getVisual("color"),e.decal=r.node2.getVisual("style").decal;break;case"gradient":var n=r.node1.getVisual("color"),i=r.node2.getVisual("color");oe(n)&&oe(i)&&(e.fill=new Rv(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:i,offset:1}]))}}function fIe(e,t,r){var n=new Qe({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Lt(n,{shape:{width:e.width+20}},t,r),n}const dIe=cIe;var hIe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){var i=r.edges||r.links,a=r.data||r.nodes,o=r.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new wt(o[l],this,n));if(a&&i){var u=vU(a,i,this,!0,c);return u.data}function c(f,d){f.wrapMethod("getItemModel",function(h,p){var v=h.parentModel,g=v.getData().getItemLayout(p);if(g){var m=g.depth,y=v.levelModels[m];y&&(h.parentModel=y)}return h}),d.wrapMethod("getItemModel",function(h,p){var v=h.parentModel,g=v.getGraph().getEdgeByIndex(p),m=g.node1.getLayout();if(m){var y=m.depth,x=v.levelModels[y];x&&(h.parentModel=x)}return h})}},t.prototype.setNodePosition=function(r,n){var i=this.option.data||this.option.nodes,a=i[r];a.localX=n[0],a.localY=n[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(r,n,i){function a(h){return isNaN(h)||h==null}if(i==="edge"){var o=this.getDataParams(r,i),s=o.data,l=o.value,u=s.source+" -- "+s.target;return Sr("nameValue",{name:u,value:l,noValue:a(l)})}else{var c=this.getGraph().getNodeByIndex(r),f=c.getLayout().value,d=this.getDataParams(r,i).data.name;return Sr("nameValue",{name:d!=null?d+"":null,value:f,noValue:a(f)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(r,n){var i=e.prototype.getDataParams.call(this,r,n);if(i.value==null&&n==="node"){var a=this.getGraph().getNodeByIndex(r),o=a.getLayout().value;i.value=o}return i},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(zt);const pIe=hIe;function vIe(e,t){e.eachSeriesByType("sankey",function(r){var n=r.get("nodeWidth"),i=r.get("nodeGap"),a=gIe(r,t);r.layoutInfo=a;var o=a.width,s=a.height,l=r.getGraph(),u=l.nodes,c=l.edges;yIe(u);var f=dt(u,function(v){return v.getLayout().value===0}),d=f.length!==0?0:r.get("layoutIterations"),h=r.get("orient"),p=r.get("nodeAlign");mIe(u,c,n,i,o,s,d,h,p)})}function gIe(e,t){return pr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function mIe(e,t,r,n,i,a,o,s,l){xIe(e,t,r,i,a,s,l),wIe(e,t,a,i,n,o,s),RIe(e,s)}function yIe(e){R(e,function(t){var r=ks(t.outEdges,U0),n=ks(t.inEdges,U0),i=t.getValue()||0,a=Math.max(r,n,i);t.setLayout({value:a},!0)})}function xIe(e,t,r,n,i,a,o){for(var s=[],l=[],u=[],c=[],f=0,d=0;d=0;m&&g.depth>h&&(h=g.depth),v.setLayout({depth:m?g.depth:f},!0),a==="vertical"?v.setLayout({dy:r},!0):v.setLayout({dx:r},!0);for(var y=0;yf-1?h:f-1;o&&o!=="left"&&SIe(e,o,a,w);var C=a==="vertical"?(i-r)/w:(n-r)/w;_Ie(e,C,a)}function OU(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function SIe(e,t,r,n){if(t==="right"){for(var i=[],a=e,o=0;a.length;){for(var s=0;s0;a--)l*=.99,AIe(s,l,o),ow(s,i,r,n,o),DIe(s,l,o),ow(s,i,r,n,o)}function CIe(e,t){var r=[],n=t==="vertical"?"y":"x",i=RT(e,function(a){return a.getLayout()[n]});return i.keys.sort(function(a,o){return a-o}),R(i.keys,function(a){r.push(i.buckets.get(a))}),r}function TIe(e,t,r,n,i,a){var o=1/0;R(e,function(s){var l=s.length,u=0;R(s,function(f){u+=f.getLayout().value});var c=a==="vertical"?(n-(l-1)*i)/u:(r-(l-1)*i)/u;c0&&(s=l.getLayout()[a]+u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]+l.getLayout()[d]+t;var p=i==="vertical"?n:r;if(u=c-t-p,u>0){s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var h=f-2;h>=0;--h)l=o[h],u=l.getLayout()[a]+l.getLayout()[d]+t-c,u>0&&(s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]}})}function AIe(e,t,r){R(e.slice().reverse(),function(n){R(n,function(i){if(i.outEdges.length){var a=ks(i.outEdges,MIe,r)/ks(i.outEdges,U0);if(isNaN(a)){var o=i.outEdges.length;a=o?ks(i.outEdges,kIe,r)/o:0}if(r==="vertical"){var s=i.getLayout().x+(a-Gs(i,r))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-Gs(i,r))*t;i.setLayout({y:l},!0)}}})})}function MIe(e,t){return Gs(e.node2,t)*e.getValue()}function kIe(e,t){return Gs(e.node2,t)}function IIe(e,t){return Gs(e.node1,t)*e.getValue()}function PIe(e,t){return Gs(e.node1,t)}function Gs(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function U0(e){return e.getValue()}function ks(e,t,r){for(var n=0,i=e.length,a=-1;++ao&&(o=l)}),R(n,function(s){var l=new Or({type:"color",mappingMethod:"linear",dataExtent:[a,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}i.length&&R(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function EIe(e){e.registerChartView(dIe),e.registerSeriesModel(pIe),e.registerLayout(vIe),e.registerVisual(LIe),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){n.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var NU=function(){function e(){}return e.prototype.getInitialData=function(t,r){var n,i=r.getComponent("xAxis",this.get("xAxisIndex")),a=r.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=a.get("type"),l;o==="category"?(t.layout="horizontal",n=i.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",n=a.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],d=u[1-c],h=[i,a],p=h[c].get("type"),v=h[1-c].get("type"),g=t.data;if(g&&l){var m=[];R(g,function(S,_){var b;Y(S)?(b=S.slice(),S.unshift(_)):Y(S.value)?(b=q({},S),b.value=b.value.slice(),S.value.unshift(_)):b=S,m.push(b)}),t.data=m}var y=this.defaultValueDimensions,x=[{name:f,type:E0(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:E0(v),dimsDef:y.slice()}];return fd(this,{coordDimensions:x,dimensionsCount:y.length+1,encodeDefaulter:Ie(lj,x,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),zU=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],r.visualDrawType="stroke",r}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(zt);ur(zU,NU,!0);const OIe=zU;var NIe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=r.get("layout")==="horizontal"?1:0;a.diff(s).add(function(u){if(a.hasValue(u)){var c=a.getItemLayout(u),f=iB(c,a,u,l,!0);a.setItemGraphicEl(u,f),o.add(f)}}).update(function(u,c){var f=s.getItemGraphicEl(c);if(!a.hasValue(u)){o.remove(f);return}var d=a.getItemLayout(u);f?(ea(f),BU(d,f,a,u)):f=iB(d,a,u,l),o.add(f),a.setItemGraphicEl(u,f)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=a},t.prototype.remove=function(r){var n=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(a){a&&n.remove(a)})},t.type="boxplot",t}(Tt),zIe=function(){function e(){}return e}(),BIe=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new zIe},t.prototype.buildPath=function(r,n){var i=n.points,a=0;for(r.moveTo(i[a][0],i[a][1]),a++;a<4;a++)r.lineTo(i[a][0],i[a][1]);for(r.closePath();av){var S=[m,x];n.push(S)}}}return{boxData:r,outliers:n}}var UIe={type:"echarts:boxplot",transform:function(t){var r=t.upstream;if(r.sourceFormat!==Kr){var n="";lt(n)}var i=jIe(r.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function qIe(e){e.registerSeriesModel(OIe),e.registerChartView(FIe),e.registerLayout(VIe),e.registerTransform(UIe)}var YIe=["color","borderColor"],XIe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(r),this._isLargeDraw?this._renderLarge(r):this._renderNormal(r)},t.prototype.incrementalPrepareRender=function(r,n,i){this._clear(),this._updateDrawMode(r)},t.prototype.incrementalRender=function(r,n,i,a){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(r,n):this._incrementalRenderNormal(r,n)},t.prototype.eachRendered=function(r){Ks(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r){var n=r.getData(),i=this._data,a=this.group,o=n.getLayout("isSimpleBox"),s=r.get("clip",!0),l=r.coordinateSystem,u=l.getArea&&l.getArea();this._data||a.removeAll(),n.diff(i).add(function(c){if(n.hasValue(c)){var f=n.getItemLayout(c);if(s&&aB(u,f))return;var d=sw(f,c,!0);Lt(d,{shape:{points:f.ends}},r,c),lw(d,n,c,o),a.add(d),n.setItemGraphicEl(c,d)}}).update(function(c,f){var d=i.getItemGraphicEl(f);if(!n.hasValue(c)){a.remove(d);return}var h=n.getItemLayout(c);if(s&&aB(u,h)){a.remove(d);return}d?(at(d,{shape:{points:h.ends}},r,c),ea(d)):d=sw(h),lw(d,n,c,o),a.add(d),n.setItemGraphicEl(c,d)}).remove(function(c){var f=i.getItemGraphicEl(c);f&&a.remove(f)}).execute(),this._data=n},t.prototype._renderLarge=function(r){this._clear(),oB(r,this.group);var n=r.get("clip",!0)?Qx(r.coordinateSystem,!1,r):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(r,n){for(var i=n.getData(),a=i.getLayout("isSimpleBox"),o;(o=r.next())!=null;){var s=i.getItemLayout(o),l=sw(s);lw(l,i,o,a),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(r,n){oB(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(r){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(Tt),ZIe=function(){function e(){}return e}(),KIe=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new ZIe},t.prototype.buildPath=function(r,n){var i=n.points;this.__simpleBox?(r.moveTo(i[4][0],i[4][1]),r.lineTo(i[6][0],i[6][1])):(r.moveTo(i[0][0],i[0][1]),r.lineTo(i[1][0],i[1][1]),r.lineTo(i[2][0],i[2][1]),r.lineTo(i[3][0],i[3][1]),r.closePath(),r.moveTo(i[4][0],i[4][1]),r.lineTo(i[5][0],i[5][1]),r.moveTo(i[6][0],i[6][1]),r.lineTo(i[7][0],i[7][1]))},t}(We);function sw(e,t,r){var n=e.ends;return new KIe({shape:{points:r?QIe(n,e):n},z2:100})}function aB(e,t){for(var r=!0,n=0;n0?"borderColor":"borderColor0"])||r.get(["itemStyle",e>0?"color":"color0"]);e===0&&(i=r.get(["itemStyle","borderColorDoji"]));var a=r.getModel("itemStyle").getItemStyle(YIe);t.useStyle(a),t.style.fill=null,t.style.stroke=i}const ePe=XIe;var $U=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],r}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(r,n,i){var a=n.getItemLayout(r);return a&&i.rect(a.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(zt);ur($U,NU,!0);const tPe=$U;function rPe(e){!e||!Y(e.series)||R(e.series,function(t){_e(t)&&t.type==="k"&&(t.type="candlestick")})}var nPe=["itemStyle","borderColor"],iPe=["itemStyle","borderColor0"],aPe=["itemStyle","borderColorDoji"],oPe=["itemStyle","color"],sPe=["itemStyle","color0"],lPe={seriesType:"candlestick",plan:ld(),performRawSeries:!0,reset:function(e,t){function r(a,o){return o.get(a>0?oPe:sPe)}function n(a,o){return o.get(a===0?aPe:a>0?nPe:iPe)}if(!t.isSeriesFiltered(e)){var i=e.pipelineContext.large;return!i&&{progress:function(a,o){for(var s;(s=a.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=r(u,l),c.stroke=n(u,l)||c.fill;var f=o.ensureUniqueItemVisual(s,"style");q(f,c)}}}}}};const uPe=lPe;var cPe={seriesType:"candlestick",plan:ld(),reset:function(e){var t=e.coordinateSystem,r=e.getData(),n=fPe(e,r),i=0,a=1,o=["x","y"],s=r.getDimensionIndex(r.mapDimension(o[i])),l=Z(r.mapDimensionsAll(o[a]),r.getDimensionIndex,r),u=l[0],c=l[1],f=l[2],d=l[3];if(r.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:e.pipelineContext.large?p:h};function h(v,g){for(var m,y=g.getStore();(m=v.next())!=null;){var x=y.get(s,m),S=y.get(u,m),_=y.get(c,m),b=y.get(f,m),w=y.get(d,m),C=Math.min(S,_),A=Math.max(S,_),T=V(C,x),M=V(A,x),k=V(b,x),I=V(w,x),P=[];N(P,M,0),N(P,T,1),P.push(E(I),E(M),E(k),E(T));var L=g.getItemModel(m),z=!!L.get(["itemStyle","borderColorDoji"]);g.setItemLayout(m,{sign:sB(y,m,S,_,c,z),initBaseline:S>_?M[a]:T[a],ends:P,brushRect:F(b,w,x)})}function V(G,j){var B=[];return B[i]=j,B[a]=G,isNaN(j)||isNaN(G)?[NaN,NaN]:t.dataToPoint(B)}function N(G,j,B){var U=j.slice(),X=j.slice();U[i]=oy(U[i]+n/2,1,!1),X[i]=oy(X[i]-n/2,1,!0),B?G.push(U,X):G.push(X,U)}function F(G,j,B){var U=V(G,B),X=V(j,B);return U[i]-=n/2,X[i]-=n/2,{x:U[0],y:U[1],width:n,height:X[1]-U[1]}}function E(G){return G[i]=oy(G[i],1),G}}function p(v,g){for(var m=Ma(v.count*4),y=0,x,S=[],_=[],b,w=g.getStore(),C=!!e.get(["itemStyle","borderColorDoji"]);(b=v.next())!=null;){var A=w.get(s,b),T=w.get(u,b),M=w.get(c,b),k=w.get(f,b),I=w.get(d,b);if(isNaN(A)||isNaN(k)||isNaN(I)){m[y++]=NaN,y+=3;continue}m[y++]=sB(w,b,T,M,c,C),S[i]=A,S[a]=k,x=t.dataToPoint(S,null,_),m[y++]=x?x[0]:NaN,m[y++]=x?x[1]:NaN,S[a]=I,x=t.dataToPoint(S,null,_),m[y++]=x?x[1]:NaN}g.setLayout("largePoints",m)}}};function sB(e,t,r,n,i,a){var o;return r>n?o=-1:r0?e.get(i,t-1)<=n?1:-1:1,o}function fPe(e,t){var r=e.getBaseAxis(),n,i=r.type==="category"?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/t.count()),a=ne(Ee(e.get("barMaxWidth"),i),i),o=ne(Ee(e.get("barMinWidth"),1),i),s=e.get("barWidth");return s!=null?ne(s,i):Math.max(Math.min(i/2,a),o)}const dPe=cPe;function hPe(e){e.registerChartView(ePe),e.registerSeriesModel(tPe),e.registerPreprocessor(rPe),e.registerVisual(uPe),e.registerLayout(dPe)}function lB(e,t){var r=t.rippleEffectColor||t.color;e.eachChild(function(n){n.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?r:null,fill:t.brushType==="fill"?r:null}})})}var pPe=function(e){H(t,e);function t(r,n){var i=e.call(this)||this,a=new Vv(r,n),o=new Me;return i.add(a),i.add(o),i.updateData(r,n),i}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(r){for(var n=r.symbolType,i=r.color,a=r.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(a)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){a.stopAnimation();var d=void 0;Se(f)?d=f(i):d=f,a.__t>0&&(d=-s*a.__t),this._animateSymbol(a,s,d,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(r,n,i,a,o){if(n>0){r.__t=0;var s=this,l=r.animate("",a).when(o?n*2:n,{__t:o?2:1}).delay(i).during(function(){s._updateSymbolPosition(r)});a||l.done(function(){s.remove(r)}),l.start()}},t.prototype._getLineLength=function(r){return os(r.__p1,r.__cp1)+os(r.__cp1,r.__p2)},t.prototype._updateAnimationPoints=function(r,n){r.__p1=n[0],r.__p2=n[1],r.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},t.prototype.updateData=function(r,n,i){this.childAt(0).updateData(r,n,i),this._updateEffectSymbol(r,n)},t.prototype._updateSymbolPosition=function(r){var n=r.__p1,i=r.__p2,a=r.__cp1,o=r.__t<1?r.__t:2-r.__t,s=[r.x,r.y],l=s.slice(),u=wr,c=xT;s[0]=u(n[0],a[0],i[0],o),s[1]=u(n[1],a[1],i[1],o);var f=r.__t<1?c(n[0],a[0],i[0],o):c(i[0],a[0],n[0],1-o),d=r.__t<1?c(n[1],a[1],i[1],o):c(i[1],a[1],n[1],1-o);r.rotation=-Math.atan2(d,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(r.__lastT!==void 0&&r.__lastT=0&&!(a[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;ln);l++);l=Math.min(l-1,o-2)}var c=(n-a[l])/(a[l+1]-a[l]),f=i[l],d=i[l+1];r.x=f[0]*(1-c)+c*d[0],r.y=f[1]*(1-c)+c*d[1];var h=r.__t<1?d[0]-f[0]:f[0]-d[0],p=r.__t<1?d[1]-f[1]:f[1]-d[1];r.rotation=-Math.atan2(p,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,r.ignore=!1}},t}(FU);const CPe=wPe;var TPe=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),APe=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new TPe},t.prototype.buildPath=function(r,n){var i=n.segs,a=n.curveness,o;if(n.polyline)for(o=this._off;o0){r.moveTo(i[o++],i[o++]);for(var l=1;l0){var h=(u+f)/2-(c-d)*a,p=(c+d)/2-(f-u)*a;r.quadraticCurveTo(h,p,f,d)}else r.lineTo(f,d)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(r,n){var i=this.shape,a=i.segs,o=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,u=0;u0)for(var f=a[u++],d=a[u++],h=1;h0){var g=(f+p)/2-(d-v)*o,m=(d+v)/2-(p-f)*o;if(YH(f,d,g,m,p,v,s,r,n))return l}else if(Jo(f,d,p,v,s,r,n))return l;l++}return-1},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.segs,a=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+t.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const kPe=MPe;var IPe={seriesType:"lines",plan:ld(),reset:function(e){var t=e.coordinateSystem;if(t){var r=e.get("polyline"),n=e.pipelineContext.large;return{progress:function(i,a){var o=[];if(n){var s=void 0,l=i.end-i.start;if(r){for(var u=0,c=i.start;c0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(a);var f=r.get("clip",!0)&&Qx(r.coordinateSystem,!1,r);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateLineDraw(a,r);o.incrementalPrepareUpdate(a),this._clearLayer(i),this._finished=!1},t.prototype.incrementalRender=function(r,n,i){this._lineDraw.incrementalUpdate(r,n.getData()),this._finished=r.end===n.getData().count()},t.prototype.eachRendered=function(r){this._lineDraw&&this._lineDraw.eachRendered(r)},t.prototype.updateTransform=function(r,n,i){var a=r.getData(),o=r.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=GU.reset(r,n,i);s.progress&&s.progress({start:0,end:a.count(),count:a.count()},a),this._lineDraw.updateLayout(),this._clearLayer(i)},t.prototype._updateLineDraw=function(r,n){var i=this._lineDraw,a=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return(!i||a!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new kPe:new $I(o?a?CPe:VU:a?FU:BI),this._hasEffet=a,this._isPolyline=o,this._isLargeDraw=l),this.group.add(i.group),i},t.prototype._showEffect=function(r){return!!r.get(["effect","show"])},t.prototype._clearLayer=function(r){var n=r.getZr(),i=n.painter.getType()==="svg";!i&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(r,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},t.prototype.dispose=function(r,n){this.remove(r,n)},t.type="lines",t}(Tt);const DPe=PPe;var RPe=typeof Uint32Array>"u"?Array:Uint32Array,LPe=typeof Float64Array>"u"?Array:Float64Array;function uB(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=Z(t,function(r){var n=[r[0].coord,r[1].coord],i={coords:n};return r[0].name&&(i.fromName=r[0].name),r[1].name&&(i.toName=r[1].name),pk([i,r[0],r[1]])}))}var EPe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return t.prototype.init=function(r){r.data=r.data||[],uB(r);var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(r){if(uB(r),r.data){var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(r){var n=this._processFlatCoordsArray(r.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=u0(this._flatCoords,n.flatCoords),this._flatCoordsOffset=u0(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),r.data=new Float32Array(n.count)),this.getRawData().appendData(r.data)},t.prototype._getCoordsFromItemModel=function(r){var n=this.getData().getItemModel(r),i=n.option instanceof Array?n.option:n.getShallow("coords");return i},t.prototype.getLineCoordsCount=function(r){return this._flatCoordsOffset?this._flatCoordsOffset[r*2+1]:this._getCoordsFromItemModel(r).length},t.prototype.getLineCoords=function(r,n){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[r*2],a=this._flatCoordsOffset[r*2+1],o=0;o ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var r=this.getModel("effect"),n=r.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:r.get("show")&&n>0?n+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(zt);const OPe=EPe;function Sm(e){return e instanceof Array||(e=[e,e]),e}var NPe={seriesType:"lines",reset:function(e){var t=Sm(e.get("symbol")),r=Sm(e.get("symbolSize")),n=e.getData();n.setVisual("fromSymbol",t&&t[0]),n.setVisual("toSymbol",t&&t[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]);function i(a,o){var s=a.getItemModel(o),l=Sm(s.getShallow("symbol",!0)),u=Sm(s.getShallow("symbolSize",!0));l[0]&&a.setItemVisual(o,"fromSymbol",l[0]),l[1]&&a.setItemVisual(o,"toSymbol",l[1]),u[0]&&a.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&a.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:n.hasItemOption?i:null}}};const zPe=NPe;function BPe(e){e.registerChartView(DPe),e.registerSeriesModel(OPe),e.registerLayout(GU),e.registerVisual(zPe)}var $Pe=256,FPe=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Ns.createCanvas();this.canvas=t}return e.prototype.update=function(t,r,n,i,a,o){var s=this._getBrush(),l=this._getGradient(a,"inRange"),u=this._getGradient(a,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,d=f.getContext("2d"),h=t.length;f.width=r,f.height=n;for(var p=0;p0){var k=o(x)?l:u;x>0&&(x=x*T+C),_[b++]=k[M],_[b++]=k[M+1],_[b++]=k[M+2],_[b++]=k[M+3]*x*256}else b+=4}return d.putImageData(S,0,0),f},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Ns.createCanvas()),r=this.pointSize+this.blurSize,n=r*2;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-r,r,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),t},e.prototype._getGradient=function(t,r){for(var n=this._gradientPixels,i=n[r]||(n[r]=new Uint8ClampedArray(256*4)),a=[0,0,0,0],o=0,s=0;s<256;s++)t[r](s/255,!0,a),i[o++]=a[0],i[o++]=a[1],i[o++]=a[2],i[o++]=a[3];return i},e}();const VPe=FPe;function GPe(e,t,r){var n=e[1]-e[0];t=Z(t,function(o){return{interval:[(o.interval[0]-e[0])/n,(o.interval[1]-e[0])/n]}});var i=t.length,a=0;return function(o){var s;for(s=a;s=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}return s>=0&&s=t[0]&&n<=t[1]}}function cB(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var WPe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===r&&(a=s)})}),this._progressiveEls=null,this.group.removeAll();var o=r.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(r,i,0,r.getData().count()):cB(o)&&this._renderOnGeo(o,r,a,i)},t.prototype.incrementalPrepareRender=function(r,n,i){this.group.removeAll()},t.prototype.incrementalRender=function(r,n,i,a){var o=n.coordinateSystem;o&&(cB(o)?this.render(n,i,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,a,r.start,r.end,!0)))},t.prototype.eachRendered=function(r){Ks(this._progressiveEls||this.group,r)},t.prototype._renderOnCartesianAndCalendar=function(r,n,i,a,o){var s=r.coordinateSystem,l=qu(s,"cartesian2d"),u,c,f,d;if(l){var h=s.getAxis("x"),p=s.getAxis("y");u=h.getBandWidth()+.5,c=p.getBandWidth()+.5,f=h.scale.getExtent(),d=p.scale.getExtent()}for(var v=this.group,g=r.getData(),m=r.getModel(["emphasis","itemStyle"]).getItemStyle(),y=r.getModel(["blur","itemStyle"]).getItemStyle(),x=r.getModel(["select","itemStyle"]).getItemStyle(),S=r.get(["itemStyle","borderRadius"]),_=xr(r),b=r.getModel("emphasis"),w=b.get("focus"),C=b.get("blurScope"),A=b.get("disabled"),T=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],M=i;Mf[1]||Ld[1])continue;var z=s.dataToPoint([P,L]);k=new Qe({shape:{x:z[0]-u/2,y:z[1]-c/2,width:u,height:c},style:I})}else{if(isNaN(g.get(T[1],M)))continue;k=new Qe({z2:1,shape:s.dataToRect([g.get(T[0],M)]).contentShape,style:I})}if(g.hasItemOption){var V=g.getItemModel(M),N=V.getModel("emphasis");m=N.getModel("itemStyle").getItemStyle(),y=V.getModel(["blur","itemStyle"]).getItemStyle(),x=V.getModel(["select","itemStyle"]).getItemStyle(),S=V.get(["itemStyle","borderRadius"]),w=N.get("focus"),C=N.get("blurScope"),A=N.get("disabled"),_=xr(V)}k.shape.r=S;var F=r.getRawValue(M),E="-";F&&F[2]!=null&&(E=F[2]+""),Br(k,_,{labelFetcher:r,labelDataIndex:M,defaultOpacity:I.opacity,defaultText:E}),k.ensureState("emphasis").style=m,k.ensureState("blur").style=y,k.ensureState("select").style=x,jt(k,w,C,A),k.incremental=o,o&&(k.states.emphasis.hoverLayer=!0),v.add(k),g.setItemGraphicEl(M,k),this._progressiveEls&&this._progressiveEls.push(k)}},t.prototype._renderOnGeo=function(r,n,i,a){var o=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new VPe;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var c=r.getViewRect().clone(),f=r.getRoamTransform();c.applyTransform(f);var d=Math.max(c.x,0),h=Math.max(c.y,0),p=Math.min(c.width+c.x,a.getWidth()),v=Math.min(c.height+c.y,a.getHeight()),g=p-d,m=v-h,y=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],x=l.mapArray(y,function(w,C,A){var T=r.dataToPoint([w,C]);return T[0]-=d,T[1]-=h,T.push(A),T}),S=i.getExtent(),_=i.type==="visualMap.continuous"?HPe(S,i.option.range):GPe(S,i.getPieceList(),i.option.selected);u.update(x,g,m,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},_);var b=new $r({style:{width:g,height:m,x:d,y:h,image:u.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t}(Tt);const jPe=WPe;var UPe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return Ro(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var r=Nv.get(this.get("coordinateSystem"));if(r&&r.dimensions)return r.dimensions[0]==="lng"&&r.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(zt);const qPe=UPe;function YPe(e){e.registerChartView(jPe),e.registerSeriesModel(qPe)}var XPe=["itemStyle","borderWidth"],fB=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],fw=new ja,ZPe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=this.group,o=r.getData(),s=this._data,l=r.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),d={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:r,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:fB[+c],categoryDim:fB[1-+c]};return o.diff(s).add(function(h){if(o.hasValue(h)){var p=hB(o,h),v=dB(o,h,p,d),g=pB(o,d,v);o.setItemGraphicEl(h,g),a.add(g),gB(g,d,v)}}).update(function(h,p){var v=s.getItemGraphicEl(p);if(!o.hasValue(h)){a.remove(v);return}var g=hB(o,h),m=dB(o,h,g,d),y=YU(o,m);v&&y!==v.__pictorialShapeStr&&(a.remove(v),o.setItemGraphicEl(h,null),v=null),v?nDe(v,d,m):v=pB(o,d,m,!0),o.setItemGraphicEl(h,v),v.__pictorialSymbolMeta=m,a.add(v),gB(v,d,m)}).remove(function(h){var p=s.getItemGraphicEl(h);p&&vB(s,h,p.__pictorialSymbolMeta.animationModel,p)}).execute(),this._data=o,this.group},t.prototype.remove=function(r,n){var i=this.group,a=this._data;r.get("animation")?a&&a.eachItemGraphicEl(function(o){vB(a,ke(o).dataIndex,r,o)}):i.removeAll()},t.type="pictorialBar",t}(Tt);function dB(e,t,r,n){var i=e.getItemLayout(t),a=r.get("symbolRepeat"),o=r.get("symbolClip"),s=r.get("symbolPosition")||"start",l=r.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=r.get("symbolPatternSize")||2,f=r.isAnimationEnabled(),d={dataIndex:t,layout:i,itemModel:r,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:r.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?r:null,hoverScale:f&&r.get(["emphasis","scale"]),z2:r.getShallow("z",!0)||0};KPe(r,a,i,n,d),QPe(e,t,i,a,o,d.boundingLength,d.pxSign,c,n,d),JPe(r,d.symbolScale,u,n,d);var h=d.symbolSize,p=ju(r.get("symbolOffset"),h);return eDe(r,h,i,a,o,p,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,n,d),d}function KPe(e,t,r,n,i){var a=n.valueDim,o=e.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(r[a.wh]<=0),c;if(Y(o)){var f=[dw(s,o[0])-l,dw(s,o[1])-l];f[1]0?1:-1}function dw(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function QPe(e,t,r,n,i,a,o,s,l,u){var c=l.valueDim,f=l.categoryDim,d=Math.abs(r[f.wh]),h=e.getItemVisual(t,"symbolSize"),p;Y(h)?p=h.slice():h==null?p=["100%","100%"]:p=[h,h],p[f.index]=ne(p[f.index],d),p[c.index]=ne(p[c.index],n?d:Math.abs(a)),u.symbolSize=p;var v=u.symbolScale=[p[0]/s,p[1]/s];v[c.index]*=(l.isHorizontal?-1:1)*o}function JPe(e,t,r,n,i){var a=e.get(XPe)||0;a&&(fw.attr({scaleX:t[0],scaleY:t[1],rotation:r}),fw.updateTransform(),a/=fw.getLineScale(),a*=t[n.valueDim.index]),i.valueLineWidth=a||0}function eDe(e,t,r,n,i,a,o,s,l,u,c,f){var d=c.categoryDim,h=c.valueDim,p=f.pxSign,v=Math.max(t[h.index]+s,0),g=v;if(n){var m=Math.abs(l),y=Cr(e.get("symbolMargin"),"15%")+"",x=!1;y.lastIndexOf("!")===y.length-1&&(x=!0,y=y.slice(0,y.length-1));var S=ne(y,t[h.index]),_=Math.max(v+S*2,0),b=x?0:S*2,w=LH(n),C=w?n:mB((m+b)/_),A=m-C*v;S=A/2/(x?C:Math.max(C-1,1)),_=v+S*2,b=x?0:S*2,!w&&n!=="fixed"&&(C=u?mB((Math.abs(u)+b)/_):0),g=C*_-b,f.repeatTimes=C,f.symbolMargin=S}var T=p*(g/2),M=f.pathPosition=[];M[d.index]=r[d.wh]/2,M[h.index]=o==="start"?T:o==="end"?l-T:l/2,a&&(M[0]+=a[0],M[1]+=a[1]);var k=f.bundlePosition=[];k[d.index]=r[d.xy],k[h.index]=r[h.xy];var I=f.barRectShape=q({},r);I[h.wh]=p*Math.max(Math.abs(r[h.wh]),Math.abs(M[h.index]+T)),I[d.wh]=r[d.wh];var P=f.clipShape={};P[d.xy]=-r[d.xy],P[d.wh]=c.ecSize[d.wh],P[h.xy]=0,P[h.wh]=r[h.wh]}function HU(e){var t=e.symbolPatternSize,r=lr(e.symbolType,-t/2,-t/2,t,t);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function WU(e,t,r,n){var i=e.__pictorialBundle,a=r.symbolSize,o=r.valueLineWidth,s=r.pathPosition,l=t.valueDim,u=r.repeatTimes||0,c=0,f=a[t.valueDim.index]+o+r.symbolMargin*2;for(qI(e,function(v){v.__pictorialAnimationIndex=c,v.__pictorialRepeatTimes=u,c0:m<0)&&(y=u-1-v),g[l.index]=f*(y-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation}}}function jU(e,t,r,n){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?vf(a,null,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation},r,n):(a=e.__pictorialMainPath=HU(r),i.add(a),vf(a,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:0,scaleY:0,rotation:r.rotation},{scaleX:r.symbolScale[0],scaleY:r.symbolScale[1]},r,n))}function UU(e,t,r){var n=q({},t.barRectShape),i=e.__pictorialBarRect;i?vf(i,null,{shape:n},t,r):(i=e.__pictorialBarRect=new Qe({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,e.add(i))}function qU(e,t,r,n){if(r.symbolClip){var i=e.__pictorialClipPath,a=q({},r.clipShape),o=t.valueDim,s=r.animationModel,l=r.dataIndex;if(i)at(i,{shape:a},s,l);else{a[o.wh]=0,i=new Qe({shape:a}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var u={};u[o.wh]=r.clipShape[o.wh],Ov[n?"updateProps":"initProps"](i,{shape:u},s,l)}}}function hB(e,t){var r=e.getItemModel(t);return r.getAnimationDelayParams=tDe,r.isAnimationEnabled=rDe,r}function tDe(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function rDe(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function pB(e,t,r,n){var i=new Me,a=new Me;return i.add(a),i.__pictorialBundle=a,a.x=r.bundlePosition[0],a.y=r.bundlePosition[1],r.symbolRepeat?WU(i,t,r):jU(i,t,r),UU(i,r,n),qU(i,t,r,n),i.__pictorialShapeStr=YU(e,r),i.__pictorialSymbolMeta=r,i}function nDe(e,t,r){var n=r.animationModel,i=r.dataIndex,a=e.__pictorialBundle;at(a,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,i),r.symbolRepeat?WU(e,t,r,!0):jU(e,t,r,!0),UU(e,r,!0),qU(e,t,r,!0)}function vB(e,t,r,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var a=[];qI(n,function(o){a.push(o)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),R(a,function(o){Bs(o,{scaleX:0,scaleY:0},r,t,function(){n.parent&&n.parent.remove(n)})}),e.setItemGraphicEl(t,null)}function YU(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function qI(e,t,r){R(e.__pictorialBundle.children(),function(n){n!==e.__pictorialBarRect&&t.call(r,n)})}function vf(e,t,r,n,i,a){t&&e.attr(t),n.symbolClip&&!i?r&&e.attr(r):r&&Ov[i?"updateProps":"initProps"](e,r,n.animationModel,n.dataIndex,a)}function gB(e,t,r){var n=r.dataIndex,i=r.itemModel,a=i.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=a.get("focus"),f=a.get("blurScope"),d=a.get("scale");qI(e,function(v){if(v instanceof $r){var g=v.style;v.useStyle(q({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},r.style))}else v.useStyle(r.style);var m=v.ensureState("emphasis");m.style=o,d&&(m.scaleX=v.scaleX*1.1,m.scaleY=v.scaleY*1.1),v.ensureState("blur").style=s,v.ensureState("select").style=l,u&&(v.cursor=u),v.z2=r.z2});var h=t.valueDim.posDesc[+(r.boundingLength>0)],p=e.__pictorialBarRect;Br(p,xr(i),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:Ef(t.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:h}),jt(e,c,f,a.get("disabled"))}function mB(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}const iDe=ZPe;var aDe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r.defaultSymbol="roundRect",r}return t.prototype.getInitialData=function(r){return r.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Qs($0.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"}}}),t}($0);const oDe=aDe;function sDe(e){e.registerChartView(iDe),e.registerSeriesModel(oDe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Ie(I9,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,P9("pictorialBar"))}var lDe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._layers=[],r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this,s=this.group,l=r.getLayerSeries(),u=a.getLayout("layoutInfo"),c=u.rect,f=u.boundaryGap;s.x=0,s.y=c.y+f[0];function d(g){return g.name}var h=new To(this._layersSeries||[],l,d,d),p=[];h.add(ce(v,this,"add")).update(ce(v,this,"update")).remove(ce(v,this,"remove")).execute();function v(g,m,y){var x=o._layers;if(g==="remove"){s.remove(x[m]);return}for(var S=[],_=[],b,w=l[m].indices,C=0;Ca&&(a=s),n.push(s)}for(var u=0;ua&&(a=f)}return{y0:i,max:a}}function vDe(e){e.registerChartView(cDe),e.registerSeriesModel(dDe),e.registerLayout(hDe),e.registerProcessor(Wv("themeRiver"))}var gDe=2,mDe=4,yDe=function(e){H(t,e);function t(r,n,i,a){var o=e.call(this)||this;o.z2=gDe,o.textConfig={inside:!0},ke(o).seriesIndex=n.seriesIndex;var s=new rt({z2:mDe,silent:r.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,r,n,i,a),o}return t.prototype.updateData=function(r,n,i,a,o){this.node=n,n.piece=this,i=i||this._seriesModel,a=a||this._ecModel;var s=this;ke(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),f=q({},c);f.label=null;var d=n.getVisual("style");d.lineJoin="bevel";var h=n.getVisual("decal");h&&(d.decal=Rf(h,o));var p=iu(l.getModel("itemStyle"),f,!0);q(f,p),R(fn,function(y){var x=s.ensureState(y),S=l.getModel([y,"itemStyle"]);x.style=S.getItemStyle();var _=iu(S,f);_&&(x.shape=_)}),r?(s.setShape(f),s.shape.r=c.r0,Lt(s,{shape:{r:c.r}},i,n.dataIndex)):(at(s,{shape:f},i),ea(s)),s.useStyle(d),this._updateLabel(i);var v=l.getShallow("cursor");v&&s.attr("cursor",v),this._seriesModel=i||this._seriesModel,this._ecModel=a||this._ecModel;var g=u.get("focus"),m=g==="ancestor"?n.getAncestorsIndices():g==="descendant"?n.getDescendantIndices():g;jt(this,m,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r){var n=this,i=this.node.getModel(),a=i.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,d=f.getTextContent(),h=this.node.dataIndex,p=a.get("minAngle")/180*Math.PI,v=a.get("show")&&!(p!=null&&Math.abs(s)Math.PI/2?"right":"left"):!k||k==="center"?(s===2*Math.PI&&o.r0===0?T=0:T=(o.r+o.r0)/2,k="center"):k==="left"?(T=o.r0+M,l>Math.PI/2&&(k="right")):k==="right"&&(T=o.r-M,l>Math.PI/2&&(k="left")),S.style.align=k,S.style.verticalAlign=g(y,"verticalAlign")||"middle",S.x=T*u+o.cx,S.y=T*c+o.cy;var I=g(y,"rotate"),P=0;I==="radial"?(P=Hi(-l),P>Math.PI/2&&PMath.PI/2?P-=Math.PI:P<-Math.PI/2&&(P+=Math.PI)):nt(I)&&(P=I*Math.PI/180),S.rotation=Hi(P)});function g(m,y){var x=m.get(y);return x??a.get(y)}d.dirtyStyle()},t}(Dn);const xB=yDe;var DA="sunburstRootToNode",SB="sunburstHighlight",xDe="sunburstUnhighlight";function SDe(e){e.registerAction({type:DA,update:"updateView"},function(t,r){r.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(i,a){var o=iv(t,[DA],i);if(o){var s=i.getViewRoot();s&&(t.direction=RI(s,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}}),e.registerAction({type:SB,update:"none"},function(t,r,n){t=q({},t),r.eachComponent({mainType:"series",subType:"sunburst",query:t},i);function i(a){var o=iv(t,[SB],a);o&&(t.dataIndex=o.node.dataIndex)}n.dispatchAction(q(t,{type:"highlight"}))}),e.registerAction({type:xDe,update:"updateView"},function(t,r,n){t=q({},t),n.dispatchAction(q(t,{type:"downplay"}))})}var bDe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i,a){var o=this;this.seriesModel=r,this.api=i,this.ecModel=n;var s=r.getData(),l=s.tree.root,u=r.getViewRoot(),c=this.group,f=r.get("renderLabelForZeroData"),d=[];u.eachNode(function(y){d.push(y)});var h=this._oldChildren||[];p(d,h),m(l,u),this._initEvents(),this._oldChildren=d;function p(y,x){if(y.length===0&&x.length===0)return;new To(x,y,S,S).add(_).update(_).remove(Ie(_,null)).execute();function S(b){return b.getId()}function _(b,w){var C=b==null?null:y[b],A=w==null?null:x[w];v(C,A)}}function v(y,x){if(!f&&y&&!y.getValue()&&(y=null),y!==l&&x!==l){if(x&&x.piece)y?(x.piece.updateData(!1,y,r,n,i),s.setItemGraphicEl(y.dataIndex,x.piece)):g(x);else if(y){var S=new xB(y,r,n,i);c.add(S),s.setItemGraphicEl(y.dataIndex,S)}}}function g(y){y&&y.piece&&(c.remove(y.piece),y.piece=null)}function m(y,x){x.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,y,r,n,i):(o.virtualPiece=new xB(y,r,n,i),c.add(o.virtualPiece)),x.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(x.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var r=this;this.group.off("click"),this.group.on("click",function(n){var i=!1,a=r.seriesModel.getViewRoot();a.eachNode(function(o){if(!i&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")r._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";T0(u,c)}}i=!0}})})},t.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:DA,from:this.uid,seriesId:this.seriesModel.id,targetNode:r})},t.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="sunburst",t}(Tt);const _De=bDe;var wDe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r,n){var i={name:r.name,children:r.data};XU(i);var a=this._levelModels=Z(r.levels||[],function(l){return new wt(l,this,n)},this),o=DI.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=o.getNodeByDataIndex(c),d=a[f.depth];return d&&(u.parentModel=d),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treePathInfo=tS(i,this),n},t.prototype.getLevelModel=function(r){return this._levelModels&&this._levelModels[r.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){J8(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(zt);function XU(e){var t=0;R(e.children,function(n){XU(n);var i=n.value;Y(i)&&(i=i[0]),t+=i});var r=e.value;Y(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),Y(e.value)?e.value[0]=r:e.value=r}const CDe=wDe;var bB=Math.PI/180;function TDe(e,t,r){t.eachSeriesByType(e,function(n){var i=n.get("center"),a=n.get("radius");Y(a)||(a=[0,a]),Y(i)||(i=[i,i]);var o=r.getWidth(),s=r.getHeight(),l=Math.min(o,s),u=ne(i[0],o),c=ne(i[1],s),f=ne(a[0],l/2),d=ne(a[1],l/2),h=-n.get("startAngle")*bB,p=n.get("minAngle")*bB,v=n.getData().tree.root,g=n.getViewRoot(),m=g.depth,y=n.get("sort");y!=null&&ZU(g,y);var x=0;R(g.children,function(z){!isNaN(z.getValue())&&x++});var S=g.getValue(),_=Math.PI/(S||x)*2,b=g.depth>0,w=g.height-(b?-1:1),C=(d-f)/(w||1),A=n.get("clockwise"),T=n.get("stillShowZeroSum"),M=A?1:-1,k=function(z,V){if(z){var N=V;if(z!==v){var F=z.getValue(),E=S===0&&T?_:F*_;E1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&oe(s)&&(s=_T(s,(n.depth-1)/(a-1)*.5)),s}e.eachSeriesByType("sunburst",function(n){var i=n.getData(),a=i.tree;a.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=r(o,n,a.root.height));var u=i.ensureUniqueItemVisual(o.dataIndex,"style");q(u,l)})})}function kDe(e){e.registerChartView(_De),e.registerSeriesModel(CDe),e.registerLayout(Ie(TDe,"sunburst")),e.registerProcessor(Ie(Wv,"sunburst")),e.registerVisual(MDe),SDe(e)}var _B={color:"fill",borderColor:"stroke"},IDe={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},ho=Je(),PDe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(r,n){return Ro(null,this)},t.prototype.getDataParams=function(r,n,i){var a=e.prototype.getDataParams.call(this,r,n);return i&&(a.info=ho(i).info),a},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(zt);const DDe=PDe;function RDe(e,t){return t=t||[0,0],Z(["x","y"],function(r,n){var i=this.getAxis(r),a=t[n],o=e[n]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function LDe(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:ce(RDe,e)}}}function EDe(e,t){return t=t||[0,0],Z([0,1],function(r){var n=t[r],i=e[r]/2,a=[],o=[];return a[r]=n-i,o[r]=n+i,a[1-r]=o[1-r]=t[1-r],Math.abs(this.dataToPoint(a)[r]-this.dataToPoint(o)[r])},this)}function ODe(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(r){return e.dataToPoint(r)},size:ce(EDe,e)}}}function NDe(e,t){var r=this.getAxis(),n=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return r.type==="category"?r.getBandWidth():Math.abs(r.dataToCoord(n-i)-r.dataToCoord(n+i))}function zDe(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:ce(NDe,e)}}}function BDe(e,t){return t=t||[0,0],Z(["Radius","Angle"],function(r,n){var i="get"+r+"Axis",a=this[i](),o=t[n],s=e[n]/2,l=a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return r==="Angle"&&(l=l*Math.PI/180),l},this)}function $De(e){var t=e.getRadiusAxis(),r=e.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:n[1],r0:n[0]},api:{coord:function(i){var a=t.dataToRadius(i[0]),o=r.dataToAngle(i[1]),s=e.coordToPoint([a,o]);return s.push(a,o*Math.PI/180),s},size:ce(BDe,e)}}}function FDe(e){var t=e.getRect(),r=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(n,i){return e.dataToPoint(n,i)}}}}function KU(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||fe(e,"text")))}function QU(e,t,r){var n=e,i,a,o;if(t==="text")o=n;else{o={},fe(n,"text")&&(o.text=n.text),fe(n,"rich")&&(o.rich=n.rich),fe(n,"textFill")&&(o.fill=n.textFill),fe(n,"textStroke")&&(o.stroke=n.textStroke),fe(n,"fontFamily")&&(o.fontFamily=n.fontFamily),fe(n,"fontSize")&&(o.fontSize=n.fontSize),fe(n,"fontStyle")&&(o.fontStyle=n.fontStyle),fe(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=fe(n,"textPosition");r?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),fe(n,"textPosition")&&(i.position=n.textPosition),fe(n,"textOffset")&&(i.offset=n.textOffset),fe(n,"textRotation")&&(i.rotation=n.textRotation),fe(n,"textDistance")&&(i.distance=n.textDistance)}return wB(o,e),R(o.rich,function(l){wB(l,l)}),{textConfig:i,textContent:a}}function wB(e,t){t&&(t.font=t.textFont||t.font,fe(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),fe(t,"textAlign")&&(e.align=t.textAlign),fe(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),fe(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),fe(t,"textWidth")&&(e.width=t.textWidth),fe(t,"textHeight")&&(e.height=t.textHeight),fe(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),fe(t,"textPadding")&&(e.padding=t.textPadding),fe(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),fe(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),fe(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),fe(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),fe(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),fe(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),fe(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function CB(e,t,r){var n=e;n.textPosition=n.textPosition||r.position||"inside",r.offset!=null&&(n.textOffset=r.offset),r.rotation!=null&&(n.textRotation=r.rotation),r.distance!=null&&(n.textDistance=r.distance);var i=n.textPosition.indexOf("inside")>=0,a=e.fill||"#000";TB(n,t);var o=n.textFill==null;return i?o&&(n.textFill=r.insideFill||"#fff",!n.textStroke&&r.insideStroke&&(n.textStroke=r.insideStroke),!n.textStroke&&(n.textStroke=a),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=e.fill||r.outsideFill||"#000"),!n.textStroke&&r.outsideStroke&&(n.textStroke=r.outsideStroke)),n.text=t.text,n.rich=t.rich,R(t.rich,function(s){TB(s,s)}),n}function TB(e,t){t&&(fe(t,"fill")&&(e.textFill=t.fill),fe(t,"stroke")&&(e.textStroke=t.fill),fe(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),fe(t,"font")&&(e.font=t.font),fe(t,"fontStyle")&&(e.fontStyle=t.fontStyle),fe(t,"fontWeight")&&(e.fontWeight=t.fontWeight),fe(t,"fontSize")&&(e.fontSize=t.fontSize),fe(t,"fontFamily")&&(e.fontFamily=t.fontFamily),fe(t,"align")&&(e.textAlign=t.align),fe(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),fe(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),fe(t,"width")&&(e.textWidth=t.width),fe(t,"height")&&(e.textHeight=t.height),fe(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),fe(t,"padding")&&(e.textPadding=t.padding),fe(t,"borderColor")&&(e.textBorderColor=t.borderColor),fe(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),fe(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),fe(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),fe(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),fe(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),fe(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),fe(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),fe(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),fe(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),fe(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var JU={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},AB=Ye(JU);Fa(Ga,function(e,t){return e[t]=1,e},{});Ga.join(", ");var q0=["","style","shape","extra"],zf=Je();function YI(e,t,r,n,i){var a=e+"Animation",o=ed(e,n,i)||{},s=zf(t).userDuring;return o.duration>0&&(o.during=s?ce(jDe,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),q(o,r[a]),o}function dy(e,t,r,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=zf(e),u=t.style;l.userDuring=t.during;var c={},f={};if(qDe(e,t,f),kB("shape",t,f),kB("extra",t,f),!a&&s&&(UDe(e,t,c),MB("shape",e,t,c),MB("extra",e,t,c),YDe(e,t,u,c)),f.style=u,VDe(e,f,o),HDe(e,t),s)if(a){var d={};R(q0,function(p){var v=p?t[p]:t;v&&v.enterFrom&&(p&&(d[p]=d[p]||{}),q(p?d[p]:d,v.enterFrom))});var h=YI("enter",e,t,r,i);h.duration>0&&e.animateFrom(d,h)}else GDe(e,t,i||0,r,c);e7(e,t),u?e.dirty():e.markRedraw()}function e7(e,t){for(var r=zf(e).leaveToProps,n=0;n0&&e.animateFrom(i,a)}}function HDe(e,t){fe(t,"silent")&&(e.silent=t.silent),fe(t,"ignore")&&(e.ignore=t.ignore),e instanceof Ti&&fe(t,"invisible")&&(e.invisible=t.invisible),e instanceof We&&fe(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var ua={},WDe={setTransform:function(e,t){return ua.el[e]=t,this},getTransform:function(e){return ua.el[e]},setShape:function(e,t){var r=ua.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){var t=ua.el.shape;if(t)return t[e]},setStyle:function(e,t){var r=ua.el,n=r.style;return n&&(n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){var t=ua.el.style;if(t)return t[e]},setExtra:function(e,t){var r=ua.el.extra||(ua.el.extra={});return r[e]=t,this},getExtra:function(e){var t=ua.el.extra;if(t)return t[e]}};function jDe(){var e=this,t=e.el;if(t){var r=zf(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}ua.el=t,n(WDe)}}function MB(e,t,r,n){var i=r[e];if(i){var a=t[e],o;if(a){var s=r.transition,l=i.transition;if(l)if(!o&&(o=n[e]={}),mu(l))q(o,a);else for(var u=pt(l),c=0;c=0){!o&&(o=n[e]={});for(var h=Ye(a),c=0;c=0)){var d=e.getAnimationStyleProps(),h=d?d.style:null;if(h){!a&&(a=n.style={});for(var p=Ye(r),u=0;u=0?t.getStore().get(V,L):void 0}var N=t.get(z.name,L),F=z&&z.ordinalMeta;return F?F.categories[N]:N}function b(P,L){L==null&&(L=u);var z=t.getItemVisual(L,"style"),V=z&&z.fill,N=z&&z.opacity,F=y(L,hs).getItemStyle();V!=null&&(F.fill=V),N!=null&&(F.opacity=N);var E={inheritColor:oe(V)?V:"#000"},G=x(L,hs),j=_t(G,null,E,!1,!0);j.text=G.getShallow("show")?Ee(e.getFormattedLabel(L,hs),Ef(t,L)):null;var B=w0(G,E,!1);return A(P,F),F=CB(F,j,B),P&&C(F,P),F.legacy=!0,F}function w(P,L){L==null&&(L=u);var z=y(L,po).getItemStyle(),V=x(L,po),N=_t(V,null,null,!0,!0);N.text=V.getShallow("show")?Ea(e.getFormattedLabel(L,po),e.getFormattedLabel(L,hs),Ef(t,L)):null;var F=w0(V,null,!0);return A(P,z),z=CB(z,N,F),P&&C(z,P),z.legacy=!0,z}function C(P,L){for(var z in L)fe(L,z)&&(P[z]=L[z])}function A(P,L){P&&(P.textFill&&(L.textFill=P.textFill),P.textPosition&&(L.textPosition=P.textPosition))}function T(P,L){if(L==null&&(L=u),fe(_B,P)){var z=t.getItemVisual(L,"style");return z?z[_B[P]]:null}if(fe(IDe,P))return t.getItemVisual(L,P)}function M(P){if(a.type==="cartesian2d"){var L=a.getBaseAxis();return s_e(be({axis:L},P))}}function k(){return r.getCurrentSeriesIndices()}function I(P){return BW(P,r)}}function aRe(e){var t={};return R(e.dimensions,function(r){var n=e.getDimensionInfo(r);if(!n.isExtraCoord){var i=n.coordDim,a=t[i]=t[i]||[];a[n.coordDimIndex]=e.getDimensionIndex(r)}}),t}function gw(e,t,r,n,i,a,o){if(!n){a.remove(t);return}var s=JI(e,t,r,n,i,a);return s&&o.setItemGraphicEl(r,s),s&&jt(s,n.focus,n.blurScope,n.emphasisDisabled),s}function JI(e,t,r,n,i,a){var o=-1,s=t;t&&i7(t,n,i)&&(o=ze(a.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=KI(n),s&&eRe(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),ti.normal.cfg=ti.normal.conOpt=ti.emphasis.cfg=ti.emphasis.conOpt=ti.blur.cfg=ti.blur.conOpt=ti.select.cfg=ti.select.conOpt=null,ti.isLegacy=!1,sRe(u,r,n,i,l,ti),oRe(u,r,n,i,l),QI(e,u,r,n,ti,i,l),fe(n,"info")&&(ho(u).info=n.info);for(var c=0;c=0?a.replaceAt(u,o):a.add(u),u}function i7(e,t,r){var n=ho(e),i=t.type,a=t.shape,o=t.style;return r.isUniversalTransitionEnabled()||i!=null&&i!==n.customGraphicType||i==="path"&&dRe(a)&&a7(a)!==n.customPathData||i==="image"&&fe(o,"image")&&o.image!==n.customImagePath}function oRe(e,t,r,n,i){var a=r.clipPath;if(a===!1)e&&e.getClipPath()&&e.removeClipPath();else if(a){var o=e.getClipPath();o&&i7(o,a,n)&&(o=null),o||(o=KI(a),e.setClipPath(o)),QI(null,o,t,a,null,n,i)}}function sRe(e,t,r,n,i,a){if(!e.isGroup){PB(r,null,a),PB(r,po,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,u=a.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=e.getTextContent();if(o===!1)c&&e.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=KI(o),e.setTextContent(c)),QI(null,c,t,o,null,n,i);for(var f=o&&o.style,d=0;d=c;h--){var p=t.childAt(h);uRe(t,p,i)}}}function uRe(e,t,r){t&&iS(t,ho(e).option,r)}function cRe(e){new To(e.oldChildren,e.newChildren,DB,DB,e).add(RB).update(RB).remove(fRe).execute()}function DB(e,t){var r=e&&e.name;return r??QDe+t}function RB(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,i=t!=null?r.oldChildren[t]:null;JI(r.api,i,r.dataIndex,n,r.seriesModel,r.group)}function fRe(e){var t=this.context,r=t.oldChildren[e];r&&iS(r,ho(r).option,t.seriesModel)}function a7(e){return e&&(e.pathData||e.d)}function dRe(e){return e&&(fe(e,"pathData")||fe(e,"d"))}function hRe(e){e.registerChartView(rRe),e.registerSeriesModel(DDe)}var Hl=Je(),LB=Te,mw=ce,pRe=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,t,r,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new Me,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var d=Ie(EB,r,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,r)}NB(s,r,!0),this._renderHandle(a)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),i=t.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=CI(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,i,a){},e.prototype.createPointerEl=function(t,r,n,i){var a=r.pointer;if(a){var o=Hl(t).pointerEl=new Ov[a.type](LB(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=Hl(t).labelEl=new rt(LB(r.label));t.add(a),OB(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=Hl(t).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,i){var a=Hl(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),OB(a,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=Ev(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){bo(u.event)},onmousedown:mw(this._onHandleDragMove,this,0,0),drift:mw(this._onHandleDragMove,this),ondragend:mw(this._onHandleDragEnd,this)}),n.add(i)),NB(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");Y(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,ud(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){EB(this._axisPointerModel,!r&&this._moveAnimation,this._handle,yw(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(yw(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(yw(i)),Hl(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Kp(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e}();function EB(e,t,r,n){o7(Hl(r).lastProp,n)||(Hl(r).lastProp=n,t?at(r,n,e):(r.stopAnimation(),r.attr(n)))}function o7(e,t){if(_e(e)&&_e(t)){var r=!0;return R(t,function(n,i){r=r&&o7(e[i],n)}),!!r}else return e===t}function OB(e,t){e[t.get(["label","show"])?"show":"hide"]()}function yw(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function NB(e,t,r){var n=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}const tP=pRe;function rP(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function s7(e,t,r,n,i){var a=r.get("value"),o=l7(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=id(s.get("padding")||0),u=s.getFont(),c=Iv(o,u),f=i.position,d=c.width+l[1]+l[3],h=c.height+l[0]+l[2],p=i.align;p==="right"&&(f[0]-=d),p==="center"&&(f[0]-=d/2);var v=i.verticalAlign;v==="bottom"&&(f[1]-=h),v==="middle"&&(f[1]-=h/2),vRe(f,d,h,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:_t(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function vRe(e,t,r,n){var i=n.getWidth(),a=n.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+r,a)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function l7(e,t,r,n,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:vI(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};R(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),oe(o)?a=o.replace("{value}",a):Se(o)&&(a=o(s))}return a}function nP(e,t,r){var n=Ci();return Hu(n,n,r.rotation),Va(n,n,r.position),Yi([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function u7(e,t,r,n,i,a){var o=Ao.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),s7(t,n,i,a,{position:nP(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function iP(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function c7(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function zB(e,t,r,n,i,a){return{cx:e,cy:t,r0:r,r:n,startAngle:i,endAngle:a,clockwise:!0}}var gRe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),c=BB(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var d=rP(a),h=mRe[u](s,f,c);h.style=d,r.graphicKey=h.type,r.pointer=h}var p=vA(l.model,i);u7(n,r,p,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=vA(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=nP(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=BB(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[r.x,r.y];f[c]+=n[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var d=(u[1]+u[0])/2,h=[d,d];h[c]=f[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:h,tooltipOption:p[c]}},t}(tP);function BB(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var mRe={line:function(e,t,r){var n=iP([t,r[0]],[t,r[1]],$B(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:c7([t-n/2,r[0]],[n,i],$B(e))}}};function $B(e){return e.dim==="x"?0:1}const yRe=gRe;var xRe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(et);const SRe=xRe;var so=Je(),bRe=R;function f7(e,t,r){if(!tt.node){var n=t.getZr();so(n).records||(so(n).records={}),_Re(n,t);var i=so(n).records[e]||(so(n).records[e]={});i.handler=r}}function _Re(e,t){if(so(e).initialized)return;so(e).initialized=!0,r("click",Ie(FB,"click")),r("mousemove",Ie(FB,"mousemove")),r("globalout",CRe);function r(n,i){e.on(n,function(a){var o=TRe(t);bRe(so(e).records,function(s){s&&i(s,a,o.dispatchAction)}),wRe(o.pendings,t)})}}function wRe(e,t){var r=e.showTip.length,n=e.hideTip.length,i;r?i=e.showTip[r-1]:n&&(i=e.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function CRe(e,t,r){e.handler("leave",null,r)}function FB(e,t,r,n){t.handler(e,r,n)}function TRe(e){var t={showTip:[],hideTip:[]},r=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function EA(e,t){if(!tt.node){var r=t.getZr(),n=(so(r).records||{})[e];n&&(so(r).records[e]=null)}}var ARe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";f7("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){EA("axisPointer",n)},t.prototype.dispose=function(r,n){EA("axisPointer",n)},t.type="axisPointer",t}(Ut);const MRe=ARe;function d7(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Mu(a,e);if(o==null||o<0||Y(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,h=f==="x"||f==="radius"?1:0,p=a.mapDimension(d),v=[];v[h]=a.get(p,o),v[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(v)||[]}else r=l.dataToPoint(a.getValues(Z(l.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var VB=Je();function kRe(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||ce(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){hy(i)&&(i=d7({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=hy(i),u=a.axesInfo,c=s.axesInfo,f=n==="leave"||hy(i),d={},h={},p={list:[],map:{}},v={showPointer:Ie(PRe,h),showTooltip:Ie(DRe,p)};R(s.coordSysMap,function(m,y){var x=l||m.containPoint(i);R(s.coordSysAxesInfo[y],function(S,_){var b=S.axis,w=ORe(u,S);if(!f&&x&&(!u||w)){var C=w&&w.value;C==null&&!l&&(C=b.pointToData(i)),C!=null&&GB(S,C,v,!1,d)}})});var g={};return R(c,function(m,y){var x=m.linkGroup;x&&!h[y]&&R(x.axesInfo,function(S,_){var b=h[_];if(S!==m&&b){var w=b.value;x.mapper&&(w=m.axis.scale.parse(x.mapper(w,HB(S),HB(m)))),g[m.key]=w}})}),R(g,function(m,y){GB(c[y],m,v,!0,d)}),RRe(h,c,d),LRe(p,i,e,o),ERe(c,o,r),d}}function GB(e,t,r,n,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=IRe(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&q(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function IRe(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return R(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,d;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,e,r);d=h.dataIndices,f=h.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],e,r.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var p=e-f,v=Math.abs(p);v<=o&&((v=0&&s<0)&&(o=v,s=p,i=f,a.length=0),R(d,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function PRe(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function DRe(e,t,r,n){var i=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=nv(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function RRe(e,t,r){var n=r.axesInfo=[];R(t,function(i,a){var o=i.axisPointerModel.option,s=e[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function LRe(e,t,r,n){if(hy(t)||!e.list.length){n({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function ERe(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=VB(n)[i]||{},o=VB(n)[i]={};R(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&R(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];R(a,function(u,c){!o[c]&&l.push(u)}),R(o,function(u,c){!a[c]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function ORe(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function HB(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function hy(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Yv(e){Yu.registerAxisPointerClass("CartesianAxisPointer",yRe),e.registerComponentModel(SRe),e.registerComponentView(MRe),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!Y(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=_Te(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},kRe)}function NRe(e){Fe(B8),Fe(Yv)}var zRe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),f=s.dataToCoord(n),d=a.get("type");if(d&&d!=="none"){var h=rP(a),p=$Re[d](s,l,f,c);p.style=h,r.graphicKey=p.type,r.pointer=p}var v=a.get(["label","margin"]),g=BRe(n,i,a,l,v);s7(r,i,a,o,g)},t}(tP);function BRe(e,t,r,n,i){var a=t.axis,o=a.dataToCoord(e),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,c,f;if(a.dim==="radius"){var d=Ci();Hu(d,d,s),Va(d,d,[n.cx,n.cy]),u=Yi([o,-i],d);var h=t.getModel("axisLabel").get("rotate")||0,p=Ao.innerTextLayout(s,h*Math.PI/180,-1);c=p.textAlign,f=p.textVerticalAlign}else{var v=l[1];u=n.coordToPoint([v+i,o]);var g=n.cx,m=n.cy;c=Math.abs(u[0]-g)/v<.3?"center":u[0]>g?"left":"right",f=Math.abs(u[1]-m)/v<.3?"middle":u[1]>m?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var $Re={line:function(e,t,r,n){return e.dim==="angle"?{type:"Line",shape:iP(t.coordToPoint([n[0],r]),t.coordToPoint([n[1],r]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r}}},shadow:function(e,t,r,n){var i=Math.max(1,e.getBandWidth()),a=Math.PI/180;return e.dim==="angle"?{type:"Sector",shape:zB(t.cx,t.cy,n[0],n[1],(-r-i/2)*a,(-r+i/2)*a)}:{type:"Sector",shape:zB(t.cx,t.cy,r-i/2,r+i/2,0,Math.PI*2)}}};const FRe=zRe;var VRe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.findAxisModel=function(r){var n,i=this.ecModel;return i.eachComponent(r,function(a){a.getCoordSysModel()===this&&(n=a)},this),n},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(et);const GRe=VRe;var aP=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",sr).models[0]},t.type="polarAxis",t}(et);ur(aP,Fv);var HRe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="angleAxis",t}(aP),WRe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="radiusAxis",t}(aP),oP=function(e){H(t,e);function t(r,n){return e.call(this,"radius",r,n)||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t}(ra);oP.prototype.dataToRadius=ra.prototype.dataToCoord;oP.prototype.radiusToData=ra.prototype.coordToData;const jRe=oP;var URe=Je(),sP=function(e){H(t,e);function t(r,n){return e.call(this,"angle",r,n||[0,360])||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var r=this,n=r.getLabelModel(),i=r.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=a[0],l=r.dataToCoord(s+1)-r.dataToCoord(s),u=Math.abs(l),c=Iv(s==null?"":s+"",n.getFont(),"center","top"),f=Math.max(c.height,7),d=f/u;isNaN(d)&&(d=1/0);var h=Math.max(0,Math.floor(d)),p=URe(r.model),v=p.lastAutoInterval,g=p.lastTickCount;return v!=null&&g!=null&&Math.abs(v-h)<=1&&Math.abs(g-o)<=1&&v>h?h=v:(p.lastTickCount=o,p.lastAutoInterval=h),h},t}(ra);sP.prototype.dataToAngle=ra.prototype.dataToCoord;sP.prototype.angleToData=ra.prototype.coordToData;const qRe=sP;var h7=["radius","angle"],YRe=function(){function e(t){this.dimensions=h7,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new jRe,this._angleAxis=new qRe,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(t){var r=this.pointToCoord(t);return this._radiusAxis.contain(r[0])&&this._angleAxis.contain(r[1])},e.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},e.prototype.getAxis=function(t){var r="_"+t+"Axis";return this[r]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(t){var r=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&r.push(n),i.scale.type===t&&r.push(i),r},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(t){var r=this._angleAxis;return t===r?this._radiusAxis:r},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(t){var r=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[r],otherAxes:[this.getOtherAxis(r)]}},e.prototype.dataToPoint=function(t,r){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],r),this._angleAxis.dataToAngle(t[1],r)])},e.prototype.pointToData=function(t,r){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],r),this._angleAxis.angleToData(n[1],r)]},e.prototype.pointToCoord=function(t){var r=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),a=i.getExtent(),o=Math.min(a[0],a[1]),s=Math.max(a[0],a[1]);i.inverse?o=s-360:s=o+360;var l=Math.sqrt(r*r+n*n);r/=l,n/=l;for(var u=Math.atan2(-n,r)/Math.PI*180,c=us;)u+=c*360;return[l,u]},e.prototype.coordToPoint=function(t){var r=t[0],n=t[1]/180*Math.PI,i=Math.cos(n)*r+this.cx,a=-Math.sin(n)*r+this.cy;return[i,a]},e.prototype.getArea=function(){var t=this.getAngleAxis(),r=this.getRadiusAxis(),n=r.getExtent().slice();n[0]>n[1]&&n.reverse();var i=t.getExtent(),a=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*a,endAngle:-i[1]*a,clockwise:t.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,f=this.r,d=this.r0;return c<=f*f&&c>=d*d}}},e.prototype.convertToPixel=function(t,r,n){var i=WB(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=WB(r);return i===this?this.pointToData(n):null},e}();function WB(e){var t=e.seriesModel,r=e.polarModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}const XRe=YRe;function ZRe(e,t,r){var n=t.get("center"),i=r.getWidth(),a=r.getHeight();e.cx=ne(n[0],i),e.cy=ne(n[1],a);var o=e.getRadiusAxis(),s=Math.min(i,a)/2,l=t.get("radius");l==null?l=[0,"100%"]:Y(l)||(l=[0,l]);var u=[ne(l[0],s),ne(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function KRe(e,t){var r=this,n=r.getAngleAxis(),i=r.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),e.eachSeries(function(s){if(s.coordinateSystem===r){var l=s.getData();R(O0(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),R(O0(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),Lf(n.scale,n.model),Lf(i.scale,i.model),n.type==="category"&&!n.onBand){var a=n.getExtent(),o=360/n.scale.count();n.inverse?a[1]+=o:a[1]-=o,n.setExtent(a[0],a[1])}}function QRe(e){return e.mainType==="angleAxis"}function jB(e,t){if(e.type=t.get("type"),e.scale=Zx(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),QRe(t)){e.inverse=e.inverse!==t.get("clockwise");var r=t.get("startAngle");e.setExtent(r,r+(e.inverse?-360:360))}t.axis=e,e.model=t}var JRe={dimensions:h7,create:function(e,t){var r=[];return e.eachComponent("polar",function(n,i){var a=new XRe(i+"");a.update=KRe;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");jB(o,l),jB(s,u),ZRe(a,n,t),r.push(a),n.coordinateSystem=a,a.model=n}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var i=n.getReferringComponents("polar",sr).models[0];n.coordinateSystem=i.coordinateSystem}}),r}};const eLe=JRe;var tLe=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function bm(e,t,r){t[1]>t[0]&&(t=t.slice().reverse());var n=e.coordToPoint([t[0],r]),i=e.coordToPoint([t[1],r]);return{x1:n[0],y1:n[1],x2:i[0],y2:i[1]}}function _m(e){var t=e.getRadiusAxis();return t.inverse?0:1}function UB(e){var t=e[0],r=e[e.length-1];t&&r&&Math.abs(Math.abs(t.coord-r.coord)-360)<1e-4&&e.pop()}var rLe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return t.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var i=r.axis,a=i.polar,o=a.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=Z(i.getViewLabels(),function(c){c=Te(c);var f=i.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(d),c});UB(u),UB(s),R(tLe,function(c){r.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&nLe[c](this.group,r,a,s,l,o,u)},this)}},t.type="angleAxis",t}(Yu),nLe={axisLine:function(e,t,r,n,i,a){var o=t.getModel(["axisLine","lineStyle"]),s=_m(r),l=s?0:1,u;a[l]===0?u=new ja({shape:{cx:r.cx,cy:r.cy,r:a[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new Rx({shape:{cx:r.cx,cy:r.cy,r:a[s],r0:a[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,e.add(u)},axisTick:function(e,t,r,n,i,a){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[_m(r)],u=Z(n,function(c){return new Tr({shape:bm(r,[l,l+s],c.coord)})});e.add(pi(u,{style:be(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,r,n,i,a){if(i.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[_m(r)],c=[],f=0;fm?"left":"right",S=Math.abs(g[1]-y)/v<.3?"middle":g[1]>y?"top":"bottom";if(s&&s[p]){var _=s[p];_e(_)&&_.textStyle&&(h=new wt(_.textStyle,l,l.ecModel))}var b=new rt({silent:Ao.isLabelSilent(t),style:_t(h,{x:g[0],y:g[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:x,verticalAlign:S})});if(e.add(b),c){var w=Ao.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=f.rawLabel,ke(b).eventData=w}},this)},splitLine:function(e,t,r,n,i,a){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f=0?"p":"n",I=w;_&&(n[c][M]||(n[c][M]={p:w,n:w}),I=n[c][M][k]);var P=void 0,L=void 0,z=void 0,V=void 0;if(p.dim==="radius"){var N=p.dataToCoord(T)-w,F=l.dataToCoord(M);Math.abs(N)=V})}}})}function dLe(e){var t={};R(e,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=v7(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/a.count(),f=t[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=f.stacks;t[l]=f;var h=p7(n);d[h]||f.autoWidthCount++,d[h]=d[h]||{width:0,maxWidth:0};var p=ne(n.get("barWidth"),c),v=ne(n.get("barMaxWidth"),c),g=n.get("barGap"),m=n.get("barCategoryGap");p&&!d[h].width&&(p=Math.min(f.remainedWidth,p),d[h].width=p,f.remainedWidth-=p),v&&(d[h].maxWidth=v),g!=null&&(f.gap=g),m!=null&&(f.categoryGap=m)});var r={};return R(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=ne(n.categoryGap,o),l=ne(n.gap,1),u=n.remainedWidth,c=n.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),R(a,function(v,g){var m=v.maxWidth;m&&m=r.y&&t[1]<=r.y+r.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=r.y&&t[0]<=r.y+r.height},e.prototype.pointToData=function(t){var r=this.getAxis();return[r.coordToData(r.toLocalCoord(t[r.orient==="horizontal"?0:1]))]},e.prototype.dataToPoint=function(t){var r=this.getAxis(),n=this.getRect(),i=[],a=r.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),i[a]=r.toGlobalCoord(r.dataToCoord(+t)),i[1-a]=a===0?n.y+n.height/2:n.x+n.width/2,i},e.prototype.convertToPixel=function(t,r,n){var i=qB(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=qB(r);return i===this?this.pointToData(n):null},e}();function qB(e){var t=e.seriesModel,r=e.singleAxisModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function TLe(e,t){var r=[];return e.eachComponent("singleAxis",function(n,i){var a=new CLe(n,e,t);a.name="single_"+i,a.resize(n,t),n.coordinateSystem=a,r.push(a)}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var i=n.getReferringComponents("singleAxis",sr).models[0];n.coordinateSystem=i&&i.coordinateSystem}}),r}var ALe={create:TLe,dimensions:m7};const MLe=ALe;var YB=["x","y"],kLe=["width","height"],ILe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.coordinateSystem,u=Sw(l,1-Z0(s)),c=l.dataToPoint(n)[0],f=a.get("type");if(f&&f!=="none"){var d=rP(a),h=PLe[f](s,c,u);h.style=d,r.graphicKey=h.type,r.pointer=h}var p=OA(i);u7(n,r,p,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=OA(n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=nP(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.coordinateSystem,l=Z0(o),u=Sw(s,l),c=[r.x,r.y];c[l]+=n[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var f=Sw(s,1-l),d=(f[1]+f[0])/2,h=[d,d];return h[l]=c[l],{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(tP),PLe={line:function(e,t,r){var n=iP([t,r[0]],[t,r[1]],Z0(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=e.getBandWidth(),i=r[1]-r[0];return{type:"Rect",shape:c7([t-n/2,r[0]],[n,i],Z0(e))}}};function Z0(e){return e.isHorizontal()?0:1}function Sw(e,t){var r=e.getRect();return[r[YB[t]],r[YB[t]]+r[kLe[t]]]}const DLe=ILe;var RLe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="single",t}(Ut);function LLe(e){Fe(Yv),Yu.registerAxisPointerClass("SingleAxisPointer",DLe),e.registerComponentView(RLe),e.registerComponentView(bLe),e.registerComponentModel(xw),Of(e,"single",xw,xw.defaultOption),e.registerCoordinateSystem("single",MLe)}var ELe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n,i){var a=ad(r);e.prototype.init.apply(this,arguments),XB(r,a)},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),XB(this.option,r)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(et);function XB(e,t){var r=e.cellSize,n;Y(r)?n=r:n=e.cellSize=[r,r],n.length===1&&(n[1]=n[0]);var i=Z([0,1],function(a){return $1e(t,a)&&(n[a]="auto"),n[a]!=null&&n[a]!=="auto"});$s(e,t,{type:"box",ignoreSize:i})}const OLe=ELe;var NLe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=this.group;a.removeAll();var o=r.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(r,s,a),this._renderLines(r,s,l,a),this._renderYearText(r,s,l,a),this._renderMonthText(r,u,l,a),this._renderWeekText(r,u,s,l,a)},t.prototype._renderDayRect=function(r,n,i){for(var a=r.coordinateSystem,o=r.getModel("itemStyle").getItemStyle(),s=a.getCellWidth(),l=a.getCellHeight(),u=n.start.time;u<=n.end.time;u=a.getNextNDay(u,1).time){var c=a.dataToRect([u],!1).tl,f=new Qe({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});i.add(f)}},t.prototype._renderLines=function(r,n,i,a){var o=this,s=r.coordinateSystem,l=r.getModel(["splitLine","lineStyle"]).getLineStyle(),u=r.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=n.start,d=0;f.time<=n.end.time;d++){p(f.formatedDate),d===0&&(f=s.getDateInfo(n.start.y+"-"+n.start.m));var h=f.date;h.setMonth(h.getMonth()+1),f=s.getDateInfo(h)}p(s.getNextNDay(n.end.time,1).formatedDate);function p(v){o._firstDayOfMonth.push(s.getDateInfo(v)),o._firstDayPoints.push(s.dataToRect([v],!1).tl);var g=o._getLinePointsOfOneWeek(r,v,i);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,a)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,i),l,a),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,i),l,a)},t.prototype._getEdgesPoints=function(r,n,i){var a=[r[0].slice(),r[r.length-1].slice()],o=i==="horizontal"?0:1;return a[0][o]=a[0][o]-n/2,a[1][o]=a[1][o]+n/2,a},t.prototype._drawSplitline=function(r,n,i){var a=new En({z2:20,shape:{points:r},style:n});i.add(a)},t.prototype._getLinePointsOfOneWeek=function(r,n,i){for(var a=r.coordinateSystem,o=a.getDateInfo(n),s=[],l=0;l<7;l++){var u=a.getNextNDay(o.time,l),c=a.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[i==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(r,n){return oe(r)&&r?N1e(r,n):Se(r)?r(n):n.nameMap},t.prototype._yearTextPositionControl=function(r,n,i,a,o){var s=n[0],l=n[1],u=["center","bottom"];a==="bottom"?(l+=o,u=["center","top"]):a==="left"?s-=o:a==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(a==="left"||a==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(r,n,i,a){var o=r.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=i!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,d=i==="horizontal"?0:1,h={top:[c,u[d][1]],bottom:[c,u[1-d][1]],left:[u[1-d][0],f],right:[u[d][0],f]},p=n.start.y;+n.end.y>+n.start.y&&(p=p+"-"+n.end.y);var v=o.get("formatter"),g={start:n.start.y,end:n.end.y,nameMap:p},m=this._formatterLabel(v,g),y=new rt({z2:30,style:_t(o,{text:m})});y.attr(this._yearTextPositionControl(y,h[l],i,l,s)),a.add(y)}},t.prototype._monthTextPositionControl=function(r,n,i,a,o){var s="left",l="top",u=r[0],c=r[1];return i==="horizontal"?(c=c+o,n&&(s="center"),a==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),a==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(r,n,i,a){var o=r.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),f=[this._tlpoints,this._blpoints];(!s||oe(s))&&(s&&(n=WT(s)||n),s=n.get(["time","monthAbbr"])||[]);var d=u==="start"?0:1,h=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=c==="center",v=0;v=i.start.time&&n.times.end.time&&r.reverse(),r},e.prototype._getRangeInfo=function(t){var r=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],n;r[0].time>r[1].time&&(n=!0,r.reverse());var i=Math.floor(r[1].time/bw)-Math.floor(r[0].time/bw)+1,a=new Date(r[0].time),o=a.getDate(),s=r[1].date.getDate();a.setDate(o+i-1);var l=a.getDate();if(l!==s)for(var u=a.getTime()-r[1].time>0?1:-1;(l=a.getDate())!==s&&(a.getTime()-r[1].time)*u>0;)i-=u,a.setDate(l-u);var c=Math.floor((i+r[0].day+6)/7),f=n?-c+1:c-1;return n&&r.reverse(),{range:[r[0].formatedDate,r[1].formatedDate],start:r[0],end:r[1],allDay:i,weeks:c,nthWeek:f,fweek:r[0].day,lweek:r[1].day}},e.prototype._getDateByWeeksAndDay=function(t,r,n){var i=this._getRangeInfo(n);if(t>i.weeks||t===0&&ri.lweek)return null;var a=(t-1)*7-i.fweek+r,o=new Date(i.start.time);return o.setDate(+i.start.d+a),this.getDateInfo(o)},e.create=function(t,r){var n=[];return t.eachComponent("calendar",function(i){var a=new e(i);n.push(a),i.coordinateSystem=a}),t.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=n[i.get("calendarIndex")||0])}),n},e.dimensions=["time","value"],e}();function ZB(e){var t=e.calendarModel,r=e.seriesModel,n=t?t.coordinateSystem:r?r.coordinateSystem:null;return n}const $Le=BLe;function FLe(e){e.registerComponentModel(OLe),e.registerComponentView(zLe),e.registerCoordinateSystem("calendar",$Le)}function VLe(e,t){var r=e.existing;if(t.id=e.keyInfo.id,!t.type&&r&&(t.type=r.type),t.parentId==null){var n=t.parentOption;n?t.parentId=n.id:r&&(t.parentId=r.parentId)}t.parentOption=null}function KB(e,t){var r;return R(t,function(n){e[n]!=null&&e[n]!=="auto"&&(r=!0)}),r}function GLe(e,t,r){var n=q({},r),i=e[t],a=r.$action||"merge";a==="merge"?i?(Oe(i,n,!0),$s(i,n,{ignoreSize:!0}),nj(r,i),wm(r,i),wm(r,i,"shape"),wm(r,i,"style"),wm(r,i,"extra"),r.clipPath=i.clipPath):e[t]=n:a==="replace"?e[t]=n:a==="remove"&&i&&(e[t]=null)}var y7=["transition","enterFrom","leaveTo"],HLe=y7.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function wm(e,t,r){if(r&&(!e[r]&&t[r]&&(e[r]={}),e=e[r],t=t[r]),!(!e||!t))for(var n=r?y7:HLe,i=0;i=0;c--){var f=i[c],d=hr(f.id,null),h=d!=null?o.get(d):null;if(h){var p=h.parent,m=oi(p),y=p===a?{width:s,height:l}:{width:m.width,height:m.height},x={},S=Gx(h,f,y,null,{hv:f.hv,boundingMode:f.bounding},x);if(!oi(h).isNew&&S){for(var _=f.transition,b={},w=0;w=0)?b[C]=A:h[C]=A}at(h,b,r,0)}else h.attr(x)}}},t.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(i){py(i,oi(i).option,n,r._lastGraphicModel)}),this._elMap=ge()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Ut);function NA(e){var t=fe(QB,e)?QB[e]:$k(e),r=new t({});return oi(r).type=e,r}function JB(e,t,r,n){var i=NA(r);return t.add(i),n.set(e,i),oi(i).id=e,oi(i).isNew=!0,i}function py(e,t,r,n){var i=e&&e.parent;i&&(e.type==="group"&&e.traverse(function(a){py(a,t,r,n)}),iS(e,t,n),r.removeKey(oi(e).id))}function e$(e,t,r,n){e.isGroup||R([["cursor",Ti.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(i){var a=i[0];fe(t,a)?e[a]=Ee(t[a],i[1]):e[a]==null&&(e[a]=i[1])}),R(Ye(t),function(i){if(i.indexOf("on")===0){var a=t[i];e[i]=Se(a)?a:null}}),fe(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function qLe(e){return e=q({},e),R(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(rj),function(t){delete e[t]}),e}function YLe(e,t,r){var n=ke(e).eventData;!e.silent&&!e.ignore&&!n&&(n=ke(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=r.info)}function XLe(e){e.registerComponentModel(jLe),e.registerComponentView(ULe),e.registerPreprocessor(function(t){var r=t.graphic;Y(r)?!r[0]||!r[0].elements?t.graphic=[{elements:r}]:t.graphic=[t.graphic[0]]:r&&!r.elements&&(t.graphic=[{elements:[r]}])})}var t$=["x","y","radius","angle","single"],ZLe=["cartesian2d","polar","singleAxis"];function KLe(e){var t=e.get("coordinateSystem");return ze(ZLe,t)>=0}function ps(e){return e+"Axis"}function QLe(e,t){var r=ge(),n=[],i=ge();e.eachComponent({mainType:"dataZoom",query:t},function(c){i.get(c.uid)||s(c)});var a;do a=!1,e.eachComponent("dataZoom",o);while(a);function o(c){!i.get(c.uid)&&l(c)&&(s(c),a=!0)}function s(c){i.set(c.uid,!0),n.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(d,h){var p=r.get(d);p&&p[h]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,d){(r.get(f)||r.set(f,[]))[d]=!0})}return n}function x7(e){var t=e.ecModel,r={infoList:[],infoMap:ge()};return e.eachTargetAxis(function(n,i){var a=t.getComponent(ps(n),i);if(a){var o=a.getCoordSysModel();if(o){var s=o.uid,l=r.infoMap.get(s);l||(l={model:o,axisModels:[]},r.infoList.push(l),r.infoMap.set(s,l)),l.axisModels.push(a)}}}),r}var _w=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},e}(),JLe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return t.prototype.init=function(r,n,i){var a=r$(r);this.settledOption=a,this.mergeDefaultAndTheme(r,i),this._doInit(a)},t.prototype.mergeOption=function(r){var n=r$(r);Oe(this.option,r,!0),Oe(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(r){var n=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var i=this.settledOption;R([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(n[a[0]]=i[a[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var r=this.get("orient",!0),n=this._targetAxisInfoMap=ge(),i=this._fillSpecifiedTargetAxis(n);i?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(r){var n=!1;return R(t$,function(i){var a=this.getReferringComponents(ps(i),vye);if(a.specified){n=!0;var o=new _w;R(a.models,function(s){o.add(s.componentIndex)}),r.set(i,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(r,n){var i=this.ecModel,a=!0;if(a){var o=n==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=i.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===n}});l(s,"single")}function l(u,c){var f=u[0];if(f){var d=new _w;if(d.add(f.componentIndex),r.set(c,d),a=!1,c==="x"||c==="y"){var h=f.getReferringComponents("grid",sr).models[0];h&&R(u,function(p){f.componentIndex!==p.componentIndex&&h===p.getReferringComponents("grid",sr).models[0]&&d.add(p.componentIndex)})}}}a&&R(t$,function(u){if(a){var c=i.findComponents({mainType:ps(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new _w;f.add(c[0].componentIndex),r.set(u,f),a=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(n){!r&&(r=n)},this),r==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(r){var n=this._rangePropMode,i=this.get("rangeMode");R([["start","startValue"],["end","endValue"]],function(a,o){var s=r[a[0]]!=null,l=r[a[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":i?n[o]=i[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(n,i){r==null&&(r=this.ecModel.getComponent(ps(n),i))},this),r},t.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(i,a){R(i.indexList,function(o){r.call(n,a,o)})})},t.prototype.getAxisProxy=function(r,n){var i=this.getAxisModel(r,n);if(i)return i.__dzAxisProxy},t.prototype.getAxisModel=function(r,n){var i=this._targetAxisInfoMap.get(r);if(i&&i.indexMap[n])return this.ecModel.getComponent(ps(r),n)},t.prototype.setRawRange=function(r){var n=this.option,i=this.settledOption;R([["start","startValue"],["end","endValue"]],function(a){(r[a[0]]!=null||r[a[1]]!=null)&&(n[a[0]]=i[a[0]]=r[a[0]],n[a[1]]=i[a[1]]=r[a[1]])},this),this._updateRangeUse(r)},t.prototype.setCalculatedRange=function(r){var n=this.option;R(["start","startValue","end","endValue"],function(i){n[i]=r[i]})},t.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},t.prototype.getValueRange=function(r,n){if(r==null&&n==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(r,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(r){if(r)return r.__dzAxisProxy;for(var n,i=this._targetAxisInfoMap.keys(),a=0;ao[1];if(x&&!S&&!_)return!0;x&&(g=!0),S&&(p=!0),_&&(v=!0)}return g&&p&&v})}else Rc(c,function(h){if(a==="empty")l.setData(u=u.map(h,function(v){return s(v)?v:NaN}));else{var p={};p[h]=o,u.selectRange(p)}});Rc(c,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},r=this._dataZoomModel,n=this._dataExtent;Rc(["min","max"],function(i){var a=r.get(i+"Span"),o=r.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=ft(n[0]+o,n,[0,100],!0):a!=null&&(o=ft(a,[0,100],n,!0)-n[0]),t[i+"Span"]=a,t[i+"ValueSpan"]=o},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),r=this._percentWindow,n=this._valueWindow;if(r){var i=PH(n,[0,500]);i=Math.min(i,20);var a=t.axis.scale.rawExtentInfo;r[0]!==0&&a.setDeterminedMinMax("min",+n[0].toFixed(i)),r[1]!==100&&a.setDeterminedMinMax("max",+n[1].toFixed(i)),a.freeze()}},e}();function oEe(e,t,r){var n=[1/0,-1/0];Rc(r,function(o){P_e(n,o.getData(),t)});var i=e.getAxisModel(),a=N9(i.axis.scale,i,n).calculate();return[a.min,a.max]}const sEe=aEe;var lEe={getTargetSeries:function(e){function t(i){e.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=e.getComponent(ps(o),s);i(o,s,l,a)})})}t(function(i,a,o,s){o.__dzAxisProxy=null});var r=[];t(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new sEe(i,a,s,e),r.push(o.__dzAxisProxy))});var n=ge();return R(r,function(i){R(i.getTargetSeriesModels(),function(a){n.set(a.uid,a)})}),n},overallReset:function(e,t){e.eachComponent("dataZoom",function(r){r.eachTargetAxis(function(n,i){r.getAxisProxy(n,i).reset(r)}),r.eachTargetAxis(function(n,i){r.getAxisProxy(n,i).filterData(r,t)})}),e.eachComponent("dataZoom",function(r){var n=r.findRepresentativeAxisProxy();if(n){var i=n.getDataPercentWindow(),a=n.getDataValueWindow();r.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};const uEe=lEe;function cEe(e){e.registerAction("dataZoom",function(t,r){var n=QLe(r,t);R(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var i$=!1;function uP(e){i$||(i$=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,uEe),cEe(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function fEe(e){e.registerComponentModel(tEe),e.registerComponentView(iEe),uP(e)}var hi=function(){function e(){}return e}(),S7={};function Lc(e,t){S7[e]=t}function b7(e){return S7[e]}var dEe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var r=this.ecModel;R(this.option.feature,function(n,i){var a=b7(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(r)),Oe(n,a.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(et);const hEe=dEe;function pEe(e,t,r){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:r.getWidth(),height:r.getHeight()},o=pr(n,a,i);pu(t.get("orient"),e,t.get("itemGap"),o.width,o.height),Gx(e,n,a,i)}function _7(e,t){var r=id(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new Qe({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),e}var vEe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i,a){var o=this.group;if(o.removeAll(),!r.get("show"))return;var s=+r.get("itemSize"),l=r.get("orient")==="vertical",u=r.get("feature")||{},c=this._features||(this._features={}),f=[];R(u,function(p,v){f.push(v)}),new To(this._featureNames||[],f).add(d).update(d).remove(Ie(d,null)).execute(),this._featureNames=f;function d(p,v){var g=f[p],m=f[v],y=u[g],x=new wt(y,r,r.ecModel),S;if(a&&a.newTitle!=null&&a.featureName===g&&(y.title=a.newTitle),g&&!m){if(gEe(g))S={onclick:x.option.onclick,featureName:g};else{var _=b7(g);if(!_)return;S=new _}c[g]=S}else if(S=c[m],!S)return;S.uid=nd("toolbox-feature"),S.model=x,S.ecModel=n,S.api=i;var b=S instanceof hi;if(!g&&m){b&&S.dispose&&S.dispose(n,i);return}if(!x.get("show")||b&&S.unusable){b&&S.remove&&S.remove(n,i);return}h(x,S,g),x.setIconStatus=function(w,C){var A=this.option,T=this.iconPaths;A.iconStatus=A.iconStatus||{},A.iconStatus[w]=C,T[w]&&(C==="emphasis"?wo:Co)(T[w])},S instanceof hi&&S.render&&S.render(x,n,i,a)}function h(p,v,g){var m=p.getModel("iconStyle"),y=p.getModel(["emphasis","iconStyle"]),x=v instanceof hi&&v.getIcons?v.getIcons():p.get("icon"),S=p.get("title")||{},_,b;oe(x)?(_={},_[g]=x):_=x,oe(S)?(b={},b[g]=S):b=S;var w=p.iconPaths={};R(_,function(C,A){var T=Ev(C,{},{x:-s/2,y:-s/2,width:s,height:s});T.setStyle(m.getItemStyle());var M=T.ensureState("emphasis");M.style=y.getItemStyle();var k=new rt({style:{text:b[A],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null},ignore:!0});T.setTextContent(k),td({el:T,componentModel:r,itemName:A,formatterParamsExtra:{title:b[A]}}),T.__title=b[A],T.on("mouseover",function(){var I=y.getItemStyle(),P=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";k.setStyle({fill:y.get("textFill")||I.fill||I.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),T.setTextConfig({position:y.get("textPosition")||P}),k.ignore=!r.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",A])!=="emphasis"&&i.leaveEmphasis(this),k.hide()}),(p.get(["iconStatus",A])==="emphasis"?wo:Co)(T),o.add(T),T.on("click",ce(v.onclick,v,n,i,A)),w[A]=T})}pEe(o,r,i),o.add(_7(o.getBoundingRect(),r)),l||o.eachChild(function(p){var v=p.__title,g=p.ensureState("emphasis"),m=g.textConfig||(g.textConfig={}),y=p.getTextContent(),x=y&&y.ensureState("emphasis");if(x&&!Se(x)&&v){var S=x.style||(x.style={}),_=Iv(v,rt.makeFont(S)),b=p.x+o.x,w=p.y+o.y+s,C=!1;w+_.height>i.getHeight()&&(m.position="top",C=!0);var A=C?-5-_.height:s+10;b+_.width/2>i.getWidth()?(m.position=["100%",A],S.align="right"):b-_.width/2<0&&(m.position=[0,A],S.align="left")}})},t.prototype.updateView=function(r,n,i,a){R(this._features,function(o){o instanceof hi&&o.updateView&&o.updateView(o.model,n,i,a)})},t.prototype.remove=function(r,n){R(this._features,function(i){i instanceof hi&&i.remove&&i.remove(r,n)}),this.group.removeAll()},t.prototype.dispose=function(r,n){R(this._features,function(i){i instanceof hi&&i.dispose&&i.dispose(r,n)})},t.type="toolbox",t}(Ut);function gEe(e){return e.indexOf("my")===0}const mEe=vEe;var yEe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){var i=this.model,a=i.get("name")||r.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||r.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=tt.browser;if(Se(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=a+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var d=l.split(","),h=d[0].indexOf("base64")>-1,p=o?decodeURIComponent(d[1]):d[1];h&&(p=window.atob(p));var v=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=p.length,m=new Uint8Array(g);g--;)m[g]=p.charCodeAt(g);var y=new Blob([m]);window.navigator.msSaveOrOpenBlob(y,v)}else{var x=document.createElement("iframe");document.body.appendChild(x);var S=x.contentWindow,_=S.document;_.open("image/svg+xml","replace"),_.write(p),_.close(),S.focus(),_.execCommand("SaveAs",!0,v),document.body.removeChild(x)}}else{var b=i.get("lang"),w='',C=window.open();C.document.write(w),C.document.title=a}},t.getDefaultOption=function(r){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:r.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:r.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(hi);const xEe=yEe;var a$="__ec_magicType_stack__",SEe=[["line","bar"],["stack"]],bEe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var r=this.model,n=r.get("icon"),i={};return R(r.get("type"),function(a){n[a]&&(i[a]=n[a])}),i},t.getDefaultOption=function(r){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:r.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(r,n,i){var a=this.model,o=a.get(["seriesIndex",i]);if(o$[i]){var s={series:[]},l=function(f){var d=f.subType,h=f.id,p=o$[i](d,h,f,a);p&&(be(p,f.option),s.series.push(p));var v=f.coordinateSystem;if(v&&v.type==="cartesian2d"&&(i==="line"||i==="bar")){var g=v.getAxesByScale("ordinal")[0];if(g){var m=g.dim,y=m+"Axis",x=f.getReferringComponents(y,sr).models[0],S=x.componentIndex;s[y]=s[y]||[];for(var _=0;_<=S;_++)s[y][S]=s[y][S]||{};s[y][S].boundaryGap=i==="bar"}}};R(SEe,function(f){ze(f,i)>=0&&R(f,function(d){a.setIconStatus(d,"normal")})}),a.setIconStatus(i,"emphasis"),r.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=i;i==="stack"&&(u=Oe({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(c="tiled")),n.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t}(hi),o$={line:function(e,t,r,n){if(e==="bar")return Oe({id:t,type:"line",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(e,t,r,n){if(e==="line")return Oe({id:t,type:"bar",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(e,t,r,n){var i=r.get("stack")===a$;if(e==="line"||e==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),Oe({id:t,stack:i?"":a$},n.get(["option","stack"])||{},!0)}};Xa({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});const _Ee=bEe;var aS=new Array(60).join("-"),Bf=" ";function wEe(e){var t={},r=[],n=[];return e.eachRawSeries(function(i){var a=i.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(i)}else r.push(i)}else r.push(i)}),{seriesGroupByCategoryAxis:t,other:r,meta:n}}function CEe(e){var t=[];return R(e,function(r,n){var i=r.categoryAxis,a=r.valueAxis,o=a.dim,s=[" "].concat(Z(r.series,function(h){return h.name})),l=[i.model.getCategories()];R(r.series,function(h){var p=h.getRawData();l.push(h.getRawData().mapArray(p.mapDimension(o),function(v){return v}))});for(var u=[s.join(Bf)],c=0;c1||r>0&&!e.noHeader;return R(e.blocks,function(i){var a=Ej(i);a>=t&&(t=a+ +(n&&(!a||KT(i)&&!i.noHeader)))}),t}return 0}function jxe(e,t,r,n){var i=t.noHeader,a=qxe(Ej(t)),o=[],s=t.blocks||[];cn(!s||Y(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(fe(u,l)){var c=new Aj(u[l],null);s.sort(function(p,v){return c.evaluate(p.sortParam,v.sortParam)})}else l==="seriesDesc"&&s.reverse()}R(s,function(p,v){var g=t.valueFormatter,m=Lj(p)(g?q(q({},e),{valueFormatter:g}):e,p,v>0?a.html:0,n);m!=null&&o.push(m)});var f=e.renderMode==="richText"?o.join(a.richText):QT(o.join(""),i?r:a.html);if(i)return f;var d=UT(t.header,"ordinal",e.useUTC),h=Rj(n,e.renderMode).nameStyle;return e.renderMode==="richText"?Oj(e,d,h)+a.richText+f:QT('
'+xn(d)+"
"+f,r)}function Uxe(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(S){return S=Y(S)?S:[S],Z(S,function(_,b){return UT(_,Y(h)?h[b]:h,u)})};if(!(a&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),d=a?"":UT(l,"ordinal",u),h=t.valueType,p=o?[]:c(t.value),v=!s||!a,g=!s&&a,m=Rj(n,i),y=m.nameStyle,x=m.valueStyle;return i==="richText"?(s?"":f)+(a?"":Oj(e,d,y))+(o?"":Zxe(e,p,v,g,x)):QT((s?"":f)+(a?"":Yxe(d,!s,y))+(o?"":Xxe(p,v,g,x)),r)}}function pN(e,t,r,n,i,a){if(e){var o=Lj(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function qxe(e){return{html:Hxe[e],richText:Wxe[e]}}function QT(e,t){var r='
',n="margin: "+t+"px 0 0";return'
'+e+r+"
"}function Yxe(e,t,r){var n=t?"margin-left:2px":"";return''+xn(e)+""}function Xxe(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=Y(e)?e:[e],''+Z(e,function(o){return xn(o)}).join("  ")+""}function Oj(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function Zxe(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Y(t)?t.join(" "):t,a)}function Nj(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return Ru(n)}function zj(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var u_=function(){function e(){this.richTextStyles={},this._nextStyleNameId=OH()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=B1e({color:r,type:t,renderMode:n,markerId:i});return oe(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};Y(r)?R(r,function(a){return q(n,a)}):q(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function Bj(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),l=Y(s),u=Nj(t,r),c,f,d,h;if(o>1||l&&!o){var p=Kxe(s,t,r,a,u);c=p.inlineValues,f=p.inlineValueTypes,d=p.blocks,h=p.inlineValues[0]}else if(o){var v=i.getDimensionInfo(a[0]);h=c=Df(i,r,a[0]),f=v.type}else h=c=l?s[0]:s;var g=kk(t),m=g&&t.name||"",y=i.getName(r),x=n?m:y;return Sr("section",{header:m,noHeader:n||!g,sortParam:h,blocks:[Sr("nameValue",{markerType:"item",markerColor:u,name:x,noName:!Gi(x),value:c,valueType:f})].concat(d||[])})}function Kxe(e,t,r,n,i){var a=t.getData(),o=Fa(e,function(f,d,h){var p=a.getDimensionInfo(h);return f=f||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];n.length?R(n,function(f){c(Df(a,r,f),f)}):R(e,c);function c(f,d){var h=a.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(Sr("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:f,valueType:h.type})):(s.push(f),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Go=et();function Yg(e,t){return e.getName(t)||e.getId(t)}var uy="__universalTransitionEnabled",Ux=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=ep({count:Jxe,reset:eSe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Go(this).sourceManager=new Pj(this);a.prepareSource();var o=this.getInitialData(r,i);gN(o,this),this.dataTask.context.data=o,Go(this).dataBeforeProcessed=o,vN(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Xp(this),a=i?ad(r):{},o=this.subType;tt.hasClass(o)&&(o+="Series"),Oe(r,n.getTheme().get(this.subType)),Oe(r,this.getDefaultOption()),ku(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Fs(r,a,i)},t.prototype.mergeOption=function(r,n){r=Oe(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Xp(this);i&&Fs(this.option,r,i);var a=Go(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);gN(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Go(this).dataBeforeProcessed=o,vN(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!Yn(r))for(var n=["show"],i=0;ithis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=Kk.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Yg(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[uy])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){_e(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(r,n)}},t.registerClass=function(r){return tt.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(tt);ur(Ux,tI);ur(Ux,Kk);WH(Ux,tt);function vN(e){var t=e.name;kk(e)||(e.name=Qxe(e)||t)}function Qxe(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return R(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function Jxe(e){return e.model.getRawData().count()}function eSe(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),tSe}function tSe(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function gN(e,t){R(u0(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Ie(rSe,t))})}function rSe(e,t){var r=JT(e);return r&&r.setOutputEnd((t||this).count()),t}function JT(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}const zt=Ux;var nI=function(){function e(){this.group=new Me,this.uid=nd("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();Pk(nI);Mx(nI);const Ut=nI;function ld(){var e=et();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var $j=et(),nSe=ld(),iI=function(){function e(){this.group=new Me,this.uid=nd("viewChart"),this.renderTask=ep({plan:iSe,reset:aSe}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.highlight=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&yN(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&yN(a,i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateLayout=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.eachRendered=function(t){Qs(this.group,t)},e.markUpdateMethod=function(t,r){$j(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function mN(e,t,r){e&&jp(e)&&(t==="emphasis"?wo:Co)(e,r)}function yN(e,t,r){var n=Iu(e,t),i=t&&t.highlightKey!=null?D0e(t.highlightKey):null;n!=null?R(pt(n),function(a){mN(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){mN(a,r,i)})}Pk(iI);Mx(iI);function iSe(e){return nSe(e.model)}function aSe(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&$j(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),oSe[l]}var oSe={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const Tt=iI;var A0="\0__throttleOriginMethod",xN="\0__throttleRate",SN="\0__throttleType";function aI(e,t,r){var n,i=0,a=0,o=null,s,l,u,c;t=t||0;function f(){a=new Date().getTime(),o=null,e.apply(l,u||[])}var d=function(){for(var h=[],p=0;p=0?f():o=setTimeout(f,-s),i=n};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(h){c=h},d}function ud(e,t,r,n){var i=e[t];if(i){var a=i[A0]||i,o=i[SN],s=i[xN];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=aI(a,r,n==="debounce"),i[A0]=a,i[SN]=n,i[xN]=r}return i}}function Kp(e,t){var r=e[t];r&&r[A0]&&(r.clear&&r.clear(),e[t]=r[A0])}var bN=et(),_N={itemStyle:Pu(HW,!0),lineStyle:Pu(GW,!0)},sSe={lineStyle:"stroke",itemStyle:"fill"};function Fj(e,t){var r=e.visualStyleMapper||_N[t];return r||(console.warn("Unknown style type '"+t+"'."),_N.itemStyle)}function Vj(e,t){var r=e.visualDrawType||sSe[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var lSe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=Fj(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=Vj(e,n),u=o[l],c=Se(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=d,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Se(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||Se(o.stroke)?d:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,p){var v=e.getDataParams(p),g=q({},o);g[l]=c(v),h.setItemVisual(p,"style",g)}}}},$d=new wt,uSe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=Fj(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){$d.option=l[n];var u=i($d),c=o.ensureUniqueItemVisual(s,"style");q(c,u),$d.option.decal&&(o.setItemVisual(s,"decal",$d.option.decal),$d.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},cSe={performRawSeries:!0,overallReset:function(e){var t=ge();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),bN(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=bN(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=Vj(r,s);a.each(function(u){var c=a.getRawIndex(u);i[c]=u}),n.each(function(u){var c=i[u],f=a.getItemVisual(c,"colorFromPalette");if(f){var d=a.ensureUniqueItemVisual(c,"style"),h=n.getName(u)||u+"",p=n.count();d[l]=r.getColorFromPalette(h,o,p)}})}})}},Xg=Math.PI;function fSe(e,t){t=t||{},be(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Me,n=new Je({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new nt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Je({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new $k({shape:{startAngle:-Xg/2,endAngle:-Xg/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Xg*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Xg*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),a.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var dSe=function(){function e(t,r,n,i){this._stageTaskMap=ge(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=ge();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;R(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";cn(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var a=!1,o=this;R(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var h,p=d.agentStubMap;p.each(function(g){s(i,g)&&(g.dirty(),h=!0)}),h&&d.dirty(),o.updatePayload(d,n);var v=o.getPerformArgs(d,i.block);p.each(function(g){g.perform(v)}),d.perform(v)&&(a=!0)}else f&&f.each(function(g,m){s(i,g)&&g.dirty();var y=o.getPerformArgs(g,i.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=ge(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c);function c(f){var d=f.uid,h=s.set(d,o&&o.get(d)||ep({plan:mSe,reset:ySe,count:SSe}));h.context={model:f,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(f,h)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||ep({reset:hSe});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=ge(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,h="";cn(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,p):c?c(n,i).each(p):(f=!1,R(n.getSeries(),p));function p(v){var g=v.uid,m=l.set(g,s&&s.get(g)||(d=!0,ep({reset:pSe,onDirty:gSe})));m.context={model:v,overallProgress:f},m.agent=o,m.__block=f,a._pipe(v,m)}d&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},e.wrapStageHandler=function(t,r){return Se(t)&&(t={overallReset:t,seriesType:bSe(t)}),t.uid=nd("stageHandler"),r&&(t.visualType=r),t},e}();function hSe(e){e.overallReset(e.ecModel,e.api,e.payload)}function pSe(e){return e.overallProgress&&vSe}function vSe(){this.agent.dirty(),this.getDownstream().dirty()}function gSe(){this.agent&&this.agent.dirty()}function mSe(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function ySe(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=pt(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Z(t,function(r,n){return Gj(n)}):xSe}var xSe=Gj(0);function Gj(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a0&&h===u.length-d.length){var p=u.slice(0,h);p!=="data"&&(r.mainType=p,r[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,a,"name")&&c(u,a,"dataIndex")&&c(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,a));function c(f,d,h,p){return f[h]==null||d[p||h]===f[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),eA=["symbol","symbolSize","symbolRotate","symbolOffset"],AN=eA.concat(["symbolKeepAspect"]),TSe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o=0&&iu(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function tA(e,t,r){for(var n=t.type==="radial"?VSe(e,t,r):FSe(e,t,r),i=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:it(e)?[e]:Y(e)?e:null}function sI(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&HSe(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=Z(r,function(a){return a/i}),n/=i)}return[r,n]}var WSe=new Wa(!0);function I0(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function MN(e){return typeof e=="string"&&e!=="none"}function P0(e){var t=e.fill;return t!=null&&t!=="none"}function kN(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function IN(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function rA(e,t,r){var n=Dk(t.image,t.__image,r);if(kx(n)){var i=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Xm),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function jSe(e,t,r,n){var i,a=I0(r),o=P0(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||WSe,f=t.__dirty;if(!n){var d=r.fill,h=r.stroke,p=o&&!!d.colorStops,v=a&&!!h.colorStops,g=o&&!!d.image,m=a&&!!h.image,y=void 0,x=void 0,S=void 0,_=void 0,b=void 0;(p||v)&&(b=t.getBoundingRect()),p&&(y=f?tA(e,d,b):t.__canvasFillGradient,t.__canvasFillGradient=y),v&&(x=f?tA(e,h,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=x),g&&(S=f||!t.__canvasFillPattern?rA(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=S),m&&(_=f||!t.__canvasStrokePattern?rA(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),p?e.fillStyle=y:g&&(S?e.fillStyle=S:o=!1),v?e.strokeStyle=x:m&&(_?e.strokeStyle=_:a=!1)}var w=t.getGlobalScale();c.setScale(w[0],w[1],t.segmentIgnoreThreshold);var C,A;e.setLineDash&&r.lineDash&&(i=sI(t),C=i[0],A=i[1]);var T=!0;(u||f&Ic)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),T=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),T&&c.rebuildPath(e,l?s:1),C&&(e.setLineDash(C),e.lineDashOffset=A),n||(r.strokeFirst?(a&&IN(e,r),o&&kN(e,r)):(o&&kN(e,r),a&&IN(e,r))),C&&e.setLineDash([])}function USe(e,t,r){var n=t.__image=Dk(r.image,t.__image,t,t.onload);if(!(!n||!kx(n))){var i=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,c=r.sy||0;e.drawImage(n,u,c,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,c=r.sy,f=o-u,d=s-c;e.drawImage(n,u,c,f,d,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function qSe(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||Ns,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=sI(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(I0(r)&&e.strokeText(i,r.x,r.y),P0(r)&&e.fillText(i,r.x,r.y)):(P0(r)&&e.fillText(i,r.x,r.y),I0(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var PN=["shadowBlur","shadowOffsetX","shadowOffsetY"],DN=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Xj(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){_n(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?du.opacity:o}(n||t.blend!==r.blend)&&(a||(_n(e,i),a=!0),e.globalCompositeOperation=t.blend||du.blend);for(var s=0;s0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,i){if(!this[Wr]){if(this._disposed){this.id;return}var a,o,s;if(_e(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Wr]=!0,!this._model||n){var l=new uxe(this._api),u=this._theme,c=this._model=new pj;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},iA);var f={seriesTransition:s,optionChanged:!0};if(i)this[gn]={silent:a,updateParams:f},this[Wr]=!1,this.getZr().wakeUp();else{try{vc(this),Ho.update.call(this,null,f)}catch(d){throw this[gn]=null,this[Wr]=!1,d}this._ssr||this._zr.flush(),this[gn]=null,this[Wr]=!1,Fd.call(this,a),Vd.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||rt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(rt.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return R(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;R(n,function(l){i.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(a.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return R(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(oA[i]){var l=s,u=s,c=-s,f=-s,d=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();R(pf,function(x,S){if(x.group===i){var _=n?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(Te(r)),b=x.getDom().getBoundingClientRect();l=a(b.left,l),u=a(b.top,u),c=o(b.right,c),f=o(b.bottom,f),d.push({dom:_,left:b.left,top:b.top})}}),l*=h,u*=h,c*=h,f*=h;var p=c-l,v=f-u,g=zs.createCanvas(),m=XE(g,{renderer:n?"svg":"canvas"});if(m.resize({width:p,height:v}),n){var y="";return R(d,function(x){var S=x.left-l,_=x.top-u;y+=''+x.dom+""}),m.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new Je({shape:{x:0,y:0,width:p,height:v},style:{fill:r.connectedBackgroundColor}})),R(d,function(x){var S=new $r({style:{x:x.left*h-l,y:x.top*h-u,image:x.dom}});m.add(S)}),m.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return p_(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return p_(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Xh(i,r);return R(o,function(s,l){l.indexOf("Models")>=0&&R(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(a=a||f.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=Xh(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?oI(s,l,n):zv(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;R(xbe,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&nu(s,function(p){var v=ke(p);if(v&&v.dataIndex!=null){var g=v.dataModel||o.getSeriesByIndex(v.seriesIndex);return l=g&&g.getDataParams(v.dataIndex,v.dataType,s)||{},!0}else if(v.eventData)return l=q({},v.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&o.getComponent(c,f),h=d&&r[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:h},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),R(tp,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),R(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),MSe(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&VH(this.getDom(),cI,"");var n=this,i=n._api,a=n._model;R(n._componentsViews,function(o){o.dispose(a,i)}),R(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete pf[n.id]},t.prototype.resize=function(r){if(!this[Wr]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[gn]&&(a==null&&(a=this[gn].silent),i=!0,this[gn]=null),this[Wr]=!0;try{i&&vc(this),Ho.update.call(this,{type:"resize",animation:q({duration:0},r&&r.animation)})}catch(o){throw this[Wr]=!1,o}this[Wr]=!1,Fd.call(this,a),Vd.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(_e(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!aA[r]){var i=aA[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=q({},r);return n.type=tp[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(_e(n)||(n={silent:!!n}),!!R0[r.type]&&this._model){if(this[Wr]){this._pendingActions.push(r);return}var i=n.silent;g_.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&rt.browser.weChat&&this._throttledZrFlush(),Fd.call(this,i),Vd.call(this,i)}},t.prototype.updateLabelLayout=function(){zi.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){vc=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),h_(f,!0),h_(f,!1),d.plan()},h_=function(f,d){for(var h=f._model,p=f._scheduler,v=d?f._componentsViews:f._chartsViews,g=d?f._componentsMap:f._chartsMap,m=f._zr,y=f._api,x=0;xd.get("hoverLayerThreshold")&&!rt.node&&!rt.worker&&d.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=f._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(f,d){var h=f.get("blendMode")||null;d.eachRendered(function(p){p.isGroup||(p.style.blend=h)})}function s(f,d){if(!f.preventAutoZ){var h=f.get("z")||0,p=f.get("zlevel")||0;d.eachRendered(function(v){return l(v,h,p,-1/0),!0})}}function l(f,d,h,p){var v=f.getTextContent(),g=f.getTextGuideLine(),m=f.isGroup;if(m)for(var y=f.childrenRef(),x=0;x0?{duration:v,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(m){if(m.states&&m.states.emphasis){if(ff(m))return;if(m instanceof je&&R0e(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(p){m.stateTransition=g;var x=m.getTextContent(),S=m.getTextGuideLine();x&&(x.stateTransition=g),S&&(S.stateTransition=g)}m.__dirty&&i(m)}})}WN=function(f){return new(function(d){H(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(p){for(;p;){var v=p.__ecComponentInfo;if(v!=null)return f._model.getComponent(v.mainType,v.index);p=p.parent}},h.prototype.enterEmphasis=function(p,v){wo(p,v),Qn(f)},h.prototype.leaveEmphasis=function(p,v){Co(p,v),Qn(f)},h.prototype.enterBlur=function(p){uW(p),Qn(f)},h.prototype.leaveBlur=function(p){Ok(p),Qn(f)},h.prototype.enterSelect=function(p){cW(p),Qn(f)},h.prototype.leaveSelect=function(p){fW(p),Qn(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(p){return f.getViewOfComponentModel(p)},h.prototype.getViewOfSeriesModel=function(p){return f.getViewOfSeriesModel(p)},h}(vj))(f)},c9=function(f){function d(h,p){for(var v=0;v=0)){UN.push(r);var a=jj.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function v9(e,t){aA[e]=t}function Ibe(e,t,r){var n=ibe("registerMap");n&&n(e,t,r)}var Pbe=zxe;qu(lI,lSe);qu(qx,uSe);qu(qx,cSe);qu(lI,TSe);qu(qx,ASe);qu(i9,tbe);h9(mj);p9(sbe,mxe);v9("default",fSe);Xa({type:hu,event:hu,update:hu},rr);Xa({type:iy,event:iy,update:iy},rr);Xa({type:Zh,event:Zh,update:Zh},rr);Xa({type:ay,event:ay,update:ay},rr);Xa({type:Kh,event:Kh,update:Kh},rr);fI("light",_Se);fI("dark",wSe);var qN=[],Dbe={registerPreprocessor:h9,registerProcessor:p9,registerPostInit:Tbe,registerPostUpdate:Abe,registerUpdateLifecycle:dI,registerAction:Xa,registerCoordinateSystem:Mbe,registerLayout:kbe,registerVisual:qu,registerTransform:Pbe,registerLoading:v9,registerMap:Ibe,registerImpl:nbe,PRIORITY:gbe,ComponentModel:tt,ComponentView:Ut,SeriesModel:zt,ChartView:Tt,registerComponentModel:function(e){tt.registerClass(e)},registerComponentView:function(e){Ut.registerClass(e)},registerSeriesModel:function(e){zt.registerClass(e)},registerChartView:function(e){Tt.registerClass(e)},registerSubTypeDefaulter:function(e,t){tt.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Kme(e,t)}};function Fe(e){if(Y(e)){R(e,function(t){Fe(t)});return}ze(qN,e)>=0||(qN.push(e),Se(e)&&(e={install:e}),e.install(Dbe))}function Gd(e){return e==null?0:e.length||1}function YN(e){return e}var Rbe=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||YN,this._newKeyGetter=i||YN,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},i=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),i[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(f>1)for(var h=0;h1)for(var s=0;s30}var Hd=_e,Wo=Z,$be=typeof Int32Array>"u"?Array:Int32Array,Fbe="e\0\0",XN=-1,Vbe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Gbe=["_approximateExtent"],ZN,em,Wd,jd,x_,tm,S_,Hbe=function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;m9(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},c=0;c=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Pi;if(l&&!i.pure)for(var u=[],c=t;c0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[r];return a==null&&(a=this.getVisual(r),Y(a)?a=a.slice():Hd(a)&&(a=q({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Hd(r)?q(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Hd(t)?q(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?q(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;zT(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){R(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Wo(this.dimensions,this._getDimInfo,this),this.hostModel)),x_(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];Se(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(yk(arguments)))})},e.internalField=function(){ZN=function(t){var r=t._invertedIndicesMap;R(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new $be(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),i[r]=l}}}(),e}();const un=Hbe;function Bv(e,t){Qk(e)||(e=Jk(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=ge(),a=[],o=jbe(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&S9(o),l=n===e.dimensionsDefine,u=l?x9(e):y9(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=ge(c),d=new kj(o),h=0;h0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function jbe(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return R(t,function(a){var o;_e(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function Ube(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var qbe=function(){function e(t){this.coordSysDims=[],this.axisMap=ge(),this.categoryAxisMap=ge(),this.coordSysName=t}return e}();function Ybe(e){var t=e.get("coordinateSystem"),r=new qbe(t),n=Xbe[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var Xbe={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",sr).models[0],a=e.getReferringComponents("yAxis",sr).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),gc(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),gc(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",sr).models[0];t.coordSysDims=["single"],r.set("single",i),gc(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",sr).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),gc(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),gc(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();R(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];r.set(c,u),gc(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function gc(e){return e.get("type")==="category"}function Zbe(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;Kbe(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(R(a,function(y,x){oe(y)&&(a[x]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!c&&y.type!=="ordinal"&&y.type!=="time"&&(!i||i===y.coordDim)&&(c=y))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,p=c.type,v=0;R(a,function(y){y.coordDim===h&&v++});var g={name:f,coordDim:h,coordDimIndex:v,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},m={name:d,coordDim:d,coordDimIndex:v+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(d,p),m.storeDimIndex=s.ensureCalculationDimension(f,p)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(a.push(g),a.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:d,stackResultDimension:f}}function Kbe(e){return!m9(e.schema)}function Vs(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function b9(e,t){return Vs(e,t)?e.getCalculationInfo("stackResultDimension"):t}function Qbe(e,t){var r=e.get("coordinateSystem"),n=Nv.get(r),i;return t&&t.coordSysDims&&(i=Z(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=E0(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function Jbe(e,t,r){var n,i;return r&&R(e,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function Ro(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=Jk(e)):(i=n.getSource(),a=i.sourceFormat===Pi);var o=Ybe(t),s=Qbe(t,o),l=r.useEncodeDefaulter,u=Se(l)?l:l?Ie(uj,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=Bv(i,c),d=Jbe(f.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(f),p=Zbe(t,{schema:f,store:h}),v=new un(f,t);v.setCalculationInfo(p);var g=d!=null&&e_e(i)?function(m,y,x,S){return S===d?x:this.defaultDimValueGetter(m,y,x,S)}:null;return v.hasItemOption=!1,v.initData(a?i:h,null,g),v}function e_e(e){if(e.sourceFormat===Pi){var t=t_e(e.data||[]);return!Y(Qf(t))}}function t_e(e){for(var t=0;tr[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();Mx(_9);const Lo=_9;var r_e=0,n_e=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++r_e}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&Z(n,i_e);return new e({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!oe(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var i=this._getOrCreateMap();return r=i.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,i.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=ge(this.categories))},e}();function i_e(e){return _e(e)&&e.value!=null?e.value:e+""}const sA=n_e;function lA(e){return e.type==="interval"||e.type==="log"}function a_e(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=LH(a/t,!0);r!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=w9(o),l=i.niceTickExtent=[Xt(Math.ceil(e[0]/o)*o,s),Xt(Math.floor(e[1]/o)*o,s)];return o_e(l,e),i}function b_(e){var t=Math.pow(10,Mk(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Xt(r*t)}function w9(e){return Ta(e)+2}function KN(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function o_e(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),KN(e,0,t),KN(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function Yx(e,t){return e>=t[0]&&e<=t[1]}function Xx(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Zx(e,t){return e*(t[1]-t[0])+t[0]}var C9=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new sA({})),Y(i)&&(i=new sA({categories:Z(i,function(a){return _e(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:oe(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),Yx(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),Xx(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(Zx(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o=0&&r=0&&r=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Lo);Lo.registerClass(C9);const pI=C9;var bl=Xt,T9=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return Yx(r,this._extent)},t.prototype.normalize=function(r){return Xx(r,this._extent)},t.prototype.scale=function(r){return Zx(r,this._extent)},t.prototype.setExtent=function(r,n){var i=this._extent;isNaN(r)||(i[0]=parseFloat(r)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=w9(r)},t.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]l)return[];var c=s.length?s[s.length-1].value:a[1];return i[1]>c&&(r?s.push({value:bl(c+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;oa[0]&&h0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function k9(e){var t=u_e(e),r=[];return R(e,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],c=Math.abs(o[1]-o[0]),f=a.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var h=n.getData();s=Math.abs(o[1]-o[0])/h.count()}var p=ne(n.get("barWidth"),s),v=ne(n.get("barMaxWidth"),s),g=ne(n.get("barMinWidth")||(L9(n)?.5:1),s),m=n.get("barGap"),y=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:p,barMaxWidth:v,barMinWidth:g,barGap:m,barCategoryGap:y,axisKey:gI(a),stackId:vI(n)})}),I9(r)}function I9(e){var t={};R(e,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=n.barMaxWidth;f&&(l[u].maxWidth=f);var d=n.barMinWidth;d&&(l[u].minWidth=d);var h=n.barGap;h!=null&&(s.gap=h);var p=n.barCategoryGap;p!=null&&(s.categoryGap=p)});var r={};return R(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Ye(a).length;s=Math.max(35-l*4,15)+"%"}var u=ne(s,o),c=ne(n.gap,1),f=n.remainedWidth,d=n.autoWidthCount,h=(f-u)/(d+(d-1)*c);h=Math.max(h,0),R(a,function(m){var y=m.maxWidth,x=m.minWidth;if(m.width){var S=m.width;y&&(S=Math.min(S,y)),x&&(S=Math.max(S,x)),m.width=S,f-=S+c*S,d--}else{var S=h;y&&yS&&(S=x),S!==h&&(m.width=S,f-=S+c*S,d--)}}),h=(f-u)/(d+(d-1)*c),h=Math.max(h,0);var p=0,v;R(a,function(m,y){m.width||(m.width=h),v=m,p+=m.width*(1+c)}),v&&(p-=v.width*c);var g=-p/2;R(a,function(m,y){r[i][y]=r[i][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+c)})}),r}function c_e(e,t,r){if(e&&t){var n=e[gI(t)];return n!=null&&r!=null?n[vI(r)]:n}}function P9(e,t){var r=M9(e,t),n=k9(r);R(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=vI(i),u=n[gI(s)][l],c=u.offset,f=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function D9(e){return{seriesType:e,plan:ld(),reset:function(t){if(R9(t)){var r=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=t.get("showBackground",!0),u=r.mapDimension(a.dim),c=r.getCalculationInfo("stackResultDimension"),f=Vs(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=a.isHorizontal(),h=f_e(i,a),p=L9(t),v=t.get("barMinHeight")||0,g=c&&r.getDimensionIndex(c),m=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(x,S){for(var _=x.count,b=p&&Ma(_*3),w=p&&l&&Ma(_*3),C=p&&Ma(_),A=n.master.getRect(),T=d?A.width:A.height,M,k=S.getStore(),I=0;(M=x.next())!=null;){var D=k.get(f?g:o,M),L=k.get(s,M),z=h,V=void 0;f&&(V=+D-k.get(o,M));var N=void 0,F=void 0,E=void 0,G=void 0;if(d){var j=n.dataToPoint([D,L]);if(f){var B=n.dataToPoint([V,L]);z=B[0]}N=z,F=j[1]+y,E=j[0]-z,G=m,Math.abs(E)>>1;e[i][1]i&&(this._approxInterval=i);var s=rm.length,l=Math.min(d_e(rm,this._approxInterval,0,s),s-1);this._interval=rm[l][1],this._minLevelUnit=rm[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return it(r)?r:+Ha(r)},t.prototype.contain=function(r){return Yx(this.parse(r),this._extent)},t.prototype.normalize=function(r){return Xx(this.parse(r),this._extent)},t.prototype.scale=function(r){return Zx(r,this._extent)},t.type="time",t}(Gs),rm=[["second",jk],["minute",Uk],["hour",Jh],["quarter-day",Jh*6],["half-day",Jh*12],["day",vi*1.2],["half-week",vi*3.5],["week",vi*7],["month",vi*31],["quarter",vi*95],["half-year",VO/2],["year",VO]];function h_e(e,t,r,n){var i=Ha(t),a=Ha(r),o=function(p){return HO(i,p,n)===HO(a,p,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},d=function(){return f()&&o("second")},h=function(){return d()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return d();case"millisecond":return h()}}function p_e(e,t){return e/=vi,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function v_e(e){var t=30*vi;return e/=t,e>6?6:e>3?3:e>2?2:1}function g_e(e){return e/=Jh,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function QN(e,t){return e/=t?Uk:jk,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function m_e(e){return LH(e,!0)}function y_e(e,t,r){var n=new Date(e);switch(df(t)){case"year":case"month":n[YW(r)](0);case"day":n[XW(r)](1);case"hour":n[ZW(r)](0);case"minute":n[KW(r)](0);case"second":n[QW(r)](0),n[JW(r)](0)}return n.getTime()}function x_e(e,t,r,n){var i=1e4,a=UW,o=0;function s(T,M,k,I,D,L,z){for(var V=new Date(M),N=M,F=V[I]();N1&&L===0&&k.unshift({value:k[0].value-N})}}for(var L=0;L=n[0]&&y<=n[1]&&f++)}var x=(n[1]-n[0])/t;if(f>x*1.5&&d>x/1.5||(u.push(g),f>x||e===a[h]))break}c=[]}}}for(var S=dt(Z(u,function(T){return dt(T,function(M){return M.value>=n[0]&&M.value<=n[1]&&!M.notAdd})}),function(T){return T.length>0}),_=[],b=S.length-1,h=0;h0;)a*=10;var s=[Xt(__e(n[0]/a)*a),Xt(b_e(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){rp.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=Ei(r)/Ei(this.base),Yx(r,this._extent)},t.prototype.normalize=function(r){return r=Ei(r)/Ei(this.base),Xx(r,this._extent)},t.prototype.scale=function(r){return r=Zx(r,this._extent),nm(this.base,r)},t.type="log",t}(Lo),N9=mI.prototype;N9.getMinorTicks=rp.getMinorTicks;N9.getLabel=rp.getLabel;function im(e,t){return S_e(e,Ta(t))}Lo.registerClass(mI);const w_e=mI;var C_e=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,h=this._determinedMax;return d!=null&&(s=d,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,r){this[A_e[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=T_e[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),T_e={min:"_determinedMin",max:"_determinedMax"},A_e={min:"_dataMin",max:"_dataMax"};function z9(e,t,r){var n=e.rawExtentInfo;return n||(n=new C_e(e,t,r),e.rawExtentInfo=n,n)}function am(e,t){return t==null?null:Bp(t)?NaN:e.parse(t)}function B9(e,t){var r=e.type,n=z9(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&r==="time"){var s=M9("bar",o),l=!1;if(R(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=k9(s),c=M_e(i,a,t,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function M_e(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=c_e(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;R(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;R(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,f=1-(s+l)/a,d=c/f-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function Lf(e,t){var r=t,n=B9(e,r),i=n.extent,a=r.get("splitNumber");e instanceof w_e&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),l=o==="interval"||o==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function Kx(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new pI({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new O9({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Lo.getClass(t)||Gs)}}function k_e(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function $v(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(n){return function(i,a){return e.scale.getFormattedLabel(i,a,n)}}(t):oe(t)?function(n){return function(i){var a=e.scale.getLabel(i),o=n.replace("{value}",a??"");return o}}(t):Se(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(yI(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function yI(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function I_e(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof pI?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=$v(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;ce[1]&&(e[1]=i[1])})}var Fv=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),R_e=1e-8;function ez(e,t){return Math.abs(e-t)i&&(n=o,i=l)}if(n)return E_e(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return R(o,function(s){s.type==="polygon"?tz(s.exterior,i,a,r):R(s.points,function(l){tz(l,i,a,r)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new Ne(i[0],i[1],a[0]-i[0],a[1]-i[1]),r||(this._rect=n),n},t.prototype.contain=function(r){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(r[0],r[1]))return!1;e:for(var a=0,o=i.length;a>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,n.push([s/r,l/r])}return n}function z_e(e,t){return e=N_e(e),Z(dt(e.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,i=r.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new rz(o[0],o.slice(1)));break;case"MultiPolygon":R(i.coordinates,function(l){l[0]&&a.push(new rz(l[0],l.slice(1)))});break;case"LineString":a.push(new nz([i.coordinates]));break;case"MultiLineString":a.push(new nz(i.coordinates))}var s=new V9(n[t||"name"],a,n.cp);return s.properties=n,s})}var ev=et();function B_e(e){return e.type==="category"?F_e(e):G_e(e)}function $_e(e,t){return e.type==="category"?V_e(e,t):{ticks:Z(e.scale.getTicks(),function(r){return r.value})}}function F_e(e){var t=e.getLabelModel(),r=H9(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function H9(e,t){var r=W9(e,"labels"),n=xI(t),i=j9(r,n);if(i)return i;var a,o;return Se(n)?a=Y9(e,n):(o=n==="auto"?H_e(e):n,a=q9(e,o)),U9(r,n,{labels:a,labelCategoryInterval:o})}function V_e(e,t){var r=W9(e,"ticks"),n=xI(t),i=j9(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),Se(n))a=Y9(e,n,!0);else if(n==="auto"){var s=H9(e,e.getLabelModel());o=s.labelCategoryInterval,a=Z(s.labels,function(l){return l.tickValue})}else o=n,a=q9(e,o,!0);return U9(r,n,{ticks:a,tickCategoryInterval:o})}function G_e(e){var t=e.scale.getTicks(),r=$v(e);return{labels:Z(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function W9(e,t){return ev(e)[t]||(ev(e)[t]=[])}function j9(e,t){for(var r=0;r40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(n)),f=Math.abs(u*Math.sin(n)),d=0,h=0;l<=a[1];l+=s){var p=0,v=0,g=Iv(r({value:l}),t.font,"center","top");p=g.width*1.3,v=g.height*1.3,d=Math.max(d,p,7),h=Math.max(h,v,7)}var m=d/c,y=h/f;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var x=Math.max(0,Math.floor(Math.min(m,y))),S=ev(e.model),_=e.getExtent(),b=S.lastAutoInterval,w=S.lastTickCount;return b!=null&&w!=null&&Math.abs(b-x)<=1&&Math.abs(w-o)<=1&&b>x&&S.axisExtent0===_[0]&&S.axisExtent1===_[1]?x=b:(S.lastTickCount=o,S.lastAutoInterval=x,S.axisExtent0=_[0],S.axisExtent1=_[1]),x}function j_e(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function q9(e,t,r){var n=$v(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=$9(e),d=o.get("showMinLabel")||f,h=o.get("showMaxLabel")||f;d&&u!==a[0]&&v(a[0]);for(var p=u;p<=a[1];p+=l)v(p);h&&p-l!==a[1]&&v(a[1]);function v(g){var m={value:g};s.push(r?g:{formattedLabel:n(m),rawLabel:i.getLabel(m),tickValue:g})}return s}function Y9(e,t,r){var n=e.scale,i=$v(e),a=[];return R(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var iz=[0,1],U_e=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return t>=n&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return DH(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),az(n,i.count())),ft(t,iz,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),az(n,i.count()));var a=ft(t,n,iz,r);return this.scale.scale(a)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=$_e(this,r),i=n.ticks,a=Z(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return q_e(this,a,o,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=Z(n,function(a){return Z(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(){return B_e(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return W_e(this)},e}();function az(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function q_e(e,t,r,n){var i=t.length;if(!e.onBand||r||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;R(t,function(h){h.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s},t.push(o)}var f=a[0]>a[1];d(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&d(a[0],t[0].coord)&&t.unshift({coord:a[0]}),d(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&d(o.coord,a[1])&&t.push({coord:a[1]});function d(h,p){return h=Xt(h),p=Xt(p),f?h>p:hi&&(i+=Ud);var h=Math.atan2(s,o);if(h<0&&(h+=Ud),h>=n&&h<=i||h+Ud>=n&&h+Ud<=i)return l[0]=c,l[1]=f,u-r;var p=r*Math.cos(n)+e,v=r*Math.sin(n)+t,g=r*Math.cos(i)+e,m=r*Math.sin(i)+t,y=(p-o)*(p-o)+(v-s)*(v-s),x=(g-o)*(g-o)+(m-s)*(m-s);return y0){t=t/180*Math.PI,Wi.fromArray(e[0]),bt.fromArray(e[1]),tr.fromArray(e[2]),Le.sub(ka,Wi,bt),Le.sub(Sa,tr,bt);var r=ka.len(),n=Sa.len();if(!(r<.001||n<.001)){ka.scale(1/r),Sa.scale(1/n);var i=ka.dot(Sa),a=Math.cos(t);if(a1&&Le.copy(an,tr),an.toArray(e[1])}}}}function J_e(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,Wi.fromArray(e[0]),bt.fromArray(e[1]),tr.fromArray(e[2]),Le.sub(ka,bt,Wi),Le.sub(Sa,tr,bt);var n=ka.len(),i=Sa.len();if(!(n<.001||i<.001)){ka.scale(1/n),Sa.scale(1/i);var a=ka.dot(t),o=Math.cos(r);if(a=l)Le.copy(an,tr);else{an.scaleAndAdd(Sa,s/Math.tan(Math.PI/2-c));var f=tr.x!==bt.x?(an.x-bt.x)/(tr.x-bt.x):(an.y-bt.y)/(tr.y-bt.y);if(isNaN(f))return;f<0?Le.copy(an,bt):f>1&&Le.copy(an,tr)}an.toArray(e[1])}}}}function sz(e,t,r,n){var i=r==="normal",a=i?e:e.ensureState(r);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function ewe(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=os(n[0],n[1]),a=os(n[1],n[2]);if(!i||!a){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=Km([],n[1],n[0],o/i),l=Km([],n[1],n[2],o/a),u=Km([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c0&&a&&_(-c/o,0,o);var v=e[0],g=e[o-1],m,y;x(),m<0&&b(-m,.8),y<0&&b(y,.8),x(),S(m,y,1),S(y,m,-1),x(),m<0&&w(-m),y<0&&w(y);function x(){m=v.rect[t]-n,y=i-g.rect[t]-g.rect[r]}function S(C,A,T){if(C<0){var M=Math.min(A,-C);if(M>0){_(M*T,0,o);var k=M+C;k<0&&b(-k*T,1)}else b(-C*T,1)}}function _(C,A,T){C!==0&&(u=!0);for(var M=A;M0)for(var k=0;k0;k--){var z=T[k-1]*L;_(-z,k,o)}}}function w(C){var A=C<0?-1:1;C=Math.abs(C);for(var T=Math.ceil(C/(o-1)),M=0;M0?_(T,0,M+1):_(-T,o-M-1,o),C-=T,C<=0)return}return u}function twe(e,t,r,n){return Q9(e,"x","width",t,r,n)}function J9(e,t,r,n){return Q9(e,"y","height",t,r,n)}function e8(e){var t=[];e.sort(function(v,g){return g.priority-v.priority});var r=new Ne(0,0,0,0);function n(v){if(!v.ignore){var g=v.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}v.ignore=!0}for(var i=0;i=0&&n.attr(a.oldLayoutSelect),ze(d,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),at(n,u,r,l)}else if(n.attr(u),!rd(n).valueAnimation){var f=Ee(n.style.opacity,1);n.style.opacity=0,Lt(n,{style:{opacity:f}},r,l)}if(a.oldLayout=u,n.states.select){var h=a.oldLayoutSelect={};om(h,u,sm),om(h,n.states.select,sm)}if(n.states.emphasis){var p=a.oldLayoutEmphasis={};om(p,u,sm),om(p,n.states.emphasis,sm)}VW(n,l,c,r,r)}if(i&&!i.ignore&&!i.invisible){var a=iwe(i),o=a.oldLayout,v={points:i.shape.points};o?(i.attr({shape:o}),at(i,{shape:v},r)):(i.setShape(v),i.style.strokePercent=0,Lt(i,{style:{strokePercent:1}},r)),a.oldLayout=v}},e}();const owe=awe;var T_=et();function swe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=T_(r).labelManager;i||(i=T_(r).labelManager=new owe),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var i=T_(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}var A_=Math.sin,M_=Math.cos,t8=Math.PI,wl=Math.PI*2,lwe=180/t8,uwe=function(){function e(){}return e.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},e.prototype.moveTo=function(t,r){this._add("M",t,r)},e.prototype.lineTo=function(t,r){this._add("L",t,r)},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){this._add("C",t,r,n,i,a,o)},e.prototype.quadraticCurveTo=function(t,r,n,i){this._add("Q",t,r,n,i)},e.prototype.arc=function(t,r,n,i,a,o){this.ellipse(t,r,n,n,0,i,a,o)},e.prototype.ellipse=function(t,r,n,i,a,o,s,l){var u=s-o,c=!l,f=Math.abs(u),d=fs(f-wl)||(c?u>=wl:-u>=wl),h=u>0?u%wl:u%wl+wl,p=!1;d?p=!0:fs(f)?p=!1:p=h>=t8==!!c;var v=t+n*M_(o),g=r+i*A_(o);this._start&&this._add("M",v,g);var m=Math.round(a*lwe);if(d){var y=1/this._p,x=(c?1:-1)*(wl-y);this._add("A",n,i,m,1,+c,t+n*M_(o+x),r+i*A_(o+x)),y>.01&&this._add("A",n,i,m,0,+c,v,g)}else{var S=t+n*M_(s),_=r+i*A_(s);this._add("A",n,i,m,+p,+c,S,_)}},e.prototype.rect=function(t,r,n,i){this._add("M",t,r),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,r,n,i,a,o,s,l,u){for(var c=[],f=this._p,d=1;d"}function ywe(e){return""}function _I(e,t){t=t||{};var r=t.newline?` +`:"";function n(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return mwe(o,s)+(o!=="style"?xn(l):l||"")+(a?""+r+Z(a,function(u){return n(u)}).join(r)+r:"")+ywe(o)}return n(e)}function xwe(e,t,r){r=r||{};var n=r.newline?` +`:"",i=" {"+n,a=n+"}",o=Z(Ye(e),function(l){return l+i+Z(Ye(e[l]),function(u){return u+":"+e[l][u]+";"}).join(n)+a}).join(n),s=Z(Ye(t),function(l){return"@keyframes "+l+i+Z(Ye(t[l]),function(u){return u+i+Z(Ye(t[l][u]),function(c){var f=t[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":[""].join(n)}function fA(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function uz(e,t,r,n){return yr("svg","root",{width:e,height:t,xmlns:n8,"xmlns:xlink":i8,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+e+" "+t:!1},r)}var cz={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"},Ll="transform-origin";function Swe(e,t,r){var n=q({},e.shape);q(n,t),e.buildPath(r,n);var i=new r8;return i.reset(SH(e)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function bwe(e,t){var r=t.originX,n=t.originY;(r||n)&&(e[Ll]=r+"px "+n+"px")}var _we={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function o8(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function wwe(e,t,r){var n=e.shape.paths,i={},a,o;if(R(n,function(l){var u=fA(r.zrId);u.animation=!0,Qx(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=Ye(c),h=d.length;if(h){o=d[h-1];var p=c[o];for(var v in p){var g=p[v];i[v]=i[v]||{d:""},i[v].d+=g.d||""}for(var m in f){var y=f[m].animation;y.indexOf(o)>=0&&(a=y)}}}),!!a){t.d=!1;var s=o8(i,r);return a.replace(o,s)}}function fz(e){return oe(e)?cz[e]?"cubic-bezier("+cz[e]+")":wk(e)?e:"":""}function Qx(e,t,r,n){var i=e.animators,a=i.length,o=[];if(e instanceof Fk){var s=wwe(e,t,r);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u0}).length){var ee=o8(w,r);return ee+" "+y[0]+" both"}}for(var g in l){var s=v(l[g]);s&&o.push(s)}if(o.length){var m=r.zrId+"-cls-"+r.cssClassIdx++;r.cssNodes["."+m]={animation:o.join(",")},t.class=m}}var tv=Math.round;function s8(e){return e&&oe(e.src)}function l8(e){return e&&Se(e.toDataURL)}function wI(e,t,r,n){pwe(function(i,a){var o=i==="fill"||i==="stroke";o&&xH(a)?c8(t,e,i,n):o&&Ck(a)?f8(r,e,i,n):e[i]=a},t,r,!1),Pwe(r,e,n)}function dz(e){return fs(e[0]-1)&&fs(e[1])&&fs(e[2])&&fs(e[3]-1)}function Cwe(e){return fs(e[4])&&fs(e[5])}function CI(e,t,r){if(t&&!(Cwe(t)&&dz(t))){var n=r?10:1e4;e.transform=dz(t)?"translate("+tv(t[4]*n)/n+" "+tv(t[5]*n)/n+")":yme(t)}}function hz(e,t,r){for(var n=e.points,i=[],a=0;a"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";cn(d,g),cn(h,g)}else if(d==null||h==null){var m=function(T,M){if(T){var k=T.elm,I=d||M.width,D=h||M.height;T.tag==="pattern"&&(u?(D=1,I/=a.width):c&&(I=1,D/=a.height)),T.attrs.width=I,T.attrs.height=D,k&&(k.setAttribute("width",I),k.setAttribute("height",D))}},y=Dk(p,null,e,function(T){l||m(b,T),m(f,T)});y&&y.width&&y.height&&(d=d||y.width,h=h||y.height)}f=yr("image","img",{href:p,width:d,height:h}),o.width=d,o.height=h}else i.svgElement&&(f=Te(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(f){var x,S;l?x=S=1:u?(S=1,x=o.width/a.width):c?(x=1,S=o.height/a.height):o.patternUnits="userSpaceOnUse",x!=null&&!isNaN(x)&&(o.width=x),S!=null&&!isNaN(S)&&(o.height=S);var _=bH(i);_&&(o.patternTransform=_);var b=yr("pattern","",o,[f]),w=_I(b),C=n.patternCache,A=C[w];A||(A=n.zrId+"-p"+n.patternIdx++,C[w]=A,o.id=A,b=n.defs[A]=yr("pattern",A,o,[f])),t[r]=Tx(A)}}function Dwe(e,t,r){var n=r.clipPathCache,i=r.defs,a=n[e.id];if(!a){a=r.zrId+"-c"+r.clipPathIdx++;var o={id:a};n[e.id]=a,i[a]=yr("clipPath",a,o,[u8(e,r)])}t["clip-path"]=Tx(a)}function gz(e){return document.createTextNode(e)}function Wl(e,t,r){e.insertBefore(t,r)}function mz(e,t){e.removeChild(t)}function yz(e,t){e.appendChild(t)}function d8(e){return e.parentNode}function h8(e){return e.nextSibling}function k_(e,t){e.textContent=t}var xz=58,Rwe=120,Lwe=yr("","");function dA(e){return e===void 0}function ha(e){return e!==void 0}function Ewe(e,t,r){for(var n={},i=t;i<=r;++i){var a=e[i].key;a!==void 0&&(n[a]=i)}return n}function Sh(e,t){var r=e.key===t.key,n=e.tag===t.tag;return n&&r}function rv(e){var t,r=e.children,n=e.tag;if(ha(n)){var i=e.elm=a8(n);if(TI(Lwe,e),Y(r))for(t=0;ta?(p=r[l+1]==null?null:r[l+1].elm,p8(e,p,r,i,l)):B0(e,t,n,a))}function Dc(e,t){var r=t.elm=e.elm,n=e.children,i=t.children;e!==t&&(TI(e,t),dA(t.text)?ha(n)&&ha(i)?n!==i&&Owe(r,n,i):ha(i)?(ha(e.text)&&k_(r,""),p8(r,null,i,0,i.length-1)):ha(n)?B0(r,n,0,n.length-1):ha(e.text)&&k_(r,""):e.text!==t.text&&(ha(n)&&B0(r,n,0,n.length-1),k_(r,t.text)))}function Nwe(e,t){if(Sh(e,t))Dc(e,t);else{var r=e.elm,n=d8(r);rv(t),n!==null&&(Wl(n,t.elm,h8(r)),B0(n,[e],0,0))}return t}var zwe=0,Bwe=function(){function e(t,r,n){if(this.type="svg",this.refreshHover=Sz(),this.configLayer=Sz(),this.storage=r,this._opts=n=q({},n),this.root=t,this._id="zr"+zwe++,this._oldVNode=uz(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=a8("svg");TI(null,this._oldVNode),i.appendChild(a),t.appendChild(i)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",Nwe(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return vz(t,fA(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=fA(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress;var o=[],s=this._bgVNode=$we(n,i,this._backgroundColor,a);s&&o.push(s);var l=t.compress?null:this._mainVNode=yr("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=Z(Ye(a.defs),function(d){return a.defs[d]});if(u.length&&o.push(yr("defs","defs",{},u)),t.animation){var c=xwe(a.cssNodes,a.cssAnims,{newline:!0});if(c){var f=yr("style","stl",{},[],c);o.push(f)}}return uz(n,i,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},_I(this.renderToVNode({animation:Ee(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Ee(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,r,n){for(var i=t.length,a=[],o=0,s,l,u=0,c=0;c=0&&!(d&&l&&d[v]===l[v]);v--);for(var g=p-1;g>v;g--)o--,s=a[o-1];for(var m=v+1;m=s)}}for(var f=this.__startIndex;f15)break}}D.prevElClipPaths&&m.restore()};if(y)if(y.length===0)C=g.__endIndex;else for(var T=h.dpr,M=0;M0&&t>i[0]){for(l=0;lt);l++);s=n[i[l]]}if(i.splice(l+1,0,t),n[t]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.__painter=this}},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,i=0;i0?lm:0),this._needsManuallyCompositing),c.__builtin__||gk("ZLevel "+u+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,r(l),a=c),i.__dirty&$n&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(f,d){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,R(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?Oe(n[t],r,!0):n[t]=r;for(var i=0;i-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(zt);const Zwe=Xwe;function Ef(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Df(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o=0&&n.push(t[a])}return n.join(" ")}var Kwe=function(e){H(t,e);function t(r,n,i,a){var o=e.call(this)||this;return o.updateData(r,n,i,a),o}return t.prototype._createSymbol=function(r,n,i,a,o){this.removeAll();var s=lr(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=Qwe,this._symbolType=r,this.add(s)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){wo(this.childAt(0))},t.prototype.downplay=function(){Co(this.childAt(0))},t.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},t.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},t.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),u=o!==this._symbolType,c=a&&a.disableAnimation;if(u){var f=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,f)}else{var d=this.childAt(0);d.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?d.attr(h):at(d,h,s,n),ea(d)}if(this._updateCommon(r,n,l,i,a),u){var d=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,Lt(d,h,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,c,f,d,h,p,v,g,m;if(a&&(u=a.emphasisItemStyle,c=a.blurItemStyle,f=a.selectItemStyle,d=a.focus,h=a.blurScope,v=a.labelStatesModels,g=a.hoverScale,m=a.cursorStyle,p=a.emphasisDisabled),!a||r.hasItemOption){var y=a&&a.itemModel?a.itemModel:r.getItemModel(n),x=y.getModel("emphasis");u=x.getModel("itemStyle").getItemStyle(),f=y.getModel(["select","itemStyle"]).getItemStyle(),c=y.getModel(["blur","itemStyle"]).getItemStyle(),d=x.get("focus"),h=x.get("blurScope"),p=x.get("disabled"),v=xr(y),g=x.getShallow("scale"),m=y.getShallow("cursor")}var S=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var _=Uu(r.getItemVisual(n,"symbolOffset"),i);_&&(s.x=_[0],s.y=_[1]),m&&s.attr("cursor",m);var b=r.getItemVisual(n,"style"),w=b.fill;if(s instanceof $r){var C=s.style;s.useStyle(q({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},b))}else s.__isEmptyBrush?s.useStyle(q({},b)):s.useStyle(b),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var A=r.getItemVisual(n,"liftZ"),T=this._z2;A!=null?T==null&&(this._z2=s.z2,s.z2+=A):T!=null&&(s.z2=T,this._z2=null);var M=o&&o.useNameLabel;Br(s,v,{labelFetcher:l,labelDataIndex:n,defaultText:k,inheritColor:w,defaultOpacity:b.opacity});function k(L){return M?r.getName(L):Ef(r,L)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var I=s.ensureState("emphasis");I.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var D=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;I.scaleX=this._sizeX*D,I.scaleY=this._sizeY*D,this.setSymbolScale(1),jt(this,d,h,p)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=ke(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&$s(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();$s(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return cd(r.getItemVisual(n,"symbolSize"))},t}(Me);function Qwe(e,t){this.parent.drift(e,t)}const Vv=Kwe;function P_(e,t,r,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,"symbol")!=="none"}function wz(e){return e!=null&&!_e(e)&&(e={isIgnore:e}),e||{}}function Cz(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:xr(t),cursorStyle:t.get("cursor")}}var Jwe=function(){function e(t){this.group=new Me,this._SymbolCtor=t||Vv}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=wz(r);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=Cz(t),u={disableAnimation:s},c=r.getSymbolPoint||function(f){return t.getItemLayout(f)};a||n.removeAll(),t.diff(a).add(function(f){var d=c(f);if(P_(t,d,f,r)){var h=new o(t,f,l,u);h.setPosition(d),t.setItemGraphicEl(f,h),n.add(h)}}).update(function(f,d){var h=a.getItemGraphicEl(d),p=c(f);if(!P_(t,p,f,r)){n.remove(h);return}var v=t.getItemVisual(f,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==v)n.remove(h),h=new o(t,f,l,u),h.setPosition(p);else{h.updateData(t,f,l,u);var m={x:p[0],y:p[1]};s?h.attr(m):at(h,m,i)}n.add(h),t.setItemGraphicEl(f,h)}).remove(function(f){var d=a.getItemGraphicEl(f);d&&d.fadeOut(function(){n.remove(d)},i)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Cz(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=wz(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a0?r=n[0]:n[1]<0&&(r=n[1]),r}function m8(e,t,r,n){var i=NaN;e.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=r.get(e.baseDim,n),o[1-a]=i,t.dataToPoint(o)}function tCe(e,t){var r=[];return t.diff(e).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function rCe(e,t,r,n,i,a,o,s){for(var l=tCe(e,t),u=[],c=[],f=[],d=[],h=[],p=[],v=[],g=g8(i,t,o),m=e.getLayout("points")||[],y=t.getLayout("points")||[],x=0;x=i||v<0)break;if(mu(m,y)){if(l){v+=a;continue}break}if(v===r)e[a>0?"moveTo":"lineTo"](m,y),f=m,d=y;else{var x=m-u,S=y-c;if(x*x+S*S<.5){v+=a;continue}if(o>0){for(var _=v+a,b=t[_*2],w=t[_*2+1];b===m&&w===y&&g=n||mu(b,w))h=m,p=y;else{T=b-u,M=w-c;var D=m-u,L=b-m,z=y-c,V=w-y,N=void 0,F=void 0;if(s==="x"){N=Math.abs(D),F=Math.abs(L);var E=T>0?1:-1;h=m-E*N*o,p=y,k=m+E*F*o,I=y}else if(s==="y"){N=Math.abs(z),F=Math.abs(V);var G=M>0?1:-1;h=m,p=y-G*N*o,k=m,I=y+G*F*o}else N=Math.sqrt(D*D+z*z),F=Math.sqrt(L*L+V*V),A=F/(F+N),h=m-T*o*(1-A),p=y-M*o*(1-A),k=m+T*o*A,I=y+M*o*A,k=jo(k,Uo(b,m)),I=jo(I,Uo(w,y)),k=Uo(k,jo(b,m)),I=Uo(I,jo(w,y)),T=k-m,M=I-y,h=m-T*N/F,p=y-M*N/F,h=jo(h,Uo(u,m)),p=jo(p,Uo(c,y)),h=Uo(h,jo(u,m)),p=Uo(p,jo(c,y)),T=m-h,M=y-p,k=m+T*F/N,I=y+M*F/N}e.bezierCurveTo(f,d,h,p,m,y),f=k,d=I}else e.lineTo(m,y)}u=m,c=y,v+=a}return g}var y8=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),nCe=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new y8},t.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&mu(i[o*2-2],i[o*2-1]);o--);for(;a=0){var S=u?(p-l)*x+l:(h-s)*x+s;return u?[r,S]:[S,r]}s=h,l=p;break;case o.C:h=a[f++],p=a[f++],v=a[f++],g=a[f++],m=a[f++],y=a[f++];var _=u?f0(s,h,v,m,r,c):f0(l,p,g,y,r,c);if(_>0)for(var b=0;b<_;b++){var w=c[b];if(w<=1&&w>=0){var S=u?gr(l,p,g,y,w):gr(s,h,v,m,w);return u?[r,S]:[S,r]}}s=m,l=y;break}}},t}(je),iCe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(y8),x8=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new iCe},t.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&mu(i[s*2-2],i[s*2-1]);s--);for(;ot){a?r.push(o(a,l,t)):i&&r.push(o(i,l,0),o(i,l,t));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function sCe(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())&&t.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=e.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=t.getAxis(i),u=Z(a.stops,function(x){return{coord:l.toGlobalCoord(l.dataToCoord(x.value)),color:x.color}}),c=u.length,f=a.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=oCe(u,i==="x"?r.getWidth():r.getHeight()),h=d.length;if(!h&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var p=10,v=d[0].coord-p,g=d[h-1].coord+p,m=g-v;if(m<.001)return"transparent";R(d,function(x){x.offset=(x.coord-v)/m}),d.push({offset:h?d[h-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:h?d[0].offset:.5,color:f[0]||"transparent"});var y=new Rv(0,0,0,0,d,!0);return y[i]=v,y[i+"2"]=g,y}}}function lCe(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&uCe(a,t))){var o=t.mapDimension(a.dim),s={};return R(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function uCe(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;on)return!1;return!0}function cCe(e,t){return isNaN(e)||isNaN(t)}function fCe(e){for(var t=e.length/2;t>0&&cCe(e[t*2-2],e[t*2-1]);t--);return t-1}function Iz(e,t){return[e[t*2],e[t*2+1]]}function dCe(e,t,r){for(var n=e.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function _8(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var E=v.getState("emphasis").style;E.lineWidth=+v.style.lineWidth+1}ke(v).seriesIndex=r.seriesIndex,jt(v,V,N,F);var G=kz(r.get("smooth")),j=r.get("smoothMonotone");if(v.setShape({smooth:G,smoothMonotone:j,connectNulls:C}),g){var B=l.getCalculationInfo("stackedOnSeries"),U=0;g.useStyle(be(c.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),B&&(U=kz(B.get("smooth"))),g.setShape({smooth:G,stackedOnSmooth:U,smoothMonotone:j,connectNulls:C}),zr(g,r,"areaStyle"),ke(g).seriesIndex=r.seriesIndex,jt(g,V,N,F)}var X=function(W){a._changePolyState(W)};l.eachItemGraphicEl(function(W){W&&(W.onHoverStateChange=X)}),this._polyline.onHoverStateChange=X,this._data=l,this._coordSys=o,this._stackedOnPoints=b,this._points=f,this._step=M,this._valueOrigin=S,r.get("triggerLineEvent")&&(this.packEventData(r,v),g&&this.packEventData(r,g))},t.prototype.packEventData=function(r,n){ke(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=Iu(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var d=r.get("zlevel")||0,h=r.get("z")||0;u=new Vv(o,s),u.x=c,u.y=f,u.setZ(d,h);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=d,p.z=h,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Tt.prototype.highlight.call(this,r,n,i,a)},t.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=Iu(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Tt.prototype.downplay.call(this,r,n,i,a)},t.prototype._changePolyState=function(r){var n=this._polygon;x0(this._polyline,r),n&&x0(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new nCe({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new x8({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,c=u.get("animationDuration");Se(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=Se(f)?f(null):f;r.eachItemGraphicEl(function(h,p){var v=h;if(v){var g=[h.x,h.y],m=void 0,y=void 0,x=void 0;if(i)if(o){var S=i,_=n.pointToCoord(g);a?(m=S.startAngle,y=S.endAngle,x=-_[1]/180*Math.PI):(m=S.r0,y=S.r,x=_[0])}else{var b=i;a?(m=b.x,y=b.x+b.width,x=h.x):(m=b.y+b.height,y=b.y,x=h.y)}var w=y===m?0:(x-m)/(y-m);l&&(w=1-w);var C=Se(f)?f(p):c*w+d,A=v.getSymbolPath(),T=A.getTextContent();v.attr({scaleX:0,scaleY:0}),v.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),T&&T.animateFrom({style:{opacity:0}},{duration:300,delay:C}),A.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(_8(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 nt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=fCe(l);c>=0&&(Br(s,xr(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?v8(o,h):Ef(o,f)},enableTextSetter:!0},hCe(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,c=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var f=i.getLayout("points"),d=i.hostModel,h=d.get("connectNulls"),p=s.get("precision"),v=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,x=n.shape,S=y?m?x.x:x.y+x.height:m?x.x+x.width:x.y,_=(m?v:0)*(y?-1:1),b=(m?0:-v)*(y?-1:1),w=m?"x":"y",C=dCe(f,S,w),A=C.range,T=A[1]-A[0],M=void 0;if(T>=1){if(T>1&&!h){var k=Iz(f,A[0]);u.attr({x:k[0]+_,y:k[1]+b}),o&&(M=d.getRawValue(A[0]))}else{var k=c.getPointOn(S,w);k&&u.attr({x:k[0]+_,y:k[1]+b});var I=d.getRawValue(A[0]),D=d.getRawValue(A[1]);o&&(M=GH(i,p,I,D,C.t))}a.lastFrameIndex=A[0]}else{var L=r===1||a.lastFrameIndex>0?A[0]:0,k=Iz(f,L);o&&(M=d.getRawValue(L)),u.attr({x:k[0]+_,y:k[1]+b})}if(o){var z=rd(u);typeof z.setLabelText=="function"&&z.setLabelText(M)}}},t.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,c=this._polygon,f=r.hostModel,d=rCe(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),h=d.current,p=d.stackedOnCurrent,v=d.next,g=d.stackedOnNext;if(o&&(h=qo(d.current,i,o,l),p=qo(d.stackedOnCurrent,i,o,l),v=qo(d.next,i,o,l),g=qo(d.stackedOnNext,i,o,l)),Mz(h,v)>3e3||c&&Mz(p,g)>3e3){u.stopAnimation(),u.setShape({points:v}),c&&(c.stopAnimation(),c.setShape({points:v,stackedOnPoints:g}));return}u.shape.__points=d.current,u.shape.points=h;var m={shape:{points:v}};d.current!==h&&(m.shape.__points=d.next),u.stopAnimation(),at(u,m,f),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),at(c,{shape:{stackedOnPoints:g}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var y=[],x=d.status,S=0;St&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=n.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),h=Math.round(s/d);if(isFinite(h)&&h>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/h));var p=void 0;oe(a)?p=gCe[a]:Se(a)&&(p=a),p&&t.setData(i.downSample(i.mapDimension(u.dim),1/h,p,mCe))}}}}}function yCe(e){e.registerChartView(vCe),e.registerSeriesModel(Zwe),e.registerLayout(Hv("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,w8("line"))}var C8=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return Ro(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(i)R(a.getAxes(),function(d,h){if(d.type==="category"&&n!=null){var p=d.getTicksCoords(),v=o[h],g=n[h]==="x1"||n[h]==="y1";if(g&&(v+=1),p.length<2)return;if(p.length===2){s[h]=d.toGlobalCoord(d.getExtent()[g?1:0]);return}for(var m=void 0,y=void 0,x=1,S=0;Sv){y=(_+m)/2;break}S===1&&(x=b-p[0].tickValue)}y==null&&(m?m&&(y=p[p.length-1].coord):y=p[0].coord),s[h]=d.toGlobalCoord(y)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=a.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(zt);zt.registerClass(C8);const $0=C8;var xCe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return Ro(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},t.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Js($0.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}($0);const SCe=xCe;var bCe=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),_Ce=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new bCe},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,f=n.endAngle,d=n.clockwise,h=Math.PI*2,p=d?f-cMath.PI/2&&cs)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Up(a,r,ke(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Tt),Pz={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=R_(t.x,e.x),s=L_(t.x+t.width,i),l=R_(t.y,e.y),u=L_(t.y+t.height,a),c=si?s:o,t.y=f&&l>a?u:l,t.width=c?0:s-o,t.height=f?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var i=L_(t.r,e.r),a=R_(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},Dz={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new Je({shape:q({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var c=u.shape,f=i?"height":"width";c[f]=0}return u},polar:function(e,t,r,n,i,a,o,s,l){var u=!i&&l?F0:Dn,c=new u({shape:n,z2:1});c.name="item";var f=T8(i);if(c.calculateTextPosition=wCe(f,{isRoundCap:u===F0}),a){var d=c.shape,h=i?"r":"endAngle",p={};d[h]=i?n.r0:n.startAngle,p[h]=n[h],(s?at:Lt)(c,{shape:p},a)}return c}};function MCe(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function Rz(e,t,r,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?at:Lt)(r,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(o?at:Lt)(r,{shape:u},c,i)}function Lz(e,t){for(var r=0;r0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function PCe(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function T8(e){return function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(e)}function Oz(e,t,r,n,i,a,o,s){var l=t.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var c=e.shape,f=ou(n.getModel("itemStyle"),c,!0);q(c,f),e.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var d=n.getShallow("cursor");d&&e.attr("cursor",d);var h=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",p=xr(n);Br(e,p,{labelFetcher:a,labelDataIndex:r,defaultText:Ef(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var v=e.getTextContent();if(s&&v){var g=n.get(["label","position"]);e.textConfig.inside=g==="middle"?!0:null,CCe(e,g==="outside"?h:g,T8(o),n.get(["label","rotate"]))}FW(v,p,a.getRawValue(r),function(y){return v8(t,y)});var m=n.getModel(["emphasis"]);jt(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),zr(e,n),PCe(i)&&(e.style.fill="none",e.style.stroke="none",R(e.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function DCe(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var RCe=function(){function e(){}return e}(),Nz=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new RCe},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?r:null},30,!1);function LCe(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=a.length/3;c=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function A8(e,t,r){if(Yu(r,"cartesian2d")){var n=t,i=r.getArea();return{x:e?n.x:i.x,y:e?i.y:n.y,width:e?n.width:i.width,height:e?i.height:n.height}}else{var i=r.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function ECe(e,t,r){var n=e.type==="polar"?Dn:Je;return new n({shape:A8(t,r,e),silent:!0,z2:0})}const OCe=ACe;function NCe(e){e.registerChartView(OCe),e.registerSeriesModel(SCe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Ie(P9,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,D9("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,w8("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var dm=Math.PI*2,$z=Math.PI/180;function M8(e,t){return pr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function k8(e,t){var r=M8(e,t),n=e.get("center"),i=e.get("radius");Y(i)||(i=[0,i]);var a=ne(r.width,t.getWidth()),o=ne(r.height,t.getHeight()),s=Math.min(a,o),l=ne(i[0],s/2),u=ne(i[1],s/2),c,f,d=e.coordinateSystem;if(d){var h=d.dataToPoint(n);c=h[0]||0,f=h[1]||0}else Y(n)||(n=[n,n]),c=ne(n[0],a)+r.x,f=ne(n[1],o)+r.y;return{cx:c,cy:f,r0:l,r:u}}function zCe(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=M8(n,r),s=k8(n,r),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-n.get("startAngle")*$z,h=n.get("minAngle")*$z,p=0;i.each(a,function(T){!isNaN(T)&&p++});var v=i.getSum(a),g=Math.PI/(v||p)*2,m=n.get("clockwise"),y=n.get("roseType"),x=n.get("stillShowZeroSum"),S=i.getDataExtent(a);S[0]=0;var _=dm,b=0,w=d,C=m?1:-1;if(i.setLayout({viewRect:o,r:c}),i.each(a,function(T,M){var k;if(isNaN(T)){i.setItemLayout(M,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:l,cy:u,r0:f,r:y?NaN:c});return}y!=="area"?k=v===0&&x?g:T*g:k=dm/p,kr?m:g,_=Math.abs(x.label.y-r);if(_>=S.maxY){var b=x.label.x-t-x.len2*i,w=n+x.len,C=Math.abs(b)e.unconstrainedWidth?null:h:null;n.setStyle("width",p)}var v=n.getBoundingRect();a.width=v.width;var g=(n.style.margin||0)+2.1;a.height=v.height+g,a.y-=(a.height-f)/2}}}function E_(e){return e.position==="center"}function FCe(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*BCe,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function h(b){b.ignore=!0}function p(b){if(!b.ignore)return!0;for(var w in b.states)if(b.states[w].ignore===!1)return!0;return!1}t.each(function(b){var w=t.getItemGraphicEl(b),C=w.shape,A=w.getTextContent(),T=w.getTextGuideLine(),M=t.getItemModel(b),k=M.getModel("label"),I=k.get("position")||M.get(["emphasis","label","position"]),D=k.get("distanceToLabelLine"),L=k.get("alignTo"),z=ne(k.get("edgeDistance"),u),V=k.get("bleedMargin"),N=M.getModel("labelLine"),F=N.get("length");F=ne(F,u);var E=N.get("length2");if(E=ne(E,u),Math.abs(C.endAngle-C.startAngle)0?"right":"left":j>0?"left":"right"}var Pe=Math.PI,Xe=0,qe=k.get("rotate");if(it(qe))Xe=qe*(Pe/180);else if(I==="center")Xe=0;else if(qe==="radial"||qe===!0){var ot=j<0?-G+Pe:-G;Xe=ot}else if(qe==="tangential"&&I!=="outside"&&I!=="outer"){var st=Math.atan2(j,B);st<0&&(st=Pe*2+st);var kt=B>0;kt&&(st=Pe+st),Xe=st-Pe}if(a=!!Xe,A.x=U,A.y=X,A.rotation=Xe,A.setStyle({verticalAlign:"middle"}),te){A.setStyle({align:ee});var qt=A.states.select;qt&&(qt.x+=A.x,qt.y+=A.y)}else{var $e=A.getBoundingRect().clone();$e.applyTransform(A.getComputedTransform());var It=(A.style.margin||0)+2.1;$e.y-=It/2,$e.height+=It,r.push({label:A,labelLine:T,position:I,len:F,len2:E,minTurnAngle:N.get("minTurnAngle"),maxSurfaceAngle:N.get("maxSurfaceAngle"),surfaceNormal:new Le(j,B),linePoints:W,textAlign:ee,labelDistance:D,labelAlignTo:L,edgeDistance:z,bleedMargin:V,rect:$e,unconstrainedWidth:$e.width,labelStyleWidth:A.style.width})}w.setTextConfig({inside:te})}}),!a&&e.get("avoidLabelOverlap")&&$Ce(r,n,i,l,u,d,c,f);for(var v=0;v0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f=a.r0}},t.type="pie",t}(Tt);const HCe=GCe;function fd(e,t,r){t=Y(t)&&{coordDimensions:t}||q({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=Bv(n,t).dimensions,a=new un(i,e);return a.initData(n,r),a}var WCe=function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e}();const jv=WCe;var jCe=et(),UCe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new jv(ce(this.getData,this),ce(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return fd(this,{coordDimensions:["value"],encodeDefaulter:Ie(Xk,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=jCe(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=eye(o,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){ku(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(zt);const qCe=UCe;function YCe(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(it(o)&&!isNaN(o)&&o<0)})}}}function XCe(e){e.registerChartView(HCe),e.registerSeriesModel(qCe),Yj("pie",e.registerAction),e.registerLayout(Ie(zCe,"pie")),e.registerProcessor(Wv("pie")),e.registerProcessor(YCe("pie"))}var ZCe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r,n){return Ro(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(r,n,i){return i.point(n.getItemLayout(r))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(zt);const KCe=ZCe;var P8=4,QCe=function(){function e(){}return e}(),JCe=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new QCe},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(r,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&a[0]=0;u--){var c=u*2,f=a[c]-s/2,d=a[c+1]-l/2;if(r>=f&&n>=d&&r<=f+s&&n<=d+l)return u}return-1},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.points,a=n.size,o=a[0],s=a[1],l=1/0,u=1/0,c=-1/0,f=-1/0,d=0;d=0&&(u.dataIndex=f+(t.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const tTe=eTe;var rTe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.updateData(a,{clipShape:this._getClipShape(r)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.incrementalPrepareUpdate(a),this._finished=!1},t.prototype.incrementalRender=function(r,n,i){this._symbolDraw.incrementalUpdate(r,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=r.end===n.getData().count()},t.prototype.updateTransform=function(r,n,i){var a=r.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=Hv("").reset(r,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},t.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},t.prototype._getClipShape=function(r){var n=r.coordinateSystem,i=n&&n.getArea&&n.getArea();return r.get("clip",!0)?i:null},t.prototype._updateSymbolDraw=function(r,n){var i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new tTe:new Gv,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Tt);const nTe=rTe;var iTe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(tt);const aTe=iTe;var pA=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",sr).models[0]},t.type="cartesian2dAxis",t}(tt);ur(pA,Fv);var D8={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)"]}}},oTe=Oe({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},D8),AI=Oe({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}}},D8),sTe=Oe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},AI),lTe=be({logBase:10},AI);const R8={category:oTe,value:AI,time:sTe,log:lTe};var uTe={value:1,category:1,time:1,log:1};function Of(e,t,r,n){R(uTe,function(i,a){var o=Oe(Oe({},R8[a],!0),n,!0),s=function(l){H(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+a,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=Xp(this),h=d?ad(c):{},p=f.getTheme();Oe(c,p.get(a+"Axis")),Oe(c,this.getDefaultOption()),c.type=Vz(c),d&&Fs(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=sA.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",Vz)}function Vz(e){return e.type||(e.data?"category":"value")}var cTe=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return Z(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),dt(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e}();const fTe=cTe;var vA=["x","y"];function Gz(e){return e.type==="interval"||e.type==="time"}var dTe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=vA,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!Gz(r)||!Gz(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,d=o[0]-i[0]*c,h=o[1]-a[0]*f,p=this._transform=[c,0,0,f,d,h];this._invTransform=Kf([],p)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new Ne(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Er(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},t.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n){var i=[];if(this._invTransform)return Er(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(){var r=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(r[0],r[1]),a=Math.min(n[0],n[1]),o=Math.max(r[0],r[1])-i,s=Math.max(n[0],n[1])-a;return new Ne(i,a,o,s)},t}(fTe),hTe=function(e){H(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(ra);const pTe=hTe;function gA(e,t,r){r=r||{};var n=e.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,c=n.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,p=u==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(o){var v=o.toGlobalCoord(o.dataToCoord(0));p[d.onZero]=Math.max(Math.min(v,p[1]),p[0])}a.position=[u==="y"?p[d[l]]:f[0],u==="x"?p[d[l]]:f[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?p[d[s]]-p[d.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Cr(r.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var m=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-m:m,a.z2=1,a}function Hz(e){return e.get("coordinateSystem")==="cartesian2d"}function Wz(e){var t={xAxisModel:null,yAxisModel:null};return R(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,sr).models[0];t[n]=a}),t}var O_=Math.log;function L8(e,t,r){var n=Gs.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=B9(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=O_(e.base);u=[O_(u[0])/d,O_(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var h=n.getExtent.call(e);c&&(u[0]=h[0]),f&&(u[1]=h[1]);var p=n.getInterval.call(e),v=u[0],g=u[1];if(c&&f)p=(g-v)/o;else if(c)for(g=u[0]+p*o;gu[0]&&isFinite(v)&&isFinite(u[0]);)p=b_(p),v=u[1]-p*o;else{var m=e.getTicks().length-1;m>o&&(p=b_(p));var y=p*o;g=Math.ceil(u[1]/p)*p,v=Xt(g-y),v<0&&u[0]>=0?(v=0,g=Xt(y)):g>0&&u[1]<=0&&(g=0,v=-Xt(y))}var x=(i[0].value-a[0].value)/s,S=(i[o].value-a[o].value)/s;n.setExtent.call(e,v+p*x,g+p*S),n.setInterval.call(e,p),(x||S)&&n.setNiceExtent.call(e,v+p,g-p)}var vTe=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=vA,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=Ye(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],h=o[d],p=h.model,v=h.scale;lA(v)&&p.get("alignTicks")&&p.get("interval")==null?c.push(h):(Lf(v,p),lA(v)&&(s=h))}c.length&&(s||(s=c.pop(),Lf(s.scale,s.model)),R(c,function(g){L8(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};R(n.x,function(o){jz(n,"y",o,a)}),R(n.y,function(o){jz(n,"x",o,a)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=pr(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(R(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=I_e(u);if(c){var f=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+d,u.position==="top"?o.y+=c.height+d:u.position==="left"&&(o.x+=c.width+d)}}}),l()),R(this._coordsList,function(u){u.calcAffineTransform()});function l(){R(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],d=u.inverse?1:0;u.setExtent(f[d],f[1-d]),gTe(u,c?o.x:o.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}_e(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):m0(i-ds)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),qz={axisLine:function(e,t,r,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(Er(s,s,o),Er(l,l,o));var c=q({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new Tr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});Pf(f.shape,f.style.lineWidth),f.anid="line",r.add(f);var d=t.get(["axisLine","symbol"]);if(d!=null){var h=t.get(["axisLine","symbolSize"]);oe(d)&&(d=[d,d]),(oe(h)||it(h))&&(h=[h,h]);var p=Uu(t.get(["axisLine","symbolOffset"])||0,h),v=h[0],g=h[1];R([{rotate:e.rotation+Math.PI/2,offset:p[0],r:0},{rotate:e.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(d[y]!=="none"&&d[y]!=null){var x=lr(d[y],-v/2,-g/2,v,g,c.stroke,!0),S=m.r+m.offset,_=u?l:s;x.attr({rotation:m.rotate,x:_[0]+S*Math.cos(e.rotation),y:_[1]-S*Math.sin(e.rotation),silent:!0,z2:11}),r.add(x)}})}}},axisTickLabel:function(e,t,r,n){var i=STe(r,n,t,e),a=_Te(r,n,t,e);if(xTe(t,a,i),bTe(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=K9(Z(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));e8(o)}},axisName:function(e,t,r,n){var i=Cr(e.axisName,t.get("name"));if(i){var a=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[a==="start"?u[0]-c*l:a==="end"?u[1]+c*l:(u[0]+u[1])/2,Xz(a)?e.labelOffset+o*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*ds/180);var p;Xz(a)?d=yu.innerTextLayout(e.rotation,h??e.rotation,o):(d=yTe(e.rotation,a,h||0,u),p=e.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(d.rotation)),!isFinite(p)&&(p=null)));var v=s.getFont(),g=t.get("nameTruncate",!0)||{},m=g.ellipsis,y=Cr(e.nameTruncateMaxWidth,g.maxWidth,p),x=new nt({x:f[0],y:f[1],rotation:d.rotation,silent:yu.isLabelSilent(t),style:_t(s,{text:i,font:v,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(td({el:x,componentModel:t,itemName:i}),x.__fullText=i,x.anid="name",t.get("triggerEvent")){var S=yu.makeAxisEventDataBase(t);S.targetType="axisName",S.name=i,ke(x).eventData=S}n.add(x),x.updateTransform(),r.add(x),x.decomposeTransform()}}};function yTe(e,t,r,n){var i=RH(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return m0(i-ds/2)?(o=l?"bottom":"top",a="center"):m0(i-ds*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",ids/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function xTe(e,t,r){if(!$9(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=r[0],c=r[1],f=r[r.length-1],d=r[r.length-2];n===!1?(Jn(a),Jn(u)):Yz(a,o)&&(n?(Jn(o),Jn(c)):(Jn(a),Jn(u))),i===!1?(Jn(s),Jn(f)):Yz(l,s)&&(i?(Jn(l),Jn(d)):(Jn(s),Jn(f)))}}function Jn(e){e&&(e.ignore=!0)}function Yz(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=Cx([]);return Wu(i,i,-e.rotation),r.applyTransform(co([],i,e.getLocalTransform())),n.applyTransform(co([],i,t.getLocalTransform())),r.intersect(n)}}function Xz(e){return e==="middle"||e==="center"}function E8(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l=0||e===t}function kTe(e){var t=MI(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=mA(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var v=l;p.color!=null&&(v=be({color:p.color},l));var g=Oe(Te(p),{boundaryGap:r,splitNumber:n,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:v,triggerEvent:d},!1);if(oe(c)){var m=g.name;g.name=c.replace("{value}",m??"")}else Se(c)&&(g.name=c(g.name,g));var y=new wt(g,null,this.ecModel);return ur(y,Fv.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y},this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Oe({lineStyle:{color:"#bbb"}},qd.axisLine),axisLabel:hm(qd.axisLabel,!1),axisTick:hm(qd.axisTick,!1),splitLine:hm(qd.splitLine,!0),splitArea:hm(qd.splitArea,!0),indicator:[]},t}(tt);const WTe=HTe;var jTe=["axisLine","axisTickLabel","axisName"],UTe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=this.group;a.removeAll(),this._buildAxes(r),this._buildSplitLineAndArea(r)},t.prototype._buildAxes=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes(),a=Z(i,function(o){var s=o.model.get("showName")?o.name:"",l=new Ao(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});R(a,function(o){R(jTe,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var a=r.get("shape"),o=r.getModel("splitLine"),s=r.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),f=s.get("show"),d=l.get("color"),h=u.get("color"),p=Y(d)?d:[d],v=Y(h)?h:[h],g=[],m=[];function y(L,z,V){var N=V%z.length;return L[N]=L[N]||[],N}if(a==="circle")for(var x=i[0].getTicksCoords(),S=n.cx,_=n.cy,b=0;b3?1.4:o>1?1.2:1.1,c=a>0?u:1/u;B_(this,"zoom","zoomOnMouseWheel",r,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(i){var f=Math.abs(a),d=(a>0?1:-1)*(f>3?.4:f>1?.15:.05);B_(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!t5(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;B_(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(Ii);function B_(e,t,r,n,i){e.pointerChecker&&e.pointerChecker(n,i.originX,i.originY)&&(bo(n.event),F8(e,t,r,n,i))}function F8(e,t,r,n,i){i.isAvailableBehavior=ce(fy,null,r,n),e.trigger(t,i)}function fy(e,t,r){var n=r[e];return!e||n&&(!oe(n)||t.event[n+"Key"])}const Uv=rAe;function II(e,t,r){var n=e.target;n.x+=t,n.y+=r,n.dirty()}function PI(e,t,r,n){var i=e.target,a=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/e.zoom;e.zoom=o,i.x-=(r-i.x)*(u-1),i.y-=(n-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var nAe={axisPointer:1,tooltip:1,brush:1};function eS(e,t,r){var n=t.getComponentByElement(e.topTarget),i=n&&n.coordinateSystem;return n&&n!==r&&!nAe.hasOwnProperty(n.mainType)&&i&&i.model!==r}function V8(e){if(oe(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var r=e;for(r.nodeType===9&&(r=r.firstChild);r.nodeName.toLowerCase()!=="svg"||r.nodeType!==1;)r=r.nextSibling;return r}var $_,V0={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"},r5=Ye(V0),G0={"alignment-baseline":"textBaseline","stop-color":"stopColor"},n5=Ye(G0),iAe=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,r){r=r||{};var n=V8(t);this._defsUsePending=[];var i=new Me;this._root=i;var a=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||r.width),l=parseFloat(n.getAttribute("height")||r.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),On(n,i,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;sAe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var d=tS(o);d.length>=4&&(c={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(c&&s!=null&&l!=null&&(f=H8(c,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var h=i;i=new Me,i.add(h),h.scaleX=h.scaleY=f.scale,h.x=f.x,h.y=f.y}return!r.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new Je({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:a}},e.prototype._parseNode=function(t,r,n,i,a,o){var s=t.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(a=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=r;else{if(!a){var c=$_[s];if(c&&fe($_,s)){l=c.call(this,t,r);var f=t.getAttribute("name");if(f){var d={name:f,namedFrom:null,svgNodeTagLower:s,el:l};n.push(d),s==="g"&&(u=d)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});r.add(l)}}var h=i5[s];if(h&&fe(i5,s)){var p=h.call(this,t),v=t.getAttribute("id");v&&(this._defs[v]=p)}}if(l&&l.isGroup)for(var g=t.firstChild;g;)g.nodeType===1?this._parseNode(g,l,n,u,a,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},e.prototype._parseText=function(t,r){var n=new Hp({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});ei(r,n),On(t,n,this._defsUsePending,!1,!1),aAe(n,r);var i=n.style,a=i.fontSize;a&&a<9&&(i.fontSize=9,n.scaleX*=a/9,n.scaleY*=a/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=n.getBoundingRect();return this._textX+=s.width,r.add(n),n},e.internalField=function(){$_={g:function(t,r){var n=new Me;return ei(r,n),On(t,n,this._defsUsePending,!1,!1),n},rect:function(t,r){var n=new Je;return ei(r,n),On(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,r){var n=new ja;return ei(r,n),On(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,r){var n=new Tr;return ei(r,n),On(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,r){var n=new Bk;return ei(r,n),On(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,r){var n=t.getAttribute("points"),i;n&&(i=s5(n));var a=new Rn({shape:{points:i||[]},silent:!0});return ei(r,a),On(t,a,this._defsUsePending,!1,!1),a},polyline:function(t,r){var n=t.getAttribute("points"),i;n&&(i=s5(n));var a=new En({shape:{points:i||[]},silent:!0});return ei(r,a),On(t,a,this._defsUsePending,!1,!1),a},image:function(t,r){var n=new $r;return ei(r,n),On(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,r){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(a),this._textY=parseFloat(i)+parseFloat(o);var s=new Me;return ei(r,s),On(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,r){var n=t.getAttribute("x"),i=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),i!=null&&(this._textY=parseFloat(i));var a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new Me;return ei(r,s),On(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(o),s},path:function(t,r){var n=t.getAttribute("d")||"",i=yW(n);return ei(r,i),On(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),e}(),i5={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),r=parseInt(e.getAttribute("y1")||"0",10),n=parseInt(e.getAttribute("x2")||"10",10),i=parseInt(e.getAttribute("y2")||"0",10),a=new Rv(t,r,n,i);return a5(e,a),o5(e,a),a},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),r=parseInt(e.getAttribute("cy")||"0",10),n=parseInt(e.getAttribute("r")||"0",10),i=new DW(t,r,n);return a5(e,i),o5(e,i),i}};function a5(e,t){var r=e.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(t.global=!0)}function o5(e,t){for(var r=e.firstChild;r;){if(r.nodeType===1&&r.nodeName.toLocaleLowerCase()==="stop"){var n=r.getAttribute("offset"),i=void 0;n&&n.indexOf("%")>0?i=parseInt(n,10)/100:n?i=parseFloat(n):i=0;var a={};G8(r,a,a);var o=a.stopColor||r.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}r=r.nextSibling}}function ei(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),be(t.__inheritedStyle,e.__inheritedStyle))}function s5(e){for(var t=tS(e),r=[],n=0;n0;a-=2){var o=n[a],s=n[a-1],l=tS(o);switch(i=i||Ci(),s){case"translate":Va(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":_k(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Wu(i,i,-parseFloat(l[0])*F_);break;case"skewX":var u=Math.tan(parseFloat(l[0])*F_);co(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*F_);co(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}t.setLocalTransform(i)}}var u5=/([^\s:;]+)\s*:\s*([^:;]+)/g;function G8(e,t,r){var n=e.getAttribute("style");if(n){u5.lastIndex=0;for(var i;(i=u5.exec(n))!=null;){var a=i[1],o=fe(V0,a)?V0[a]:null;o&&(t[o]=i[2]);var s=fe(G0,a)?G0[a]:null;s&&(r[s]=i[2])}}}function fAe(e,t,r){for(var n=0;n0,g={api:n,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:v,isGeo:o,transformInfoRaw:d};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(t,r,n),this._updateMapSelectHandler(t,u,n,i)},e.prototype._buildGeoJSON=function(t){var r=this._regionsGroupByName=ge(),n=ge(),i=this._regionsGroup,a=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(h,p){return p&&(h=p(h)),h&&[h[0]*a.scaleX+a.x,h[1]*a.scaleY+a.y]}function f(h){for(var p=[],v=!u&&l&&l.project,g=0;g=0)&&(d=i);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Br(t,xr(n),{labelFetcher:d,labelDataIndex:f,defaultText:r},h);var p=t.getTextContent();if(p&&(W8(p).ignore=p.ignore,t.textConfig&&o)){var v=t.getBoundingRect().clone();t.textConfig.layoutRect=v,t.textConfig.position=[(o[0]-v.x)/v.width*100+"%",(o[1]-v.y)/v.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function p5(e,t,r,n,i,a){e.data?e.data.setItemGraphicEl(a,t):ke(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:r,region:n&&n.option||{}}}function v5(e,t,r,n,i){e.data||td({el:t,componentModel:i,itemName:r,itemTooltipOption:n.get("tooltip")})}function g5(e,t,r,n,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var a=n.getModel("emphasis"),o=a.get("focus");return jt(t,o,a.get("blurScope"),a.get("disabled")),e.isGeo&&P0e(t,i,r),o}function m5(e,t,r){var n=[],i;function a(){i=[]}function o(){i.length&&(n.push(i),i=[])}var s=t({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!r&&s.polygonStart(),R(e,function(l){s.lineStart();for(var u=0;u-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(zt);const LAe=RAe;function EAe(e,t){var r={};return R(e,function(n){n.each(n.mapDimension("value"),function(i,a){var o="ec-"+n.getName(a);r[o]=r[o]||[],isNaN(i)||r[o].push(i)})}),e[0].map(e[0].mapDimension("value"),function(n,i){for(var a="ec-"+e[0].getName(i),o=0,s=1/0,l=-1/0,u=r[a].length,c=0;c1?(S.width=x,S.height=x/g):(S.height=x,S.width=x*g),S.y=y[1]-S.height/2,S.x=y[0]-S.width/2;else{var _=e.getBoxLayoutParams();_.aspect=g,S=pr(_,{width:p,height:v})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function $Ae(e,t){R(t.get("geoCoord"),function(r,n){e.addGeoCoord(n,r)})}var FAe=function(){function e(){this.dimensions=U8}return e.prototype.create=function(t,r){var n=[];function i(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new b5(l+s,l,q({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=_5,u.resize(o,r)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=n[l]}});var a={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();a[s]=a[s]||[],a[s].push(o)}}),R(a,function(o,s){var l=Z(o,function(c){return c.get("nameMap")}),u=new b5(s,s,q({nameMap:mk(l)},i(o[0])));u.zoomLimit=Cr.apply(null,Z(o,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=_5,u.resize(o[0],r),R(o,function(c){c.coordinateSystem=u,$Ae(u,c)})}),n},e.prototype.getFilledRegions=function(t,r,n,i){for(var a=(t||[]).slice(),o=ge(),s=0;s=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(s)}}function XAe(e,t){var r=e.isExpand?e.children:[],n=e.parentNode.children,i=e.hierNode.i?n[e.hierNode.i-1]:null;if(r.length){QAe(e);var a=(r[0].hierNode.prelim+r[r.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-a):e.hierNode.prelim=a}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=JAe(e,i,e.parentNode.hierNode.defaultAncestor||n[0],t)}function ZAe(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function C5(e){return arguments.length?e:r2e}function bh(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function KAe(e,t){return pr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function QAe(e){for(var t=e.children,r=t.length,n=0,i=0;--r>=0;){var a=t[r];a.hierNode.prelim+=n,a.hierNode.modifier+=n,i+=a.hierNode.change,n+=a.hierNode.shift+i}}function JAe(e,t,r,n){if(t){for(var i=e,a=e,o=a.parentNode.children[0],s=t,l=i.hierNode.modifier,u=a.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=V_(s),a=G_(a),s&&a;){i=V_(i),o=G_(o),i.hierNode.ancestor=e;var d=s.hierNode.prelim+f-a.hierNode.prelim-u+n(s,a);d>0&&(t2e(e2e(s,e,r),e,d),u+=d,l+=d),f+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=i.hierNode.modifier,c+=o.hierNode.modifier}s&&!V_(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=f-l),a&&!G_(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,r=e)}return r}function V_(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function G_(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function e2e(e,t,r){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:r}function t2e(e,t,r){var n=r/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=r,t.hierNode.modifier+=r,t.hierNode.prelim+=r,e.hierNode.change+=n}function r2e(e,t){return e.parentNode===t.parentNode?1:2}var n2e=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),i2e=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new n2e},t.prototype.buildPath=function(r,n){var i=n.childPoints,a=i.length,o=n.parentPoint,s=i[0],l=i[a-1];if(a===1){r.moveTo(o[0],o[1]),r.lineTo(s[0],s[1]);return}var u=n.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,d=ne(n.forkPosition,1),h=[];h[c]=o[c],h[f]=o[f]+(l[f]-o[f])*d,r.moveTo(o[0],o[1]),r.lineTo(h[0],h[1]),r.moveTo(s[0],s[1]),h[c]=s[c],r.lineTo(h[0],h[1]),h[c]=l[c],r.lineTo(h[0],h[1]),r.lineTo(l[0],l[1]);for(var p=1;py.x,_||(S=S-Math.PI));var w=_?"left":"right",C=s.getModel("label"),A=C.get("rotate"),T=A*(Math.PI/180),M=g.getTextContent();M&&(g.setTextConfig({position:C.get("position")||w,rotation:A==null?-S:T,origin:"center"}),M.setStyle("verticalAlign","middle"))}var k=s.get(["emphasis","focus"]),I=k==="relative"?u0(o.getAncestorsIndices(),o.getDescendantIndices()):k==="ancestor"?o.getAncestorsIndices():k==="descendant"?o.getDescendantIndices():null;I&&(ke(r).focus=I),o2e(i,o,c,r,p,h,v,n),r.__edge&&(r.onHoverStateChange=function(D){if(D!=="blur"){var L=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);L&&L.hoverState===Dv||x0(r.__edge,D)}})}function o2e(e,t,r,n,i,a,o,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),f=e.getOrient(),d=e.get(["lineStyle","curveness"]),h=e.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),v=n.__edge;if(u==="curve")t.parentNode&&t.parentNode!==r&&(v||(v=n.__edge=new Ex({shape:SA(c,f,d,i,i)})),at(v,{shape:SA(c,f,d,a,o)},e));else if(u==="polyline"&&c==="orthogonal"&&t!==r&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,m=[],y=0;yr&&(r=i.height)}this.height=r+1},e.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var r=0,n=this.children,i=n.length;r=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,r)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostTree,n=r.data.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(t,r){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,r)},e.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,r=0;r=0){var n=r.getData().tree.root,i=e.targetNode;if(oe(i)&&(i=n.getNodeById(i)),i&&n.contains(i))return{node:i};var a=e.targetNodeId;if(a!=null&&(i=n.getNodeById(a)))return{node:i}}}function J8(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function OI(e,t){var r=J8(e);return ze(r,t)>=0}function rS(e,t){for(var r=[];e;){var n=e.dataIndex;r.push({name:e.name,dataIndex:n,value:t.getRawValue(n)}),e=e.parentNode}return r.reverse(),r}var m2e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.hasSymbolVisual=!0,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r){var n={name:r.name,children:r.data},i=r.leaves||{},a=new wt(i,this,this.ecModel),o=EI.createTree(n,this,s);function s(f){f.wrapMethod("getItemModel",function(d,h){var p=o.getNodeByDataIndex(h);return p&&p.children.length&&p.isExpand||(d.parentModel=a),d})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=r.expandAndCollapse,c=u&&r.initialTreeDepth>=0?r.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var d=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=d&&d.collapsed!=null?!d.collapsed:f.depth<=c}),o.data},t.prototype.getOrient=function(){var r=this.get("orient");return r==="horizontal"?r="LR":r==="vertical"&&(r="TB"),r},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.formatTooltip=function(r,n,i){for(var a=this.getData().tree,o=a.root.children[0],s=a.getNodeByDataIndex(r),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return Sr("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=rS(i,this),n.collapsed=!i.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(zt);const y2e=m2e;function x2e(e,t,r){for(var n=[e],i=[],a;a=n.pop();)if(i.push(a),a.isExpand){var o=a.children;if(o.length)for(var s=0;s=0;a--)r.push(i[a])}}function S2e(e,t){e.eachSeriesByType("tree",function(r){b2e(r,t)})}function b2e(e,t){var r=KAe(e,t);e.layoutInfo=r;var n=e.get("layout"),i=0,a=0,o=null;n==="radial"?(i=2*Math.PI,a=Math.min(r.height,r.width)/2,o=C5(function(x,S){return(x.parentNode===S.parentNode?1:2)/x.depth})):(i=r.width,a=r.height,o=C5());var s=e.getData().tree.root,l=s.children[0];if(l){YAe(s),x2e(l,XAe,o),s.hierNode.modifier=-l.hierNode.prelim,Xd(l,ZAe);var u=l,c=l,f=l;Xd(l,function(x){var S=x.getLayout().x;Sc.getLayout().x&&(c=x),x.depth>f.depth&&(f=x)});var d=u===c?1:o(u,c)/2,h=d-u.getLayout().x,p=0,v=0,g=0,m=0;if(n==="radial")p=i/(c.getLayout().x+d+h),v=a/(f.depth-1||1),Xd(l,function(x){g=(x.getLayout().x+h)*p,m=(x.depth-1)*v;var S=bh(g,m);x.setLayout({x:S.x,y:S.y,rawX:g,rawY:m},!0)});else{var y=e.getOrient();y==="RL"||y==="LR"?(v=a/(c.getLayout().x+d+h),p=i/(f.depth-1||1),Xd(l,function(x){m=(x.getLayout().x+h)*v,g=y==="LR"?(x.depth-1)*p:i-(x.depth-1)*p,x.setLayout({x:g,y:m},!0)})):(y==="TB"||y==="BT")&&(p=i/(c.getLayout().x+d+h),v=a/(f.depth-1||1),Xd(l,function(x){g=(x.getLayout().x+h)*p,m=y==="TB"?(x.depth-1)*v:a-(x.depth-1)*v,x.setLayout({x:g,y:m},!0)}))}}}function _2e(e){e.eachSeriesByType("tree",function(t){var r=t.getData(),n=r.tree;n.eachNode(function(i){var a=i.getModel(),o=a.getModel("itemStyle").getItemStyle(),s=r.ensureUniqueItemVisual(i.dataIndex,"style");q(s,o)})})}function w2e(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var i=t.dataIndex,a=n.getData().tree,o=a.getNodeByDataIndex(i);o.isExpand=!o.isExpand})}),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,r,n){r.eachComponent({mainType:"series",subType:"tree",query:t},function(i){var a=i.coordinateSystem,o=RI(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function C2e(e){e.registerChartView(s2e),e.registerSeriesModel(y2e),e.registerLayout(S2e),e.registerVisual(_2e),w2e(e)}var I5=["treemapZoomToNode","treemapRender","treemapMove"];function T2e(e){for(var t=0;t1;)a=a.parentNode;var o=YT(e.ecModel,a.name||a.dataIndex+"",n);i.setVisual("decal",o)})}var A2e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.preventUsingHoverLayer=!0,r}return t.prototype.getInitialData=function(r,n){var i={name:r.name,children:r.data};tU(i);var a=r.levels||[],o=this.designatedVisualItemStyle={},s=new wt({itemStyle:o},this,n);a=r.levels=M2e(a,n);var l=Z(a||[],function(f){return new wt(f,s,n)},this),u=EI.createTree(i,this,c);function c(f){f.wrapMethod("getItemModel",function(d,h){var p=u.getNodeByDataIndex(h),v=p?l[p.depth]:null;return d.parentModel=v||s,d})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.getRawValue(r),s=a.getName(r);return Sr("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=rS(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},q(this.layoutInfo,r)},t.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=ge(),this._idIndexMapCount=0);var i=n.get(r);return i==null&&n.set(r,i=this._idIndexMapCount++),i},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){eU(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(zt);function tU(e){var t=0;R(e.children,function(n){tU(n);var i=n.value;Y(i)&&(i=i[0]),t+=i});var r=e.value;Y(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),Y(e.value)?e.value[0]=r:e.value=r}function M2e(e,t){var r=pt(t.get("color")),n=pt(t.get(["aria","decal","decals"]));if(r){e=e||[];var i,a;R(e,function(s){var l=new wt(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(a=!0)});var o=e[0]||(e[0]={});return i||(o.color=r.slice()),!a&&n&&(o.decal=n.slice()),e}}const k2e=A2e;var I2e=8,P5=8,H_=5,P2e=function(){function e(t){this.group=new Me,t.add(this.group)}return e.prototype.render=function(t,r,n,i){var a=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!a.get("show")||!n)){var s=a.getModel("itemStyle"),l=a.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),f={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:r.getWidth(),height:r.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,f,u),this._renderContent(t,f,s,l,u,c,i),Hx(o,f.pos,f.box)}},e.prototype._prepare=function(t,r,n){for(var i=t;i;i=i.parentNode){var a=hr(i.getModel().get("name"),""),o=n.getTextRect(a),s=Math.max(o.width+I2e*2,r.emptyItemWidth);r.totalWidth+=s+P5,r.renderList.push({node:i,text:a,width:s})}},e.prototype._renderContent=function(t,r,n,i,a,o,s){for(var l=0,u=r.emptyItemWidth,c=t.get(["breadcrumb","height"]),f=$1e(r.pos,r.box),d=r.totalWidth,h=r.renderList,p=i.getModel("itemStyle").getItemStyle(),v=h.length-1;v>=0;v--){var g=h[v],m=g.node,y=g.width,x=g.text;d>f.width&&(d-=y-u,y=u,x=null);var S=new Rn({shape:{points:D2e(l,0,y,c,v===h.length-1,v===0)},style:be(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new nt({style:_t(a,{text:x})}),textConfig:{position:"inside"},z2:Jf*1e4,onclick:Ie(s,m)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=_t(o,{text:x}),S.ensureState("emphasis").style=p,jt(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),R2e(S,t,m),l+=y+P5}},e.prototype.remove=function(){this.group.removeAll()},e}();function D2e(e,t,r,n,i,a){var o=[[i?e:e-H_,t],[e+r,t],[e+r,t+n],[i?e:e-H_,t+n]];return!a&&o.splice(2,0,[e+r+H_,t+n/2]),!i&&o.push([e,t+n/2]),o}function R2e(e,t,r){ke(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&rS(r,t)}}const L2e=P2e;var E2e=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(t,r,n,i,a){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:r,duration:n,delay:i,easing:a}),!0)},e.prototype.finished=function(t){return this._finishedCallback=t,this},e.prototype.start=function(){for(var t=this,r=this._storage.length,n=function(){r--,r<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,a=this._storage.length;iR5||Math.abs(r.dy)>R5)){var n=this.seriesModel.getData().tree.root;if(!n)return;var i=n.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+r.dx,y:i.y+r.dy,width:i.width,height:i.height}})}},t.prototype._onZoom=function(r){var n=r.originX,i=r.originY;if(this._state!=="animating"){var a=this.seriesModel.getData().tree.root;if(!a)return;var o=a.getLayout();if(!o)return;var s=new Ne(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;n-=l.x,i-=l.y;var u=Ci();Va(u,u,[-n,-i]),_k(u,u,[r.scale,r.scale]),Va(u,u,[n,i]),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}})}},t.prototype._initEvents=function(r){var n=this;r.on("click",function(i){if(n._state==="ready"){var a=n.seriesModel.get("nodeClick",!0);if(a){var o=n.findTarget(i.offsetX,i.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(a==="zoomToNode")n._zoomToNode(o);else if(a==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&T0(u,c)}}}}},this)},t.prototype._renderBreadcrumb=function(r,n,i){var a=this;i||(i=r.get("leafDepth",!0)!=null?{node:r.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),i||(i={node:r.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new L2e(this.group))).render(r,n,i.node,function(o){a._state!=="animating"&&(OI(r.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Zd(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(r){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype._rootToNode=function(r){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype.findTarget=function(r,n){var i,a=this.seriesModel.getViewRoot();return a.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(r,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)i={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},t.type="treemap",t}(Tt);function Zd(){return{nodeGroup:[],background:[],content:[]}}function F2e(e,t,r,n,i,a,o,s,l,u){if(!o)return;var c=o.getLayout(),f=e.getData(),d=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var h=c.width,p=c.height,v=c.borderWidth,g=c.invisible,m=o.getRawIndex(),y=s&&s.getRawIndex(),x=o.viewChildren,S=c.upperHeight,_=x&&x.length,b=d.getModel("itemStyle"),w=d.getModel(["emphasis","itemStyle"]),C=d.getModel(["blur","itemStyle"]),A=d.getModel(["select","itemStyle"]),T=b.get("borderRadius")||0,M=U("nodeGroup",bA);if(!M)return;if(l.add(M),M.x=c.x||0,M.y=c.y||0,M.markRedraw(),H0(M).nodeWidth=h,H0(M).nodeHeight=p,c.isAboveViewRoot)return M;var k=U("background",D5,u,z2e);k&&F(M,k,_&&c.upperLabelHeight);var I=d.getModel("emphasis"),D=I.get("focus"),L=I.get("blurScope"),z=I.get("disabled"),V=D==="ancestor"?o.getAncestorsIndices():D==="descendant"?o.getDescendantIndices():D;if(_)jp(M)&&tu(M,!1),k&&(tu(k,!z),f.setItemGraphicEl(o.dataIndex,k),FT(k,V,L));else{var N=U("content",D5,u,B2e);N&&E(M,N),k.disableMorphing=!0,k&&jp(k)&&tu(k,!1),tu(M,!z),f.setItemGraphicEl(o.dataIndex,M),FT(M,V,L)}return M;function F(ee,te,ie){var re=ke(te);if(re.dataIndex=o.dataIndex,re.seriesIndex=e.seriesIndex,te.setShape({x:0,y:0,width:h,height:p,r:T}),g)G(te);else{te.invisible=!1;var Q=o.getVisual("style"),J=Q.stroke,de=O5(b);de.fill=J;var he=Ol(w);he.fill=w.get("borderColor");var Pe=Ol(C);Pe.fill=C.get("borderColor");var Xe=Ol(A);if(Xe.fill=A.get("borderColor"),ie){var qe=h-2*v;j(te,J,Q.opacity,{x:v,y:0,width:qe,height:S})}else te.removeTextContent();te.setStyle(de),te.ensureState("emphasis").style=he,te.ensureState("blur").style=Pe,te.ensureState("select").style=Xe,Du(te)}ee.add(te)}function E(ee,te){var ie=ke(te);ie.dataIndex=o.dataIndex,ie.seriesIndex=e.seriesIndex;var re=Math.max(h-2*v,0),Q=Math.max(p-2*v,0);if(te.culling=!0,te.setShape({x:v,y:v,width:re,height:Q,r:T}),g)G(te);else{te.invisible=!1;var J=o.getVisual("style"),de=J.fill,he=O5(b);he.fill=de,he.decal=J.decal;var Pe=Ol(w),Xe=Ol(C),qe=Ol(A);j(te,de,J.opacity,null),te.setStyle(he),te.ensureState("emphasis").style=Pe,te.ensureState("blur").style=Xe,te.ensureState("select").style=qe,Du(te)}ee.add(te)}function G(ee){!ee.invisible&&a.push(ee)}function j(ee,te,ie,re){var Q=d.getModel(re?E5:L5),J=hr(d.get("name"),null),de=Q.getShallow("show");Br(ee,xr(d,re?E5:L5),{defaultText:de?J:null,inheritColor:te,defaultOpacity:ie,labelFetcher:e,labelDataIndex:o.dataIndex});var he=ee.getTextContent();if(he){var Pe=he.style,Xe=xk(Pe.padding||0);re&&(ee.setTextConfig({layoutRect:re}),he.disableLabelLayout=!0),he.beforeUpdate=function(){var ot=Math.max((re?re.width:ee.shape.width)-Xe[1]-Xe[3],0),st=Math.max((re?re.height:ee.shape.height)-Xe[0]-Xe[2],0);(Pe.width!==ot||Pe.height!==st)&&he.setStyle({width:ot,height:st})},Pe.truncateMinChar=2,Pe.lineOverflow="truncate",B(Pe,re,c);var qe=he.getState("emphasis");B(qe?qe.style:null,re,c)}}function B(ee,te,ie){var re=ee?ee.text:null;if(!te&&ie.isLeafRoot&&re!=null){var Q=e.get("drillDownIcon",!0);ee.text=Q?Q+" "+re:re}}function U(ee,te,ie,re){var Q=y!=null&&r[ee][y],J=i[ee];return Q?(r[ee][y]=null,X(J,Q)):g||(Q=new te,Q instanceof Ti&&(Q.z2=V2e(ie,re)),W(J,Q)),t[ee][m]=Q}function X(ee,te){var ie=ee[m]={};te instanceof bA?(ie.oldX=te.x,ie.oldY=te.y):ie.oldShape=q({},te.shape)}function W(ee,te){var ie=ee[m]={},re=o.parentNode,Q=te instanceof Me;if(re&&(!n||n.direction==="drillDown")){var J=0,de=0,he=i.background[re.getRawIndex()];!n&&he&&he.oldShape&&(J=he.oldShape.width,de=he.oldShape.height),Q?(ie.oldX=0,ie.oldY=de):ie.oldShape={x:J,y:de,width:0,height:0}}ie.fadein=!Q}}function V2e(e,t){return e*N2e+t}const G2e=$2e;var av=R,H2e=_e,W0=-1,NI=function(){function e(t){var r=t.mappingMethod,n=t.type,i=this.option=Te(t);this.type=n,this.mappingMethod=r,this._normalizeData=U2e[r];var a=e.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[r],r==="piecewise"?(W_(i),W2e(i)):r==="category"?i.categories?j2e(i):W_(i,!0):(cn(r!=="linear"||i.dataExtent),W_(i))}return e.prototype.mapValueToVisual=function(t){var r=this._normalizeData(t);return this._normalizedToVisual(r,t)},e.prototype.getNormalizer=function(){return ce(this._normalizeData,this)},e.listVisualTypes=function(){return Ye(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,r,n){_e(t)?R(t,r,n):r.call(n,t)},e.mapVisual=function(t,r,n){var i,a=Y(t)?[]:_e(t)?{}:(i=!0,null);return e.eachVisual(t,function(o,s){var l=r.call(n,o,s);i?a=l:a[s]=l}),a},e.retrieveVisuals=function(t){var r={},n;return t&&av(e.visualHandlers,function(i,a){t.hasOwnProperty(a)&&(r[a]=t[a],n=!0)}),n?r:null},e.prepareVisualTypes=function(t){if(Y(t))t=t.slice();else if(H2e(t)){var r=[];av(t,function(n,i){r.push(i)}),t=r}else return[];return t.sort(function(n,i){return i==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),t},e.dependsOn=function(t,r){return r==="color"?!!(t&&t.indexOf(r)===0):t===r},e.findPieceIndex=function(t,r,n){for(var i,a=1/0,o=0,s=r.length;o=0;a--)n[a]==null&&(delete r[t[a]],t.pop())}function W_(e,t){var r=e.visual,n=[];_e(r)?av(r,function(a){n.push(a)}):r!=null&&n.push(r);var i={color:1,symbol:1};!t&&n.length===1&&!i.hasOwnProperty(e.type)&&(n[1]=n[0]),rU(e,n)}function vm(e){return{applyVisual:function(t,r,n){var i=this.mapValueToVisual(t);n("color",e(r("color"),i))},_normalizedToVisual:_A([0,1])}}function N5(e){var t=this.option.visual;return t[Math.round(ft(e,[0,1],[0,t.length-1],!0))]||{}}function Kd(e){return function(t,r,n){n(e,this.mapValueToVisual(t))}}function _h(e){var t=this.option.visual;return t[this.option.loop&&e!==W0?e%t.length:e]}function Nl(){return this.option.visual[0]}function _A(e){return{linear:function(t){return ft(t,e,this.option.visual,!0)},category:_h,piecewise:function(t,r){var n=wA.call(this,r);return n==null&&(n=ft(t,e,this.option.visual,!0)),n},fixed:Nl}}function wA(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var n=NI.findPieceIndex(e,r),i=r[n];if(i&&i.visual)return i.visual[this.type]}}function rU(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=Z(t,function(r){var n=Wn(r);return n||[0,0,0,1]})),t}var U2e={linear:function(e){return ft(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,r=NI.findPieceIndex(e,t,!0);if(r!=null)return ft(r,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??W0},fixed:rr};function gm(e,t,r){return e?t<=r:t=r.length||v===r[v.depth]){var m=Q2e(i,l,v,g,p,n);iU(v,m,r,n)}})}}}function X2e(e,t,r){var n=q({},t),i=r.designatedVisualItemStyle;return R(["color","colorAlpha","colorSaturation"],function(a){i[a]=t[a];var o=e.get(a);i[a]=null,o!=null&&(n[a]=o)}),n}function z5(e){var t=j_(e,"color");if(t){var r=j_(e,"colorAlpha"),n=j_(e,"colorSaturation");return n&&(t=Uh(t,null,null,n)),r&&(t=d0(t,r)),t}}function Z2e(e,t){return t!=null?Uh(t,null,null,e):null}function j_(e,t){var r=e[t];if(r!=null&&r!=="none")return r}function K2e(e,t,r,n,i,a){if(!(!a||!a.length)){var o=U_(t,"color")||i.color!=null&&i.color!=="none"&&(U_(t,"colorAlpha")||U_(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=r.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var c=t.get("colorMappingBy"),f={type:o.name,dataExtent:u,visual:o.range};f.type==="color"&&(c==="index"||c==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var d=new Or(f);return nU(d).drColorMappingBy=c,d}}}function U_(e,t){var r=e.get(t);return Y(r)&&r.length?{name:t,range:r}:null}function Q2e(e,t,r,n,i,a){var o=q({},t);if(i){var s=i.type,l=s==="color"&&nU(i).drColorMappingBy,u=l==="index"?n:l==="id"?a.mapIdToIndex(r.getId()):r.getValue(e.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}var ov=Math.max,j0=Math.min,B5=Cr,zI=R,aU=["itemStyle","borderWidth"],J2e=["itemStyle","gapWidth"],eMe=["upperLabel","show"],tMe=["upperLabel","height"];const rMe={seriesType:"treemap",reset:function(e,t,r,n){var i=r.getWidth(),a=r.getHeight(),o=e.option,s=pr(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],u=ne(B5(s.width,l[0]),i),c=ne(B5(s.height,l[1]),a),f=n&&n.type,d=["treemapZoomToNode","treemapRootToNode"],h=iv(n,d,e),p=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,v=e.getViewRoot(),g=J8(v);if(f!=="treemapMove"){var m=f==="treemapZoomToNode"?lMe(e,h,v,u,c):p?[p.width,p.height]:[u,c],y=o.sort;y&&y!=="asc"&&y!=="desc"&&(y="desc");var x={squareRatio:o.squareRatio,sort:y,leafDepth:o.leafDepth};v.hostTree.clearLayouts();var S={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};v.setLayout(S),oU(v,x,!1,0),S=v.getLayout(),zI(g,function(b,w){var C=(g[w+1]||v).getValue();b.setLayout(q({dataExtent:[C,C],borderWidth:0,upperHeight:0},S))})}var _=e.getData().tree.root;_.setLayout(uMe(s,p,h),!0),e.setLayoutInfo(s),sU(_,new Ne(-s.x,-s.y,i,a),g,v,0)}};function oU(e,t,r,n){var i,a;if(!e.isRemoved()){var o=e.getLayout();i=o.width,a=o.height;var s=e.getModel(),l=s.get(aU),u=s.get(J2e)/2,c=lU(s),f=Math.max(l,c),d=l-u,h=f-u;e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),i=ov(i-2*d,0),a=ov(a-d-h,0);var p=i*a,v=nMe(e,s,p,t,r,n);if(v.length){var g={x:d,y:h,width:i,height:a},m=j0(i,a),y=1/0,x=[];x.area=0;for(var S=0,_=v.length;S<_;){var b=v[S];x.push(b),x.area+=b.getLayout().area;var w=sMe(x,m,t.squareRatio);w<=y?(S++,y=w):(x.area-=x.pop().getLayout().area,$5(x,m,g,u,!1),m=j0(g.width,g.height),x.length=x.area=0,y=1/0)}if(x.length&&$5(x,m,g,u,!0),!r){var C=s.get("childrenVisibleMin");C!=null&&p=0;l--){var u=i[n==="asc"?o-l-1:l].getValue();u/r*ts[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function sMe(e,t,r){for(var n=0,i=1/0,a=0,o=void 0,s=e.length;an&&(n=o));var l=e.area*e.area,u=t*t*r;return l?ov(u*n/l,l/(u*i)):1/0}function $5(e,t,r,n,i){var a=t===r.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=r[s[a]],c=t?e.area/t:0;(i||c>r[l[o]])&&(c=r[l[o]]);for(var f=0,d=e.length;fKE&&(u=KE),a=s}un&&(n=t);var a=n%2?n+2:n+3;i=[];for(var o=0;o0&&(_[0]=-_[0],_[1]=-_[1]);var w=S[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var C=-Math.atan2(S[1],S[0]);f[0].8?"left":d[0]<-.8?"right":"center",v=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":a.x=-d[0]*m+c[0],a.y=-d[1]*y+c[1],p=d[0]>.8?"right":d[0]<-.8?"left":"center",v=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=m*w+c[0],a.y=c[1]+A,p=S[0]<0?"right":"left",a.originX=-m*w,a.originY=-A;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=b[0],a.y=b[1]+A,p="center",a.originY=-A;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-m*w+f[0],a.y=f[1]+A,p=S[0]>=0?"right":"left",a.originX=m*w,a.originY=-A;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||v,align:a.__align||p})}},t}(Me);const VI=kMe;var IMe=function(){function e(t){this.group=new Me,this._LineCtor=t||VI}return e.prototype.updateData=function(t){var r=this;this._progressiveEls=null;var n=this,i=n.group,a=n._lineData;n._lineData=t,a||i.removeAll();var o=j5(t);t.diff(a).add(function(s){r._doAdd(t,s,o)}).update(function(s,l){r._doUpdate(a,t,l,s,o)}).remove(function(s){i.remove(a.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(r,n){r.updateLayout(t,n)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=j5(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!PMe(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0}function j5(e){var t=e.hostModel,r=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:xr(t)}}function U5(e){return isNaN(e[0])||isNaN(e[1])}function K_(e){return e&&!U5(e[0])&&!U5(e[1])}const GI=IMe;var Q_=[],J_=[],ew=[],xc=wr,tw=cu,q5=Math.abs;function Y5(e,t,r){for(var n=e[0],i=e[1],a=e[2],o=1/0,s,l=r*r,u=.1,c=.1;c<=.9;c+=.1){Q_[0]=xc(n[0],i[0],a[0],c),Q_[1]=xc(n[1],i[1],a[1],c);var f=q5(tw(Q_,t)-l);f=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function rw(e,t){var r=[],n=$p,i=[[],[],[]],a=[[],[]],o=[];t/=2,e.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[uo(u[0]),uo(u[1])],u[2]&&u.__original.push(uo(u[2])));var d=u.__original;if(u[2]!=null){if(tn(i[0],d[0]),tn(i[1],d[2]),tn(i[2],d[1]),c&&c!=="none"){var h=Ch(s.node1),p=Y5(i,d[0],h*t);n(i[0][0],i[1][0],i[2][0],p,r),i[0][0]=r[3],i[1][0]=r[4],n(i[0][1],i[1][1],i[2][1],p,r),i[0][1]=r[3],i[1][1]=r[4]}if(f&&f!=="none"){var h=Ch(s.node2),p=Y5(i,d[1],h*t);n(i[0][0],i[1][0],i[2][0],p,r),i[1][0]=r[1],i[2][0]=r[2],n(i[0][1],i[1][1],i[2][1],p,r),i[1][1]=r[1],i[2][1]=r[2]}tn(u[0],i[0]),tn(u[1],i[2]),tn(u[2],i[1])}else{if(tn(a[0],d[0]),tn(a[1],d[1]),Jl(o,a[1],a[0]),Zf(o,o),c&&c!=="none"){var h=Ch(s.node1);dT(a[0],a[0],o,h*t)}if(f&&f!=="none"){var h=Ch(s.node2);dT(a[1],a[1],o,-h*t)}tn(u[0],a[0]),tn(u[1],a[1])}})}function X5(e){return e.type==="view"}var DMe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){var i=new Gv,a=new GI,o=this.group;this._controller=new Uv(n.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(a.group),this._symbolDraw=i,this._lineDraw=a,this._firstRender=!0},t.prototype.render=function(r,n,i){var a=this,o=r.coordinateSystem;this._model=r;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(X5(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):at(u,c,r)}rw(r.getGraph(),wh(r));var f=r.getData();s.updateData(f);var d=r.getEdgeData();l.updateData(d),this._updateNodeAndLinkScale(),this._updateController(r,n,i),clearTimeout(this._layoutTimeout);var h=r.forceLayout,p=r.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,p);var v=r.get("layout");f.graph.eachNode(function(x){var S=x.dataIndex,_=x.getGraphicEl(),b=x.getModel();if(_){_.off("drag").off("dragend");var w=b.get("draggable");w&&_.on("drag",function(A){switch(v){case"force":h.warmUp(),!a._layouting&&a._startForceLayoutIteration(h,p),h.setFixed(S),f.setItemLayout(S,[_.x,_.y]);break;case"circular":f.setItemLayout(S,[_.x,_.y]),x.setLayout({fixed:!0},!0),FI(r,"symbolSize",x,[A.offsetX,A.offsetY]),a.updateLayout(r);break;case"none":default:f.setItemLayout(S,[_.x,_.y]),$I(r.getGraph(),r),a.updateLayout(r);break}}).on("dragend",function(){h&&h.setUnfixed(S)}),_.setDraggable(w,!!b.get("cursor"));var C=b.get(["emphasis","focus"]);C==="adjacency"&&(ke(_).focus=x.getAdjacentDataIndices())}}),f.graph.eachEdge(function(x){var S=x.getGraphicEl(),_=x.getModel().get(["emphasis","focus"]);S&&_==="adjacency"&&(ke(S).focus={edge:[x.dataIndex],node:[x.node1.dataIndex,x.node2.dataIndex]})});var g=r.get("layout")==="circular"&&r.get(["circular","rotateLabel"]),m=f.getLayout("cx"),y=f.getLayout("cy");f.graph.eachNode(function(x){dU(x,g,m,y)}),this._firstRender=!1},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(r,n){var i=this;(function a(){r.step(function(o){i.updateLayout(i._model),(i._layouting=!o)&&(n?i._layoutTimeout=setTimeout(a,16):a())})})()},t.prototype._updateController=function(r,n,i){var a=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,f){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(c,f)&&!eS(u,i,r)}),!X5(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){II(s,u.dx,u.dy),i.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){PI(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:r.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(),rw(r.getGraph(),wh(r)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),i=wh(r);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},t.prototype.updateLayout=function(r){rw(r.getGraph(),wh(r)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(Tt);const RMe=DMe;function Sc(e){return"_EC_"+e}var LMe=function(){function e(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(t,r){t=t==null?""+r:""+t;var n=this._nodesMap;if(!n[Sc(t)]){var i=new zl(t,r);return i.hostGraph=this,this.nodes.push(i),n[Sc(t)]=i,i}},e.prototype.getNodeByIndex=function(t){var r=this.data.getRawIndex(t);return this.nodes[r]},e.prototype.getNodeById=function(t){return this._nodesMap[Sc(t)]},e.prototype.addEdge=function(t,r,n){var i=this._nodesMap,a=this._edgesMap;if(it(t)&&(t=this.nodes[t]),it(r)&&(r=this.nodes[r]),t instanceof zl||(t=i[Sc(t)]),r instanceof zl||(r=i[Sc(r)]),!(!t||!r)){var o=t.id+"-"+r.id,s=new pU(t,r,n);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),r.inEdges.push(s)),t.edges.push(s),t!==r&&r.edges.push(s),this.edges.push(s),a[o]=s,s}},e.prototype.getEdgeByIndex=function(t){var r=this.edgeData.getRawIndex(t);return this.edges[r]},e.prototype.getEdge=function(t,r){t instanceof zl&&(t=t.id),r instanceof zl&&(r=r.id);var n=this._edgesMap;return this._directed?n[t+"-"+r]:n[t+"-"+r]||n[r+"-"+t]},e.prototype.eachNode=function(t,r){for(var n=this.nodes,i=n.length,a=0;a=0&&t.call(r,n[a],a)},e.prototype.eachEdge=function(t,r){for(var n=this.edges,i=n.length,a=0;a=0&&n[a].node1.dataIndex>=0&&n[a].node2.dataIndex>=0&&t.call(r,n[a],a)},e.prototype.breadthFirstTraverse=function(t,r,n,i){if(r instanceof zl||(r=this._nodesMap[Sc(r)]),!!r){for(var a=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var a=0,o=i.length;a=0&&this[e][t].setItemVisual(this.dataIndex,r,n)},getVisual:function(r){return this[e][t].getItemVisual(this.dataIndex,r)},setLayout:function(r,n){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,r,n)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}ur(zl,vU("hostGraph","data"));ur(pU,vU("hostGraph","edgeData"));const EMe=LMe;function gU(e,t,r,n,i){for(var a=new EMe(n),o=0;o "+d)),u++)}var h=r.get("coordinateSystem"),p;if(h==="cartesian2d"||h==="polar")p=Ro(e,r);else{var v=Nv.get(h),g=v?v.dimensions||[]:[];ze(g,"value")<0&&g.concat(["value"]);var m=Bv(e,{coordDimensions:g,encodeDefine:r.getEncode()}).dimensions;p=new un(m,r),p.initData(e)}var y=new un(["value"],r);return y.initData(l,s),i&&i(p,y),K8({mainData:p,struct:a,structAttr:"graph",datas:{node:p,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var OMe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new jv(i,i),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(r){e.prototype.mergeDefaultAndTheme.apply(this,arguments),ku(r,"edgeLabel",["show"])},t.prototype.getInitialData=function(r,n){var i=r.edges||r.links||[],a=r.data||r.nodes||[],o=this;if(a&&i){gMe(this);var s=gU(a,i,this,!0,l);return R(s.edges,function(u){mMe(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(p){var v=o._categoriesModels,g=p.getShallow("category"),m=v[g];return m&&(m.parentModel=p.parentModel,p.parentModel=m),p});var f=wt.prototype.getModel;function d(p,v){var g=f.call(this,p,v);return g.resolveParentPath=h,g}c.wrapMethod("getItemModel",function(p){return p.resolveParentPath=h,p.getModel=d,p});function h(p){if(p&&(p[0]==="label"||p[1]==="label")){var v=p.slice();return p[0]==="label"?v[0]="edgeLabel":p[1]==="label"&&(v[1]="edgeLabel"),v}return p}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(r,n,i){if(i==="edge"){var a=this.getData(),o=this.getDataParams(r,i),s=a.graph.getEdgeByIndex(r),l=a.getName(s.node1.dataIndex),u=a.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Sr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=Bj({series:this,dataIndex:r,multipleSeries:n});return f},t.prototype._updateCategoriesData=function(){var r=Z(this.option.categories||[],function(i){return i.value!=null?i:q({value:0},i)}),n=new un(["value"],this);n.initData(r),this._categoriesData=n,this._categoriesModels=n.mapArray(function(i){return n.getItemModel(i)})},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(zt);const NMe=OMe;var zMe={type:"graphRoam",event:"graphRoam",update:"none"};function BMe(e){e.registerChartView(RMe),e.registerSeriesModel(NMe),e.registerProcessor(fMe),e.registerVisual(dMe),e.registerVisual(hMe),e.registerLayout(yMe),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,SMe),e.registerLayout(_Me),e.registerCoordinateSystem("graphView",{dimensions:qv.dimensions,create:CMe}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},rr),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},rr),e.registerAction(zMe,function(t,r,n){r.eachComponent({mainType:"series",query:t},function(i){var a=i.coordinateSystem,o=RI(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var $Me=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),FMe=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new $Me},t.prototype.buildPath=function(r,n){var i=Math.cos,a=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-i(l)*s*(s>=o/3?1:2),c=n.y-a(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,r.moveTo(u,c),r.lineTo(n.x+i(l)*s,n.y+a(l)*s),r.lineTo(n.x+i(n.angle)*o,n.y+a(n.angle)*o),r.lineTo(n.x-i(l)*s,n.y-a(l)*s),r.lineTo(u,c)},t}(je);const VMe=FMe;function GMe(e,t){var r=e.get("center"),n=t.getWidth(),i=t.getHeight(),a=Math.min(n,i),o=ne(r[0],t.getWidth()),s=ne(r[1],t.getHeight()),l=ne(e.get("radius"),a/2);return{cx:o,cy:s,r:l}}function ym(e,t){var r=e==null?"":e+"";return t&&(oe(t)?r=t.replace("{value}",r):Se(t)&&(r=t(e))),r}var HMe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){this.group.removeAll();var a=r.get(["axisLine","lineStyle","color"]),o=GMe(r,i);this._renderMain(r,n,i,a,o),this._data=r.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(r,n,i,a,o){var s=this.group,l=r.get("clockwise"),u=-r.get("startAngle")/180*Math.PI,c=-r.get("endAngle")/180*Math.PI,f=r.getModel("axisLine"),d=f.get("roundCap"),h=d?F0:Dn,p=f.get("show"),v=f.getModel("lineStyle"),g=v.get("width"),m=[u,c];YH(m,!l),u=m[0],c=m[1];for(var y=c-u,x=u,S=[],_=0;p&&_=A&&(T===0?0:a[T-1][0])Math.PI/2&&(U+=Math.PI)):B==="tangential"?U=-C-Math.PI/2:it(B)&&(U=B*Math.PI/180),U===0?f.add(new nt({style:_t(x,{text:F,x:G,y:j,verticalAlign:L<-.8?"top":L>.8?"bottom":"middle",align:D<-.4?"left":D>.4?"right":"center"},{inheritColor:E}),silent:!0})):f.add(new nt({style:_t(x,{text:F,x:G,y:j,verticalAlign:"middle",align:"center"},{inheritColor:E}),silent:!0,originX:G,originY:j,rotation:U}))}if(y.get("show")&&z!==S){var V=y.get("distance");V=V?V+c:c;for(var X=0;X<=_;X++){D=Math.cos(C),L=Math.sin(C);var W=new Tr({shape:{x1:D*(p-V)+d,y1:L*(p-V)+h,x2:D*(p-w-V)+d,y2:L*(p-w-V)+h},silent:!0,style:k});k.stroke==="auto"&&W.setStyle({stroke:a((z+X/_)/S)}),f.add(W),C+=T}C-=T}else C+=A}},t.prototype._renderPointer=function(r,n,i,a,o,s,l,u,c){var f=this.group,d=this._data,h=this._progressEls,p=[],v=r.get(["pointer","show"]),g=r.getModel("progress"),m=g.get("show"),y=r.getData(),x=y.mapDimension("value"),S=+r.get("min"),_=+r.get("max"),b=[S,_],w=[s,l];function C(T,M){var k=y.getItemModel(T),I=k.getModel("pointer"),D=ne(I.get("width"),o.r),L=ne(I.get("length"),o.r),z=r.get(["pointer","icon"]),V=I.get("offsetCenter"),N=ne(V[0],o.r),F=ne(V[1],o.r),E=I.get("keepAspect"),G;return z?G=lr(z,N-D/2,F-L,D,L,null,E):G=new VMe({shape:{angle:-Math.PI/2,width:D,r:L,x:N,y:F}}),G.rotation=-(M+Math.PI/2),G.x=o.cx,G.y=o.cy,G}function A(T,M){var k=g.get("roundCap"),I=k?F0:Dn,D=g.get("overlap"),L=D?g.get("width"):c/y.count(),z=D?o.r-L:o.r-(T+1)*L,V=D?o.r:o.r-T*L,N=new I({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:z,r:V}});return D&&(N.z2=_-y.get(x,T)%_),N}(m||v)&&(y.diff(d).add(function(T){var M=y.get(x,T);if(v){var k=C(T,s);Lt(k,{rotation:-((isNaN(+M)?w[0]:ft(M,b,w,!0))+Math.PI/2)},r),f.add(k),y.setItemGraphicEl(T,k)}if(m){var I=A(T,s),D=g.get("clip");Lt(I,{shape:{endAngle:ft(M,b,w,D)}},r),f.add(I),zT(r.seriesIndex,y.dataType,T,I),p[T]=I}}).update(function(T,M){var k=y.get(x,T);if(v){var I=d.getItemGraphicEl(M),D=I?I.rotation:s,L=C(T,D);L.rotation=D,at(L,{rotation:-((isNaN(+k)?w[0]:ft(k,b,w,!0))+Math.PI/2)},r),f.add(L),y.setItemGraphicEl(T,L)}if(m){var z=h[M],V=z?z.shape.endAngle:s,N=A(T,V),F=g.get("clip");at(N,{shape:{endAngle:ft(k,b,w,F)}},r),f.add(N),zT(r.seriesIndex,y.dataType,T,N),p[T]=N}}).execute(),y.each(function(T){var M=y.getItemModel(T),k=M.getModel("emphasis"),I=k.get("focus"),D=k.get("blurScope"),L=k.get("disabled");if(v){var z=y.getItemGraphicEl(T),V=y.getItemVisual(T,"style"),N=V.fill;if(z instanceof $r){var F=z.style;z.useStyle(q({image:F.image,x:F.x,y:F.y,width:F.width,height:F.height},V))}else z.useStyle(V),z.type!=="pointer"&&z.setColor(N);z.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),z.style.fill==="auto"&&z.setStyle("fill",a(ft(y.get(x,T),b,[0,1],!0))),z.z2EmphasisLift=0,zr(z,M),jt(z,I,D,L)}if(m){var E=p[T];E.useStyle(y.getItemVisual(T,"style")),E.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),E.z2EmphasisLift=0,zr(E,M),jt(E,I,D,L)}}),this._progressEls=p)},t.prototype._renderAnchor=function(r,n){var i=r.getModel("anchor"),a=i.get("show");if(a){var o=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),c=lr(s,n.cx-o/2+ne(l[0],n.r),n.cy-o/2+ne(l[1],n.r),o,o,null,u);c.z2=i.get("showAbove")?1:0,c.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(r,n,i,a,o){var s=this,l=r.getData(),u=l.mapDimension("value"),c=+r.get("min"),f=+r.get("max"),d=new Me,h=[],p=[],v=r.isAnimationEnabled(),g=r.get(["pointer","showAbove"]);l.diff(this._data).add(function(m){h[m]=new nt({silent:!0}),p[m]=new nt({silent:!0})}).update(function(m,y){h[m]=s._titleEls[y],p[m]=s._detailEls[y]}).execute(),l.each(function(m){var y=l.getItemModel(m),x=l.get(u,m),S=new Me,_=a(ft(x,[c,f],[0,1],!0)),b=y.getModel("title");if(b.get("show")){var w=b.get("offsetCenter"),C=o.cx+ne(w[0],o.r),A=o.cy+ne(w[1],o.r),T=h[m];T.attr({z2:g?0:2,style:_t(b,{x:C,y:A,text:l.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:_})}),S.add(T)}var M=y.getModel("detail");if(M.get("show")){var k=M.get("offsetCenter"),I=o.cx+ne(k[0],o.r),D=o.cy+ne(k[1],o.r),L=ne(M.get("width"),o.r),z=ne(M.get("height"),o.r),V=r.get(["progress","show"])?l.getItemVisual(m,"style").fill:_,T=p[m],N=M.get("formatter");T.attr({z2:g?0:2,style:_t(M,{x:I,y:D,text:ym(x,N),width:isNaN(L)?null:L,height:isNaN(z)?null:z,align:"center",verticalAlign:"middle"},{inheritColor:V})}),FW(T,{normal:M},x,function(E){return ym(E,N)}),v&&VW(T,m,l,r,{getFormattedLabel:function(E,G,j,B,U,X){return ym(X?X.interpolatedValue:x,N)}}),S.add(T)}d.add(S)}),this.group.add(d),this._titleEls=h,this._detailEls=p},t.type="gauge",t}(Tt);const WMe=HMe;var jMe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="itemStyle",r}return t.prototype.getInitialData=function(r,n){return fd(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(zt);const UMe=jMe;function qMe(e){e.registerChartView(WMe),e.registerSeriesModel(UMe)}var YMe=["itemStyle","opacity"],XMe=function(e){H(t,e);function t(r,n){var i=e.call(this)||this,a=i,o=new En,s=new nt;return a.setTextContent(s),i.setTextGuideLine(o),i.updateData(r,n,!0),i}return t.prototype.updateData=function(r,n,i){var a=this,o=r.hostModel,s=r.getItemModel(n),l=r.getItemLayout(n),u=s.getModel("emphasis"),c=s.get(YMe);c=c??1,i||ea(a),a.useStyle(r.getItemVisual(n,"style")),a.style.lineJoin="round",i?(a.setShape({points:l.points}),a.style.opacity=0,Lt(a,{style:{opacity:c}},o,n)):at(a,{style:{opacity:c},shape:{points:l.points}},o,n),zr(a,s),this._updateLabel(r,n),jt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n){var i=this,a=this.getTextGuideLine(),o=i.getTextContent(),s=r.hostModel,l=r.getItemModel(n),u=r.getItemLayout(n),c=u.label,f=r.getItemVisual(n,"style"),d=f.fill;Br(o,xr(l),{labelFetcher:r.hostModel,labelDataIndex:n,defaultOpacity:f.opacity,defaultText:r.getName(n)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),i.setTextConfig({local:!0,inside:!!c.inside,insideStroke:d,outsideFill:d});var h=c.linePoints;a.setShape({points:h}),i.textGuideLineConfig={anchor:h?new Le(h[0][0],h[0][1]):null},at(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),SI(i,bI(l),{stroke:d})},t}(Rn),ZMe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this._data,s=this.group;a.diff(o).add(function(l){var u=new XMe(a,l);a.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(a,l),s.add(c),a.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);Up(u,r,l)}).execute(),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(Tt);const KMe=ZMe;var QMe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new jv(ce(this.getData,this),ce(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.getInitialData=function(r,n){return fd(this,{coordDimensions:["value"],encodeDefaulter:Ie(Xk,this)})},t.prototype._defaultLabelLine=function(r){ku(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.prototype.getDataParams=function(r){var n=this.getData(),i=e.prototype.getDataParams.call(this,r),a=n.mapDimension("value"),o=n.getSum(a);return i.percent=o?+(n.get(a,r)/o*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(zt);const JMe=QMe;function eke(e,t){return pr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function tke(e,t){for(var r=e.mapDimension("value"),n=e.mapArray(r,function(l){return l}),i=[],a=t==="ascending",o=0,s=e.count();oSke)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!iw(this,"mousemove"))){var t=this._model,r=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),n=r.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:r.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function iw(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}const wke=bke;var Cke=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(r){var n=this.option;r&&Oe(n,r,!0),this._initDimensions()},t.prototype.contains=function(r,n){var i=r.get("parallelIndex");return i!=null&&n.getComponent("parallel",i)===this},t.prototype.setAxisExpand=function(r){R(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){r.hasOwnProperty(n)&&(this.option[n]=r[n])},this)},t.prototype._initDimensions=function(){var r=this.dimensions=[],n=this.parallelAxisIndex=[],i=dt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);R(i,function(a){r.push("dim"+a.get("dim")),n.push(a.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(tt);const Tke=Cke;var Ake=function(e){H(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.type=a||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(ra);const Mke=Ake;function Zu(e,t,r,n,i,a){e=e||0;var o=r[1]-r[0];if(i!=null&&(i=bc(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=bc(s,[0,o]),i=a=bc(s,[i,a]),n=0}t[0]=bc(t[0],r),t[1]=bc(t[1],r);var l=aw(t,n);t[n]+=e;var u=i||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=bc(t[n],c);var f;return f=aw(t,n),i!=null&&(f.sign!==l.sign||f.spana&&(t[1-n]=t[n]+f.sign*a),t}function aw(e,t){var r=e[t]-e[1-t];return{span:Math.abs(r),sign:r>0?-1:r<0?1:t?-1:1}}function bc(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var ow=R,yU=Math.min,xU=Math.max,Q5=Math.floor,kke=Math.ceil,J5=Xt,Ike=Math.PI,Pke=function(){function e(t,r,n){this.type="parallel",this._axesMap=ge(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var i=t.dimensions,a=t.parallelAxisIndex;ow(i,function(o,s){var l=a[s],u=r.getComponent("parallelAxis",l),c=this._axesMap.set(o,new Mke(o,Kx(u),[0,0],u.get("type"),l)),f=c.type==="category";c.onBand=f&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},e.prototype.update=function(t,r){this._updateAxesFromSeries(this._model,t)},e.prototype.containPoint=function(t){var r=this._makeLayoutInfo(),n=r.axisBase,i=r.layoutBase,a=r.pixelDimIndex,o=t[1-a],s=t[a];return o>=n&&o<=n+r.axisLength&&s>=i&&s<=i+r.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(t,r){r.eachSeries(function(n){if(t.contains(n,r)){var i=n.getData();ow(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),Lf(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,r){this._rect=pr(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var t=this._model,r=this._rect,n=["x","y"],i=["width","height"],a=t.get("layout"),o=a==="horizontal"?0:1,s=r[i[o]],l=[0,s],u=this.dimensions.length,c=xm(t.get("axisExpandWidth"),l),f=xm(t.get("axisExpandCount")||0,[0,u]),d=t.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,h=t.get("axisExpandWindow"),p;if(h)p=xm(h[1]-h[0],l),h[1]=h[0]+p;else{p=xm(c*(f-1),l);var v=t.get("axisExpandCenter")||Q5(u/2);h=[c*v-p/2],h[1]=h[0]+p}var g=(s-p)/(u-f);g<3&&(g=0);var m=[Q5(J5(h[0]/c,1))+1,kke(J5(h[1]/c,1))-1],y=g/c*h[0];return{layout:a,pixelDimIndex:o,layoutBase:r[n[o]],layoutLength:s,axisBase:r[n[1-o]],axisLength:r[i[1-o]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:h,axisCount:u,winInnerIndices:m,axisExpandWindow0Pos:y}},e.prototype._layoutAxes=function(){var t=this._rect,r=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;r.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),ow(n,function(o,s){var l=(i.axisExpandable?Rke:Dke)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:Ike/2,vertical:0},f=[u[a].x+t.x,u[a].y+t.y],d=c[a],h=Ci();Wu(h,h,d),Va(h,h,f),this._axesLayout[o]={position:f,rotation:d,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(t){return this._axesMap.get(t)},e.prototype.dataToPoint=function(t,r){return this.axisCoordToPoint(this._axesMap.get(r).dataToCoord(t),r)},e.prototype.eachActiveState=function(t,r,n,i){n==null&&(n=0),i==null&&(i=t.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];R(o,function(g){s.push(t.mapDimension(g)),l.push(a.get(g).model)});for(var u=this.hasAxisBrushed(),c=n;ca*(1-f[0])?(u="jump",l=s-a*(1-f[2])):(l=s-a*f[1])>=0&&(l=s-a*(1-f[1]))<=0&&(l=0),l*=r.axisExpandWidth/c,l?Zu(l,i,o,"all"):u="none";else{var h=i[1]-i[0],p=o[1]*s/h;i=[xU(0,p-h/2)],i[1]=yU(o[1],i[0]+h),i[0]=i[1]-h}return{axisExpandWindow:i,behavior:u}},e}();function xm(e,t){return yU(xU(e,t[0]),t[1])}function Dke(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function Rke(e,t){var r=t.layoutLength,n=t.axisExpandWidth,i=t.axisCount,a=t.axisCollapseWidth,o=t.winInnerIndices,s,l=a,u=!1,c;return e=0;i--)yi(n[i])},t.prototype.getActiveState=function(r){var n=this.activeIntervals;if(!n.length)return"normal";if(r==null||isNaN(+r))return"inactive";if(n.length===1){var i=n[0];if(i[0]<=r&&r<=i[1])return"active"}else for(var a=0,o=n.length;a$ke}function AU(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function MU(e,t,r,n){var i=new Me;return i.add(new Je({name:"main",style:UI(r),silent:!0,draggable:!0,cursor:"move",drift:Ie(nB,e,t,i,["n","s","w","e"]),ondragend:Ie(Eu,t,{isEnd:!0})})),R(n,function(a){i.add(new Je({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Ie(nB,e,t,i,a),ondragend:Ie(Eu,t,{isEnd:!0})}))}),i}function kU(e,t,r,n){var i=n.brushStyle.lineWidth||0,a=Nf(i,Fke),o=r[0][0],s=r[1][0],l=o-i/2,u=s-i/2,c=r[0][1],f=r[1][1],d=c-a+i/2,h=f-a+i/2,p=c-o,v=f-s,g=p+i,m=v+i;Qa(e,t,"main",o,s,p,v),n.transformable&&(Qa(e,t,"w",l,u,a,m),Qa(e,t,"e",d,u,a,m),Qa(e,t,"n",l,u,g,a),Qa(e,t,"s",l,h,g,a),Qa(e,t,"nw",l,u,a,a),Qa(e,t,"ne",d,u,a,a),Qa(e,t,"sw",l,h,a,a),Qa(e,t,"se",d,h,a,a))}function kA(e,t){var r=t.__brushOption,n=r.transformable,i=t.childAt(0);i.useStyle(UI(r)),i.attr({silent:!n,cursor:n?"move":"default"}),R([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?IA(e,a[0]):qke(e,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?Gke[s]+"-resize":null})})}function Qa(e,t,r,n,i,a,o){var s=t.childOfName(r);s&&s.setShape(Xke(qI(e,t,[[n,i],[n+a,i+o]])))}function UI(e){return be({strokeNoScale:!0},e.brushStyle)}function IU(e,t,r,n){var i=[lv(e,r),lv(t,n)],a=[Nf(e,r),Nf(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function Uke(e){return vu(e.group)}function IA(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=Nx(r[t],Uke(e));return n[i]}function qke(e,t){var r=[IA(e,t[0]),IA(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function nB(e,t,r,n,i,a){var o=r.__brushOption,s=e.toRectRange(o.range),l=PU(t,i,a);R(n,function(u){var c=Vke[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(IU(s[0][0],s[1][0],s[0][1],s[1][1])),HI(t,r),Eu(t,{isEnd:!1})}function Yke(e,t,r,n){var i=t.__brushOption.range,a=PU(e,r,n);R(i,function(o){o[0]+=a[0],o[1]+=a[1]}),HI(e,t),Eu(e,{isEnd:!1})}function PU(e,t,r){var n=e.group,i=n.transformCoordToLocal(t,r),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function qI(e,t,r){var n=TU(e,t);return n&&n!==Lu?n.clipPath(r,e._transform):Te(r)}function Xke(e){var t=lv(e[0][0],e[1][0]),r=lv(e[0][1],e[1][1]),n=Nf(e[0][0],e[1][0]),i=Nf(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:i-r}}function Zke(e,t,r){if(!(!e._brushType||Qke(e,t.offsetX,t.offsetY))){var n=e._zr,i=e._covers,a=jI(e,t,r);if(!e._dragging)for(var o=0;on.getWidth()||r<0||r>n.getHeight()}var iS={lineX:oB(0),lineY:oB(1),rect:{createCover:function(e,t){function r(n){return n}return MU({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=AU(e);return IU(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){kU(e,t,r,n)},updateCommon:kA,contain:DA},polygon:{createCover:function(e,t){var r=new Me;return r.add(new En({name:"main",style:UI(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Rn({name:"main",draggable:!0,drift:Ie(Yke,e,t),ondragend:Ie(Eu,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:qI(e,t,r)})},updateCommon:kA,contain:DA}};function oB(e){return{createCover:function(t,r){return MU({toRectRange:function(n){var i=[n,[0,100]];return e&&i.reverse(),i},fromRectRange:function(n){return n[e]}},t,r,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var r=AU(t),n=lv(r[0][e],r[1][e]),i=Nf(r[0][e],r[1][e]);return[n,i]},updateCoverShape:function(t,r,n,i){var a,o=TU(t,r);if(o!==Lu&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[n,a];e&&l.reverse(),kU(t,r,l,i)},updateCommon:kA,contain:DA}}const YI=Wke;function RU(e){return e=XI(e),function(t){return NW(t,e)}}function LU(e,t){return e=XI(e),function(r){var n=t??r,i=n?e.width:e.height,a=n?e.x:e.y;return[a,a+(i||0)]}}function EU(e,t,r){var n=XI(e);return function(i,a){return n.contain(a[0],a[1])&&!eS(i,t,r)}}function XI(e){return Ne.create(e)}var Jke=["axisLine","axisTickLabel","axisName"],eIe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){e.prototype.init.apply(this,arguments),(this._brushController=new YI(n.getZr())).on("brush",ce(this._onBrush,this))},t.prototype.render=function(r,n,i,a){if(!tIe(r,n,a)){this.axisModel=r,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Me,this.group.add(this._axisGroup),!!r.get("show")){var s=nIe(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),c=u.width,f=r.axis.dim,d=l.getAxisLayout(f),h=q({strokeContainThreshold:c},d),p=new Ao(r,h);R(Jke,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(h,u,r,s,c,i),Lv(o,this._axisGroup,r)}}},t.prototype._refreshBrushController=function(r,n,i,a,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=Ne.create({x:l[0],y:-o/2,width:u,height:o});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:r.rotation,x:r.position[0],y:r.position[1]}).setPanels([{panelId:"pl",clipPath:RU(f),isTargetByCursor:EU(f,s,a),getLinearBrushOtherExtent:LU(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(rIe(i))},t.prototype._onBrush=function(r){var n=r.areas,i=this.axisModel,a=i.axis,o=Z(n,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});(!i.option.realtime===r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Ut);function tIe(e,t,r){return r&&r.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function rIe(e){var t=e.axis;return Z(e.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(r[0],!0),t.dataToCoord(r[1],!0)]}})}function nIe(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}const iIe=eIe;var aIe={type:"axisAreaSelect",event:"axisAreaSelected"};function oIe(e){e.registerAction(aIe,function(t,r){r.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),e.registerAction("parallelAxisExpand",function(t,r){r.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var sIe={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function OU(e){e.registerComponentView(wke),e.registerComponentModel(Tke),e.registerCoordinateSystem("parallel",Nke),e.registerPreprocessor(mke),e.registerComponentModel(eB),e.registerComponentView(iIe),Of(e,"parallel",eB,sIe),oIe(e)}function lIe(e){Fe(OU),e.registerChartView(uke),e.registerSeriesModel(hke),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,gke)}var uIe=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),cIe=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new uIe},t.prototype.buildPath=function(r,n){var i=n.extent;r.moveTo(n.x1,n.y1),r.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(r.lineTo(n.x2+i,n.y2),r.bezierCurveTo(n.cpx2+i,n.cpy2,n.cpx1+i,n.cpy1,n.x1+i,n.y1)):(r.lineTo(n.x2,n.y2+i),r.bezierCurveTo(n.cpx2,n.cpy2+i,n.cpx1,n.cpy1+i,n.x1,n.y1+i)),r.closePath()},t.prototype.highlight=function(){wo(this)},t.prototype.downplay=function(){Co(this)},t}(je),fIe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._focusAdjacencyDisabled=!1,r}return t.prototype.render=function(r,n,i){var a=this,o=r.getGraph(),s=this.group,l=r.layoutInfo,u=l.width,c=l.height,f=r.getData(),d=r.getData("edge"),h=r.get("orient");this._model=r,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var v=new cIe,g=ke(v);g.dataIndex=p.dataIndex,g.seriesIndex=r.seriesIndex,g.dataType="edge";var m=p.getModel(),y=m.getModel("lineStyle"),x=y.get("curveness"),S=p.node1.getLayout(),_=p.node1.getModel(),b=_.get("localX"),w=_.get("localY"),C=p.node2.getLayout(),A=p.node2.getModel(),T=A.get("localX"),M=A.get("localY"),k=p.getLayout(),I,D,L,z,V,N,F,E;v.shape.extent=Math.max(1,k.dy),v.shape.orient=h,h==="vertical"?(I=(b!=null?b*u:S.x)+k.sy,D=(w!=null?w*c:S.y)+S.dy,L=(T!=null?T*u:C.x)+k.ty,z=M!=null?M*c:C.y,V=I,N=D*(1-x)+z*x,F=L,E=D*x+z*(1-x)):(I=(b!=null?b*u:S.x)+S.dx,D=(w!=null?w*c:S.y)+k.sy,L=T!=null?T*u:C.x,z=(M!=null?M*c:C.y)+k.ty,V=I*(1-x)+L*x,N=D,F=I*x+L*(1-x),E=z),v.setShape({x1:I,y1:D,x2:L,y2:z,cpx1:V,cpy1:N,cpx2:F,cpy2:E}),v.useStyle(y.getItemStyle()),sB(v.style,h,p);var G=""+m.get("value"),j=xr(m,"edgeLabel");Br(v,j,{labelFetcher:{getFormattedLabel:function(X,W,ee,te,ie,re){return r.getFormattedLabel(X,W,"edge",te,Ea(ie,j.normal&&j.normal.get("formatter"),G),re)}},labelDataIndex:p.dataIndex,defaultText:G}),v.setTextConfig({position:"inside"});var B=m.getModel("emphasis");zr(v,m,"lineStyle",function(X){var W=X.getItemStyle();return sB(W,h,p),W}),s.add(v),d.setItemGraphicEl(p.dataIndex,v);var U=B.get("focus");jt(v,U==="adjacency"?p.getAdjacentDataIndices():U==="trajectory"?p.getTrajectoryDataIndices():U,B.get("blurScope"),B.get("disabled"))}),o.eachNode(function(p){var v=p.getLayout(),g=p.getModel(),m=g.get("localX"),y=g.get("localY"),x=g.getModel("emphasis"),S=new Je({shape:{x:m!=null?m*u:v.x,y:y!=null?y*c:v.y,width:v.dx,height:v.dy},style:g.getModel("itemStyle").getItemStyle(),z2:10});Br(S,xr(g),{labelFetcher:{getFormattedLabel:function(b,w){return r.getFormattedLabel(b,w,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),S.disableLabelAnimation=!0,S.setStyle("fill",p.getVisual("color")),S.setStyle("decal",p.getVisual("style").decal),zr(S,g),s.add(S),f.setItemGraphicEl(p.dataIndex,S),ke(S).dataType="node";var _=x.get("focus");jt(S,_==="adjacency"?p.getAdjacentDataIndices():_==="trajectory"?p.getTrajectoryDataIndices():_,x.get("blurScope"),x.get("disabled"))}),f.eachItemGraphicEl(function(p,v){var g=f.getItemModel(v);g.get("draggable")&&(p.drift=function(m,y){a._focusAdjacencyDisabled=!0,this.shape.x+=m,this.shape.y+=y,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:r.id,dataIndex:f.getRawIndex(v),localX:this.shape.x/u,localY:this.shape.y/c})},p.ondragend=function(){a._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&r.isAnimationEnabled()&&s.setClipPath(dIe(s.getBoundingRect(),r,function(){s.removeClipPath()})),this._data=r.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(Tt);function sB(e,t,r){switch(e.fill){case"source":e.fill=r.node1.getVisual("color"),e.decal=r.node1.getVisual("style").decal;break;case"target":e.fill=r.node2.getVisual("color"),e.decal=r.node2.getVisual("style").decal;break;case"gradient":var n=r.node1.getVisual("color"),i=r.node2.getVisual("color");oe(n)&&oe(i)&&(e.fill=new Rv(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:i,offset:1}]))}}function dIe(e,t,r){var n=new Je({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Lt(n,{shape:{width:e.width+20}},t,r),n}const hIe=fIe;var pIe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){var i=r.edges||r.links,a=r.data||r.nodes,o=r.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new wt(o[l],this,n));if(a&&i){var u=gU(a,i,this,!0,c);return u.data}function c(f,d){f.wrapMethod("getItemModel",function(h,p){var v=h.parentModel,g=v.getData().getItemLayout(p);if(g){var m=g.depth,y=v.levelModels[m];y&&(h.parentModel=y)}return h}),d.wrapMethod("getItemModel",function(h,p){var v=h.parentModel,g=v.getGraph().getEdgeByIndex(p),m=g.node1.getLayout();if(m){var y=m.depth,x=v.levelModels[y];x&&(h.parentModel=x)}return h})}},t.prototype.setNodePosition=function(r,n){var i=this.option.data||this.option.nodes,a=i[r];a.localX=n[0],a.localY=n[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(r,n,i){function a(h){return isNaN(h)||h==null}if(i==="edge"){var o=this.getDataParams(r,i),s=o.data,l=o.value,u=s.source+" -- "+s.target;return Sr("nameValue",{name:u,value:l,noValue:a(l)})}else{var c=this.getGraph().getNodeByIndex(r),f=c.getLayout().value,d=this.getDataParams(r,i).data.name;return Sr("nameValue",{name:d!=null?d+"":null,value:f,noValue:a(f)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(r,n){var i=e.prototype.getDataParams.call(this,r,n);if(i.value==null&&n==="node"){var a=this.getGraph().getNodeByIndex(r),o=a.getLayout().value;i.value=o}return i},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(zt);const vIe=pIe;function gIe(e,t){e.eachSeriesByType("sankey",function(r){var n=r.get("nodeWidth"),i=r.get("nodeGap"),a=mIe(r,t);r.layoutInfo=a;var o=a.width,s=a.height,l=r.getGraph(),u=l.nodes,c=l.edges;xIe(u);var f=dt(u,function(v){return v.getLayout().value===0}),d=f.length!==0?0:r.get("layoutIterations"),h=r.get("orient"),p=r.get("nodeAlign");yIe(u,c,n,i,o,s,d,h,p)})}function mIe(e,t){return pr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function yIe(e,t,r,n,i,a,o,s,l){SIe(e,t,r,i,a,s,l),CIe(e,t,a,i,n,o,s),LIe(e,s)}function xIe(e){R(e,function(t){var r=ks(t.outEdges,U0),n=ks(t.inEdges,U0),i=t.getValue()||0,a=Math.max(r,n,i);t.setLayout({value:a},!0)})}function SIe(e,t,r,n,i,a,o){for(var s=[],l=[],u=[],c=[],f=0,d=0;d=0;m&&g.depth>h&&(h=g.depth),v.setLayout({depth:m?g.depth:f},!0),a==="vertical"?v.setLayout({dy:r},!0):v.setLayout({dx:r},!0);for(var y=0;yf-1?h:f-1;o&&o!=="left"&&bIe(e,o,a,w);var C=a==="vertical"?(i-r)/w:(n-r)/w;wIe(e,C,a)}function NU(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function bIe(e,t,r,n){if(t==="right"){for(var i=[],a=e,o=0;a.length;){for(var s=0;s0;a--)l*=.99,MIe(s,l,o),sw(s,i,r,n,o),RIe(s,l,o),sw(s,i,r,n,o)}function TIe(e,t){var r=[],n=t==="vertical"?"y":"x",i=LT(e,function(a){return a.getLayout()[n]});return i.keys.sort(function(a,o){return a-o}),R(i.keys,function(a){r.push(i.buckets.get(a))}),r}function AIe(e,t,r,n,i,a){var o=1/0;R(e,function(s){var l=s.length,u=0;R(s,function(f){u+=f.getLayout().value});var c=a==="vertical"?(n-(l-1)*i)/u:(r-(l-1)*i)/u;c0&&(s=l.getLayout()[a]+u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]+l.getLayout()[d]+t;var p=i==="vertical"?n:r;if(u=c-t-p,u>0){s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var h=f-2;h>=0;--h)l=o[h],u=l.getLayout()[a]+l.getLayout()[d]+t-c,u>0&&(s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]}})}function MIe(e,t,r){R(e.slice().reverse(),function(n){R(n,function(i){if(i.outEdges.length){var a=ks(i.outEdges,kIe,r)/ks(i.outEdges,U0);if(isNaN(a)){var o=i.outEdges.length;a=o?ks(i.outEdges,IIe,r)/o:0}if(r==="vertical"){var s=i.getLayout().x+(a-Hs(i,r))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-Hs(i,r))*t;i.setLayout({y:l},!0)}}})})}function kIe(e,t){return Hs(e.node2,t)*e.getValue()}function IIe(e,t){return Hs(e.node2,t)}function PIe(e,t){return Hs(e.node1,t)*e.getValue()}function DIe(e,t){return Hs(e.node1,t)}function Hs(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function U0(e){return e.getValue()}function ks(e,t,r){for(var n=0,i=e.length,a=-1;++ao&&(o=l)}),R(n,function(s){var l=new Or({type:"color",mappingMethod:"linear",dataExtent:[a,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}i.length&&R(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function OIe(e){e.registerChartView(hIe),e.registerSeriesModel(vIe),e.registerLayout(gIe),e.registerVisual(EIe),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){n.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var zU=function(){function e(){}return e.prototype.getInitialData=function(t,r){var n,i=r.getComponent("xAxis",this.get("xAxisIndex")),a=r.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=a.get("type"),l;o==="category"?(t.layout="horizontal",n=i.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",n=a.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],d=u[1-c],h=[i,a],p=h[c].get("type"),v=h[1-c].get("type"),g=t.data;if(g&&l){var m=[];R(g,function(S,_){var b;Y(S)?(b=S.slice(),S.unshift(_)):Y(S.value)?(b=q({},S),b.value=b.value.slice(),S.value.unshift(_)):b=S,m.push(b)}),t.data=m}var y=this.defaultValueDimensions,x=[{name:f,type:E0(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:E0(v),dimsDef:y.slice()}];return fd(this,{coordDimensions:x,dimensionsCount:y.length+1,encodeDefaulter:Ie(uj,x,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),BU=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],r.visualDrawType="stroke",r}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(zt);ur(BU,zU,!0);const NIe=BU;var zIe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=r.get("layout")==="horizontal"?1:0;a.diff(s).add(function(u){if(a.hasValue(u)){var c=a.getItemLayout(u),f=lB(c,a,u,l,!0);a.setItemGraphicEl(u,f),o.add(f)}}).update(function(u,c){var f=s.getItemGraphicEl(c);if(!a.hasValue(u)){o.remove(f);return}var d=a.getItemLayout(u);f?(ea(f),$U(d,f,a,u)):f=lB(d,a,u,l),o.add(f),a.setItemGraphicEl(u,f)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=a},t.prototype.remove=function(r){var n=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(a){a&&n.remove(a)})},t.type="boxplot",t}(Tt),BIe=function(){function e(){}return e}(),$Ie=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new BIe},t.prototype.buildPath=function(r,n){var i=n.points,a=0;for(r.moveTo(i[a][0],i[a][1]),a++;a<4;a++)r.lineTo(i[a][0],i[a][1]);for(r.closePath();av){var S=[m,x];n.push(S)}}}return{boxData:r,outliers:n}}var qIe={type:"echarts:boxplot",transform:function(t){var r=t.upstream;if(r.sourceFormat!==Kr){var n="";lt(n)}var i=UIe(r.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function YIe(e){e.registerSeriesModel(NIe),e.registerChartView(VIe),e.registerLayout(GIe),e.registerTransform(qIe)}var XIe=["color","borderColor"],ZIe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(r),this._isLargeDraw?this._renderLarge(r):this._renderNormal(r)},t.prototype.incrementalPrepareRender=function(r,n,i){this._clear(),this._updateDrawMode(r)},t.prototype.incrementalRender=function(r,n,i,a){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(r,n):this._incrementalRenderNormal(r,n)},t.prototype.eachRendered=function(r){Qs(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r){var n=r.getData(),i=this._data,a=this.group,o=n.getLayout("isSimpleBox"),s=r.get("clip",!0),l=r.coordinateSystem,u=l.getArea&&l.getArea();this._data||a.removeAll(),n.diff(i).add(function(c){if(n.hasValue(c)){var f=n.getItemLayout(c);if(s&&uB(u,f))return;var d=lw(f,c,!0);Lt(d,{shape:{points:f.ends}},r,c),uw(d,n,c,o),a.add(d),n.setItemGraphicEl(c,d)}}).update(function(c,f){var d=i.getItemGraphicEl(f);if(!n.hasValue(c)){a.remove(d);return}var h=n.getItemLayout(c);if(s&&uB(u,h)){a.remove(d);return}d?(at(d,{shape:{points:h.ends}},r,c),ea(d)):d=lw(h),uw(d,n,c,o),a.add(d),n.setItemGraphicEl(c,d)}).remove(function(c){var f=i.getItemGraphicEl(c);f&&a.remove(f)}).execute(),this._data=n},t.prototype._renderLarge=function(r){this._clear(),cB(r,this.group);var n=r.get("clip",!0)?Jx(r.coordinateSystem,!1,r):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(r,n){for(var i=n.getData(),a=i.getLayout("isSimpleBox"),o;(o=r.next())!=null;){var s=i.getItemLayout(o),l=lw(s);uw(l,i,o,a),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(r,n){cB(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(r){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(Tt),KIe=function(){function e(){}return e}(),QIe=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new KIe},t.prototype.buildPath=function(r,n){var i=n.points;this.__simpleBox?(r.moveTo(i[4][0],i[4][1]),r.lineTo(i[6][0],i[6][1])):(r.moveTo(i[0][0],i[0][1]),r.lineTo(i[1][0],i[1][1]),r.lineTo(i[2][0],i[2][1]),r.lineTo(i[3][0],i[3][1]),r.closePath(),r.moveTo(i[4][0],i[4][1]),r.lineTo(i[5][0],i[5][1]),r.moveTo(i[6][0],i[6][1]),r.lineTo(i[7][0],i[7][1]))},t}(je);function lw(e,t,r){var n=e.ends;return new QIe({shape:{points:r?JIe(n,e):n},z2:100})}function uB(e,t){for(var r=!0,n=0;n0?"borderColor":"borderColor0"])||r.get(["itemStyle",e>0?"color":"color0"]);e===0&&(i=r.get(["itemStyle","borderColorDoji"]));var a=r.getModel("itemStyle").getItemStyle(XIe);t.useStyle(a),t.style.fill=null,t.style.stroke=i}const tPe=ZIe;var FU=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],r}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(r,n,i){var a=n.getItemLayout(r);return a&&i.rect(a.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(zt);ur(FU,zU,!0);const rPe=FU;function nPe(e){!e||!Y(e.series)||R(e.series,function(t){_e(t)&&t.type==="k"&&(t.type="candlestick")})}var iPe=["itemStyle","borderColor"],aPe=["itemStyle","borderColor0"],oPe=["itemStyle","borderColorDoji"],sPe=["itemStyle","color"],lPe=["itemStyle","color0"],uPe={seriesType:"candlestick",plan:ld(),performRawSeries:!0,reset:function(e,t){function r(a,o){return o.get(a>0?sPe:lPe)}function n(a,o){return o.get(a===0?oPe:a>0?iPe:aPe)}if(!t.isSeriesFiltered(e)){var i=e.pipelineContext.large;return!i&&{progress:function(a,o){for(var s;(s=a.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=r(u,l),c.stroke=n(u,l)||c.fill;var f=o.ensureUniqueItemVisual(s,"style");q(f,c)}}}}}};const cPe=uPe;var fPe={seriesType:"candlestick",plan:ld(),reset:function(e){var t=e.coordinateSystem,r=e.getData(),n=dPe(e,r),i=0,a=1,o=["x","y"],s=r.getDimensionIndex(r.mapDimension(o[i])),l=Z(r.mapDimensionsAll(o[a]),r.getDimensionIndex,r),u=l[0],c=l[1],f=l[2],d=l[3];if(r.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:e.pipelineContext.large?p:h};function h(v,g){for(var m,y=g.getStore();(m=v.next())!=null;){var x=y.get(s,m),S=y.get(u,m),_=y.get(c,m),b=y.get(f,m),w=y.get(d,m),C=Math.min(S,_),A=Math.max(S,_),T=V(C,x),M=V(A,x),k=V(b,x),I=V(w,x),D=[];N(D,M,0),N(D,T,1),D.push(E(I),E(M),E(k),E(T));var L=g.getItemModel(m),z=!!L.get(["itemStyle","borderColorDoji"]);g.setItemLayout(m,{sign:fB(y,m,S,_,c,z),initBaseline:S>_?M[a]:T[a],ends:D,brushRect:F(b,w,x)})}function V(G,j){var B=[];return B[i]=j,B[a]=G,isNaN(j)||isNaN(G)?[NaN,NaN]:t.dataToPoint(B)}function N(G,j,B){var U=j.slice(),X=j.slice();U[i]=oy(U[i]+n/2,1,!1),X[i]=oy(X[i]-n/2,1,!0),B?G.push(U,X):G.push(X,U)}function F(G,j,B){var U=V(G,B),X=V(j,B);return U[i]-=n/2,X[i]-=n/2,{x:U[0],y:U[1],width:n,height:X[1]-U[1]}}function E(G){return G[i]=oy(G[i],1),G}}function p(v,g){for(var m=Ma(v.count*4),y=0,x,S=[],_=[],b,w=g.getStore(),C=!!e.get(["itemStyle","borderColorDoji"]);(b=v.next())!=null;){var A=w.get(s,b),T=w.get(u,b),M=w.get(c,b),k=w.get(f,b),I=w.get(d,b);if(isNaN(A)||isNaN(k)||isNaN(I)){m[y++]=NaN,y+=3;continue}m[y++]=fB(w,b,T,M,c,C),S[i]=A,S[a]=k,x=t.dataToPoint(S,null,_),m[y++]=x?x[0]:NaN,m[y++]=x?x[1]:NaN,S[a]=I,x=t.dataToPoint(S,null,_),m[y++]=x?x[1]:NaN}g.setLayout("largePoints",m)}}};function fB(e,t,r,n,i,a){var o;return r>n?o=-1:r0?e.get(i,t-1)<=n?1:-1:1,o}function dPe(e,t){var r=e.getBaseAxis(),n,i=r.type==="category"?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/t.count()),a=ne(Ee(e.get("barMaxWidth"),i),i),o=ne(Ee(e.get("barMinWidth"),1),i),s=e.get("barWidth");return s!=null?ne(s,i):Math.max(Math.min(i/2,a),o)}const hPe=fPe;function pPe(e){e.registerChartView(tPe),e.registerSeriesModel(rPe),e.registerPreprocessor(nPe),e.registerVisual(cPe),e.registerLayout(hPe)}function dB(e,t){var r=t.rippleEffectColor||t.color;e.eachChild(function(n){n.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?r:null,fill:t.brushType==="fill"?r:null}})})}var vPe=function(e){H(t,e);function t(r,n){var i=e.call(this)||this,a=new Vv(r,n),o=new Me;return i.add(a),i.add(o),i.updateData(r,n),i}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(r){for(var n=r.symbolType,i=r.color,a=r.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(a)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){a.stopAnimation();var d=void 0;Se(f)?d=f(i):d=f,a.__t>0&&(d=-s*a.__t),this._animateSymbol(a,s,d,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(r,n,i,a,o){if(n>0){r.__t=0;var s=this,l=r.animate("",a).when(o?n*2:n,{__t:o?2:1}).delay(i).during(function(){s._updateSymbolPosition(r)});a||l.done(function(){s.remove(r)}),l.start()}},t.prototype._getLineLength=function(r){return os(r.__p1,r.__cp1)+os(r.__cp1,r.__p2)},t.prototype._updateAnimationPoints=function(r,n){r.__p1=n[0],r.__p2=n[1],r.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},t.prototype.updateData=function(r,n,i){this.childAt(0).updateData(r,n,i),this._updateEffectSymbol(r,n)},t.prototype._updateSymbolPosition=function(r){var n=r.__p1,i=r.__p2,a=r.__cp1,o=r.__t<1?r.__t:2-r.__t,s=[r.x,r.y],l=s.slice(),u=wr,c=ST;s[0]=u(n[0],a[0],i[0],o),s[1]=u(n[1],a[1],i[1],o);var f=r.__t<1?c(n[0],a[0],i[0],o):c(i[0],a[0],n[0],1-o),d=r.__t<1?c(n[1],a[1],i[1],o):c(i[1],a[1],n[1],1-o);r.rotation=-Math.atan2(d,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(r.__lastT!==void 0&&r.__lastT=0&&!(a[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;ln);l++);l=Math.min(l-1,o-2)}var c=(n-a[l])/(a[l+1]-a[l]),f=i[l],d=i[l+1];r.x=f[0]*(1-c)+c*d[0],r.y=f[1]*(1-c)+c*d[1];var h=r.__t<1?d[0]-f[0]:f[0]-d[0],p=r.__t<1?d[1]-f[1]:f[1]-d[1];r.rotation=-Math.atan2(p,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,r.ignore=!1}},t}(VU);const TPe=CPe;var APe=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),MPe=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new APe},t.prototype.buildPath=function(r,n){var i=n.segs,a=n.curveness,o;if(n.polyline)for(o=this._off;o0){r.moveTo(i[o++],i[o++]);for(var l=1;l0){var h=(u+f)/2-(c-d)*a,p=(c+d)/2-(f-u)*a;r.quadraticCurveTo(h,p,f,d)}else r.lineTo(f,d)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(r,n){var i=this.shape,a=i.segs,o=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,u=0;u0)for(var f=a[u++],d=a[u++],h=1;h0){var g=(f+p)/2-(d-v)*o,m=(d+v)/2-(p-f)*o;if(XH(f,d,g,m,p,v,s,r,n))return l}else if(Jo(f,d,p,v,s,r,n))return l;l++}return-1},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.segs,a=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+t.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const IPe=kPe;var PPe={seriesType:"lines",plan:ld(),reset:function(e){var t=e.coordinateSystem;if(t){var r=e.get("polyline"),n=e.pipelineContext.large;return{progress:function(i,a){var o=[];if(n){var s=void 0,l=i.end-i.start;if(r){for(var u=0,c=i.start;c0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(a);var f=r.get("clip",!0)&&Jx(r.coordinateSystem,!1,r);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateLineDraw(a,r);o.incrementalPrepareUpdate(a),this._clearLayer(i),this._finished=!1},t.prototype.incrementalRender=function(r,n,i){this._lineDraw.incrementalUpdate(r,n.getData()),this._finished=r.end===n.getData().count()},t.prototype.eachRendered=function(r){this._lineDraw&&this._lineDraw.eachRendered(r)},t.prototype.updateTransform=function(r,n,i){var a=r.getData(),o=r.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=HU.reset(r,n,i);s.progress&&s.progress({start:0,end:a.count(),count:a.count()},a),this._lineDraw.updateLayout(),this._clearLayer(i)},t.prototype._updateLineDraw=function(r,n){var i=this._lineDraw,a=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return(!i||a!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new IPe:new GI(o?a?TPe:GU:a?VU:VI),this._hasEffet=a,this._isPolyline=o,this._isLargeDraw=l),this.group.add(i.group),i},t.prototype._showEffect=function(r){return!!r.get(["effect","show"])},t.prototype._clearLayer=function(r){var n=r.getZr(),i=n.painter.getType()==="svg";!i&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(r,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},t.prototype.dispose=function(r,n){this.remove(r,n)},t.type="lines",t}(Tt);const RPe=DPe;var LPe=typeof Uint32Array>"u"?Array:Uint32Array,EPe=typeof Float64Array>"u"?Array:Float64Array;function hB(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=Z(t,function(r){var n=[r[0].coord,r[1].coord],i={coords:n};return r[0].name&&(i.fromName=r[0].name),r[1].name&&(i.toName=r[1].name),mk([i,r[0],r[1]])}))}var OPe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return t.prototype.init=function(r){r.data=r.data||[],hB(r);var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(r){if(hB(r),r.data){var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(r){var n=this._processFlatCoordsArray(r.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=u0(this._flatCoords,n.flatCoords),this._flatCoordsOffset=u0(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),r.data=new Float32Array(n.count)),this.getRawData().appendData(r.data)},t.prototype._getCoordsFromItemModel=function(r){var n=this.getData().getItemModel(r),i=n.option instanceof Array?n.option:n.getShallow("coords");return i},t.prototype.getLineCoordsCount=function(r){return this._flatCoordsOffset?this._flatCoordsOffset[r*2+1]:this._getCoordsFromItemModel(r).length},t.prototype.getLineCoords=function(r,n){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[r*2],a=this._flatCoordsOffset[r*2+1],o=0;o ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var r=this.getModel("effect"),n=r.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:r.get("show")&&n>0?n+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(zt);const NPe=OPe;function Sm(e){return e instanceof Array||(e=[e,e]),e}var zPe={seriesType:"lines",reset:function(e){var t=Sm(e.get("symbol")),r=Sm(e.get("symbolSize")),n=e.getData();n.setVisual("fromSymbol",t&&t[0]),n.setVisual("toSymbol",t&&t[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]);function i(a,o){var s=a.getItemModel(o),l=Sm(s.getShallow("symbol",!0)),u=Sm(s.getShallow("symbolSize",!0));l[0]&&a.setItemVisual(o,"fromSymbol",l[0]),l[1]&&a.setItemVisual(o,"toSymbol",l[1]),u[0]&&a.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&a.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:n.hasItemOption?i:null}}};const BPe=zPe;function $Pe(e){e.registerChartView(RPe),e.registerSeriesModel(NPe),e.registerLayout(HU),e.registerVisual(BPe)}var FPe=256,VPe=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=zs.createCanvas();this.canvas=t}return e.prototype.update=function(t,r,n,i,a,o){var s=this._getBrush(),l=this._getGradient(a,"inRange"),u=this._getGradient(a,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,d=f.getContext("2d"),h=t.length;f.width=r,f.height=n;for(var p=0;p0){var k=o(x)?l:u;x>0&&(x=x*T+C),_[b++]=k[M],_[b++]=k[M+1],_[b++]=k[M+2],_[b++]=k[M+3]*x*256}else b+=4}return d.putImageData(S,0,0),f},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=zs.createCanvas()),r=this.pointSize+this.blurSize,n=r*2;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-r,r,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),t},e.prototype._getGradient=function(t,r){for(var n=this._gradientPixels,i=n[r]||(n[r]=new Uint8ClampedArray(256*4)),a=[0,0,0,0],o=0,s=0;s<256;s++)t[r](s/255,!0,a),i[o++]=a[0],i[o++]=a[1],i[o++]=a[2],i[o++]=a[3];return i},e}();const GPe=VPe;function HPe(e,t,r){var n=e[1]-e[0];t=Z(t,function(o){return{interval:[(o.interval[0]-e[0])/n,(o.interval[1]-e[0])/n]}});var i=t.length,a=0;return function(o){var s;for(s=a;s=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}return s>=0&&s=t[0]&&n<=t[1]}}function pB(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var jPe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===r&&(a=s)})}),this._progressiveEls=null,this.group.removeAll();var o=r.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(r,i,0,r.getData().count()):pB(o)&&this._renderOnGeo(o,r,a,i)},t.prototype.incrementalPrepareRender=function(r,n,i){this.group.removeAll()},t.prototype.incrementalRender=function(r,n,i,a){var o=n.coordinateSystem;o&&(pB(o)?this.render(n,i,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,a,r.start,r.end,!0)))},t.prototype.eachRendered=function(r){Qs(this._progressiveEls||this.group,r)},t.prototype._renderOnCartesianAndCalendar=function(r,n,i,a,o){var s=r.coordinateSystem,l=Yu(s,"cartesian2d"),u,c,f,d;if(l){var h=s.getAxis("x"),p=s.getAxis("y");u=h.getBandWidth()+.5,c=p.getBandWidth()+.5,f=h.scale.getExtent(),d=p.scale.getExtent()}for(var v=this.group,g=r.getData(),m=r.getModel(["emphasis","itemStyle"]).getItemStyle(),y=r.getModel(["blur","itemStyle"]).getItemStyle(),x=r.getModel(["select","itemStyle"]).getItemStyle(),S=r.get(["itemStyle","borderRadius"]),_=xr(r),b=r.getModel("emphasis"),w=b.get("focus"),C=b.get("blurScope"),A=b.get("disabled"),T=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],M=i;Mf[1]||Ld[1])continue;var z=s.dataToPoint([D,L]);k=new Je({shape:{x:z[0]-u/2,y:z[1]-c/2,width:u,height:c},style:I})}else{if(isNaN(g.get(T[1],M)))continue;k=new Je({z2:1,shape:s.dataToRect([g.get(T[0],M)]).contentShape,style:I})}if(g.hasItemOption){var V=g.getItemModel(M),N=V.getModel("emphasis");m=N.getModel("itemStyle").getItemStyle(),y=V.getModel(["blur","itemStyle"]).getItemStyle(),x=V.getModel(["select","itemStyle"]).getItemStyle(),S=V.get(["itemStyle","borderRadius"]),w=N.get("focus"),C=N.get("blurScope"),A=N.get("disabled"),_=xr(V)}k.shape.r=S;var F=r.getRawValue(M),E="-";F&&F[2]!=null&&(E=F[2]+""),Br(k,_,{labelFetcher:r,labelDataIndex:M,defaultOpacity:I.opacity,defaultText:E}),k.ensureState("emphasis").style=m,k.ensureState("blur").style=y,k.ensureState("select").style=x,jt(k,w,C,A),k.incremental=o,o&&(k.states.emphasis.hoverLayer=!0),v.add(k),g.setItemGraphicEl(M,k),this._progressiveEls&&this._progressiveEls.push(k)}},t.prototype._renderOnGeo=function(r,n,i,a){var o=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new GPe;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var c=r.getViewRect().clone(),f=r.getRoamTransform();c.applyTransform(f);var d=Math.max(c.x,0),h=Math.max(c.y,0),p=Math.min(c.width+c.x,a.getWidth()),v=Math.min(c.height+c.y,a.getHeight()),g=p-d,m=v-h,y=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],x=l.mapArray(y,function(w,C,A){var T=r.dataToPoint([w,C]);return T[0]-=d,T[1]-=h,T.push(A),T}),S=i.getExtent(),_=i.type==="visualMap.continuous"?WPe(S,i.option.range):HPe(S,i.getPieceList(),i.option.selected);u.update(x,g,m,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},_);var b=new $r({style:{width:g,height:m,x:d,y:h,image:u.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t}(Tt);const UPe=jPe;var qPe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return Ro(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var r=Nv.get(this.get("coordinateSystem"));if(r&&r.dimensions)return r.dimensions[0]==="lng"&&r.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(zt);const YPe=qPe;function XPe(e){e.registerChartView(UPe),e.registerSeriesModel(YPe)}var ZPe=["itemStyle","borderWidth"],vB=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],dw=new ja,KPe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=this.group,o=r.getData(),s=this._data,l=r.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),d={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:r,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:vB[+c],categoryDim:vB[1-+c]};return o.diff(s).add(function(h){if(o.hasValue(h)){var p=mB(o,h),v=gB(o,h,p,d),g=yB(o,d,v);o.setItemGraphicEl(h,g),a.add(g),SB(g,d,v)}}).update(function(h,p){var v=s.getItemGraphicEl(p);if(!o.hasValue(h)){a.remove(v);return}var g=mB(o,h),m=gB(o,h,g,d),y=XU(o,m);v&&y!==v.__pictorialShapeStr&&(a.remove(v),o.setItemGraphicEl(h,null),v=null),v?iDe(v,d,m):v=yB(o,d,m,!0),o.setItemGraphicEl(h,v),v.__pictorialSymbolMeta=m,a.add(v),SB(v,d,m)}).remove(function(h){var p=s.getItemGraphicEl(h);p&&xB(s,h,p.__pictorialSymbolMeta.animationModel,p)}).execute(),this._data=o,this.group},t.prototype.remove=function(r,n){var i=this.group,a=this._data;r.get("animation")?a&&a.eachItemGraphicEl(function(o){xB(a,ke(o).dataIndex,r,o)}):i.removeAll()},t.type="pictorialBar",t}(Tt);function gB(e,t,r,n){var i=e.getItemLayout(t),a=r.get("symbolRepeat"),o=r.get("symbolClip"),s=r.get("symbolPosition")||"start",l=r.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=r.get("symbolPatternSize")||2,f=r.isAnimationEnabled(),d={dataIndex:t,layout:i,itemModel:r,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:r.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?r:null,hoverScale:f&&r.get(["emphasis","scale"]),z2:r.getShallow("z",!0)||0};QPe(r,a,i,n,d),JPe(e,t,i,a,o,d.boundingLength,d.pxSign,c,n,d),eDe(r,d.symbolScale,u,n,d);var h=d.symbolSize,p=Uu(r.get("symbolOffset"),h);return tDe(r,h,i,a,o,p,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,n,d),d}function QPe(e,t,r,n,i){var a=n.valueDim,o=e.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(r[a.wh]<=0),c;if(Y(o)){var f=[hw(s,o[0])-l,hw(s,o[1])-l];f[1]0?1:-1}function hw(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function JPe(e,t,r,n,i,a,o,s,l,u){var c=l.valueDim,f=l.categoryDim,d=Math.abs(r[f.wh]),h=e.getItemVisual(t,"symbolSize"),p;Y(h)?p=h.slice():h==null?p=["100%","100%"]:p=[h,h],p[f.index]=ne(p[f.index],d),p[c.index]=ne(p[c.index],n?d:Math.abs(a)),u.symbolSize=p;var v=u.symbolScale=[p[0]/s,p[1]/s];v[c.index]*=(l.isHorizontal?-1:1)*o}function eDe(e,t,r,n,i){var a=e.get(ZPe)||0;a&&(dw.attr({scaleX:t[0],scaleY:t[1],rotation:r}),dw.updateTransform(),a/=dw.getLineScale(),a*=t[n.valueDim.index]),i.valueLineWidth=a||0}function tDe(e,t,r,n,i,a,o,s,l,u,c,f){var d=c.categoryDim,h=c.valueDim,p=f.pxSign,v=Math.max(t[h.index]+s,0),g=v;if(n){var m=Math.abs(l),y=Cr(e.get("symbolMargin"),"15%")+"",x=!1;y.lastIndexOf("!")===y.length-1&&(x=!0,y=y.slice(0,y.length-1));var S=ne(y,t[h.index]),_=Math.max(v+S*2,0),b=x?0:S*2,w=EH(n),C=w?n:bB((m+b)/_),A=m-C*v;S=A/2/(x?C:Math.max(C-1,1)),_=v+S*2,b=x?0:S*2,!w&&n!=="fixed"&&(C=u?bB((Math.abs(u)+b)/_):0),g=C*_-b,f.repeatTimes=C,f.symbolMargin=S}var T=p*(g/2),M=f.pathPosition=[];M[d.index]=r[d.wh]/2,M[h.index]=o==="start"?T:o==="end"?l-T:l/2,a&&(M[0]+=a[0],M[1]+=a[1]);var k=f.bundlePosition=[];k[d.index]=r[d.xy],k[h.index]=r[h.xy];var I=f.barRectShape=q({},r);I[h.wh]=p*Math.max(Math.abs(r[h.wh]),Math.abs(M[h.index]+T)),I[d.wh]=r[d.wh];var D=f.clipShape={};D[d.xy]=-r[d.xy],D[d.wh]=c.ecSize[d.wh],D[h.xy]=0,D[h.wh]=r[h.wh]}function WU(e){var t=e.symbolPatternSize,r=lr(e.symbolType,-t/2,-t/2,t,t);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function jU(e,t,r,n){var i=e.__pictorialBundle,a=r.symbolSize,o=r.valueLineWidth,s=r.pathPosition,l=t.valueDim,u=r.repeatTimes||0,c=0,f=a[t.valueDim.index]+o+r.symbolMargin*2;for(ZI(e,function(v){v.__pictorialAnimationIndex=c,v.__pictorialRepeatTimes=u,c0:m<0)&&(y=u-1-v),g[l.index]=f*(y-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation}}}function UU(e,t,r,n){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?vf(a,null,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation},r,n):(a=e.__pictorialMainPath=WU(r),i.add(a),vf(a,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:0,scaleY:0,rotation:r.rotation},{scaleX:r.symbolScale[0],scaleY:r.symbolScale[1]},r,n))}function qU(e,t,r){var n=q({},t.barRectShape),i=e.__pictorialBarRect;i?vf(i,null,{shape:n},t,r):(i=e.__pictorialBarRect=new Je({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,e.add(i))}function YU(e,t,r,n){if(r.symbolClip){var i=e.__pictorialClipPath,a=q({},r.clipShape),o=t.valueDim,s=r.animationModel,l=r.dataIndex;if(i)at(i,{shape:a},s,l);else{a[o.wh]=0,i=new Je({shape:a}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var u={};u[o.wh]=r.clipShape[o.wh],Ov[n?"updateProps":"initProps"](i,{shape:u},s,l)}}}function mB(e,t){var r=e.getItemModel(t);return r.getAnimationDelayParams=rDe,r.isAnimationEnabled=nDe,r}function rDe(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function nDe(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function yB(e,t,r,n){var i=new Me,a=new Me;return i.add(a),i.__pictorialBundle=a,a.x=r.bundlePosition[0],a.y=r.bundlePosition[1],r.symbolRepeat?jU(i,t,r):UU(i,t,r),qU(i,r,n),YU(i,t,r,n),i.__pictorialShapeStr=XU(e,r),i.__pictorialSymbolMeta=r,i}function iDe(e,t,r){var n=r.animationModel,i=r.dataIndex,a=e.__pictorialBundle;at(a,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,i),r.symbolRepeat?jU(e,t,r,!0):UU(e,t,r,!0),qU(e,r,!0),YU(e,t,r,!0)}function xB(e,t,r,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var a=[];ZI(n,function(o){a.push(o)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),R(a,function(o){$s(o,{scaleX:0,scaleY:0},r,t,function(){n.parent&&n.parent.remove(n)})}),e.setItemGraphicEl(t,null)}function XU(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function ZI(e,t,r){R(e.__pictorialBundle.children(),function(n){n!==e.__pictorialBarRect&&t.call(r,n)})}function vf(e,t,r,n,i,a){t&&e.attr(t),n.symbolClip&&!i?r&&e.attr(r):r&&Ov[i?"updateProps":"initProps"](e,r,n.animationModel,n.dataIndex,a)}function SB(e,t,r){var n=r.dataIndex,i=r.itemModel,a=i.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=a.get("focus"),f=a.get("blurScope"),d=a.get("scale");ZI(e,function(v){if(v instanceof $r){var g=v.style;v.useStyle(q({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},r.style))}else v.useStyle(r.style);var m=v.ensureState("emphasis");m.style=o,d&&(m.scaleX=v.scaleX*1.1,m.scaleY=v.scaleY*1.1),v.ensureState("blur").style=s,v.ensureState("select").style=l,u&&(v.cursor=u),v.z2=r.z2});var h=t.valueDim.posDesc[+(r.boundingLength>0)],p=e.__pictorialBarRect;Br(p,xr(i),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:Ef(t.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:h}),jt(e,c,f,a.get("disabled"))}function bB(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}const aDe=KPe;var oDe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r.defaultSymbol="roundRect",r}return t.prototype.getInitialData=function(r){return r.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Js($0.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"}}}),t}($0);const sDe=oDe;function lDe(e){e.registerChartView(aDe),e.registerSeriesModel(sDe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Ie(P9,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,D9("pictorialBar"))}var uDe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._layers=[],r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this,s=this.group,l=r.getLayerSeries(),u=a.getLayout("layoutInfo"),c=u.rect,f=u.boundaryGap;s.x=0,s.y=c.y+f[0];function d(g){return g.name}var h=new To(this._layersSeries||[],l,d,d),p=[];h.add(ce(v,this,"add")).update(ce(v,this,"update")).remove(ce(v,this,"remove")).execute();function v(g,m,y){var x=o._layers;if(g==="remove"){s.remove(x[m]);return}for(var S=[],_=[],b,w=l[m].indices,C=0;Ca&&(a=s),n.push(s)}for(var u=0;ua&&(a=f)}return{y0:i,max:a}}function gDe(e){e.registerChartView(fDe),e.registerSeriesModel(hDe),e.registerLayout(pDe),e.registerProcessor(Wv("themeRiver"))}var mDe=2,yDe=4,xDe=function(e){H(t,e);function t(r,n,i,a){var o=e.call(this)||this;o.z2=mDe,o.textConfig={inside:!0},ke(o).seriesIndex=n.seriesIndex;var s=new nt({z2:yDe,silent:r.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,r,n,i,a),o}return t.prototype.updateData=function(r,n,i,a,o){this.node=n,n.piece=this,i=i||this._seriesModel,a=a||this._ecModel;var s=this;ke(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),f=q({},c);f.label=null;var d=n.getVisual("style");d.lineJoin="bevel";var h=n.getVisual("decal");h&&(d.decal=Rf(h,o));var p=ou(l.getModel("itemStyle"),f,!0);q(f,p),R(fn,function(y){var x=s.ensureState(y),S=l.getModel([y,"itemStyle"]);x.style=S.getItemStyle();var _=ou(S,f);_&&(x.shape=_)}),r?(s.setShape(f),s.shape.r=c.r0,Lt(s,{shape:{r:c.r}},i,n.dataIndex)):(at(s,{shape:f},i),ea(s)),s.useStyle(d),this._updateLabel(i);var v=l.getShallow("cursor");v&&s.attr("cursor",v),this._seriesModel=i||this._seriesModel,this._ecModel=a||this._ecModel;var g=u.get("focus"),m=g==="ancestor"?n.getAncestorsIndices():g==="descendant"?n.getDescendantIndices():g;jt(this,m,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r){var n=this,i=this.node.getModel(),a=i.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,d=f.getTextContent(),h=this.node.dataIndex,p=a.get("minAngle")/180*Math.PI,v=a.get("show")&&!(p!=null&&Math.abs(s)Math.PI/2?"right":"left"):!k||k==="center"?(s===2*Math.PI&&o.r0===0?T=0:T=(o.r+o.r0)/2,k="center"):k==="left"?(T=o.r0+M,l>Math.PI/2&&(k="right")):k==="right"&&(T=o.r-M,l>Math.PI/2&&(k="left")),S.style.align=k,S.style.verticalAlign=g(y,"verticalAlign")||"middle",S.x=T*u+o.cx,S.y=T*c+o.cy;var I=g(y,"rotate"),D=0;I==="radial"?(D=Hi(-l),D>Math.PI/2&&DMath.PI/2?D-=Math.PI:D<-Math.PI/2&&(D+=Math.PI)):it(I)&&(D=I*Math.PI/180),S.rotation=Hi(D)});function g(m,y){var x=m.get(y);return x??a.get(y)}d.dirtyStyle()},t}(Dn);const wB=xDe;var RA="sunburstRootToNode",CB="sunburstHighlight",SDe="sunburstUnhighlight";function bDe(e){e.registerAction({type:RA,update:"updateView"},function(t,r){r.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(i,a){var o=iv(t,[RA],i);if(o){var s=i.getViewRoot();s&&(t.direction=OI(s,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}}),e.registerAction({type:CB,update:"none"},function(t,r,n){t=q({},t),r.eachComponent({mainType:"series",subType:"sunburst",query:t},i);function i(a){var o=iv(t,[CB],a);o&&(t.dataIndex=o.node.dataIndex)}n.dispatchAction(q(t,{type:"highlight"}))}),e.registerAction({type:SDe,update:"updateView"},function(t,r,n){t=q({},t),n.dispatchAction(q(t,{type:"downplay"}))})}var _De=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i,a){var o=this;this.seriesModel=r,this.api=i,this.ecModel=n;var s=r.getData(),l=s.tree.root,u=r.getViewRoot(),c=this.group,f=r.get("renderLabelForZeroData"),d=[];u.eachNode(function(y){d.push(y)});var h=this._oldChildren||[];p(d,h),m(l,u),this._initEvents(),this._oldChildren=d;function p(y,x){if(y.length===0&&x.length===0)return;new To(x,y,S,S).add(_).update(_).remove(Ie(_,null)).execute();function S(b){return b.getId()}function _(b,w){var C=b==null?null:y[b],A=w==null?null:x[w];v(C,A)}}function v(y,x){if(!f&&y&&!y.getValue()&&(y=null),y!==l&&x!==l){if(x&&x.piece)y?(x.piece.updateData(!1,y,r,n,i),s.setItemGraphicEl(y.dataIndex,x.piece)):g(x);else if(y){var S=new wB(y,r,n,i);c.add(S),s.setItemGraphicEl(y.dataIndex,S)}}}function g(y){y&&y.piece&&(c.remove(y.piece),y.piece=null)}function m(y,x){x.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,y,r,n,i):(o.virtualPiece=new wB(y,r,n,i),c.add(o.virtualPiece)),x.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(x.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var r=this;this.group.off("click"),this.group.on("click",function(n){var i=!1,a=r.seriesModel.getViewRoot();a.eachNode(function(o){if(!i&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")r._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";T0(u,c)}}i=!0}})})},t.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:RA,from:this.uid,seriesId:this.seriesModel.id,targetNode:r})},t.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="sunburst",t}(Tt);const wDe=_De;var CDe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r,n){var i={name:r.name,children:r.data};ZU(i);var a=this._levelModels=Z(r.levels||[],function(l){return new wt(l,this,n)},this),o=EI.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=o.getNodeByDataIndex(c),d=a[f.depth];return d&&(u.parentModel=d),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treePathInfo=rS(i,this),n},t.prototype.getLevelModel=function(r){return this._levelModels&&this._levelModels[r.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){eU(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(zt);function ZU(e){var t=0;R(e.children,function(n){ZU(n);var i=n.value;Y(i)&&(i=i[0]),t+=i});var r=e.value;Y(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),Y(e.value)?e.value[0]=r:e.value=r}const TDe=CDe;var TB=Math.PI/180;function ADe(e,t,r){t.eachSeriesByType(e,function(n){var i=n.get("center"),a=n.get("radius");Y(a)||(a=[0,a]),Y(i)||(i=[i,i]);var o=r.getWidth(),s=r.getHeight(),l=Math.min(o,s),u=ne(i[0],o),c=ne(i[1],s),f=ne(a[0],l/2),d=ne(a[1],l/2),h=-n.get("startAngle")*TB,p=n.get("minAngle")*TB,v=n.getData().tree.root,g=n.getViewRoot(),m=g.depth,y=n.get("sort");y!=null&&KU(g,y);var x=0;R(g.children,function(z){!isNaN(z.getValue())&&x++});var S=g.getValue(),_=Math.PI/(S||x)*2,b=g.depth>0,w=g.height-(b?-1:1),C=(d-f)/(w||1),A=n.get("clockwise"),T=n.get("stillShowZeroSum"),M=A?1:-1,k=function(z,V){if(z){var N=V;if(z!==v){var F=z.getValue(),E=S===0&&T?_:F*_;E1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&oe(s)&&(s=wT(s,(n.depth-1)/(a-1)*.5)),s}e.eachSeriesByType("sunburst",function(n){var i=n.getData(),a=i.tree;a.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=r(o,n,a.root.height));var u=i.ensureUniqueItemVisual(o.dataIndex,"style");q(u,l)})})}function IDe(e){e.registerChartView(wDe),e.registerSeriesModel(TDe),e.registerLayout(Ie(ADe,"sunburst")),e.registerProcessor(Ie(Wv,"sunburst")),e.registerVisual(kDe),bDe(e)}var AB={color:"fill",borderColor:"stroke"},PDe={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},ho=et(),DDe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(r,n){return Ro(null,this)},t.prototype.getDataParams=function(r,n,i){var a=e.prototype.getDataParams.call(this,r,n);return i&&(a.info=ho(i).info),a},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(zt);const RDe=DDe;function LDe(e,t){return t=t||[0,0],Z(["x","y"],function(r,n){var i=this.getAxis(r),a=t[n],o=e[n]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function EDe(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:ce(LDe,e)}}}function ODe(e,t){return t=t||[0,0],Z([0,1],function(r){var n=t[r],i=e[r]/2,a=[],o=[];return a[r]=n-i,o[r]=n+i,a[1-r]=o[1-r]=t[1-r],Math.abs(this.dataToPoint(a)[r]-this.dataToPoint(o)[r])},this)}function NDe(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(r){return e.dataToPoint(r)},size:ce(ODe,e)}}}function zDe(e,t){var r=this.getAxis(),n=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return r.type==="category"?r.getBandWidth():Math.abs(r.dataToCoord(n-i)-r.dataToCoord(n+i))}function BDe(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:ce(zDe,e)}}}function $De(e,t){return t=t||[0,0],Z(["Radius","Angle"],function(r,n){var i="get"+r+"Axis",a=this[i](),o=t[n],s=e[n]/2,l=a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return r==="Angle"&&(l=l*Math.PI/180),l},this)}function FDe(e){var t=e.getRadiusAxis(),r=e.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:n[1],r0:n[0]},api:{coord:function(i){var a=t.dataToRadius(i[0]),o=r.dataToAngle(i[1]),s=e.coordToPoint([a,o]);return s.push(a,o*Math.PI/180),s},size:ce($De,e)}}}function VDe(e){var t=e.getRect(),r=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(n,i){return e.dataToPoint(n,i)}}}}function QU(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||fe(e,"text")))}function JU(e,t,r){var n=e,i,a,o;if(t==="text")o=n;else{o={},fe(n,"text")&&(o.text=n.text),fe(n,"rich")&&(o.rich=n.rich),fe(n,"textFill")&&(o.fill=n.textFill),fe(n,"textStroke")&&(o.stroke=n.textStroke),fe(n,"fontFamily")&&(o.fontFamily=n.fontFamily),fe(n,"fontSize")&&(o.fontSize=n.fontSize),fe(n,"fontStyle")&&(o.fontStyle=n.fontStyle),fe(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=fe(n,"textPosition");r?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),fe(n,"textPosition")&&(i.position=n.textPosition),fe(n,"textOffset")&&(i.offset=n.textOffset),fe(n,"textRotation")&&(i.rotation=n.textRotation),fe(n,"textDistance")&&(i.distance=n.textDistance)}return MB(o,e),R(o.rich,function(l){MB(l,l)}),{textConfig:i,textContent:a}}function MB(e,t){t&&(t.font=t.textFont||t.font,fe(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),fe(t,"textAlign")&&(e.align=t.textAlign),fe(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),fe(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),fe(t,"textWidth")&&(e.width=t.textWidth),fe(t,"textHeight")&&(e.height=t.textHeight),fe(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),fe(t,"textPadding")&&(e.padding=t.textPadding),fe(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),fe(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),fe(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),fe(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),fe(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),fe(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),fe(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function kB(e,t,r){var n=e;n.textPosition=n.textPosition||r.position||"inside",r.offset!=null&&(n.textOffset=r.offset),r.rotation!=null&&(n.textRotation=r.rotation),r.distance!=null&&(n.textDistance=r.distance);var i=n.textPosition.indexOf("inside")>=0,a=e.fill||"#000";IB(n,t);var o=n.textFill==null;return i?o&&(n.textFill=r.insideFill||"#fff",!n.textStroke&&r.insideStroke&&(n.textStroke=r.insideStroke),!n.textStroke&&(n.textStroke=a),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=e.fill||r.outsideFill||"#000"),!n.textStroke&&r.outsideStroke&&(n.textStroke=r.outsideStroke)),n.text=t.text,n.rich=t.rich,R(t.rich,function(s){IB(s,s)}),n}function IB(e,t){t&&(fe(t,"fill")&&(e.textFill=t.fill),fe(t,"stroke")&&(e.textStroke=t.fill),fe(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),fe(t,"font")&&(e.font=t.font),fe(t,"fontStyle")&&(e.fontStyle=t.fontStyle),fe(t,"fontWeight")&&(e.fontWeight=t.fontWeight),fe(t,"fontSize")&&(e.fontSize=t.fontSize),fe(t,"fontFamily")&&(e.fontFamily=t.fontFamily),fe(t,"align")&&(e.textAlign=t.align),fe(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),fe(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),fe(t,"width")&&(e.textWidth=t.width),fe(t,"height")&&(e.textHeight=t.height),fe(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),fe(t,"padding")&&(e.textPadding=t.padding),fe(t,"borderColor")&&(e.textBorderColor=t.borderColor),fe(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),fe(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),fe(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),fe(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),fe(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),fe(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),fe(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),fe(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),fe(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),fe(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var e7={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},PB=Ye(e7);Fa(Ga,function(e,t){return e[t]=1,e},{});Ga.join(", ");var q0=["","style","shape","extra"],zf=et();function KI(e,t,r,n,i){var a=e+"Animation",o=ed(e,n,i)||{},s=zf(t).userDuring;return o.duration>0&&(o.during=s?ce(UDe,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),q(o,r[a]),o}function dy(e,t,r,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=zf(e),u=t.style;l.userDuring=t.during;var c={},f={};if(YDe(e,t,f),RB("shape",t,f),RB("extra",t,f),!a&&s&&(qDe(e,t,c),DB("shape",e,t,c),DB("extra",e,t,c),XDe(e,t,u,c)),f.style=u,GDe(e,f,o),WDe(e,t),s)if(a){var d={};R(q0,function(p){var v=p?t[p]:t;v&&v.enterFrom&&(p&&(d[p]=d[p]||{}),q(p?d[p]:d,v.enterFrom))});var h=KI("enter",e,t,r,i);h.duration>0&&e.animateFrom(d,h)}else HDe(e,t,i||0,r,c);t7(e,t),u?e.dirty():e.markRedraw()}function t7(e,t){for(var r=zf(e).leaveToProps,n=0;n0&&e.animateFrom(i,a)}}function WDe(e,t){fe(t,"silent")&&(e.silent=t.silent),fe(t,"ignore")&&(e.ignore=t.ignore),e instanceof Ti&&fe(t,"invisible")&&(e.invisible=t.invisible),e instanceof je&&fe(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var ua={},jDe={setTransform:function(e,t){return ua.el[e]=t,this},getTransform:function(e){return ua.el[e]},setShape:function(e,t){var r=ua.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){var t=ua.el.shape;if(t)return t[e]},setStyle:function(e,t){var r=ua.el,n=r.style;return n&&(n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){var t=ua.el.style;if(t)return t[e]},setExtra:function(e,t){var r=ua.el.extra||(ua.el.extra={});return r[e]=t,this},getExtra:function(e){var t=ua.el.extra;if(t)return t[e]}};function UDe(){var e=this,t=e.el;if(t){var r=zf(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}ua.el=t,n(jDe)}}function DB(e,t,r,n){var i=r[e];if(i){var a=t[e],o;if(a){var s=r.transition,l=i.transition;if(l)if(!o&&(o=n[e]={}),xu(l))q(o,a);else for(var u=pt(l),c=0;c=0){!o&&(o=n[e]={});for(var h=Ye(a),c=0;c=0)){var d=e.getAnimationStyleProps(),h=d?d.style:null;if(h){!a&&(a=n.style={});for(var p=Ye(r),u=0;u=0?t.getStore().get(V,L):void 0}var N=t.get(z.name,L),F=z&&z.ordinalMeta;return F?F.categories[N]:N}function b(D,L){L==null&&(L=u);var z=t.getItemVisual(L,"style"),V=z&&z.fill,N=z&&z.opacity,F=y(L,hs).getItemStyle();V!=null&&(F.fill=V),N!=null&&(F.opacity=N);var E={inheritColor:oe(V)?V:"#000"},G=x(L,hs),j=_t(G,null,E,!1,!0);j.text=G.getShallow("show")?Ee(e.getFormattedLabel(L,hs),Ef(t,L)):null;var B=w0(G,E,!1);return A(D,F),F=kB(F,j,B),D&&C(F,D),F.legacy=!0,F}function w(D,L){L==null&&(L=u);var z=y(L,po).getItemStyle(),V=x(L,po),N=_t(V,null,null,!0,!0);N.text=V.getShallow("show")?Ea(e.getFormattedLabel(L,po),e.getFormattedLabel(L,hs),Ef(t,L)):null;var F=w0(V,null,!0);return A(D,z),z=kB(z,N,F),D&&C(z,D),z.legacy=!0,z}function C(D,L){for(var z in L)fe(L,z)&&(D[z]=L[z])}function A(D,L){D&&(D.textFill&&(L.textFill=D.textFill),D.textPosition&&(L.textPosition=D.textPosition))}function T(D,L){if(L==null&&(L=u),fe(AB,D)){var z=t.getItemVisual(L,"style");return z?z[AB[D]]:null}if(fe(PDe,D))return t.getItemVisual(L,D)}function M(D){if(a.type==="cartesian2d"){var L=a.getBaseAxis();return l_e(be({axis:L},D))}}function k(){return r.getCurrentSeriesIndices()}function I(D){return $W(D,r)}}function oRe(e){var t={};return R(e.dimensions,function(r){var n=e.getDimensionInfo(r);if(!n.isExtraCoord){var i=n.coordDim,a=t[i]=t[i]||[];a[n.coordDimIndex]=e.getDimensionIndex(r)}}),t}function mw(e,t,r,n,i,a,o){if(!n){a.remove(t);return}var s=rP(e,t,r,n,i,a);return s&&o.setItemGraphicEl(r,s),s&&jt(s,n.focus,n.blurScope,n.emphasisDisabled),s}function rP(e,t,r,n,i,a){var o=-1,s=t;t&&a7(t,n,i)&&(o=ze(a.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=eP(n),s&&tRe(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),ti.normal.cfg=ti.normal.conOpt=ti.emphasis.cfg=ti.emphasis.conOpt=ti.blur.cfg=ti.blur.conOpt=ti.select.cfg=ti.select.conOpt=null,ti.isLegacy=!1,lRe(u,r,n,i,l,ti),sRe(u,r,n,i,l),tP(e,u,r,n,ti,i,l),fe(n,"info")&&(ho(u).info=n.info);for(var c=0;c=0?a.replaceAt(u,o):a.add(u),u}function a7(e,t,r){var n=ho(e),i=t.type,a=t.shape,o=t.style;return r.isUniversalTransitionEnabled()||i!=null&&i!==n.customGraphicType||i==="path"&&hRe(a)&&o7(a)!==n.customPathData||i==="image"&&fe(o,"image")&&o.image!==n.customImagePath}function sRe(e,t,r,n,i){var a=r.clipPath;if(a===!1)e&&e.getClipPath()&&e.removeClipPath();else if(a){var o=e.getClipPath();o&&a7(o,a,n)&&(o=null),o||(o=eP(a),e.setClipPath(o)),tP(null,o,t,a,null,n,i)}}function lRe(e,t,r,n,i,a){if(!e.isGroup){EB(r,null,a),EB(r,po,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,u=a.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=e.getTextContent();if(o===!1)c&&e.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=eP(o),e.setTextContent(c)),tP(null,c,t,o,null,n,i);for(var f=o&&o.style,d=0;d=c;h--){var p=t.childAt(h);cRe(t,p,i)}}}function cRe(e,t,r){t&&aS(t,ho(e).option,r)}function fRe(e){new To(e.oldChildren,e.newChildren,OB,OB,e).add(NB).update(NB).remove(dRe).execute()}function OB(e,t){var r=e&&e.name;return r??JDe+t}function NB(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,i=t!=null?r.oldChildren[t]:null;rP(r.api,i,r.dataIndex,n,r.seriesModel,r.group)}function dRe(e){var t=this.context,r=t.oldChildren[e];r&&aS(r,ho(r).option,t.seriesModel)}function o7(e){return e&&(e.pathData||e.d)}function hRe(e){return e&&(fe(e,"pathData")||fe(e,"d"))}function pRe(e){e.registerChartView(nRe),e.registerSeriesModel(RDe)}var jl=et(),zB=Te,yw=ce,vRe=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,t,r,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new Me,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var d=Ie(BB,r,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,r)}FB(s,r,!0),this._renderHandle(a)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),i=t.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=MI(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,i,a){},e.prototype.createPointerEl=function(t,r,n,i){var a=r.pointer;if(a){var o=jl(t).pointerEl=new Ov[a.type](zB(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=jl(t).labelEl=new nt(zB(r.label));t.add(a),$B(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=jl(t).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,i){var a=jl(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),$B(a,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=Ev(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){bo(u.event)},onmousedown:yw(this._onHandleDragMove,this,0,0),drift:yw(this._onHandleDragMove,this),ondragend:yw(this._onHandleDragEnd,this)}),n.add(i)),FB(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");Y(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,ud(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){BB(this._axisPointerModel,!r&&this._moveAnimation,this._handle,xw(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(xw(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(xw(i)),jl(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Kp(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e}();function BB(e,t,r,n){s7(jl(r).lastProp,n)||(jl(r).lastProp=n,t?at(r,n,e):(r.stopAnimation(),r.attr(n)))}function s7(e,t){if(_e(e)&&_e(t)){var r=!0;return R(t,function(n,i){r=r&&s7(e[i],n)}),!!r}else return e===t}function $B(e,t){e[t.get(["label","show"])?"show":"hide"]()}function xw(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function FB(e,t,r){var n=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}const iP=vRe;function aP(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function l7(e,t,r,n,i){var a=r.get("value"),o=u7(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=id(s.get("padding")||0),u=s.getFont(),c=Iv(o,u),f=i.position,d=c.width+l[1]+l[3],h=c.height+l[0]+l[2],p=i.align;p==="right"&&(f[0]-=d),p==="center"&&(f[0]-=d/2);var v=i.verticalAlign;v==="bottom"&&(f[1]-=h),v==="middle"&&(f[1]-=h/2),gRe(f,d,h,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:_t(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function gRe(e,t,r,n){var i=n.getWidth(),a=n.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+r,a)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function u7(e,t,r,n,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:yI(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};R(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),oe(o)?a=o.replace("{value}",a):Se(o)&&(a=o(s))}return a}function oP(e,t,r){var n=Ci();return Wu(n,n,r.rotation),Va(n,n,r.position),Yi([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function c7(e,t,r,n,i,a){var o=Ao.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),l7(t,n,i,a,{position:oP(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function sP(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function f7(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function VB(e,t,r,n,i,a){return{cx:e,cy:t,r0:r,r:n,startAngle:i,endAngle:a,clockwise:!0}}var mRe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),c=GB(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var d=aP(a),h=yRe[u](s,f,c);h.style=d,r.graphicKey=h.type,r.pointer=h}var p=gA(l.model,i);c7(n,r,p,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=gA(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=oP(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=GB(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[r.x,r.y];f[c]+=n[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var d=(u[1]+u[0])/2,h=[d,d];h[c]=f[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:h,tooltipOption:p[c]}},t}(iP);function GB(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var yRe={line:function(e,t,r){var n=sP([t,r[0]],[t,r[1]],HB(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:f7([t-n/2,r[0]],[n,i],HB(e))}}};function HB(e){return e.dim==="x"?0:1}const xRe=mRe;var SRe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(tt);const bRe=SRe;var so=et(),_Re=R;function d7(e,t,r){if(!rt.node){var n=t.getZr();so(n).records||(so(n).records={}),wRe(n,t);var i=so(n).records[e]||(so(n).records[e]={});i.handler=r}}function wRe(e,t){if(so(e).initialized)return;so(e).initialized=!0,r("click",Ie(WB,"click")),r("mousemove",Ie(WB,"mousemove")),r("globalout",TRe);function r(n,i){e.on(n,function(a){var o=ARe(t);_Re(so(e).records,function(s){s&&i(s,a,o.dispatchAction)}),CRe(o.pendings,t)})}}function CRe(e,t){var r=e.showTip.length,n=e.hideTip.length,i;r?i=e.showTip[r-1]:n&&(i=e.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function TRe(e,t,r){e.handler("leave",null,r)}function WB(e,t,r,n){t.handler(e,r,n)}function ARe(e){var t={showTip:[],hideTip:[]},r=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function OA(e,t){if(!rt.node){var r=t.getZr(),n=(so(r).records||{})[e];n&&(so(r).records[e]=null)}}var MRe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";d7("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){OA("axisPointer",n)},t.prototype.dispose=function(r,n){OA("axisPointer",n)},t.type="axisPointer",t}(Ut);const kRe=MRe;function h7(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Iu(a,e);if(o==null||o<0||Y(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,h=f==="x"||f==="radius"?1:0,p=a.mapDimension(d),v=[];v[h]=a.get(p,o),v[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(v)||[]}else r=l.dataToPoint(a.getValues(Z(l.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var jB=et();function IRe(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||ce(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){hy(i)&&(i=h7({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=hy(i),u=a.axesInfo,c=s.axesInfo,f=n==="leave"||hy(i),d={},h={},p={list:[],map:{}},v={showPointer:Ie(DRe,h),showTooltip:Ie(RRe,p)};R(s.coordSysMap,function(m,y){var x=l||m.containPoint(i);R(s.coordSysAxesInfo[y],function(S,_){var b=S.axis,w=NRe(u,S);if(!f&&x&&(!u||w)){var C=w&&w.value;C==null&&!l&&(C=b.pointToData(i)),C!=null&&UB(S,C,v,!1,d)}})});var g={};return R(c,function(m,y){var x=m.linkGroup;x&&!h[y]&&R(x.axesInfo,function(S,_){var b=h[_];if(S!==m&&b){var w=b.value;x.mapper&&(w=m.axis.scale.parse(x.mapper(w,qB(S),qB(m)))),g[m.key]=w}})}),R(g,function(m,y){UB(c[y],m,v,!0,d)}),LRe(h,c,d),ERe(p,i,e,o),ORe(c,o,r),d}}function UB(e,t,r,n,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=PRe(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&q(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function PRe(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return R(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,d;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,e,r);d=h.dataIndices,f=h.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],e,r.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var p=e-f,v=Math.abs(p);v<=o&&((v=0&&s<0)&&(o=v,s=p,i=f,a.length=0),R(d,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function DRe(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function RRe(e,t,r,n){var i=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=nv(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function LRe(e,t,r){var n=r.axesInfo=[];R(t,function(i,a){var o=i.axisPointerModel.option,s=e[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function ERe(e,t,r,n){if(hy(t)||!e.list.length){n({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function ORe(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=jB(n)[i]||{},o=jB(n)[i]={};R(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&R(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];R(a,function(u,c){!o[c]&&l.push(u)}),R(o,function(u,c){!a[c]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function NRe(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function qB(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function hy(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Yv(e){Xu.registerAxisPointerClass("CartesianAxisPointer",xRe),e.registerComponentModel(bRe),e.registerComponentView(kRe),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!Y(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=wTe(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},IRe)}function zRe(e){Fe($8),Fe(Yv)}var BRe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),f=s.dataToCoord(n),d=a.get("type");if(d&&d!=="none"){var h=aP(a),p=FRe[d](s,l,f,c);p.style=h,r.graphicKey=p.type,r.pointer=p}var v=a.get(["label","margin"]),g=$Re(n,i,a,l,v);l7(r,i,a,o,g)},t}(iP);function $Re(e,t,r,n,i){var a=t.axis,o=a.dataToCoord(e),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,c,f;if(a.dim==="radius"){var d=Ci();Wu(d,d,s),Va(d,d,[n.cx,n.cy]),u=Yi([o,-i],d);var h=t.getModel("axisLabel").get("rotate")||0,p=Ao.innerTextLayout(s,h*Math.PI/180,-1);c=p.textAlign,f=p.textVerticalAlign}else{var v=l[1];u=n.coordToPoint([v+i,o]);var g=n.cx,m=n.cy;c=Math.abs(u[0]-g)/v<.3?"center":u[0]>g?"left":"right",f=Math.abs(u[1]-m)/v<.3?"middle":u[1]>m?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var FRe={line:function(e,t,r,n){return e.dim==="angle"?{type:"Line",shape:sP(t.coordToPoint([n[0],r]),t.coordToPoint([n[1],r]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r}}},shadow:function(e,t,r,n){var i=Math.max(1,e.getBandWidth()),a=Math.PI/180;return e.dim==="angle"?{type:"Sector",shape:VB(t.cx,t.cy,n[0],n[1],(-r-i/2)*a,(-r+i/2)*a)}:{type:"Sector",shape:VB(t.cx,t.cy,r-i/2,r+i/2,0,Math.PI*2)}}};const VRe=BRe;var GRe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.findAxisModel=function(r){var n,i=this.ecModel;return i.eachComponent(r,function(a){a.getCoordSysModel()===this&&(n=a)},this),n},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(tt);const HRe=GRe;var lP=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",sr).models[0]},t.type="polarAxis",t}(tt);ur(lP,Fv);var WRe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="angleAxis",t}(lP),jRe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="radiusAxis",t}(lP),uP=function(e){H(t,e);function t(r,n){return e.call(this,"radius",r,n)||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t}(ra);uP.prototype.dataToRadius=ra.prototype.dataToCoord;uP.prototype.radiusToData=ra.prototype.coordToData;const URe=uP;var qRe=et(),cP=function(e){H(t,e);function t(r,n){return e.call(this,"angle",r,n||[0,360])||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var r=this,n=r.getLabelModel(),i=r.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=a[0],l=r.dataToCoord(s+1)-r.dataToCoord(s),u=Math.abs(l),c=Iv(s==null?"":s+"",n.getFont(),"center","top"),f=Math.max(c.height,7),d=f/u;isNaN(d)&&(d=1/0);var h=Math.max(0,Math.floor(d)),p=qRe(r.model),v=p.lastAutoInterval,g=p.lastTickCount;return v!=null&&g!=null&&Math.abs(v-h)<=1&&Math.abs(g-o)<=1&&v>h?h=v:(p.lastTickCount=o,p.lastAutoInterval=h),h},t}(ra);cP.prototype.dataToAngle=ra.prototype.dataToCoord;cP.prototype.angleToData=ra.prototype.coordToData;const YRe=cP;var p7=["radius","angle"],XRe=function(){function e(t){this.dimensions=p7,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new URe,this._angleAxis=new YRe,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(t){var r=this.pointToCoord(t);return this._radiusAxis.contain(r[0])&&this._angleAxis.contain(r[1])},e.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},e.prototype.getAxis=function(t){var r="_"+t+"Axis";return this[r]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(t){var r=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&r.push(n),i.scale.type===t&&r.push(i),r},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(t){var r=this._angleAxis;return t===r?this._radiusAxis:r},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(t){var r=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[r],otherAxes:[this.getOtherAxis(r)]}},e.prototype.dataToPoint=function(t,r){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],r),this._angleAxis.dataToAngle(t[1],r)])},e.prototype.pointToData=function(t,r){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],r),this._angleAxis.angleToData(n[1],r)]},e.prototype.pointToCoord=function(t){var r=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),a=i.getExtent(),o=Math.min(a[0],a[1]),s=Math.max(a[0],a[1]);i.inverse?o=s-360:s=o+360;var l=Math.sqrt(r*r+n*n);r/=l,n/=l;for(var u=Math.atan2(-n,r)/Math.PI*180,c=us;)u+=c*360;return[l,u]},e.prototype.coordToPoint=function(t){var r=t[0],n=t[1]/180*Math.PI,i=Math.cos(n)*r+this.cx,a=-Math.sin(n)*r+this.cy;return[i,a]},e.prototype.getArea=function(){var t=this.getAngleAxis(),r=this.getRadiusAxis(),n=r.getExtent().slice();n[0]>n[1]&&n.reverse();var i=t.getExtent(),a=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*a,endAngle:-i[1]*a,clockwise:t.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,f=this.r,d=this.r0;return c<=f*f&&c>=d*d}}},e.prototype.convertToPixel=function(t,r,n){var i=YB(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=YB(r);return i===this?this.pointToData(n):null},e}();function YB(e){var t=e.seriesModel,r=e.polarModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}const ZRe=XRe;function KRe(e,t,r){var n=t.get("center"),i=r.getWidth(),a=r.getHeight();e.cx=ne(n[0],i),e.cy=ne(n[1],a);var o=e.getRadiusAxis(),s=Math.min(i,a)/2,l=t.get("radius");l==null?l=[0,"100%"]:Y(l)||(l=[0,l]);var u=[ne(l[0],s),ne(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function QRe(e,t){var r=this,n=r.getAngleAxis(),i=r.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),e.eachSeries(function(s){if(s.coordinateSystem===r){var l=s.getData();R(O0(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),R(O0(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),Lf(n.scale,n.model),Lf(i.scale,i.model),n.type==="category"&&!n.onBand){var a=n.getExtent(),o=360/n.scale.count();n.inverse?a[1]+=o:a[1]-=o,n.setExtent(a[0],a[1])}}function JRe(e){return e.mainType==="angleAxis"}function XB(e,t){if(e.type=t.get("type"),e.scale=Kx(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),JRe(t)){e.inverse=e.inverse!==t.get("clockwise");var r=t.get("startAngle");e.setExtent(r,r+(e.inverse?-360:360))}t.axis=e,e.model=t}var eLe={dimensions:p7,create:function(e,t){var r=[];return e.eachComponent("polar",function(n,i){var a=new ZRe(i+"");a.update=QRe;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");XB(o,l),XB(s,u),KRe(a,n,t),r.push(a),n.coordinateSystem=a,a.model=n}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var i=n.getReferringComponents("polar",sr).models[0];n.coordinateSystem=i.coordinateSystem}}),r}};const tLe=eLe;var rLe=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function bm(e,t,r){t[1]>t[0]&&(t=t.slice().reverse());var n=e.coordToPoint([t[0],r]),i=e.coordToPoint([t[1],r]);return{x1:n[0],y1:n[1],x2:i[0],y2:i[1]}}function _m(e){var t=e.getRadiusAxis();return t.inverse?0:1}function ZB(e){var t=e[0],r=e[e.length-1];t&&r&&Math.abs(Math.abs(t.coord-r.coord)-360)<1e-4&&e.pop()}var nLe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return t.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var i=r.axis,a=i.polar,o=a.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=Z(i.getViewLabels(),function(c){c=Te(c);var f=i.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(d),c});ZB(u),ZB(s),R(rLe,function(c){r.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&iLe[c](this.group,r,a,s,l,o,u)},this)}},t.type="angleAxis",t}(Xu),iLe={axisLine:function(e,t,r,n,i,a){var o=t.getModel(["axisLine","lineStyle"]),s=_m(r),l=s?0:1,u;a[l]===0?u=new ja({shape:{cx:r.cx,cy:r.cy,r:a[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new Lx({shape:{cx:r.cx,cy:r.cy,r:a[s],r0:a[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,e.add(u)},axisTick:function(e,t,r,n,i,a){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[_m(r)],u=Z(n,function(c){return new Tr({shape:bm(r,[l,l+s],c.coord)})});e.add(pi(u,{style:be(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,r,n,i,a){if(i.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[_m(r)],c=[],f=0;fm?"left":"right",S=Math.abs(g[1]-y)/v<.3?"middle":g[1]>y?"top":"bottom";if(s&&s[p]){var _=s[p];_e(_)&&_.textStyle&&(h=new wt(_.textStyle,l,l.ecModel))}var b=new nt({silent:Ao.isLabelSilent(t),style:_t(h,{x:g[0],y:g[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:x,verticalAlign:S})});if(e.add(b),c){var w=Ao.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=f.rawLabel,ke(b).eventData=w}},this)},splitLine:function(e,t,r,n,i,a){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f=0?"p":"n",I=w;_&&(n[c][M]||(n[c][M]={p:w,n:w}),I=n[c][M][k]);var D=void 0,L=void 0,z=void 0,V=void 0;if(p.dim==="radius"){var N=p.dataToCoord(T)-w,F=l.dataToCoord(M);Math.abs(N)=V})}}})}function hLe(e){var t={};R(e,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=g7(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/a.count(),f=t[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=f.stacks;t[l]=f;var h=v7(n);d[h]||f.autoWidthCount++,d[h]=d[h]||{width:0,maxWidth:0};var p=ne(n.get("barWidth"),c),v=ne(n.get("barMaxWidth"),c),g=n.get("barGap"),m=n.get("barCategoryGap");p&&!d[h].width&&(p=Math.min(f.remainedWidth,p),d[h].width=p,f.remainedWidth-=p),v&&(d[h].maxWidth=v),g!=null&&(f.gap=g),m!=null&&(f.categoryGap=m)});var r={};return R(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=ne(n.categoryGap,o),l=ne(n.gap,1),u=n.remainedWidth,c=n.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),R(a,function(v,g){var m=v.maxWidth;m&&m=r.y&&t[1]<=r.y+r.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=r.y&&t[0]<=r.y+r.height},e.prototype.pointToData=function(t){var r=this.getAxis();return[r.coordToData(r.toLocalCoord(t[r.orient==="horizontal"?0:1]))]},e.prototype.dataToPoint=function(t){var r=this.getAxis(),n=this.getRect(),i=[],a=r.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),i[a]=r.toGlobalCoord(r.dataToCoord(+t)),i[1-a]=a===0?n.y+n.height/2:n.x+n.width/2,i},e.prototype.convertToPixel=function(t,r,n){var i=KB(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=KB(r);return i===this?this.pointToData(n):null},e}();function KB(e){var t=e.seriesModel,r=e.singleAxisModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function ALe(e,t){var r=[];return e.eachComponent("singleAxis",function(n,i){var a=new TLe(n,e,t);a.name="single_"+i,a.resize(n,t),n.coordinateSystem=a,r.push(a)}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var i=n.getReferringComponents("singleAxis",sr).models[0];n.coordinateSystem=i&&i.coordinateSystem}}),r}var MLe={create:ALe,dimensions:y7};const kLe=MLe;var QB=["x","y"],ILe=["width","height"],PLe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.coordinateSystem,u=bw(l,1-Z0(s)),c=l.dataToPoint(n)[0],f=a.get("type");if(f&&f!=="none"){var d=aP(a),h=DLe[f](s,c,u);h.style=d,r.graphicKey=h.type,r.pointer=h}var p=NA(i);c7(n,r,p,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=NA(n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=oP(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.coordinateSystem,l=Z0(o),u=bw(s,l),c=[r.x,r.y];c[l]+=n[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var f=bw(s,1-l),d=(f[1]+f[0])/2,h=[d,d];return h[l]=c[l],{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(iP),DLe={line:function(e,t,r){var n=sP([t,r[0]],[t,r[1]],Z0(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=e.getBandWidth(),i=r[1]-r[0];return{type:"Rect",shape:f7([t-n/2,r[0]],[n,i],Z0(e))}}};function Z0(e){return e.isHorizontal()?0:1}function bw(e,t){var r=e.getRect();return[r[QB[t]],r[QB[t]]+r[ILe[t]]]}const RLe=PLe;var LLe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="single",t}(Ut);function ELe(e){Fe(Yv),Xu.registerAxisPointerClass("SingleAxisPointer",RLe),e.registerComponentView(LLe),e.registerComponentView(_Le),e.registerComponentModel(Sw),Of(e,"single",Sw,Sw.defaultOption),e.registerCoordinateSystem("single",kLe)}var OLe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n,i){var a=ad(r);e.prototype.init.apply(this,arguments),JB(r,a)},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),JB(this.option,r)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(tt);function JB(e,t){var r=e.cellSize,n;Y(r)?n=r:n=e.cellSize=[r,r],n.length===1&&(n[1]=n[0]);var i=Z([0,1],function(a){return F1e(t,a)&&(n[a]="auto"),n[a]!=null&&n[a]!=="auto"});Fs(e,t,{type:"box",ignoreSize:i})}const NLe=OLe;var zLe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=this.group;a.removeAll();var o=r.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(r,s,a),this._renderLines(r,s,l,a),this._renderYearText(r,s,l,a),this._renderMonthText(r,u,l,a),this._renderWeekText(r,u,s,l,a)},t.prototype._renderDayRect=function(r,n,i){for(var a=r.coordinateSystem,o=r.getModel("itemStyle").getItemStyle(),s=a.getCellWidth(),l=a.getCellHeight(),u=n.start.time;u<=n.end.time;u=a.getNextNDay(u,1).time){var c=a.dataToRect([u],!1).tl,f=new Je({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});i.add(f)}},t.prototype._renderLines=function(r,n,i,a){var o=this,s=r.coordinateSystem,l=r.getModel(["splitLine","lineStyle"]).getLineStyle(),u=r.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=n.start,d=0;f.time<=n.end.time;d++){p(f.formatedDate),d===0&&(f=s.getDateInfo(n.start.y+"-"+n.start.m));var h=f.date;h.setMonth(h.getMonth()+1),f=s.getDateInfo(h)}p(s.getNextNDay(n.end.time,1).formatedDate);function p(v){o._firstDayOfMonth.push(s.getDateInfo(v)),o._firstDayPoints.push(s.dataToRect([v],!1).tl);var g=o._getLinePointsOfOneWeek(r,v,i);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,a)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,i),l,a),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,i),l,a)},t.prototype._getEdgesPoints=function(r,n,i){var a=[r[0].slice(),r[r.length-1].slice()],o=i==="horizontal"?0:1;return a[0][o]=a[0][o]-n/2,a[1][o]=a[1][o]+n/2,a},t.prototype._drawSplitline=function(r,n,i){var a=new En({z2:20,shape:{points:r},style:n});i.add(a)},t.prototype._getLinePointsOfOneWeek=function(r,n,i){for(var a=r.coordinateSystem,o=a.getDateInfo(n),s=[],l=0;l<7;l++){var u=a.getNextNDay(o.time,l),c=a.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[i==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(r,n){return oe(r)&&r?z1e(r,n):Se(r)?r(n):n.nameMap},t.prototype._yearTextPositionControl=function(r,n,i,a,o){var s=n[0],l=n[1],u=["center","bottom"];a==="bottom"?(l+=o,u=["center","top"]):a==="left"?s-=o:a==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(a==="left"||a==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(r,n,i,a){var o=r.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=i!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,d=i==="horizontal"?0:1,h={top:[c,u[d][1]],bottom:[c,u[1-d][1]],left:[u[1-d][0],f],right:[u[d][0],f]},p=n.start.y;+n.end.y>+n.start.y&&(p=p+"-"+n.end.y);var v=o.get("formatter"),g={start:n.start.y,end:n.end.y,nameMap:p},m=this._formatterLabel(v,g),y=new nt({z2:30,style:_t(o,{text:m})});y.attr(this._yearTextPositionControl(y,h[l],i,l,s)),a.add(y)}},t.prototype._monthTextPositionControl=function(r,n,i,a,o){var s="left",l="top",u=r[0],c=r[1];return i==="horizontal"?(c=c+o,n&&(s="center"),a==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),a==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(r,n,i,a){var o=r.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),f=[this._tlpoints,this._blpoints];(!s||oe(s))&&(s&&(n=jT(s)||n),s=n.get(["time","monthAbbr"])||[]);var d=u==="start"?0:1,h=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=c==="center",v=0;v=i.start.time&&n.times.end.time&&r.reverse(),r},e.prototype._getRangeInfo=function(t){var r=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],n;r[0].time>r[1].time&&(n=!0,r.reverse());var i=Math.floor(r[1].time/_w)-Math.floor(r[0].time/_w)+1,a=new Date(r[0].time),o=a.getDate(),s=r[1].date.getDate();a.setDate(o+i-1);var l=a.getDate();if(l!==s)for(var u=a.getTime()-r[1].time>0?1:-1;(l=a.getDate())!==s&&(a.getTime()-r[1].time)*u>0;)i-=u,a.setDate(l-u);var c=Math.floor((i+r[0].day+6)/7),f=n?-c+1:c-1;return n&&r.reverse(),{range:[r[0].formatedDate,r[1].formatedDate],start:r[0],end:r[1],allDay:i,weeks:c,nthWeek:f,fweek:r[0].day,lweek:r[1].day}},e.prototype._getDateByWeeksAndDay=function(t,r,n){var i=this._getRangeInfo(n);if(t>i.weeks||t===0&&ri.lweek)return null;var a=(t-1)*7-i.fweek+r,o=new Date(i.start.time);return o.setDate(+i.start.d+a),this.getDateInfo(o)},e.create=function(t,r){var n=[];return t.eachComponent("calendar",function(i){var a=new e(i);n.push(a),i.coordinateSystem=a}),t.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=n[i.get("calendarIndex")||0])}),n},e.dimensions=["time","value"],e}();function e$(e){var t=e.calendarModel,r=e.seriesModel,n=t?t.coordinateSystem:r?r.coordinateSystem:null;return n}const FLe=$Le;function VLe(e){e.registerComponentModel(NLe),e.registerComponentView(BLe),e.registerCoordinateSystem("calendar",FLe)}function GLe(e,t){var r=e.existing;if(t.id=e.keyInfo.id,!t.type&&r&&(t.type=r.type),t.parentId==null){var n=t.parentOption;n?t.parentId=n.id:r&&(t.parentId=r.parentId)}t.parentOption=null}function t$(e,t){var r;return R(t,function(n){e[n]!=null&&e[n]!=="auto"&&(r=!0)}),r}function HLe(e,t,r){var n=q({},r),i=e[t],a=r.$action||"merge";a==="merge"?i?(Oe(i,n,!0),Fs(i,n,{ignoreSize:!0}),ij(r,i),wm(r,i),wm(r,i,"shape"),wm(r,i,"style"),wm(r,i,"extra"),r.clipPath=i.clipPath):e[t]=n:a==="replace"?e[t]=n:a==="remove"&&i&&(e[t]=null)}var x7=["transition","enterFrom","leaveTo"],WLe=x7.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function wm(e,t,r){if(r&&(!e[r]&&t[r]&&(e[r]={}),e=e[r],t=t[r]),!(!e||!t))for(var n=r?x7:WLe,i=0;i=0;c--){var f=i[c],d=hr(f.id,null),h=d!=null?o.get(d):null;if(h){var p=h.parent,m=oi(p),y=p===a?{width:s,height:l}:{width:m.width,height:m.height},x={},S=Hx(h,f,y,null,{hv:f.hv,boundingMode:f.bounding},x);if(!oi(h).isNew&&S){for(var _=f.transition,b={},w=0;w=0)?b[C]=A:h[C]=A}at(h,b,r,0)}else h.attr(x)}}},t.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(i){py(i,oi(i).option,n,r._lastGraphicModel)}),this._elMap=ge()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Ut);function zA(e){var t=fe(r$,e)?r$[e]:Gk(e),r=new t({});return oi(r).type=e,r}function n$(e,t,r,n){var i=zA(r);return t.add(i),n.set(e,i),oi(i).id=e,oi(i).isNew=!0,i}function py(e,t,r,n){var i=e&&e.parent;i&&(e.type==="group"&&e.traverse(function(a){py(a,t,r,n)}),aS(e,t,n),r.removeKey(oi(e).id))}function i$(e,t,r,n){e.isGroup||R([["cursor",Ti.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(i){var a=i[0];fe(t,a)?e[a]=Ee(t[a],i[1]):e[a]==null&&(e[a]=i[1])}),R(Ye(t),function(i){if(i.indexOf("on")===0){var a=t[i];e[i]=Se(a)?a:null}}),fe(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function YLe(e){return e=q({},e),R(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(nj),function(t){delete e[t]}),e}function XLe(e,t,r){var n=ke(e).eventData;!e.silent&&!e.ignore&&!n&&(n=ke(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=r.info)}function ZLe(e){e.registerComponentModel(ULe),e.registerComponentView(qLe),e.registerPreprocessor(function(t){var r=t.graphic;Y(r)?!r[0]||!r[0].elements?t.graphic=[{elements:r}]:t.graphic=[t.graphic[0]]:r&&!r.elements&&(t.graphic=[{elements:[r]}])})}var a$=["x","y","radius","angle","single"],KLe=["cartesian2d","polar","singleAxis"];function QLe(e){var t=e.get("coordinateSystem");return ze(KLe,t)>=0}function ps(e){return e+"Axis"}function JLe(e,t){var r=ge(),n=[],i=ge();e.eachComponent({mainType:"dataZoom",query:t},function(c){i.get(c.uid)||s(c)});var a;do a=!1,e.eachComponent("dataZoom",o);while(a);function o(c){!i.get(c.uid)&&l(c)&&(s(c),a=!0)}function s(c){i.set(c.uid,!0),n.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(d,h){var p=r.get(d);p&&p[h]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,d){(r.get(f)||r.set(f,[]))[d]=!0})}return n}function S7(e){var t=e.ecModel,r={infoList:[],infoMap:ge()};return e.eachTargetAxis(function(n,i){var a=t.getComponent(ps(n),i);if(a){var o=a.getCoordSysModel();if(o){var s=o.uid,l=r.infoMap.get(s);l||(l={model:o,axisModels:[]},r.infoList.push(l),r.infoMap.set(s,l)),l.axisModels.push(a)}}}),r}var ww=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},e}(),eEe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return t.prototype.init=function(r,n,i){var a=o$(r);this.settledOption=a,this.mergeDefaultAndTheme(r,i),this._doInit(a)},t.prototype.mergeOption=function(r){var n=o$(r);Oe(this.option,r,!0),Oe(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(r){var n=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var i=this.settledOption;R([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(n[a[0]]=i[a[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var r=this.get("orient",!0),n=this._targetAxisInfoMap=ge(),i=this._fillSpecifiedTargetAxis(n);i?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(r){var n=!1;return R(a$,function(i){var a=this.getReferringComponents(ps(i),gye);if(a.specified){n=!0;var o=new ww;R(a.models,function(s){o.add(s.componentIndex)}),r.set(i,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(r,n){var i=this.ecModel,a=!0;if(a){var o=n==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=i.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===n}});l(s,"single")}function l(u,c){var f=u[0];if(f){var d=new ww;if(d.add(f.componentIndex),r.set(c,d),a=!1,c==="x"||c==="y"){var h=f.getReferringComponents("grid",sr).models[0];h&&R(u,function(p){f.componentIndex!==p.componentIndex&&h===p.getReferringComponents("grid",sr).models[0]&&d.add(p.componentIndex)})}}}a&&R(a$,function(u){if(a){var c=i.findComponents({mainType:ps(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new ww;f.add(c[0].componentIndex),r.set(u,f),a=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(n){!r&&(r=n)},this),r==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(r){var n=this._rangePropMode,i=this.get("rangeMode");R([["start","startValue"],["end","endValue"]],function(a,o){var s=r[a[0]]!=null,l=r[a[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":i?n[o]=i[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(n,i){r==null&&(r=this.ecModel.getComponent(ps(n),i))},this),r},t.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(i,a){R(i.indexList,function(o){r.call(n,a,o)})})},t.prototype.getAxisProxy=function(r,n){var i=this.getAxisModel(r,n);if(i)return i.__dzAxisProxy},t.prototype.getAxisModel=function(r,n){var i=this._targetAxisInfoMap.get(r);if(i&&i.indexMap[n])return this.ecModel.getComponent(ps(r),n)},t.prototype.setRawRange=function(r){var n=this.option,i=this.settledOption;R([["start","startValue"],["end","endValue"]],function(a){(r[a[0]]!=null||r[a[1]]!=null)&&(n[a[0]]=i[a[0]]=r[a[0]],n[a[1]]=i[a[1]]=r[a[1]])},this),this._updateRangeUse(r)},t.prototype.setCalculatedRange=function(r){var n=this.option;R(["start","startValue","end","endValue"],function(i){n[i]=r[i]})},t.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},t.prototype.getValueRange=function(r,n){if(r==null&&n==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(r,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(r){if(r)return r.__dzAxisProxy;for(var n,i=this._targetAxisInfoMap.keys(),a=0;ao[1];if(x&&!S&&!_)return!0;x&&(g=!0),S&&(p=!0),_&&(v=!0)}return g&&p&&v})}else Rc(c,function(h){if(a==="empty")l.setData(u=u.map(h,function(v){return s(v)?v:NaN}));else{var p={};p[h]=o,u.selectRange(p)}});Rc(c,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},r=this._dataZoomModel,n=this._dataExtent;Rc(["min","max"],function(i){var a=r.get(i+"Span"),o=r.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=ft(n[0]+o,n,[0,100],!0):a!=null&&(o=ft(a,[0,100],n,!0)-n[0]),t[i+"Span"]=a,t[i+"ValueSpan"]=o},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),r=this._percentWindow,n=this._valueWindow;if(r){var i=DH(n,[0,500]);i=Math.min(i,20);var a=t.axis.scale.rawExtentInfo;r[0]!==0&&a.setDeterminedMinMax("min",+n[0].toFixed(i)),r[1]!==100&&a.setDeterminedMinMax("max",+n[1].toFixed(i)),a.freeze()}},e}();function sEe(e,t,r){var n=[1/0,-1/0];Rc(r,function(o){D_e(n,o.getData(),t)});var i=e.getAxisModel(),a=z9(i.axis.scale,i,n).calculate();return[a.min,a.max]}const lEe=oEe;var uEe={getTargetSeries:function(e){function t(i){e.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=e.getComponent(ps(o),s);i(o,s,l,a)})})}t(function(i,a,o,s){o.__dzAxisProxy=null});var r=[];t(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new lEe(i,a,s,e),r.push(o.__dzAxisProxy))});var n=ge();return R(r,function(i){R(i.getTargetSeriesModels(),function(a){n.set(a.uid,a)})}),n},overallReset:function(e,t){e.eachComponent("dataZoom",function(r){r.eachTargetAxis(function(n,i){r.getAxisProxy(n,i).reset(r)}),r.eachTargetAxis(function(n,i){r.getAxisProxy(n,i).filterData(r,t)})}),e.eachComponent("dataZoom",function(r){var n=r.findRepresentativeAxisProxy();if(n){var i=n.getDataPercentWindow(),a=n.getDataValueWindow();r.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};const cEe=uEe;function fEe(e){e.registerAction("dataZoom",function(t,r){var n=JLe(r,t);R(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var l$=!1;function dP(e){l$||(l$=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,cEe),fEe(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function dEe(e){e.registerComponentModel(rEe),e.registerComponentView(aEe),dP(e)}var hi=function(){function e(){}return e}(),b7={};function Lc(e,t){b7[e]=t}function _7(e){return b7[e]}var hEe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var r=this.ecModel;R(this.option.feature,function(n,i){var a=_7(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(r)),Oe(n,a.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(tt);const pEe=hEe;function vEe(e,t,r){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:r.getWidth(),height:r.getHeight()},o=pr(n,a,i);gu(t.get("orient"),e,t.get("itemGap"),o.width,o.height),Hx(e,n,a,i)}function w7(e,t){var r=id(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new Je({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),e}var gEe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i,a){var o=this.group;if(o.removeAll(),!r.get("show"))return;var s=+r.get("itemSize"),l=r.get("orient")==="vertical",u=r.get("feature")||{},c=this._features||(this._features={}),f=[];R(u,function(p,v){f.push(v)}),new To(this._featureNames||[],f).add(d).update(d).remove(Ie(d,null)).execute(),this._featureNames=f;function d(p,v){var g=f[p],m=f[v],y=u[g],x=new wt(y,r,r.ecModel),S;if(a&&a.newTitle!=null&&a.featureName===g&&(y.title=a.newTitle),g&&!m){if(mEe(g))S={onclick:x.option.onclick,featureName:g};else{var _=_7(g);if(!_)return;S=new _}c[g]=S}else if(S=c[m],!S)return;S.uid=nd("toolbox-feature"),S.model=x,S.ecModel=n,S.api=i;var b=S instanceof hi;if(!g&&m){b&&S.dispose&&S.dispose(n,i);return}if(!x.get("show")||b&&S.unusable){b&&S.remove&&S.remove(n,i);return}h(x,S,g),x.setIconStatus=function(w,C){var A=this.option,T=this.iconPaths;A.iconStatus=A.iconStatus||{},A.iconStatus[w]=C,T[w]&&(C==="emphasis"?wo:Co)(T[w])},S instanceof hi&&S.render&&S.render(x,n,i,a)}function h(p,v,g){var m=p.getModel("iconStyle"),y=p.getModel(["emphasis","iconStyle"]),x=v instanceof hi&&v.getIcons?v.getIcons():p.get("icon"),S=p.get("title")||{},_,b;oe(x)?(_={},_[g]=x):_=x,oe(S)?(b={},b[g]=S):b=S;var w=p.iconPaths={};R(_,function(C,A){var T=Ev(C,{},{x:-s/2,y:-s/2,width:s,height:s});T.setStyle(m.getItemStyle());var M=T.ensureState("emphasis");M.style=y.getItemStyle();var k=new nt({style:{text:b[A],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null},ignore:!0});T.setTextContent(k),td({el:T,componentModel:r,itemName:A,formatterParamsExtra:{title:b[A]}}),T.__title=b[A],T.on("mouseover",function(){var I=y.getItemStyle(),D=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";k.setStyle({fill:y.get("textFill")||I.fill||I.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),T.setTextConfig({position:y.get("textPosition")||D}),k.ignore=!r.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",A])!=="emphasis"&&i.leaveEmphasis(this),k.hide()}),(p.get(["iconStatus",A])==="emphasis"?wo:Co)(T),o.add(T),T.on("click",ce(v.onclick,v,n,i,A)),w[A]=T})}vEe(o,r,i),o.add(w7(o.getBoundingRect(),r)),l||o.eachChild(function(p){var v=p.__title,g=p.ensureState("emphasis"),m=g.textConfig||(g.textConfig={}),y=p.getTextContent(),x=y&&y.ensureState("emphasis");if(x&&!Se(x)&&v){var S=x.style||(x.style={}),_=Iv(v,nt.makeFont(S)),b=p.x+o.x,w=p.y+o.y+s,C=!1;w+_.height>i.getHeight()&&(m.position="top",C=!0);var A=C?-5-_.height:s+10;b+_.width/2>i.getWidth()?(m.position=["100%",A],S.align="right"):b-_.width/2<0&&(m.position=[0,A],S.align="left")}})},t.prototype.updateView=function(r,n,i,a){R(this._features,function(o){o instanceof hi&&o.updateView&&o.updateView(o.model,n,i,a)})},t.prototype.remove=function(r,n){R(this._features,function(i){i instanceof hi&&i.remove&&i.remove(r,n)}),this.group.removeAll()},t.prototype.dispose=function(r,n){R(this._features,function(i){i instanceof hi&&i.dispose&&i.dispose(r,n)})},t.type="toolbox",t}(Ut);function mEe(e){return e.indexOf("my")===0}const yEe=gEe;var xEe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){var i=this.model,a=i.get("name")||r.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||r.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=rt.browser;if(Se(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=a+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var d=l.split(","),h=d[0].indexOf("base64")>-1,p=o?decodeURIComponent(d[1]):d[1];h&&(p=window.atob(p));var v=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=p.length,m=new Uint8Array(g);g--;)m[g]=p.charCodeAt(g);var y=new Blob([m]);window.navigator.msSaveOrOpenBlob(y,v)}else{var x=document.createElement("iframe");document.body.appendChild(x);var S=x.contentWindow,_=S.document;_.open("image/svg+xml","replace"),_.write(p),_.close(),S.focus(),_.execCommand("SaveAs",!0,v),document.body.removeChild(x)}}else{var b=i.get("lang"),w='',C=window.open();C.document.write(w),C.document.title=a}},t.getDefaultOption=function(r){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:r.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:r.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(hi);const SEe=xEe;var u$="__ec_magicType_stack__",bEe=[["line","bar"],["stack"]],_Ee=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var r=this.model,n=r.get("icon"),i={};return R(r.get("type"),function(a){n[a]&&(i[a]=n[a])}),i},t.getDefaultOption=function(r){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:r.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(r,n,i){var a=this.model,o=a.get(["seriesIndex",i]);if(c$[i]){var s={series:[]},l=function(f){var d=f.subType,h=f.id,p=c$[i](d,h,f,a);p&&(be(p,f.option),s.series.push(p));var v=f.coordinateSystem;if(v&&v.type==="cartesian2d"&&(i==="line"||i==="bar")){var g=v.getAxesByScale("ordinal")[0];if(g){var m=g.dim,y=m+"Axis",x=f.getReferringComponents(y,sr).models[0],S=x.componentIndex;s[y]=s[y]||[];for(var _=0;_<=S;_++)s[y][S]=s[y][S]||{};s[y][S].boundaryGap=i==="bar"}}};R(bEe,function(f){ze(f,i)>=0&&R(f,function(d){a.setIconStatus(d,"normal")})}),a.setIconStatus(i,"emphasis"),r.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=i;i==="stack"&&(u=Oe({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(c="tiled")),n.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t}(hi),c$={line:function(e,t,r,n){if(e==="bar")return Oe({id:t,type:"line",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(e,t,r,n){if(e==="line")return Oe({id:t,type:"bar",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(e,t,r,n){var i=r.get("stack")===u$;if(e==="line"||e==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),Oe({id:t,stack:i?"":u$},n.get(["option","stack"])||{},!0)}};Xa({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});const wEe=_Ee;var oS=new Array(60).join("-"),Bf=" ";function CEe(e){var t={},r=[],n=[];return e.eachRawSeries(function(i){var a=i.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(i)}else r.push(i)}else r.push(i)}),{seriesGroupByCategoryAxis:t,other:r,meta:n}}function TEe(e){var t=[];return R(e,function(r,n){var i=r.categoryAxis,a=r.valueAxis,o=a.dim,s=[" "].concat(Z(r.series,function(h){return h.name})),l=[i.model.getCategories()];R(r.series,function(h){var p=h.getRawData();l.push(h.getRawData().mapArray(p.mapDimension(o),function(v){return v}))});for(var u=[s.join(Bf)],c=0;c=0)return!0}var zA=new RegExp("["+Bf+"]+","g");function kEe(e){for(var t=e.split(/\n+/g),r=K0(t.shift()).split(zA),n=[],i=Z(r,function(l){return{name:l,data:[]}}),a=0;a=0;a--){var o=r[a];if(o[i])break}if(a<0){var s=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();r[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),r.push(t)}function OEe(e){var t=cP(e),r=t[t.length-1];t.length>1&&t.pop();var n={};return w7(r,function(i,a){for(var o=t.length-1;o>=0;o--)if(i=t[o][a],i){n[a]=i;break}}),n}function NEe(e){C7(e).snapshots=null}function zEe(e){return cP(e).length}function cP(e){var t=C7(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var BEe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){NEe(r),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(r){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:r.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(hi);Xa({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});const $Ee=BEe;var FEe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],VEe=function(){function e(t,r,n){var i=this;this._targetInfoList=[];var a=s$(r,t);R(GEe,function(o,s){(!n||!n.include||ze(n.include,s)>=0)&&o(a,i._targetInfoList)})}return e.prototype.setOutputRanges=function(t,r){return this.matchOutputRanges(t,r,function(n,i,a){if((n.coordRanges||(n.coordRanges=[])).push(i),!n.coordRange){n.coordRange=i;var o=ww[n.brushType](0,a,i);n.__rangeOffset={offset:f$[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,r,n){R(t,function(i){var a=this.findTargetInfo(i,r);a&&a!==!0&&R(a.coordSyses,function(o){var s=ww[i.brushType](1,o,i.range,!0);n(i,s.values,o,r)})},this)},e.prototype.setInputRanges=function(t,r){R(t,function(n){var i=this.findTargetInfo(n,r);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=ww[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?f$[n.brushType](a.values,o.offset,HEe(a.xyMinMax,o.xyMinMax)):a.values}},this)},e.prototype.makePanelOpts=function(t,r){return Z(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:r?r(n):null,clipPath:DU(i),isTargetByCursor:LU(i,t,n.coordSysModel),getLinearBrushOtherExtent:RU(i)}})},e.prototype.controlSeries=function(t,r,n){var i=this.findTargetInfo(t,n);return i===!0||i&&ze(i.coordSyses,r.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,r){for(var n=this._targetInfoList,i=s$(r,t),a=0;ae[1]&&e.reverse(),e}function s$(e,t){return Xh(e,t,{includeMainTypes:FEe})}var GEe={grid:function(e,t){var r=e.xAxisModels,n=e.yAxisModels,i=e.gridModels,a=ge(),o={},s={};!r&&!n&&!i||(R(r,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),R(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),R(i,function(l){a.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),a.each(function(l){var u=l.coordinateSystem,c=[];R(u.getCartesians(),function(f,d){(ze(r,f.getAxis("x").model)>=0||ze(n,f.getAxis("y").model)>=0)&&c.push(f)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:u$.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){R(e.geoModels,function(r){var n=r.coordinateSystem;t.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:u$.geo})})}},l$=[function(e,t){var r=e.xAxisModel,n=e.yAxisModel,i=e.gridModel;return!i&&r&&(i=r.axis.grid.model),!i&&n&&(i=n.axis.grid.model),i&&i===t.gridModel},function(e,t){var r=e.geoModel;return r&&r===t.geoModel}],u$={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(hu(e)),t}},ww={lineX:Ie(c$,0),lineY:Ie(c$,1),rect:function(e,t,r,n){var i=e?t.pointToData([r[0][0],r[1][0]],n):t.dataToPoint([r[0][0],r[1][0]],n),a=e?t.pointToData([r[0][1],r[1][1]],n):t.dataToPoint([r[0][1],r[1][1]],n),o=[BA([i[0],a[0]]),BA([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,r,n){var i=[[1/0,-1/0],[1/0,-1/0]],a=Z(r,function(o){var s=e?t.pointToData(o,n):t.dataToPoint(o,n);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:a,xyMinMax:i}}};function c$(e,t,r,n){var i=r.getAxis(["x","y"][e]),a=BA(Z([0,1],function(s){return t?i.coordToData(i.toLocalCoord(n[s]),!0):i.toGlobalCoord(i.dataToCoord(n[s]))})),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var f$={lineX:Ie(d$,0),lineY:Ie(d$,1),rect:function(e,t,r){return[[e[0][0]-r[0]*t[0][0],e[0][1]-r[0]*t[0][1]],[e[1][0]-r[1]*t[1][0],e[1][1]-r[1]*t[1][1]]]},polygon:function(e,t,r){return Z(e,function(n,i){return[n[0]-r[0]*t[i][0],n[1]-r[1]*t[i][1]]})}};function d$(e,t,r,n){return[t[0]-n[e]*r[0],t[1]-n[e]*r[1]]}function HEe(e,t){var r=h$(e),n=h$(t),i=[r[0]/n[0],r[1]/n[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function h$(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}const fP=VEe;var $A=R,WEe=cye("toolbox-dataZoom_"),jEe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i,a){this._brushController||(this._brushController=new jI(i.getZr()),this._brushController.on("brush",ce(this._onBrush,this)).mount()),YEe(r,n,this,a,i),qEe(r,n)},t.prototype.onclick=function(r,n,i){UEe[i].call(this)},t.prototype.remove=function(r,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(r,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(r){var n=r.areas;if(!r.isEnd||!n.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new fP(dP(this.model),a,{include:["grid"]});o.matchOutputRanges(n,a,function(u,c,f){if(f.type==="cartesian2d"){var d=u.brushType;d==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[d],f,c)}}),EEe(a,i),this._dispatchZoomAction(i);function s(u,c,f){var d=c.getAxis(u),h=d.model,p=l(u,h,a),v=p.findRepresentativeAxisProxy(h).getMinMaxSpan();(v.minValueSpan!=null||v.maxValueSpan!=null)&&(f=Xu(0,f.slice(),d.scale.getExtent(),0,v.minValueSpan,v.maxValueSpan)),p&&(i[p.id]={dataZoomId:p.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var d;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var p=h.getAxisModel(u,c.componentIndex);p&&(d=h)}),d}},t.prototype._dispatchZoomAction=function(r){var n=[];$A(r,function(i,a){n.push(Te(i))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(r){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:r.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(hi),UEe={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(OEe(this.ecModel))}};function dP(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function qEe(e,t){e.setIconStatus("back",zEe(t)>1?"emphasis":"normal")}function YEe(e,t,r,n,i){var a=r._isZoomActive;n&&n.type==="takeGlobalCursor"&&(a=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),r._isZoomActive=a,e.setIconStatus("zoom",a?"emphasis":"normal");var o=new fP(dP(e),t,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});r._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()}:!1)}j1e("dataZoom",function(e){var t=e.getComponent("toolbox",0),r=["feature","dataZoom"];if(!t||t.get(r)==null)return;var n=t.getModel(r),i=[],a=dP(n),o=Xh(e,a);$A(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),$A(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,d={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:WEe+u+f};d[c]=f,i.push(d)}return i});const XEe=jEe;function ZEe(e){e.registerComponentModel(hEe),e.registerComponentView(mEe),Lc("saveAsImage",xEe),Lc("magicType",_Ee),Lc("dataView",LEe),Lc("dataZoom",XEe),Lc("restore",$Ee),Fe(fEe)}var KEe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(et);const QEe=KEe;function T7(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function A7(e){if(tt.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+i,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),h=Math.round(((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-f)/2)*100)/100;s+=";"+a+":-"+h+"px";var p=t+" solid "+i+"px;",v=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+n+";"];return'
'}function aOe(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,i="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,i+=tt.transformSupported?","+hP+n:",left"+n+",top"+n),tOe+":"+i}function p$(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!tt.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=tt.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+hP+":"+o+";":[["top",0],["left",0],[M7,o]]}function oOe(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont()),r&&t.push("line-height:"+Math.round(r*3/2)+"px");var i=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),R(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function sOe(e,t,r){var n=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),f=Nj(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+d),t&&i&&n.push(aOe(i,r)),a&&n.push("background-color:"+a),R(["width","color","radius"],function(h){var p="border-"+h,v=ej(p),g=e.get(v);g!=null&&n.push(p+":"+g+(h==="color"?"":"px"))}),n.push(oOe(c)),f!=null&&n.push("padding:"+id(f).join("px ")+"px"),n.join(";")+";"}function v$(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&Oge(e,o,document.body,n,i)}else{e[0]=n,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var lOe=function(){function e(t,r,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,tt.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=r.getZr(),o=this._appendToBody=n&&n.appendToBody;v$(this._styleCoord,a,o,r.getWidth()/2,r.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,c=a.painter.getViewportRoot();ni(c,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){var r=this._container,n=eOe(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative");var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=rOe+sOe(t,!this._firstShow,this._longHide)+p$(a[0],a[1],!0)+("border-color:"+Pu(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(oe(a)&&n.get("trigger")==="item"&&!T7(n)&&(s=iOe(n,i,a)),oe(t))o.innerHTML=t+s;else if(t){o.innerHTML="",Y(t)||(t=[t]);for(var l=0;l=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||tt.node||!i.getDom())){var o=y$(a,i);this._ticket="";var s=a.dataByCoordSys,l=mOe(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var c=dOe;c.x=a.x,c.y=a.y,c.update(),ke(c).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:c},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var f=d7(a,n),d=f.point[0],h=f.point[1];d!=null&&h!=null&&this._tryShow({offsetX:d,offsetY:h,target:f.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(y$(a,i))},t.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var c=u.getData(),f=Qd([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){this._lastDataByCoordSys=null;var s,l;tu(i,function(u){if(ke(u).dataIndex!=null)return s=u,!0;if(ke(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)}},t.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=ce(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Qd([n.tooltipOption],a),l=this._renderMode,u=[],c=Sr("section",{blocks:[],noHeader:!0}),f=[],d=new l_;R(r,function(y){R(y.dataByAxis,function(x){var S=i.getComponent(x.axisDim+"Axis",x.axisIndex),_=x.value;if(!(!S||_==null)){var b=l7(_,S.axis,i,x.seriesDataIndices,x.valueLabelOpt),w=Sr("section",{header:b,noHeader:!Gi(b),sortBlocks:!0,blocks:[]});c.blocks.push(w),R(x.seriesDataIndices,function(C){var A=i.getSeriesByIndex(C.seriesIndex),T=C.dataIndexInside,M=A.getDataParams(T);if(!(M.dataIndex<0)){M.axisDim=x.axisDim,M.axisIndex=x.axisIndex,M.axisType=x.axisType,M.axisId=x.axisId,M.axisValue=vI(S.axis,{value:_}),M.axisValueLabel=b,M.marker=d.makeTooltipMarker("item",Pu(M.color),l);var k=iN(A.formatTooltip(T,!0,null)),I=k.frag;if(I){var P=Qd([A],a).get("valueFormatter");w.blocks.push(P?q({valueFormatter:P},I):I)}k.text&&f.push(k.text),u.push(M)}})}})}),c.blocks.reverse(),f.reverse();var h=n.position,p=s.get("order"),v=cN(c,d,l,p,i.get("useUTC"),s.get("textStyle"));v&&f.unshift(v);var g=l==="richText"?` +`),meta:t.meta}}function K0(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function kEe(e){var t=e.slice(0,e.indexOf(` +`));if(t.indexOf(Bf)>=0)return!0}var BA=new RegExp("["+Bf+"]+","g");function IEe(e){for(var t=e.split(/\n+/g),r=K0(t.shift()).split(BA),n=[],i=Z(r,function(l){return{name:l,data:[]}}),a=0;a=0;a--){var o=r[a];if(o[i])break}if(a<0){var s=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();r[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),r.push(t)}function NEe(e){var t=hP(e),r=t[t.length-1];t.length>1&&t.pop();var n={};return C7(r,function(i,a){for(var o=t.length-1;o>=0;o--)if(i=t[o][a],i){n[a]=i;break}}),n}function zEe(e){T7(e).snapshots=null}function BEe(e){return hP(e).length}function hP(e){var t=T7(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var $Ee=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){zEe(r),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(r){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:r.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(hi);Xa({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});const FEe=$Ee;var VEe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],GEe=function(){function e(t,r,n){var i=this;this._targetInfoList=[];var a=f$(r,t);R(HEe,function(o,s){(!n||!n.include||ze(n.include,s)>=0)&&o(a,i._targetInfoList)})}return e.prototype.setOutputRanges=function(t,r){return this.matchOutputRanges(t,r,function(n,i,a){if((n.coordRanges||(n.coordRanges=[])).push(i),!n.coordRange){n.coordRange=i;var o=Cw[n.brushType](0,a,i);n.__rangeOffset={offset:v$[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,r,n){R(t,function(i){var a=this.findTargetInfo(i,r);a&&a!==!0&&R(a.coordSyses,function(o){var s=Cw[i.brushType](1,o,i.range,!0);n(i,s.values,o,r)})},this)},e.prototype.setInputRanges=function(t,r){R(t,function(n){var i=this.findTargetInfo(n,r);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=Cw[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?v$[n.brushType](a.values,o.offset,WEe(a.xyMinMax,o.xyMinMax)):a.values}},this)},e.prototype.makePanelOpts=function(t,r){return Z(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:r?r(n):null,clipPath:RU(i),isTargetByCursor:EU(i,t,n.coordSysModel),getLinearBrushOtherExtent:LU(i)}})},e.prototype.controlSeries=function(t,r,n){var i=this.findTargetInfo(t,n);return i===!0||i&&ze(i.coordSyses,r.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,r){for(var n=this._targetInfoList,i=f$(r,t),a=0;ae[1]&&e.reverse(),e}function f$(e,t){return Xh(e,t,{includeMainTypes:VEe})}var HEe={grid:function(e,t){var r=e.xAxisModels,n=e.yAxisModels,i=e.gridModels,a=ge(),o={},s={};!r&&!n&&!i||(R(r,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),R(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),R(i,function(l){a.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),a.each(function(l){var u=l.coordinateSystem,c=[];R(u.getCartesians(),function(f,d){(ze(r,f.getAxis("x").model)>=0||ze(n,f.getAxis("y").model)>=0)&&c.push(f)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:h$.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){R(e.geoModels,function(r){var n=r.coordinateSystem;t.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:h$.geo})})}},d$=[function(e,t){var r=e.xAxisModel,n=e.yAxisModel,i=e.gridModel;return!i&&r&&(i=r.axis.grid.model),!i&&n&&(i=n.axis.grid.model),i&&i===t.gridModel},function(e,t){var r=e.geoModel;return r&&r===t.geoModel}],h$={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(vu(e)),t}},Cw={lineX:Ie(p$,0),lineY:Ie(p$,1),rect:function(e,t,r,n){var i=e?t.pointToData([r[0][0],r[1][0]],n):t.dataToPoint([r[0][0],r[1][0]],n),a=e?t.pointToData([r[0][1],r[1][1]],n):t.dataToPoint([r[0][1],r[1][1]],n),o=[$A([i[0],a[0]]),$A([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,r,n){var i=[[1/0,-1/0],[1/0,-1/0]],a=Z(r,function(o){var s=e?t.pointToData(o,n):t.dataToPoint(o,n);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:a,xyMinMax:i}}};function p$(e,t,r,n){var i=r.getAxis(["x","y"][e]),a=$A(Z([0,1],function(s){return t?i.coordToData(i.toLocalCoord(n[s]),!0):i.toGlobalCoord(i.dataToCoord(n[s]))})),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var v$={lineX:Ie(g$,0),lineY:Ie(g$,1),rect:function(e,t,r){return[[e[0][0]-r[0]*t[0][0],e[0][1]-r[0]*t[0][1]],[e[1][0]-r[1]*t[1][0],e[1][1]-r[1]*t[1][1]]]},polygon:function(e,t,r){return Z(e,function(n,i){return[n[0]-r[0]*t[i][0],n[1]-r[1]*t[i][1]]})}};function g$(e,t,r,n){return[t[0]-n[e]*r[0],t[1]-n[e]*r[1]]}function WEe(e,t){var r=m$(e),n=m$(t),i=[r[0]/n[0],r[1]/n[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function m$(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}const pP=GEe;var FA=R,jEe=fye("toolbox-dataZoom_"),UEe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i,a){this._brushController||(this._brushController=new YI(i.getZr()),this._brushController.on("brush",ce(this._onBrush,this)).mount()),XEe(r,n,this,a,i),YEe(r,n)},t.prototype.onclick=function(r,n,i){qEe[i].call(this)},t.prototype.remove=function(r,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(r,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(r){var n=r.areas;if(!r.isEnd||!n.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new pP(vP(this.model),a,{include:["grid"]});o.matchOutputRanges(n,a,function(u,c,f){if(f.type==="cartesian2d"){var d=u.brushType;d==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[d],f,c)}}),OEe(a,i),this._dispatchZoomAction(i);function s(u,c,f){var d=c.getAxis(u),h=d.model,p=l(u,h,a),v=p.findRepresentativeAxisProxy(h).getMinMaxSpan();(v.minValueSpan!=null||v.maxValueSpan!=null)&&(f=Zu(0,f.slice(),d.scale.getExtent(),0,v.minValueSpan,v.maxValueSpan)),p&&(i[p.id]={dataZoomId:p.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var d;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var p=h.getAxisModel(u,c.componentIndex);p&&(d=h)}),d}},t.prototype._dispatchZoomAction=function(r){var n=[];FA(r,function(i,a){n.push(Te(i))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(r){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:r.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(hi),qEe={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(NEe(this.ecModel))}};function vP(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function YEe(e,t){e.setIconStatus("back",BEe(t)>1?"emphasis":"normal")}function XEe(e,t,r,n,i){var a=r._isZoomActive;n&&n.type==="takeGlobalCursor"&&(a=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),r._isZoomActive=a,e.setIconStatus("zoom",a?"emphasis":"normal");var o=new pP(vP(e),t,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});r._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()}:!1)}U1e("dataZoom",function(e){var t=e.getComponent("toolbox",0),r=["feature","dataZoom"];if(!t||t.get(r)==null)return;var n=t.getModel(r),i=[],a=vP(n),o=Xh(e,a);FA(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),FA(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,d={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:jEe+u+f};d[c]=f,i.push(d)}return i});const ZEe=UEe;function KEe(e){e.registerComponentModel(pEe),e.registerComponentView(yEe),Lc("saveAsImage",SEe),Lc("magicType",wEe),Lc("dataView",EEe),Lc("dataZoom",ZEe),Lc("restore",FEe),Fe(dEe)}var QEe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(tt);const JEe=QEe;function A7(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function M7(e){if(rt.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+i,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),h=Math.round(((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-f)/2)*100)/100;s+=";"+a+":-"+h+"px";var p=t+" solid "+i+"px;",v=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+n+";"];return'
'}function oOe(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,i="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,i+=rt.transformSupported?","+gP+n:",left"+n+",top"+n),rOe+":"+i}function y$(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!rt.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=rt.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+gP+":"+o+";":[["top",0],["left",0],[k7,o]]}function sOe(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont()),r&&t.push("line-height:"+Math.round(r*3/2)+"px");var i=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),R(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function lOe(e,t,r){var n=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),f=zj(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+d),t&&i&&n.push(oOe(i,r)),a&&n.push("background-color:"+a),R(["width","color","radius"],function(h){var p="border-"+h,v=tj(p),g=e.get(v);g!=null&&n.push(p+":"+g+(h==="color"?"":"px"))}),n.push(sOe(c)),f!=null&&n.push("padding:"+id(f).join("px ")+"px"),n.join(";")+";"}function x$(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&Nge(e,o,document.body,n,i)}else{e[0]=n,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var uOe=function(){function e(t,r,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,rt.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=r.getZr(),o=this._appendToBody=n&&n.appendToBody;x$(this._styleCoord,a,o,r.getWidth()/2,r.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,c=a.painter.getViewportRoot();ni(c,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){var r=this._container,n=tOe(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative");var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=nOe+lOe(t,!this._firstShow,this._longHide)+y$(a[0],a[1],!0)+("border-color:"+Ru(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(oe(a)&&n.get("trigger")==="item"&&!A7(n)&&(s=aOe(n,i,a)),oe(t))o.innerHTML=t+s;else if(t){o.innerHTML="",Y(t)||(t=[t]);for(var l=0;l=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||rt.node||!i.getDom())){var o=_$(a,i);this._ticket="";var s=a.dataByCoordSys,l=yOe(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var c=hOe;c.x=a.x,c.y=a.y,c.update(),ke(c).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:c},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var f=h7(a,n),d=f.point[0],h=f.point[1];d!=null&&h!=null&&this._tryShow({offsetX:d,offsetY:h,target:f.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(_$(a,i))},t.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var c=u.getData(),f=Qd([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){this._lastDataByCoordSys=null;var s,l;nu(i,function(u){if(ke(u).dataIndex!=null)return s=u,!0;if(ke(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)}},t.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=ce(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Qd([n.tooltipOption],a),l=this._renderMode,u=[],c=Sr("section",{blocks:[],noHeader:!0}),f=[],d=new u_;R(r,function(y){R(y.dataByAxis,function(x){var S=i.getComponent(x.axisDim+"Axis",x.axisIndex),_=x.value;if(!(!S||_==null)){var b=u7(_,S.axis,i,x.seriesDataIndices,x.valueLabelOpt),w=Sr("section",{header:b,noHeader:!Gi(b),sortBlocks:!0,blocks:[]});c.blocks.push(w),R(x.seriesDataIndices,function(C){var A=i.getSeriesByIndex(C.seriesIndex),T=C.dataIndexInside,M=A.getDataParams(T);if(!(M.dataIndex<0)){M.axisDim=x.axisDim,M.axisIndex=x.axisIndex,M.axisType=x.axisType,M.axisId=x.axisId,M.axisValue=yI(S.axis,{value:_}),M.axisValueLabel=b,M.marker=d.makeTooltipMarker("item",Ru(M.color),l);var k=lN(A.formatTooltip(T,!0,null)),I=k.frag;if(I){var D=Qd([A],a).get("valueFormatter");w.blocks.push(D?q({valueFormatter:D},I):I)}k.text&&f.push(k.text),u.push(M)}})}})}),c.blocks.reverse(),f.reverse();var h=n.position,p=s.get("order"),v=pN(c,d,l,p,i.get("useUTC"),s.get("textStyle"));v&&f.unshift(v);var g=l==="richText"?` -`:"
",m=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],h,null,d)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=ke(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,d=u.getData(f),h=this._renderMode,p=r.positionDefault,v=Qd([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=v.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(c,f),y=new l_;m.marker=y.makeTooltipMarker("item",Pu(m.color),h);var x=iN(u.formatTooltip(c,!1,f)),S=v.get("order"),_=v.get("valueFormatter"),b=x.frag,w=b?cN(_?q({valueFormatter:_},b):b,y,h,S,a.get("useUTC"),v.get("textStyle")):x.text,C="item_"+u.name+"_"+c;this._showOrMove(v,function(){this._showTooltipContent(v,w,m,C,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=ke(n),o=a.tooltipConfig,s=o.option||{};if(oe(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(a.componentMainType,a.componentIndex);c&&u.push(c),u.push({formatter:s.content});var f=r.positionDefault,d=Qd(u,this._tooltipModel,f?{position:f}:null),h=d.get("content"),p=Math.random()+"",v=new l_;this._showOrMove(d,function(){var g=Te(d.get("formatterParams")||{});this._showTooltipContent(d,h,g,p,r.offsetX,r.offsetY,r.position,n,v)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var f=this._tooltipContent;f.setEnterable(r.get("enterable"));var d=r.get("formatter");l=l||r.get("position");var h=n,p=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),v=p.color;if(d)if(oe(d)){var g=r.ecModel.get("useUTC"),m=Y(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=d,y&&(h=zx(m.axisValue,h,g)),h=tj(h,i,!0)}else if(Se(d)){var x=ce(function(S,_){S===this._ticket&&(f.setContent(_,c,r,v,l),this._updatePosition(r,l,o,s,f,i,u))},this);this._ticket=a,h=d(i,a,x)}else h=d;f.setContent(h,c,r,v,l),f.show(r,v),this._updatePosition(r,l,o,s,f,i,u)}},t.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||Y(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!Y(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||r.get("position");var f=o.getSize(),d=r.get("align"),h=r.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),Se(n)&&(n=n([i,a],s,o.el,p,{viewSize:[u,c],contentSize:f.slice()})),Y(n))i=ne(n[0],u),a=ne(n[1],c);else if(_e(n)){var v=n;v.width=f[0],v.height=f[1];var g=pr(v,{width:u,height:c});i=g.x,a=g.y,d=null,h=null}else if(oe(n)&&l){var m=gOe(n,p,f,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=pOe(i,a,o,u,c,d?null:20,h?null:20);i=m[0],a=m[1]}if(d&&(i-=x$(d)?f[0]/2:d==="right"?f[0]:0),h&&(a-=x$(h)?f[1]/2:h==="bottom"?f[1]:0),T7(r)){var m=vOe(i,a,o,u,c);i=m[0],a=m[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&R(i,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&R(u,function(d,h){var p=f[h]||{},v=d.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&d.value===p.value&&d.axisType===p.axisType&&d.axisId===p.axisId&&v.length===g.length,o&&R(v,function(m,y){var x=g[y];o=o&&m.seriesIndex===x.seriesIndex&&m.dataIndex===x.dataIndex}),a&&R(d.seriesDataIndices,function(m){var y=m.seriesIndex,x=n[y],S=a[y];x&&S&&S.data!==x.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){tt.node||!n.getDom()||(Kp(this,"_updatePosition"),this._tooltipContent.dispose(),EA("itemTooltip",n))},t.type="tooltip",t}(Ut);function Qd(e,t,r){var n=t.ecModel,i;r?(i=new wt(r,n,n),i=new wt(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof wt&&(o=o.get("tooltip",!0)),oe(o)&&(o={formatter:o}),o&&(i=new wt(o,i,n)))}return i}function y$(e,t){return e.dispatchAction||ce(t.dispatchAction,t)}function pOe(e,t,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(e+l+a+2>n?e-=l+a:e+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[e,t]}function vOe(e,t,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function gOe(e,t,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+c/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+o;break;case"left":s=t.x-i-o,l=t.y+c/2-a/2;break;case"right":s=t.x+u+o,l=t.y+c/2-a/2}return[s,l]}function x$(e){return e==="center"||e==="middle"}function mOe(e,t,r){var n=Ak(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=Pv(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=ke(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const yOe=hOe;function xOe(e){Fe(Yv),e.registerComponentModel(QEe),e.registerComponentView(yOe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},rr),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},rr)}var SOe=["rect","polygon","keep","clear"];function bOe(e,t){var r=pt(e?e.brush:[]);if(r.length){var n=[];R(r,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var i=e&&e.toolbox;Y(i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var a=i.feature||(i.feature={}),o=a.brush||(a.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),_Oe(s),t&&!s.length&&s.push.apply(s,SOe)}}function _Oe(e){var t={};R(e,function(r){t[r]=1}),e.length=0,R(t,function(r,n){e.push(n)})}var S$=R;function b$(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function FA(e,t,r){var n={};return S$(t,function(a){var o=n[a]=i();S$(e[a],function(s,l){if(Or.isValidType(l)){var u={type:l,visual:s};r&&r(u,a),o[l]=new Or(u),l==="opacity"&&(u=Te(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Or(u))}})}),n;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function I7(e,t,r){var n;R(r,function(i){t.hasOwnProperty(i)&&b$(t[i])&&(n=!0)}),n&&R(r,function(i){t.hasOwnProperty(i)&&b$(t[i])?e[i]=Te(t[i]):delete e[i]})}function wOe(e,t,r,n,i,a){var o={};R(e,function(f){var d=Or.prepareVisualTypes(t[f]);o[f]=d});var s;function l(f){return nI(r,s,f)}function u(f,d){Uj(r,s,f,d)}a==null?r.each(c):r.each([a],c);function c(f,d){s=a==null?f:d;var h=r.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var p=n.call(i,f),v=t[p],g=o[p],m=0,y=g.length;mt[0][1]&&(t[0][1]=a[0]),a[1]t[1][1]&&(t[1][1]=a[1])}return t&&A$(t)}};function A$(e){return new Ne(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var DOe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.ecModel=r,this.api=n,this.model,(this._brushController=new jI(n.getZr())).on("brush",ce(this._onBrush,this)).mount()},t.prototype.render=function(r,n,i,a){this.model=r,this._updateController(r,n,i,a)},t.prototype.updateTransform=function(r,n,i,a){P7(n),this._updateController(r,n,i,a)},t.prototype.updateVisual=function(r,n,i,a){this.updateTransform(r,n,i,a)},t.prototype.updateView=function(r,n,i,a){this._updateController(r,n,i,a)},t.prototype._updateController=function(r,n,i,a){(!a||a.$from!==r.id)&&this._brushController.setPanels(r.brushTargetManager.makePanelOpts(i)).enableBrush(r.brushOption).updateCovers(r.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(r){var n=this.model.id,i=this.model.brushTargetManager.setOutputRanges(r.areas,this.ecModel);(!r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:Te(i),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:Te(i),$from:n})},t.type="brush",t}(Ut);const ROe=DOe;var LOe="#ddd",EOe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.areas=[],r.brushOption={},r}return t.prototype.optionUpdated=function(r,n){var i=this.option;!n&&I7(i,r,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:LOe},a.hasOwnProperty("liftZ")||(a.liftZ=5)},t.prototype.setAreas=function(r){r&&(this.areas=Z(r,function(n){return M$(this.option,n)},this))},t.prototype.setBrushOption=function(r){this.brushOption=M$(this.option,r),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(et);function M$(e,t){return Oe({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new wt(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}const OOe=EOe;var NOe=["rect","polygon","lineX","lineY","keep","clear"],zOe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i){var a,o,s;n.eachComponent({mainType:"brush"},function(l){a=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=a,this._brushMode=o,R(r.get("type",!0),function(l){r.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===a)?"emphasis":"normal")})},t.prototype.updateView=function(r,n,i){this.render(r,n,i)},t.prototype.getIcons=function(){var r=this.model,n=r.get("icon",!0),i={};return R(r.get("type",!0),function(a){n[a]&&(i[a]=n[a])}),i},t.prototype.onclick=function(r,n,i){var a=this._brushType,o=this._brushMode;i==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?a:a===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(r){var n={show:!0,type:NOe.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:r.getLocaleModel().get(["toolbox","brush","title"])};return n},t}(hi);const BOe=zOe;function $Oe(e){e.registerComponentView(ROe),e.registerComponentModel(OOe),e.registerPreprocessor(bOe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,AOe),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,r){r.eachComponent({mainType:"brush",query:t},function(n){n.setAreas(t.areas)})}),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},rr),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},rr),Lc("brush",BOe)}var FOe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(et),VOe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=Ee(r.get("textBaseline"),r.get("textVerticalAlign")),c=new rt({style:_t(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=r.get("subtext"),h=new rt({style:_t(s,{text:d,fill:s.getTextColor(),y:f.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=r.get("link"),v=r.get("sublink"),g=r.get("triggerEvent",!0);c.silent=!p&&!g,h.silent=!v&&!g,p&&c.on("click",function(){T0(p,"_"+r.get("target"))}),v&&h.on("click",function(){T0(v,"_"+r.get("subtarget"))}),ke(c).eventData=ke(h).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(c),d&&a.add(h);var m=a.getBoundingRect(),y=r.getBoxLayoutParams();y.width=m.width,y.height=m.height;var x=pr(y,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?x.x+=x.width:l==="center"&&(x.x+=x.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?x.y+=x.height:u==="middle"&&(x.y+=x.height/2),u=u||"top"),a.x=x.x,a.y=x.y,a.markRedraw();var S={align:l,verticalAlign:u};c.setStyle(S),h.setStyle(S),m=a.getBoundingRect();var _=x.margin,b=r.getItemStyle(["color","opacity"]);b.fill=r.get("backgroundColor");var w=new Qe({shape:{x:m.x-_[3],y:m.y-_[0],width:m.width+_[1]+_[3],height:m.height+_[0]+_[2],r:r.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});a.add(w)}},t.type="title",t}(Ut);function GOe(e){e.registerComponentModel(FOe),e.registerComponentView(VOe)}var HOe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode="box",r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),this._initData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(r){r==null&&(r=this.option.currentIndex);var n=this._data.count();this.option.loop?r=(r%n+n)%n:(r>=n&&(r=n-1),r<0&&(r=0)),this.option.currentIndex=r},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(r){this.option.autoPlay=!!r},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var r=this.option,n=r.data||[],i=r.axisType,a=this._names=[],o;i==="category"?(o=[],R(n,function(u,c){var f=hr(Qf(u),""),d;_e(u)?(d=Te(u),d.value=c):d=c,o.push(d),a.push(f)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new un([{name:"value",type:s}],this);l.initData(o,a)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(et);const k$=HOe;var D7=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline.slider",t.defaultOption=Qs(k$.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(k$);ur(D7,Qk.prototype);const WOe=D7;var jOe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline",t}(Ut);const UOe=jOe;var qOe=function(e){H(t,e);function t(r,n,i,a){var o=e.call(this,r,n,i)||this;return o.type=a||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(ra);const YOe=qOe;var Tw=Math.PI,I$=Je(),XOe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.api=n},t.prototype.render=function(r,n,i){if(this.model=r,this.api=i,this.ecModel=n,this.group.removeAll(),r.get("show",!0)){var a=this._layout(r,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(a,r);r.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return Sr("nameValue",{noName:!0,value:c})},R(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](a,o,l,r)},this),this._renderAxisLabel(a,s,l,r),this._position(a,r)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(r,n){var i=r.get(["label","position"]),a=r.get("orient"),o=KOe(r,n),s;i==null||i==="auto"?s=a==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:Tw/2},f=a==="vertical"?o.height:o.width,d=r.getModel("controlStyle"),h=d.get("show",!0),p=h?d.get("itemSize"):0,v=h?d.get("itemGap"):0,g=p+v,m=r.get(["label","rotate"])||0;m=m*Tw/180;var y,x,S,_=d.get("position",!0),b=h&&d.get("showPlayBtn",!0),w=h&&d.get("showPrevBtn",!0),C=h&&d.get("showNextBtn",!0),A=0,T=f;_==="left"||_==="bottom"?(b&&(y=[0,0],A+=g),w&&(x=[A,0],A+=g),C&&(S=[T-p,0],T-=g)):(b&&(y=[T-p,0],T-=g),w&&(x=[0,0],A+=g),C&&(S=[T-p,0],T-=g));var M=[A,T];return r.get("inverse")&&M.reverse(),{viewRect:o,mainLength:f,orient:a,rotation:c[a],labelRotation:m,labelPosOpt:s,labelAlign:r.get(["label","align"])||l[a],labelBaseline:r.get(["label","verticalAlign"])||r.get(["label","baseline"])||u[a],playPosition:y,prevBtnPosition:x,nextBtnPosition:S,axisExtent:M,controlSize:p,controlGap:v}},t.prototype._position=function(r,n){var i=this._mainGroup,a=this._labelGroup,o=r.viewRect;if(r.orient==="vertical"){var s=Ci(),l=o.x,u=o.y+o.height;Va(s,s,[-l,-u]),Hu(s,s,-Tw/2),Va(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=y(o),f=y(i.getBoundingRect()),d=y(a.getBoundingRect()),h=[i.x,i.y],p=[a.x,a.y];p[0]=h[0]=c[0][0];var v=r.labelPosOpt;if(v==null||oe(v)){var g=v==="+"?0:1;x(h,f,c,1,g),x(p,d,c,1,1-g)}else{var g=v>=0?0:1;x(h,f,c,1,g),p[1]=h[1]+v}i.setPosition(h),a.setPosition(p),i.rotation=a.rotation=r.rotation,m(i),m(a);function m(S){S.originX=c[0][0]-S.x,S.originY=c[1][0]-S.y}function y(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function x(S,_,b,w,C){S[w]+=b[w][C]-_[w][C]}},t.prototype._createAxis=function(r,n){var i=n.getData(),a=n.get("axisType"),o=ZOe(n,a);o.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new YOe("value",o,r.axisExtent,a);return l.model=n,l},t.prototype._createGroup=function(r){var n=this[r]=new Me;return this.group.add(n),n},t.prototype._renderAxisLine=function(r,n,i,a){var o=i.getExtent();if(a.get(["lineStyle","show"])){var s=new Tr({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:q({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new Tr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:be({lineCap:"round",lineWidth:s.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},t.prototype._renderAxisTick=function(r,n,i,a){var o=this,s=a.getData(),l=i.scale.getTicks();this._tickSymbols=[],R(l,function(u){var c=i.dataToCoord(u.value),f=s.getItemModel(u.value),d=f.getModel("itemStyle"),h=f.getModel(["emphasis","itemStyle"]),p=f.getModel(["progress","itemStyle"]),v={x:c,y:0,onclick:ce(o._changeTimeline,o,u.value)},g=P$(f,d,n,v);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),du(g);var m=ke(g);f.get("tooltip")?(m.dataIndex=u.value,m.dataModel=a):m.dataIndex=m.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(r,n,i,a){var o=this,s=i.getLabelModel();if(s.get("show")){var l=a.getData(),u=i.getViewLabels();this._tickLabels=[],R(u,function(c){var f=c.tickValue,d=l.getItemModel(f),h=d.getModel("label"),p=d.getModel(["emphasis","label"]),v=d.getModel(["progress","label"]),g=i.dataToCoord(c.tickValue),m=new rt({x:g,y:0,rotation:r.labelRotation-r.rotation,onclick:ce(o._changeTimeline,o,f),silent:!1,style:_t(h,{text:c.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});m.ensureState("emphasis").style=_t(p),m.ensureState("progress").style=_t(v),n.add(m),du(m),I$(m).dataIndex=f,o._tickLabels.push(m)})}},t.prototype._renderControl=function(r,n,i,a){var o=r.controlSize,s=r.rotation,l=a.getModel("controlStyle").getItemStyle(),u=a.getModel(["emphasis","controlStyle"]).getItemStyle(),c=a.getPlayState(),f=a.get("inverse",!0);d(r.nextBtnPosition,"next",ce(this._changeTimeline,this,f?"-":"+")),d(r.prevBtnPosition,"prev",ce(this._changeTimeline,this,f?"+":"-")),d(r.playPosition,c?"stop":"play",ce(this._handlePlayClick,this,!c),!0);function d(h,p,v,g){if(h){var m=Ji(Ee(a.get(["controlStyle",p+"BtnSize"]),o),o),y=[0,-m/2,m,m],x=QOe(a,p+"Icon",y,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:v});x.ensureState("emphasis").style=u,n.add(x),du(x)}}},t.prototype._renderCurrentPointer=function(r,n,i,a){var o=a.getData(),s=a.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=ce(u._handlePointerDrag,u),f.ondragend=ce(u._handlePointerDragend,u),D$(f,u._progressLine,s,i,a,!0)},onUpdate:function(f){D$(f,u._progressLine,s,i,a)}};this._currentPointer=P$(l,l,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(r){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:r,from:this.uid})},t.prototype._handlePointerDrag=function(r,n,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},t.prototype._handlePointerDragend=function(r){this._pointerChangeTimeline([r.offsetX,r.offsetY],!0)},t.prototype._pointerChangeTimeline=function(r,n){var i=this._toAxisCoord(r)[0],a=this._axis,o=yi(a.getExtent().slice());i>o[1]&&(i=o[1]),i=0&&(o[a]=+o[a].toFixed(d)),[o,f]}var Aw={min:Ie(Am,"min"),max:Ie(Am,"max"),average:Ie(Am,"average"),median:Ie(Am,"median")};function cv(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,i=n&&n.dimensions;if(!oNe(t)&&!Y(t.coord)&&Y(i)){var a=L7(t,r,n,e);if(t=Te(t),t.type&&Aw[t.type]&&a.baseAxis&&a.valueAxis){var o=ze(i,a.baseAxis.dim),s=ze(i,a.valueAxis.dim),l=Aw[t.type](r,a.baseDataDim,a.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!Y(i))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)Aw[u[c]]&&(u[c]=vP(r,r.mapDimension(i[c]),u[c]));return t}}function L7(e,t,r,n){var i={};return e.valueIndex!=null||e.valueDim!=null?(i.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,i.valueAxis=r.getAxis(sNe(n,i.valueDataDim)),i.baseAxis=r.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=n.getBaseAxis(),i.valueAxis=r.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function sNe(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function fv(e,t){return e&&e.containData&&t.coord&&!GA(t)?e.containData(t.coord):!0}function lNe(e,t,r){return e&&e.containZone&&t.coord&&r.coord&&!GA(t)&&!GA(r)?e.containZone(t.coord,r.coord):!0}function E7(e,t){return e?function(r,n,i,a){var o=a<2?r.coord&&r.coord[a]:r.value;return Ms(o,t[a])}:function(r,n,i,a){return Ms(r.value,t[a])}}function vP(e,t,r){if(r==="average"){var n=0,i=0;return e.each(t,function(a,o){isNaN(a)||(n+=a,i++)}),n/i}else return r==="median"?e.getMedian(t):e.getDataExtent(t)[r==="max"?1:0]}var Mw=Je(),uNe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this.markerGroupMap=ge()},t.prototype.render=function(r,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){Mw(s).keep=!1}),n.eachSeries(function(s){var l=Ws.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!Mw(s).keep&&a.group.remove(s.group)})},t.prototype.markKeep=function(r){Mw(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var i=this;R(r,function(a){var o=Ws.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?lW(l):Rk(l))})}})},t.type="marker",t}(Ut);const gP=uNe;function L$(e,t,r){var n=t.coordinateSystem;e.each(function(i){var a=e.getItemModel(i),o,s=ne(a.get("x"),r.getWidth()),l=ne(a.get("y"),r.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,i));else if(n){var u=e.get(n.dimensions[0],i),c=e.get(n.dimensions[1],i);o=n.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(i,o)})}var cNe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=Ws.getMarkerModelFromSeries(a,"markPoint");o&&(L$(o.getData(),a,i),this.markerGroupMap.get(a.id).updateLayout())},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new Gv),f=fNe(o,r,n);n.setData(f),L$(n.getData(),r,a),f.each(function(d){var h=f.getItemModel(d),p=h.getShallow("symbol"),v=h.getShallow("symbolSize"),g=h.getShallow("symbolRotate"),m=h.getShallow("symbolOffset"),y=h.getShallow("symbolKeepAspect");if(Se(p)||Se(v)||Se(g)||Se(m)){var x=n.getRawValue(d),S=n.getDataParams(d);Se(p)&&(p=p(x,S)),Se(v)&&(v=v(x,S)),Se(g)&&(g=g(x,S)),Se(m)&&(m=m(x,S))}var _=h.getModel("itemStyle").getItemStyle(),b=zv(l,"color");_.fill||(_.fill=b),f.setItemVisual(d,{symbol:p,symbolSize:v,symbolRotate:g,symbolOffset:m,symbolKeepAspect:y,style:_})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(d){d.traverse(function(h){ke(h).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markPoint",t}(gP);function fNe(e,t,r){var n;e?n=Z(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return q(q({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new un(n,r),a=Z(r.get("data"),Ie(cv,t));e&&(a=dt(a,Ie(fv,e)));var o=E7(!!e,n);return i.initData(a,null,o),i}const dNe=cNe;function hNe(e){e.registerComponentModel(aNe),e.registerComponentView(dNe),e.registerPreprocessor(function(t){pP(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var pNe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,i){return new t(r,n,i)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(Ws);const vNe=pNe;var Mm=Je(),gNe=function(e,t,r,n){var i=e.getData(),a;if(Y(n))a=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),l=Cr(n.yAxis,n.xAxis);else{var u=L7(n,i,t,e);s=u.valueAxis;var c=S9(i,u.valueDataDim);l=vP(i,c,o)}var f=s.dim==="x"?0:1,d=1-f,h=Te(n),p={coord:[]};h.type=null,h.coord=[],h.coord[d]=-1/0,p.coord[d]=1/0;var v=r.get("precision");v>=0&&nt(l)&&(l=+l.toFixed(Math.min(v,20))),h.coord[f]=p.coord[f]=l,a=[h,p,{type:o,valueIndex:n.valueIndex,value:l}]}else a=[]}var g=[cv(e,a[0]),cv(e,a[1]),q({},a[2])];return g[2].type=g[2].type||null,Oe(g[2],g[0]),Oe(g[2],g[1]),g};function Q0(e){return!isNaN(e)&&!isFinite(e)}function E$(e,t,r,n){var i=1-e,a=n.dimensions[e];return Q0(t[i])&&Q0(r[i])&&t[e]===r[e]&&n.getAxis(a).containData(t[e])}function mNe(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(E$(1,r,n,e)||E$(0,r,n,e)))return!0}return fv(e,t[0])&&fv(e,t[1])}function kw(e,t,r,n,i){var a=n.coordinateSystem,o=e.getItemModel(t),s,l=ne(o.get("x"),i.getWidth()),u=ne(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=a.dimensions,f=e.get(c[0],t),d=e.get(c[1],t);s=a.dataToPoint([f,d])}if(qu(a,"cartesian2d")){var h=a.getAxis("x"),p=a.getAxis("y"),c=a.dimensions;Q0(e.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[r?0:1]):Q0(e.get(c[1],t))&&(s[1]=p.toGlobalCoord(p.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var yNe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=Ws.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=Mm(o).from,u=Mm(o).to;l.each(function(c){kw(l,c,!0,a,i),kw(u,c,!1,a,i)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new $I);this.group.add(c.group);var f=xNe(o,r,n),d=f.from,h=f.to,p=f.line;Mm(n).from=d,Mm(n).to=h,n.setData(p);var v=n.get("symbol"),g=n.get("symbolSize"),m=n.get("symbolRotate"),y=n.get("symbolOffset");Y(v)||(v=[v,v]),Y(g)||(g=[g,g]),Y(m)||(m=[m,m]),Y(y)||(y=[y,y]),f.from.each(function(S){x(d,S,!0),x(h,S,!1)}),p.each(function(S){var _=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[d.getItemLayout(S),h.getItemLayout(S)]),_.stroke==null&&(_.stroke=d.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:d.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(S,"symbolOffset"),fromSymbolRotate:d.getItemVisual(S,"symbolRotate"),fromSymbolSize:d.getItemVisual(S,"symbolSize"),fromSymbol:d.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:_})}),c.updateData(p),f.line.eachItemGraphicEl(function(S){ke(S).dataModel=n,S.traverse(function(_){ke(_).dataModel=n})});function x(S,_,b){var w=S.getItemModel(_);kw(S,_,b,r,a);var C=w.getModel("itemStyle").getItemStyle();C.fill==null&&(C.fill=zv(l,"color")),S.setItemVisual(_,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:Ee(w.get("symbolOffset",!0),y[b?0:1]),symbolRotate:Ee(w.get("symbolRotate",!0),m[b?0:1]),symbolSize:Ee(w.get("symbolSize"),g[b?0:1]),symbol:Ee(w.get("symbol",!0),v[b?0:1]),style:C})}this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markLine",t}(gP);function xNe(e,t,r){var n;e?n=Z(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return q(q({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new un(n,r),a=new un(n,r),o=new un([],r),s=Z(r.get("data"),Ie(gNe,t,e,r));e&&(s=dt(s,Ie(mNe,e)));var l=E7(!!e,n);return i.initData(Z(s,function(u){return u[0]}),null,l),a.initData(Z(s,function(u){return u[1]}),null,l),o.initData(Z(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}const SNe=yNe;function bNe(e){e.registerComponentModel(vNe),e.registerComponentView(SNe),e.registerPreprocessor(function(t){pP(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var _Ne=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,i){return new t(r,n,i)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(Ws);const wNe=_Ne;var km=Je(),CNe=function(e,t,r,n){var i=n[0],a=n[1];if(!(!i||!a)){var o=cv(e,i),s=cv(e,a),l=o.coord,u=s.coord;l[0]=Cr(l[0],-1/0),l[1]=Cr(l[1],-1/0),u[0]=Cr(u[0],1/0),u[1]=Cr(u[1],1/0);var c=pk([{},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 J0(e){return!isNaN(e)&&!isFinite(e)}function O$(e,t,r,n){var i=1-e;return J0(t[i])&&J0(r[i])}function TNe(e,t){var r=t.coord[0],n=t.coord[1],i={coord:r,x:t.x0,y:t.y0},a={coord:n,x:t.x1,y:t.y1};return qu(e,"cartesian2d")?r&&n&&(O$(1,r,n)||O$(0,r,n))?!0:lNe(e,i,a):fv(e,i)||fv(e,a)}function N$(e,t,r,n,i){var a=n.coordinateSystem,o=e.getItemModel(t),s,l=ne(o.get(r[0]),i.getWidth()),u=ne(o.get(r[1]),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var c=e.getValues(["x0","y0"],t),f=e.getValues(["x1","y1"],t),d=a.clampData(c),h=a.clampData(f),p=[];r[0]==="x0"?p[0]=d[0]>h[0]?f[0]:c[0]:p[0]=d[0]>h[0]?c[0]:f[0],r[1]==="y0"?p[1]=d[1]>h[1]?f[1]:c[1]:p[1]=d[1]>h[1]?c[1]:f[1],s=n.getMarkerPosition(p,r,!0)}else{var v=e.get(r[0],t),g=e.get(r[1],t),m=[v,g];a.clampData&&a.clampData(m,m),s=a.dataToPoint(m,!0)}if(qu(a,"cartesian2d")){var y=a.getAxis("x"),x=a.getAxis("y"),v=e.get(r[0],t),g=e.get(r[1],t);J0(v)?s[0]=y.toGlobalCoord(y.getExtent()[r[0]==="x0"?0:1]):J0(g)&&(s[1]=x.toGlobalCoord(x.getExtent()[r[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var z$=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],ANe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=Ws.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Z(z$,function(f){return N$(s,l,f,a,i)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new Me});this.group.add(c.group),this.markKeep(c);var f=MNe(o,r,n);n.setData(f),f.each(function(d){var h=Z(z$,function(C){return N$(f,d,C,r,a)}),p=o.getAxis("x").scale,v=o.getAxis("y").scale,g=p.getExtent(),m=v.getExtent(),y=[p.parse(f.get("x0",d)),p.parse(f.get("x1",d))],x=[v.parse(f.get("y0",d)),v.parse(f.get("y1",d))];yi(y),yi(x);var S=!(g[0]>y[1]||g[1]x[1]||m[1]=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(et);const HA=DNe;var bc=Ie,WA=R,Im=Me,RNe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new Im),this.group.add(this._selectorGroup=new Im),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var c=r.getBoxLayoutParams(),f={width:i.getWidth(),height:i.getHeight()},d=r.get("padding"),h=pr(c,f,d),p=this.layoutInner(r,o,h,a,l,u),v=pr(be({width:p.width,height:p.height},c),f,d);this.group.x=v.x-p.x,this.group.y=v.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=_7(p,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),c=ge(),f=n.get("selectedMode"),d=[];i.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),WA(n.getData(),function(h,p){var v=h.get("name");if(!this.newlineDisabled&&(v===""||v===` -`)){var g=new Im;g.newline=!0,u.add(g);return}var m=i.getSeriesByName(v)[0];if(!c.get(v))if(m){var y=m.getData(),x=y.getVisual("legendLineStyle")||{},S=y.getVisual("legendIcon"),_=y.getVisual("style"),b=this._createItem(m,v,p,h,n,r,x,_,S,f,a);b.on("click",bc(B$,v,null,a,d)).on("mouseover",bc(jA,m.name,null,a,d)).on("mouseout",bc(UA,m.name,null,a,d)),c.set(v,!0)}else i.eachRawSeries(function(w){if(!c.get(v)&&w.legendVisualProvider){var C=w.legendVisualProvider;if(!C.containName(v))return;var A=C.indexOfName(v),T=C.getItemVisual(A,"style"),M=C.getItemVisual(A,"legendIcon"),k=Wn(T.fill);k&&k[3]===0&&(k[3]=.2,T=q(q({},T),{fill:fo(k,"rgba")}));var I=this._createItem(w,v,p,h,n,r,{},T,M,f,a);I.on("click",bc(B$,null,v,a,d)).on("mouseover",bc(jA,null,v,a,d)).on("mouseout",bc(UA,null,v,a,d)),c.set(v,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();WA(r,function(u){var c=u.type,f=new rt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var d=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);Br(f,{normal:d,emphasis:h},{defaultText:u.title}),du(f)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,c,f,d){var h=r.visualDrawType,p=o.get("itemWidth"),v=o.get("itemHeight"),g=o.isSelected(n),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),x=a.get("icon");c=x||c||"roundRect";var S=LNe(c,a,l,u,h,g,d),_=new Im,b=a.getModel("textStyle");if(Se(r.getLegendIcon)&&(!x||x==="inherit"))_.add(r.getLegendIcon({itemWidth:p,itemHeight:v,icon:c,iconRotate:m,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}));else{var w=x==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;_.add(ENe({itemWidth:p,itemHeight:v,icon:c,iconRotate:w,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}))}var C=s==="left"?p+5:-5,A=s,T=o.get("formatter"),M=n;oe(T)&&T?M=T.replace("{name}",n??""):Se(T)&&(M=T(n));var k=g?b.getTextColor():a.get("inactiveColor");_.add(new rt({style:_t(b,{text:M,x:C,y:v/2,fill:k,align:A,verticalAlign:"middle"},{inheritColor:k})}));var I=new Qe({shape:_.getBoundingRect(),invisible:!0}),P=a.getModel("tooltip");return P.get("show")&&td({el:I,componentModel:o,itemName:n,itemTooltipOption:P.option}),_.add(I),_.eachChild(function(L){L.silent=!0}),I.silent=!f,this.getContentGroup().add(_),du(_),_.__legendDataIndex=i,_},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();pu(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){pu("horizontal",u,r.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],p=r.get("selectorButtonGap",!0),v=r.getOrient().index,g=v===0?"width":"height",m=v===0?"height":"width",y=v===0?"y":"x";s==="end"?h[v]+=c[g]+p:f[v]+=d[g]+p,h[1-v]+=c[m]/2-d[m]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var x={x:0,y:0};return x[g]=c[g]+p+d[g],x[m]=Math.max(c[m],d[m]),x[y]=Math.min(0,d[y]+h[1-v]),x}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Ut);function LNe(e,t,r,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),WA(g,function(y,x){g[x]==="inherit"&&(g[x]=m[x])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:Rf(f,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var d=t.getModel("lineStyle"),h=d.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!a){var p=t.get("inactiveBorderWidth"),v=u[c];u.lineWidth=p==="auto"?n.lineWidth>0&&v?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function ENe(e){var t=e.icon||"roundRect",r=lr(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function B$(e,t,r,n){UA(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),jA(e,t,r,n)}function O7(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,i=t.length;ni[o],g=[-h.x,-h.y];n||(g[a]=c[u]);var m=[0,0],y=[-p.x,-p.y],x=Ee(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(v){var S=r.get("pageButtonPosition",!0);S==="end"?y[a]+=i[o]-p[o]:m[a]+=p[o]+x}y[1-a]+=h[s]/2-p[s]/2,c.setPosition(g),f.setPosition(m),d.setPosition(y);var _={x:0,y:0};if(_[o]=v?i[o]:h[o],_[s]=Math.max(h[s],p[s]),_[l]=Math.min(0,p[l]+y[1-a]),f.__rectSize=i[o],v){var b={x:0,y:0};b[o]=Math.max(i[o]-p[o]-x,0),b[s]=_[s],f.setClipPath(new Qe({shape:b})),f.__rectSize=b[o]}else d.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(r);return w.pageIndex!=null&&at(c,{x:w.contentPosition[0],y:w.contentPosition[1]},v?r:null),this._updatePageInfoView(r,w),_},t.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;R(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=n[f]!=null,h=i.childOfName(c);h&&(h.setStyle("fill",d?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=d?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",oe(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=Iw[o],l=Pw[o],u=this._findTargetItemIndex(n),c=i.children(),f=c[u],d=c.length,h=d?1:0,p={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return p;var v=S(f);p.contentPosition[o]=-v.s;for(var g=u+1,m=v,y=v,x=null;g<=d;++g)x=S(c[g]),(!x&&y.e>m.s+a||x&&!_(x,m.s))&&(y.i>m.i?m=y:m=x,m&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=m.i),++p.pageCount)),y=x;for(var g=u-1,m=v,y=v,x=null;g>=-1;--g)x=S(c[g]),(!x||!_(y,x.s))&&m.i=w&&b.s<=w+a}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},t.type="legend.scroll",t}(N7);const FNe=$Ne;function VNe(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function GNe(e){Fe(z7),e.registerComponentModel(BNe),e.registerComponentView(FNe),VNe(e)}function HNe(e){Fe(z7),Fe(GNe)}var WNe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.inside",t.defaultOption=Qs(uv.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(uv);const jNe=WNe;var mP=Je();function UNe(e,t,r){mP(e).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=r)})}function qNe(e,t){for(var r=mP(e).coordSysRecordMap,n=r.keys(),i=0;in[r+t]&&(t=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function QNe(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=mP(r),i=n.coordSysRecordMap||(n.coordSysRecordMap=ge());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=x7(a);R(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,YNe(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ge());c.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){B7(i,a);return}var c=KNe(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),ud(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var JNe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return t.prototype.render=function(r,n,i){if(e.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),UNe(i,r,{pan:ce(Dw.pan,this),zoom:ce(Dw.zoom,this),scrollMove:ce(Dw.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){qNe(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(lP),Dw={zoom:function(e,t,r,n){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=Rw[t](null,[n.originX,n.originY],o,r,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Xu(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:V$(function(e,t,r,n,i,a){var o=Rw[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:V$(function(e,t,r,n,i,a){var o=Rw[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,r);return o.signal*(e[1]-e[0])*a.scrollDelta})};function V$(e){return function(t,r,n,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,r,n,i);if(Xu(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var Rw={grid:function(e,t,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem.getRect();return e=e||[0,0],a.dim==="x"?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),r.mainType==="radiusAxis"?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,r,n,i){var a=r.axis,o=i.model.coordinateSystem.getRect(),s={};return e=e||[0,0],a.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};const eze=JNe;function $7(e){uP(e),e.registerComponentModel(jNe),e.registerComponentView(eze),QNe(e)}var tze=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Qs(uv.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(uv);const rze=tze;var th=Qe,G$=7,nze=1,Lw=30,ize=7,rh="horizontal",H$="vertical",aze=5,oze=["line","bar","candlestick","scatter"],sze={easing:"cubicOut",duration:100,delay:0},lze=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._displayables={},r}return t.prototype.init=function(r,n){this.api=n,this._onBrush=ce(this._onBrush,this),this._onBrushEnd=ce(this._onBrushEnd,this)},t.prototype.render=function(r,n,i,a){if(e.prototype.render.apply(this,arguments),ud(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),r.get("show")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Kp(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new Me;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,i=r.get("brushSelect"),a=i?ize:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===rh?{right:s.width-o.x-o.width,top:s.height-Lw-G$-a,width:o.width,height:Lw}:{right:G$,top:o.y,width:Lw,height:o.height},u=ad(r.option);R(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=pr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===H$&&this._size.reverse()},t.prototype._positionGroup=function(){var r=this.group,n=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===rh&&!o?{scaleY:l?1:-1,scaleX:1}:i===rh&&o?{scaleY:l?1:-1,scaleX:-1}:i===H$&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=r.getBoundingRect([s]);r.x=n.x-u.x,r.y=n.y-u.y,r.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,i=this._displayables.sliderGroup,a=r.get("brushSelect");i.add(new th({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new th({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:ce(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},t.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,i=this._shadowSize||[],a=r.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():r.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var f=o.getDataExtent(l),d=(f[1]-f[0])*.3;f=[f[0]-d,f[1]+d];var h=[0,n[1]],p=[0,n[0]],v=[[n[0],0],[0,0]],g=[],m=p[1]/(o.count()-1),y=0,x=Math.round(o.count()/n[0]),S;o.each([l],function(A,T){if(x>0&&T%x){y+=m;return}var M=A==null||isNaN(A)||A==="",k=M?0:ft(A,f,h,!0);M&&!S&&T?(v.push([v[v.length-1][0],0]),g.push([g[g.length-1][0],0])):!M&&S&&(v.push([y,0]),g.push([y,0])),v.push([y,k]),g.push([y,k]),y+=m,S=M}),u=this._shadowPolygonPts=v,c=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var _=this.dataZoomModel;function b(A){var T=_.getModel(A?"selectedDataBackground":"dataBackground"),M=new Me,k=new Rn({shape:{points:u},segmentIgnoreThreshold:1,style:T.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),I=new En({shape:{points:c},segmentIgnoreThreshold:1,style:T.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(k),M.add(I),M}for(var w=0;w<3;w++){var C=b(w===1);this._displayables.sliderGroup.add(C),this._displayables.dataShadowSegs.push(C)}},t.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var i,a=this.ecModel;return r.eachTargetAxis(function(o,s){var l=r.getAxisProxy(o,s).getTargetSeriesModels();R(l,function(u){if(!i&&!(n!==!0&&ze(oze,u.get("type"))<0)){var c=a.getComponent(ps(o),s).axis,f=uze(o),d,h=u.coordinateSystem;f!=null&&h.getOtherAxis&&(d=h.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),i={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:d}}},this)},this),i}},t.prototype._renderHandle=function(){var r=this.group,n=this._displayables,i=n.handles=[null,null],a=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),d=n.filler=new th({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new th({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:nze,fill:"rgba(0,0,0,0)"}})),R([0,1],function(x){var S=l.get("handleIcon");!k0[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var _=lr(S,-1,0,2,2,null,!0);_.attr({cursor:W$(this._orient),draggable:!0,drift:ce(this._onDragMove,this,x),ondragend:ce(this._onDragEnd,this),onmouseover:ce(this._showDataInfo,this,!0),onmouseout:ce(this._showDataInfo,this,!1),z2:5});var b=_.getBoundingRect(),w=l.get("handleSize");this._handleHeight=ne(w,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,_.setStyle(l.getModel("handleStyle").getItemStyle()),_.style.strokeNoScale=!0,_.rectHover=!0,_.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),du(_);var C=l.get("handleColor");C!=null&&(_.style.fill=C),o.add(i[x]=_);var A=l.getModel("textStyle");r.add(a[x]=new rt({silent:!0,invisible:!0,style:_t(A,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:A.getTextColor(),font:A.getFont()}),z2:10}))},this);var h=d;if(f){var p=ne(l.get("moveHandleSize"),s[1]),v=n.moveHandle=new Qe({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,m=n.moveHandleIcon=lr(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);m.silent=!0,m.y=s[1]+p/2-.5,v.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(p,10));h=n.moveZone=new Qe({invisible:!0,shape:{y:s[1]-y,height:p+y}}),h.on("mouseover",function(){u.enterEmphasis(v)}).on("mouseout",function(){u.leaveEmphasis(v)}),o.add(v),o.add(m),o.add(h)}h.attr({draggable:!0,cursor:W$(this._orient),drift:ce(this._onDragMove,this,"all"),ondragstart:ce(this._showDataInfo,this,!0),ondragend:ce(this._onDragEnd,this),onmouseover:ce(this._showDataInfo,this,!0),onmouseout:ce(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[ft(r[0],[0,100],n,!0),ft(r[1],[0,100],n,!0)]},t.prototype._updateInterval=function(r,n){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Xu(n,a,o,i.get("zoomLock")?"all":r,s.minSpan!=null?ft(s.minSpan,l,o,!0):null,s.maxSpan!=null?ft(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=yi([ft(a[0],o,l,!0),ft(a[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(r){var n=this._displayables,i=this._handleEnds,a=yi(i.slice()),o=this._size;R([0,1],function(h){var p=n.handles[h],v=this._handleHeight;p.attr({scaleX:v/2,scaleY:v/2,x:i[h]+(h?-1:1),y:o[1]/2-v/2})},this),n.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,a[0],a[1],o[0]],c=0;cn[0]||i[1]<0||i[1]>n[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(r){var n=r.offsetX,i=r.offsetY;this._brushStart=new Le(n,i),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(r){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var i=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=yi([ft(i.x,o,s,!0),ft(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(r){this._brushing&&(bo(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},t.prototype._updateBrushRect=function(r,n){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new th({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(r,n),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},t.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?sze:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=x7(this.dataZoomModel).infoList;if(!r&&n.length){var i=n[0].model.coordinateSystem;r=i.getRect&&i.getRect()}if(!r){var a=this.api.getWidth(),o=this.api.getHeight();r={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return r},t.type="dataZoom.slider",t}(lP);function uze(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function W$(e){return e==="vertical"?"ns-resize":"ew-resize"}const cze=lze;function F7(e){e.registerComponentModel(rze),e.registerComponentView(cze),uP(e)}function fze(e){Fe($7),Fe(F7)}var dze={get:function(e,t,r){var n=Te((hze[e]||{})[t]);return r&&Y(n)?n[n.length-1]:n}},hze={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 V7=dze;var j$=Or.mapVisual,pze=Or.eachVisual,vze=Y,U$=R,gze=yi,mze=ft,yze=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.optionUpdated=function(r,n){var i=this.option;!n&&I7(i,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(r){var n=this.stateList;r=ce(r,this),this.controllerVisuals=FA(this.option.controller,n,r),this.targetVisuals=FA(this.option.target,n,r)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var r=this.option.seriesIndex,n=[];return r==null||r==="all"?this.ecModel.eachSeries(function(i,a){n.push(a)}):n=pt(r),n},t.prototype.eachTargetSeries=function(r,n){R(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&r.call(n,a)},this)},t.prototype.isTargetSeries=function(r){var n=!1;return this.eachTargetSeries(function(i){i===r&&(n=!0)}),n},t.prototype.formatValueText=function(r,n,i){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;i=i||["<",">"],Y(r)&&(r=r.slice(),u=!0);var c=n?r:u?[f(r[0]),f(r[1])]:f(r);if(oe(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(Se(l))return u?l(r[0],r[1]):l(r);if(u)return r[0]===s[0]?i[0]+" "+c[1]:r[1]===s[1]?i[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(d){return d===s[0]?"min":d===s[1]?"max":(+d).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var r=this.option,n=gze([r.min,r.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(r){var n=this.option.dimension;if(n!=null)return r.getDimensionIndex(n);for(var i=r.dimensions,a=i.length-1;a>=0;a--){var o=i[a],s=r.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var r=this.ecModel,n=this.option,i={inRange:n.inRange,outOfRange:n.outOfRange},a=n.target||(n.target={}),o=n.controller||(n.controller={});Oe(a,i),Oe(o,i);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),c.call(this,o);function l(f){vze(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:r.get("gradientColor")}}function u(f,d,h){var p=f[d],v=f[h];p&&!v&&(v=f[h]={},U$(p,function(g,m){if(Or.isValidType(m)){var y=V7.get(m,"inactive",s);y!=null&&(v[m]=y,m==="color"&&!v.hasOwnProperty("opacity")&&!v.hasOwnProperty("colorAlpha")&&(v.opacity=[0,0]))}}))}function c(f){var d=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,h=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),v=this.getItemSymbol(),g=v||"roundRect";U$(this.stateList,function(m){var y=this.itemSize,x=f[m];x||(x=f[m]={color:s?p:[p]}),x.symbol==null&&(x.symbol=d&&Te(d)||(s?g:[g])),x.symbolSize==null&&(x.symbolSize=h&&Te(h)||(s?y[0]:[y[0],y[0]])),x.symbol=j$(x.symbol,function(b){return b==="none"?g:b});var S=x.symbolSize;if(S!=null){var _=-1/0;pze(S,function(b){b>_&&(_=b)}),x.symbolSize=j$(S,function(b){return mze(b,[0,_],[0,y[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(r){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(r){return null},t.prototype.getVisualMeta=function(r){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(et);const e1=yze;var q$=[20,140],xze=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var r=this.itemSize;(r[0]==null||isNaN(r[0]))&&(r[0]=q$[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=q$[1])},t.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):Y(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),R(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},t.prototype.getSelected=function(){var r=this.getExtent(),n=yi((this.get("range")||[]).slice());return n[0]>r[1]&&(n[0]=r[1]),n[1]>r[1]&&(n[1]=r[1]),n[0]=i[1]||r<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[];return this.eachTargetSeries(function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){r[0]<=s&&s<=r[1]&&a.push(l)},this),n.push({seriesId:i.id,dataIndex:a})},this),n},t.prototype.getVisualMeta=function(r){var n=Y$(this,"outOfRange",this.getExtent()),i=Y$(this,"inRange",this.option.range.slice()),a=[];function o(h,p){a.push({value:h,color:r(h,p)})}for(var s=0,l=0,u=i.length,c=n.length;lr[1])break;a.push({color:this.getControllerVisual(l,"color",n),offset:s/i})}return a.push({color:this.getControllerVisual(r[1],"color",n),offset:1}),a},t.prototype._createBarPoints=function(r,n){var i=this.visualMapModel.itemSize;return[[i[0]-n[0],r[0]],[i[0],r[0]],[i[0],r[1]],[i[0]-n[1],r[1]]]},t.prototype._createBarGroup=function(r){var n=this._orient,i=this.visualMapModel.get("inverse");return new Me(n==="horizontal"&&!i?{scaleX:r==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&i?{scaleX:r==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!i?{scaleX:r==="left"?1:-1,scaleY:-1}:{scaleX:r==="left"?1:-1})},t.prototype._updateHandle=function(r,n){if(this._useHandle){var i=this._shapes,a=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=a.itemSize,u=a.getExtent();_ze([0,1],function(c){var f=o[c];f.setStyle("fill",n.handlesColor[c]),f.y=r[c];var d=ca(r[c],[0,l[1]],u,!0),h=this.getControllerVisual(d,"symbolSize");f.scaleX=f.scaleY=h/l[0],f.x=l[0]-h/2;var p=Yi(i.handleLabelPoints[c],hu(f,this.group));s[c].setStyle({x:p[0],y:p[1],text:a.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(r,n,i,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var d={convertOpacityToAlpha:!0},h=this.getControllerVisual(r,"color",d),p=this.getControllerVisual(r,"symbolSize"),v=ca(r,s,u,!0),g=l[0]-p/2,m={x:f.x,y:f.y};f.y=v,f.x=g;var y=Yi(c.indicatorLabelPoint,hu(f,this.group)),x=c.indicatorLabel;x.attr("invisible",!1);var S=this._applyTransform("left",c.mainGroup),_=this._orient,b=_==="horizontal";x.setStyle({text:(i||"")+o.formatValueText(n),verticalAlign:b?S:"middle",align:b?"center":S});var w={x:g,y:v,style:{fill:h}},C={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var A={duration:100,easing:"cubicInOut",additive:!0};f.x=m.x,f.y=m.y,f.animateTo(w,A),x.animateTo(C,A)}else f.attr(w),x.attr(C);this._firstShowIndicator=!1;var T=this._shapes.handleLabels;if(T)for(var M=0;Mo[1]&&(f[1]=1/0),n&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var d=this._hoverLinkDataIndices,h=[];(n||Q$(i))&&(h=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var p=hye(d,h);this._dispatchHighDown("downplay",vy(p[0],i)),this._dispatchHighDown("highlight",vy(p[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(tu(r.target,function(l){var u=ke(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var i=this.ecModel.getSeriesByIndex(n.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(i)){var o=i.getData(n.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var r=this._shapes;r.indicator&&r.indicator.attr("invisible",!0),r.indicatorLabel&&r.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var i=0;i=0&&(a.dimension=o,n.push(a))}}),e.getData().setVisual("visualMeta",n)}}];function Dze(e,t,r,n){for(var i=t.targetVisuals[n],a=Or.prepareVisualTypes(i),o={color:zv(e.getData(),"color")},s=0,l=a.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(kze,Ize),R(Pze,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(Rze))}function j7(e){e.registerComponentModel(Sze),e.registerComponentView(Mze),W7(e)}var Lze=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._pieceList=[],r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],Eze[this._mode].call(this,this._pieceList),this._resetSelected(r,n);var a=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=Te(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Z(this._pieceList,function(l){return l=Te(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var r=this.option,n={},i=Or.listVisualTypes(),a=this.isCategory();R(r.pieces,function(s){R(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),R(n,function(s,l){var u=!1;R(this.stateList,function(c){u=u||o(r,c,l)||o(r.target,c,l)},this),!u&&R(this.stateList,function(c){(r[c]||(r[c]={}))[l]=V7.get(l,c==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(r,n){var i=this.option,a=this._pieceList,o=(n?i:r).selected||{};if(i.selected=o,R(a,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;R(a,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(r){return this._mode==="categories"?r.value+"":r.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(r){this.option.selected=Te(r)},t.prototype.getValueState=function(r){var n=Or.findPieceIndex(r,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[],i=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Or.findPieceIndex(l,i);c===r&&o.push(u)},this),n.push({seriesId:a.id,dataIndex:o})},this),n},t.prototype.getRepresentValue=function(r){var n;if(this.isCategory())n=r.value;else if(r.value!=null)n=r.value;else{var i=r.interval||[];n=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return n},t.prototype.getVisualMeta=function(r){if(this.isCategory())return;var n=[],i=["",""],a=this;function o(c,f){var d=a.getRepresentValue({interval:c});f||(f=a.getValueState(d));var h=r(d,f);c[0]===-1/0?i[0]=h:c[1]===1/0?i[1]=h:n.push({value:c[0],color:h},{value:c[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return R(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:n,outerColors:i}},t.type="visualMap.piecewise",t.defaultOption=Qs(e1.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(e1),Eze={splitNumber:function(e){var t=this.option,r=Math.min(t.precision,20),n=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(n[1]-n[0])/i;+a.toFixed(r)!==a&&r<5;)r++;t.precision=r,a=+a.toFixed(r),t.minOpen&&e.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o","≥"][n[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,i)},this)}};function rF(e,t){var r=e.inverse;(e.orient==="vertical"?!r:r)&&t.reverse()}const Oze=Lze;var Nze=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.doRender=function(){var r=this.group;r.removeAll();var n=this.visualMapModel,i=n.get("textGap"),a=n.textStyleModel,o=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=n.itemSize,c=this._getViewData(),f=c.endsText,d=Cr(n.get("showLabel",!0),!f);f&&this._renderEndsText(r,f[0],u,d,l),R(c.viewPieceList,function(h){var p=h.piece,v=new Me;v.onclick=ce(this._onItemClick,this,p),this._enableHoverLink(v,h.indexInModelPieceList);var g=n.getRepresentValue(p);if(this._createItemSymbol(v,g,[0,0,u[0],u[1]]),d){var m=this.visualMapModel.getValueState(g);v.add(new rt({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:m==="outOfRange"?.5:1}}))}r.add(v)},this),f&&this._renderEndsText(r,f[1],u,d,l),pu(n.get("orient"),r,n.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},t.prototype._enableHoverLink=function(r,n){var i=this;r.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:vy(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return H7(r,this.api,r.itemSize);var i=n.align;return(!i||i==="auto")&&(i="left"),i},t.prototype._renderEndsText=function(r,n,i,a,o){if(n){var s=new Me,l=this.visualMapModel.textStyleModel;s.add(new rt({style:_t(l,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:n})})),r.add(s)}},t.prototype._getViewData=function(){var r=this.visualMapModel,n=Z(r.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=r.get("text"),a=r.get("orient"),o=r.get("inverse");return(a==="horizontal"?o:!o)?n.reverse():i&&(i=i.slice().reverse()),{viewPieceList:n,endsText:i}},t.prototype._createItemSymbol=function(r,n,i){r.add(lr(this.getControllerVisual(n,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(n,"color")))},t.prototype._onItemClick=function(r){var n=this.visualMapModel,i=n.option,a=i.selectedMode;if(a){var o=Te(i.selected),s=n.getSelectedMapKey(r);a==="single"||a===!0?(o[s]=!0,R(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(G7);const zze=Nze;function U7(e){e.registerComponentModel(Oze),e.registerComponentView(zze),W7(e)}function Bze(e){Fe(j7),Fe(U7)}var $ze={label:{enabled:!0},decal:{show:!1}},nF=Je(),Fze={};function Vze(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=Te($ze);Oe(n.label,e.getLocaleModel().get("aria"),!1),Oe(r.option,n,!1),i(),a();function i(){var u=r.getModel("decal"),c=u.get("show");if(c){var f=ge();e.eachSeries(function(d){if(!d.isColorBySeries()){var h=f.get(d.type);h||(h={},f.set(d.type,h)),nF(d).scope=h}}),e.eachRawSeries(function(d){if(e.isSeriesFiltered(d))return;if(Se(d.enableAriaDecal)){d.enableAriaDecal();return}var h=d.getData();if(d.isColorBySeries()){var y=qT(d.ecModel,d.name,Fze,e.getSeriesCount()),x=h.getVisual("decal");h.setVisual("decal",S(x,y))}else{var p=d.getRawData(),v={},g=nF(d).scope;h.each(function(_){var b=h.getRawIndex(_);v[b]=_});var m=p.count();p.each(function(_){var b=v[_],w=p.getName(_)||_+"",C=qT(d.ecModel,w,g,m),A=h.getItemVisual(b,"decal");h.setItemVisual(b,"decal",S(A,C))})}function S(_,b){var w=_?q(q({},b),_):b;return w.dirty=!0,w}})}}function a(){var u=e.getLocaleModel().get("aria"),c=r.getModel("label");if(c.option=be(c.option,u),!!c.get("enabled")){var f=t.getZr().dom;if(c.get("description")){f.setAttribute("aria-label",c.get("description"));return}var d=e.getSeriesCount(),h=c.get(["data","maxCount"])||10,p=c.get(["series","maxCount"])||10,v=Math.min(d,p),g;if(!(d<1)){var m=s();if(m){var y=c.get(["general","withTitle"]);g=o(y,{title:m})}else g=c.get(["general","withoutTitle"]);var x=[],S=d>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(S,{seriesCount:d}),e.eachSeries(function(C,A){if(A1?c.get(["series","multiple",k]):c.get(["series","single",k]),T=o(T,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var I=C.getData();if(I.count()>h){var P=c.get(["data","partialData"]);T+=o(P,{displayCnt:h})}else T+=c.get(["data","allData"]);for(var L=c.get(["data","separator","middle"]),z=c.get(["data","separator","end"]),V=[],N=0;N":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Wze=function(){function e(t){var r=this._condVal=oe(t)?new RegExp(t):Cge(t)?t:null;if(r==null){var n="";lt(n)}}return e.prototype.evaluate=function(t){var r=typeof t;return oe(r)?this._condVal.test(t):nt(r)?this._condVal.test(t+""):!1},e}(),jze=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),Uze=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r2&&n.push(i),i=[I,P]}function c(I,P,L,z){Kc(I,L)&&Kc(P,z)||i.push(I,P,L,z,L,z)}function f(I,P,L,z,V,N){var F=Math.abs(P-I),E=Math.tan(F/4)*4/3,G=PC:M2&&n.push(i),n}function YA(e,t,r,n,i,a,o,s,l,u){if(Kc(e,r)&&Kc(t,n)&&Kc(i,o)&&Kc(a,s)){l.push(o,s);return}var c=2/u,f=c*c,d=o-e,h=s-t,p=Math.sqrt(d*d+h*h);d/=p,h/=p;var v=r-e,g=n-t,m=i-o,y=a-s,x=v*v+g*g,S=m*m+y*y;if(x=0&&C=0){l.push(o,s);return}var A=[],T=[];zs(e,r,i,o,.5,A),zs(t,n,a,s,.5,T),YA(A[0],T[0],A[1],T[1],A[2],T[2],A[3],T[3],l,u),YA(A[4],T[4],A[5],T[5],A[6],T[6],A[7],T[7],l,u)}function o5e(e,t){var r=qA(e),n=[];t=t||1;for(var i=0;i0)for(var u=0;uMath.abs(u),f=Y7([l,u],c?0:1,t),d=(c?s:u)/f.length,h=0;hi,o=Y7([n,i],a?0:1,t),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",c=a?"y":"x",f=e[s]/o.length,d=0;d1?null:new Le(v*l+e,v*u+t)}function u5e(e,t,r){var n=new Le;Le.sub(n,r,t),n.normalize();var i=new Le;Le.sub(i,e,t);var a=i.dot(n);return a}function wc(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function c5e(e,t,r){for(var n=e.length,i=[],a=0;ao?(u.x=c.x=s+a/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+a),c5e(t,u,c)}function t1(e,t,r,n){if(r===1)n.push(t);else{var i=Math.floor(r/2),a=e(t);t1(e,a[0],i,n),t1(e,a[1],r-i,n)}return n}function f5e(e,t){for(var r=[],n=0;n0)for(var _=n/r,b=-n/2;b<=n/2;b+=_){for(var w=Math.sin(b),C=Math.cos(b),A=0,x=0;x0;u/=2){var c=0,f=0;(e&u)>0&&(c=1),(t&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(e=u-1-e,t=u-1-t),l=e,e=t,t=l)}return s}function i1(e){var t=1/0,r=1/0,n=-1/0,i=-1/0,a=Z(e,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return t=Math.min(c,t),r=Math.min(f,r),n=Math.max(c,n),i=Math.max(f,i),[c,f]}),o=Z(a,function(s,l){return{cp:s,z:S5e(s[0],s[1],t,r,n,i),path:e[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function K7(e){return p5e(e.path,e.count)}function XA(){return{fromIndividuals:[],toIndividuals:[],count:0}}function b5e(e,t,r){var n=[];function i(_){for(var b=0;b<_.length;b++){var w=_[b];r1(w)?i(w.childrenRef()):w instanceof We&&n.push(w)}}i(e);var a=n.length;if(!a)return XA();var o=r.dividePath||K7,s=o({path:t,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),XA();n=i1(n),s=i1(s);for(var l=r.done,u=r.during,c=r.individualDelay,f=new oo,d=0;d=0;i--)if(!r[i].many.length){var l=r[s].many;if(l.length<=1)if(s)s=0;else return r;var a=l.length,u=Math.ceil(a/2);r[i].many=l.slice(u,a),r[s].many=l.slice(0,u),s++}return r}var w5e={clone:function(e){for(var t=[],r=1-Math.pow(1-e.path.style.opacity,1/e.count),n=0;n0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;dF(e)&&(u=e,c=t),dF(t)&&(u=t,c=e);function f(m,y,x,S,_){var b=m.many,w=m.one;if(b.length===1&&!_){var C=y?b[0]:w,A=y?w:b[0];if(r1(C))f({many:[C],one:A},!0,x,S,!0);else{var T=s?be({delay:s(x,S)},l):l;xP(C,A,T),a(C,A,C,A,T)}}else for(var M=be({dividePath:w5e[r],individualDelay:s&&function(V,N,F,E){return s(V+x,S)}},l),k=y?b5e(b,w,M):_5e(w,b,M),I=k.fromIndividuals,P=k.toIndividuals,L=I.length,z=0;zt.length,h=u?hF(c,u):hF(d?t:e,[d?e:t]),p=0,v=0;vQ7))for(var i=n.getIndices(),a=T5e(n),o=0;o0&&S.group.traverse(function(b){b instanceof We&&!b.animators.length&&b.animateFrom({style:{opacity:0}},_)})})}function vF(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function gF(e){return Y(e)?e.sort().join(","):e}function es(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function k5e(e,t){var r=ge(),n=ge(),i=ge();return R(e.oldSeries,function(a,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=vF(a),c=gF(u);n.set(c,{dataGroupId:s,data:l}),Y(u)&&R(u,function(f){i.set(f,{key:c,dataGroupId:s,data:l})})}),R(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=vF(a),u=gF(l),c=n.get(u);if(c)r.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:es(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:es(s),data:s}]});else if(Y(l)){var f=[];R(l,function(p){var v=n.get(p);v.data&&f.push({dataGroupId:v.dataGroupId,divide:es(v.data),data:v.data})}),f.length&&r.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:es(s)}]})}else{var d=i.get(l);if(d){var h=r.get(d.key);h||(h={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:es(d.data)}],newSeries:[]},r.set(d.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:es(s)})}}}}),r}function mF(e,t){for(var r=0;r=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:es(t.oldData[s]),dim:o.dimension})}),R(pt(e.to),function(o){var s=mF(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:es(l),dim:o.dimension})}}),i.length>0&&a.length>0&&J7(i,a,n)}function P5e(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){R(pt(n.seriesTransition),function(i){R(pt(i.to),function(a){for(var o=n.updatedSeries,s=0;se?new Date(e).toLocaleString():"",D5e=e=>e?new Date(e).toLocaleTimeString():"",op="#b3c3bc",KA="#5b6f66";lI("locust",{backgroundColor:"#27272a",textStyle:{color:op},title:{textStyle:{color:op}}});const R5e=({charts:e,title:t,seriesData:r,colors:n})=>({legend:{icon:"circle",inactiveColor:op,textStyle:{color:op}},title:{text:t,x:10,y:10},dataZoom:[{type:"inside",start:0,end:50}],tooltip:{trigger:"axis",formatter:i=>i&&Array.isArray(i)&&i.length>0&&i.some(a=>!!a.value)?i.reduce((a,{axisValue:o,color:s,seriesName:l,value:u},c)=>` - ${c===0?ZA(o):""} +`:"
",m=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],h,null,d)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=ke(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,d=u.getData(f),h=this._renderMode,p=r.positionDefault,v=Qd([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=v.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(c,f),y=new u_;m.marker=y.makeTooltipMarker("item",Ru(m.color),h);var x=lN(u.formatTooltip(c,!1,f)),S=v.get("order"),_=v.get("valueFormatter"),b=x.frag,w=b?pN(_?q({valueFormatter:_},b):b,y,h,S,a.get("useUTC"),v.get("textStyle")):x.text,C="item_"+u.name+"_"+c;this._showOrMove(v,function(){this._showTooltipContent(v,w,m,C,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=ke(n),o=a.tooltipConfig,s=o.option||{};if(oe(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(a.componentMainType,a.componentIndex);c&&u.push(c),u.push({formatter:s.content});var f=r.positionDefault,d=Qd(u,this._tooltipModel,f?{position:f}:null),h=d.get("content"),p=Math.random()+"",v=new u_;this._showOrMove(d,function(){var g=Te(d.get("formatterParams")||{});this._showTooltipContent(d,h,g,p,r.offsetX,r.offsetY,r.position,n,v)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var f=this._tooltipContent;f.setEnterable(r.get("enterable"));var d=r.get("formatter");l=l||r.get("position");var h=n,p=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),v=p.color;if(d)if(oe(d)){var g=r.ecModel.get("useUTC"),m=Y(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=d,y&&(h=Bx(m.axisValue,h,g)),h=rj(h,i,!0)}else if(Se(d)){var x=ce(function(S,_){S===this._ticket&&(f.setContent(_,c,r,v,l),this._updatePosition(r,l,o,s,f,i,u))},this);this._ticket=a,h=d(i,a,x)}else h=d;f.setContent(h,c,r,v,l),f.show(r,v),this._updatePosition(r,l,o,s,f,i,u)}},t.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||Y(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!Y(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||r.get("position");var f=o.getSize(),d=r.get("align"),h=r.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),Se(n)&&(n=n([i,a],s,o.el,p,{viewSize:[u,c],contentSize:f.slice()})),Y(n))i=ne(n[0],u),a=ne(n[1],c);else if(_e(n)){var v=n;v.width=f[0],v.height=f[1];var g=pr(v,{width:u,height:c});i=g.x,a=g.y,d=null,h=null}else if(oe(n)&&l){var m=mOe(n,p,f,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=vOe(i,a,o,u,c,d?null:20,h?null:20);i=m[0],a=m[1]}if(d&&(i-=w$(d)?f[0]/2:d==="right"?f[0]:0),h&&(a-=w$(h)?f[1]/2:h==="bottom"?f[1]:0),A7(r)){var m=gOe(i,a,o,u,c);i=m[0],a=m[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&R(i,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&R(u,function(d,h){var p=f[h]||{},v=d.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&d.value===p.value&&d.axisType===p.axisType&&d.axisId===p.axisId&&v.length===g.length,o&&R(v,function(m,y){var x=g[y];o=o&&m.seriesIndex===x.seriesIndex&&m.dataIndex===x.dataIndex}),a&&R(d.seriesDataIndices,function(m){var y=m.seriesIndex,x=n[y],S=a[y];x&&S&&S.data!==x.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){rt.node||!n.getDom()||(Kp(this,"_updatePosition"),this._tooltipContent.dispose(),OA("itemTooltip",n))},t.type="tooltip",t}(Ut);function Qd(e,t,r){var n=t.ecModel,i;r?(i=new wt(r,n,n),i=new wt(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof wt&&(o=o.get("tooltip",!0)),oe(o)&&(o={formatter:o}),o&&(i=new wt(o,i,n)))}return i}function _$(e,t){return e.dispatchAction||ce(t.dispatchAction,t)}function vOe(e,t,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(e+l+a+2>n?e-=l+a:e+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[e,t]}function gOe(e,t,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function mOe(e,t,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+c/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+o;break;case"left":s=t.x-i-o,l=t.y+c/2-a/2;break;case"right":s=t.x+u+o,l=t.y+c/2-a/2}return[s,l]}function w$(e){return e==="center"||e==="middle"}function yOe(e,t,r){var n=Ik(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=Pv(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=ke(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const xOe=pOe;function SOe(e){Fe(Yv),e.registerComponentModel(JEe),e.registerComponentView(xOe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},rr),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},rr)}var bOe=["rect","polygon","keep","clear"];function _Oe(e,t){var r=pt(e?e.brush:[]);if(r.length){var n=[];R(r,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var i=e&&e.toolbox;Y(i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var a=i.feature||(i.feature={}),o=a.brush||(a.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),wOe(s),t&&!s.length&&s.push.apply(s,bOe)}}function wOe(e){var t={};R(e,function(r){t[r]=1}),e.length=0,R(t,function(r,n){e.push(n)})}var C$=R;function T$(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function VA(e,t,r){var n={};return C$(t,function(a){var o=n[a]=i();C$(e[a],function(s,l){if(Or.isValidType(l)){var u={type:l,visual:s};r&&r(u,a),o[l]=new Or(u),l==="opacity"&&(u=Te(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Or(u))}})}),n;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function P7(e,t,r){var n;R(r,function(i){t.hasOwnProperty(i)&&T$(t[i])&&(n=!0)}),n&&R(r,function(i){t.hasOwnProperty(i)&&T$(t[i])?e[i]=Te(t[i]):delete e[i]})}function COe(e,t,r,n,i,a){var o={};R(e,function(f){var d=Or.prepareVisualTypes(t[f]);o[f]=d});var s;function l(f){return oI(r,s,f)}function u(f,d){qj(r,s,f,d)}a==null?r.each(c):r.each([a],c);function c(f,d){s=a==null?f:d;var h=r.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var p=n.call(i,f),v=t[p],g=o[p],m=0,y=g.length;mt[0][1]&&(t[0][1]=a[0]),a[1]t[1][1]&&(t[1][1]=a[1])}return t&&P$(t)}};function P$(e){return new Ne(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var ROe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.ecModel=r,this.api=n,this.model,(this._brushController=new YI(n.getZr())).on("brush",ce(this._onBrush,this)).mount()},t.prototype.render=function(r,n,i,a){this.model=r,this._updateController(r,n,i,a)},t.prototype.updateTransform=function(r,n,i,a){D7(n),this._updateController(r,n,i,a)},t.prototype.updateVisual=function(r,n,i,a){this.updateTransform(r,n,i,a)},t.prototype.updateView=function(r,n,i,a){this._updateController(r,n,i,a)},t.prototype._updateController=function(r,n,i,a){(!a||a.$from!==r.id)&&this._brushController.setPanels(r.brushTargetManager.makePanelOpts(i)).enableBrush(r.brushOption).updateCovers(r.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(r){var n=this.model.id,i=this.model.brushTargetManager.setOutputRanges(r.areas,this.ecModel);(!r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:Te(i),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:Te(i),$from:n})},t.type="brush",t}(Ut);const LOe=ROe;var EOe="#ddd",OOe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.areas=[],r.brushOption={},r}return t.prototype.optionUpdated=function(r,n){var i=this.option;!n&&P7(i,r,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:EOe},a.hasOwnProperty("liftZ")||(a.liftZ=5)},t.prototype.setAreas=function(r){r&&(this.areas=Z(r,function(n){return D$(this.option,n)},this))},t.prototype.setBrushOption=function(r){this.brushOption=D$(this.option,r),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(tt);function D$(e,t){return Oe({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new wt(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}const NOe=OOe;var zOe=["rect","polygon","lineX","lineY","keep","clear"],BOe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i){var a,o,s;n.eachComponent({mainType:"brush"},function(l){a=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=a,this._brushMode=o,R(r.get("type",!0),function(l){r.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===a)?"emphasis":"normal")})},t.prototype.updateView=function(r,n,i){this.render(r,n,i)},t.prototype.getIcons=function(){var r=this.model,n=r.get("icon",!0),i={};return R(r.get("type",!0),function(a){n[a]&&(i[a]=n[a])}),i},t.prototype.onclick=function(r,n,i){var a=this._brushType,o=this._brushMode;i==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?a:a===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(r){var n={show:!0,type:zOe.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:r.getLocaleModel().get(["toolbox","brush","title"])};return n},t}(hi);const $Oe=BOe;function FOe(e){e.registerComponentView(LOe),e.registerComponentModel(NOe),e.registerPreprocessor(_Oe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,MOe),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,r){r.eachComponent({mainType:"brush",query:t},function(n){n.setAreas(t.areas)})}),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},rr),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},rr),Lc("brush",$Oe)}var VOe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(tt),GOe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=Ee(r.get("textBaseline"),r.get("textVerticalAlign")),c=new nt({style:_t(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=r.get("subtext"),h=new nt({style:_t(s,{text:d,fill:s.getTextColor(),y:f.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=r.get("link"),v=r.get("sublink"),g=r.get("triggerEvent",!0);c.silent=!p&&!g,h.silent=!v&&!g,p&&c.on("click",function(){T0(p,"_"+r.get("target"))}),v&&h.on("click",function(){T0(v,"_"+r.get("subtarget"))}),ke(c).eventData=ke(h).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(c),d&&a.add(h);var m=a.getBoundingRect(),y=r.getBoxLayoutParams();y.width=m.width,y.height=m.height;var x=pr(y,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?x.x+=x.width:l==="center"&&(x.x+=x.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?x.y+=x.height:u==="middle"&&(x.y+=x.height/2),u=u||"top"),a.x=x.x,a.y=x.y,a.markRedraw();var S={align:l,verticalAlign:u};c.setStyle(S),h.setStyle(S),m=a.getBoundingRect();var _=x.margin,b=r.getItemStyle(["color","opacity"]);b.fill=r.get("backgroundColor");var w=new Je({shape:{x:m.x-_[3],y:m.y-_[0],width:m.width+_[1]+_[3],height:m.height+_[0]+_[2],r:r.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});a.add(w)}},t.type="title",t}(Ut);function HOe(e){e.registerComponentModel(VOe),e.registerComponentView(GOe)}var WOe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode="box",r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),this._initData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(r){r==null&&(r=this.option.currentIndex);var n=this._data.count();this.option.loop?r=(r%n+n)%n:(r>=n&&(r=n-1),r<0&&(r=0)),this.option.currentIndex=r},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(r){this.option.autoPlay=!!r},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var r=this.option,n=r.data||[],i=r.axisType,a=this._names=[],o;i==="category"?(o=[],R(n,function(u,c){var f=hr(Qf(u),""),d;_e(u)?(d=Te(u),d.value=c):d=c,o.push(d),a.push(f)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new un([{name:"value",type:s}],this);l.initData(o,a)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(tt);const R$=WOe;var R7=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline.slider",t.defaultOption=Js(R$.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(R$);ur(R7,tI.prototype);const jOe=R7;var UOe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline",t}(Ut);const qOe=UOe;var YOe=function(e){H(t,e);function t(r,n,i,a){var o=e.call(this,r,n,i)||this;return o.type=a||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(ra);const XOe=YOe;var Aw=Math.PI,L$=et(),ZOe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.api=n},t.prototype.render=function(r,n,i){if(this.model=r,this.api=i,this.ecModel=n,this.group.removeAll(),r.get("show",!0)){var a=this._layout(r,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(a,r);r.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return Sr("nameValue",{noName:!0,value:c})},R(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](a,o,l,r)},this),this._renderAxisLabel(a,s,l,r),this._position(a,r)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(r,n){var i=r.get(["label","position"]),a=r.get("orient"),o=QOe(r,n),s;i==null||i==="auto"?s=a==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:Aw/2},f=a==="vertical"?o.height:o.width,d=r.getModel("controlStyle"),h=d.get("show",!0),p=h?d.get("itemSize"):0,v=h?d.get("itemGap"):0,g=p+v,m=r.get(["label","rotate"])||0;m=m*Aw/180;var y,x,S,_=d.get("position",!0),b=h&&d.get("showPlayBtn",!0),w=h&&d.get("showPrevBtn",!0),C=h&&d.get("showNextBtn",!0),A=0,T=f;_==="left"||_==="bottom"?(b&&(y=[0,0],A+=g),w&&(x=[A,0],A+=g),C&&(S=[T-p,0],T-=g)):(b&&(y=[T-p,0],T-=g),w&&(x=[0,0],A+=g),C&&(S=[T-p,0],T-=g));var M=[A,T];return r.get("inverse")&&M.reverse(),{viewRect:o,mainLength:f,orient:a,rotation:c[a],labelRotation:m,labelPosOpt:s,labelAlign:r.get(["label","align"])||l[a],labelBaseline:r.get(["label","verticalAlign"])||r.get(["label","baseline"])||u[a],playPosition:y,prevBtnPosition:x,nextBtnPosition:S,axisExtent:M,controlSize:p,controlGap:v}},t.prototype._position=function(r,n){var i=this._mainGroup,a=this._labelGroup,o=r.viewRect;if(r.orient==="vertical"){var s=Ci(),l=o.x,u=o.y+o.height;Va(s,s,[-l,-u]),Wu(s,s,-Aw/2),Va(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=y(o),f=y(i.getBoundingRect()),d=y(a.getBoundingRect()),h=[i.x,i.y],p=[a.x,a.y];p[0]=h[0]=c[0][0];var v=r.labelPosOpt;if(v==null||oe(v)){var g=v==="+"?0:1;x(h,f,c,1,g),x(p,d,c,1,1-g)}else{var g=v>=0?0:1;x(h,f,c,1,g),p[1]=h[1]+v}i.setPosition(h),a.setPosition(p),i.rotation=a.rotation=r.rotation,m(i),m(a);function m(S){S.originX=c[0][0]-S.x,S.originY=c[1][0]-S.y}function y(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function x(S,_,b,w,C){S[w]+=b[w][C]-_[w][C]}},t.prototype._createAxis=function(r,n){var i=n.getData(),a=n.get("axisType"),o=KOe(n,a);o.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new XOe("value",o,r.axisExtent,a);return l.model=n,l},t.prototype._createGroup=function(r){var n=this[r]=new Me;return this.group.add(n),n},t.prototype._renderAxisLine=function(r,n,i,a){var o=i.getExtent();if(a.get(["lineStyle","show"])){var s=new Tr({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:q({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new Tr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:be({lineCap:"round",lineWidth:s.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},t.prototype._renderAxisTick=function(r,n,i,a){var o=this,s=a.getData(),l=i.scale.getTicks();this._tickSymbols=[],R(l,function(u){var c=i.dataToCoord(u.value),f=s.getItemModel(u.value),d=f.getModel("itemStyle"),h=f.getModel(["emphasis","itemStyle"]),p=f.getModel(["progress","itemStyle"]),v={x:c,y:0,onclick:ce(o._changeTimeline,o,u.value)},g=E$(f,d,n,v);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),pu(g);var m=ke(g);f.get("tooltip")?(m.dataIndex=u.value,m.dataModel=a):m.dataIndex=m.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(r,n,i,a){var o=this,s=i.getLabelModel();if(s.get("show")){var l=a.getData(),u=i.getViewLabels();this._tickLabels=[],R(u,function(c){var f=c.tickValue,d=l.getItemModel(f),h=d.getModel("label"),p=d.getModel(["emphasis","label"]),v=d.getModel(["progress","label"]),g=i.dataToCoord(c.tickValue),m=new nt({x:g,y:0,rotation:r.labelRotation-r.rotation,onclick:ce(o._changeTimeline,o,f),silent:!1,style:_t(h,{text:c.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});m.ensureState("emphasis").style=_t(p),m.ensureState("progress").style=_t(v),n.add(m),pu(m),L$(m).dataIndex=f,o._tickLabels.push(m)})}},t.prototype._renderControl=function(r,n,i,a){var o=r.controlSize,s=r.rotation,l=a.getModel("controlStyle").getItemStyle(),u=a.getModel(["emphasis","controlStyle"]).getItemStyle(),c=a.getPlayState(),f=a.get("inverse",!0);d(r.nextBtnPosition,"next",ce(this._changeTimeline,this,f?"-":"+")),d(r.prevBtnPosition,"prev",ce(this._changeTimeline,this,f?"+":"-")),d(r.playPosition,c?"stop":"play",ce(this._handlePlayClick,this,!c),!0);function d(h,p,v,g){if(h){var m=Ji(Ee(a.get(["controlStyle",p+"BtnSize"]),o),o),y=[0,-m/2,m,m],x=JOe(a,p+"Icon",y,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:v});x.ensureState("emphasis").style=u,n.add(x),pu(x)}}},t.prototype._renderCurrentPointer=function(r,n,i,a){var o=a.getData(),s=a.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=ce(u._handlePointerDrag,u),f.ondragend=ce(u._handlePointerDragend,u),O$(f,u._progressLine,s,i,a,!0)},onUpdate:function(f){O$(f,u._progressLine,s,i,a)}};this._currentPointer=E$(l,l,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(r){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:r,from:this.uid})},t.prototype._handlePointerDrag=function(r,n,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},t.prototype._handlePointerDragend=function(r){this._pointerChangeTimeline([r.offsetX,r.offsetY],!0)},t.prototype._pointerChangeTimeline=function(r,n){var i=this._toAxisCoord(r)[0],a=this._axis,o=yi(a.getExtent().slice());i>o[1]&&(i=o[1]),i=0&&(o[a]=+o[a].toFixed(d)),[o,f]}var Mw={min:Ie(Am,"min"),max:Ie(Am,"max"),average:Ie(Am,"average"),median:Ie(Am,"median")};function cv(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,i=n&&n.dimensions;if(!sNe(t)&&!Y(t.coord)&&Y(i)){var a=E7(t,r,n,e);if(t=Te(t),t.type&&Mw[t.type]&&a.baseAxis&&a.valueAxis){var o=ze(i,a.baseAxis.dim),s=ze(i,a.valueAxis.dim),l=Mw[t.type](r,a.baseDataDim,a.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!Y(i))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)Mw[u[c]]&&(u[c]=yP(r,r.mapDimension(i[c]),u[c]));return t}}function E7(e,t,r,n){var i={};return e.valueIndex!=null||e.valueDim!=null?(i.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,i.valueAxis=r.getAxis(lNe(n,i.valueDataDim)),i.baseAxis=r.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=n.getBaseAxis(),i.valueAxis=r.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function lNe(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function fv(e,t){return e&&e.containData&&t.coord&&!HA(t)?e.containData(t.coord):!0}function uNe(e,t,r){return e&&e.containZone&&t.coord&&r.coord&&!HA(t)&&!HA(r)?e.containZone(t.coord,r.coord):!0}function O7(e,t){return e?function(r,n,i,a){var o=a<2?r.coord&&r.coord[a]:r.value;return Ms(o,t[a])}:function(r,n,i,a){return Ms(r.value,t[a])}}function yP(e,t,r){if(r==="average"){var n=0,i=0;return e.each(t,function(a,o){isNaN(a)||(n+=a,i++)}),n/i}else return r==="median"?e.getMedian(t):e.getDataExtent(t)[r==="max"?1:0]}var kw=et(),cNe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this.markerGroupMap=ge()},t.prototype.render=function(r,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){kw(s).keep=!1}),n.eachSeries(function(s){var l=js.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!kw(s).keep&&a.group.remove(s.group)})},t.prototype.markKeep=function(r){kw(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var i=this;R(r,function(a){var o=js.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?uW(l):Ok(l))})}})},t.type="marker",t}(Ut);const xP=cNe;function z$(e,t,r){var n=t.coordinateSystem;e.each(function(i){var a=e.getItemModel(i),o,s=ne(a.get("x"),r.getWidth()),l=ne(a.get("y"),r.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,i));else if(n){var u=e.get(n.dimensions[0],i),c=e.get(n.dimensions[1],i);o=n.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(i,o)})}var fNe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=js.getMarkerModelFromSeries(a,"markPoint");o&&(z$(o.getData(),a,i),this.markerGroupMap.get(a.id).updateLayout())},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new Gv),f=dNe(o,r,n);n.setData(f),z$(n.getData(),r,a),f.each(function(d){var h=f.getItemModel(d),p=h.getShallow("symbol"),v=h.getShallow("symbolSize"),g=h.getShallow("symbolRotate"),m=h.getShallow("symbolOffset"),y=h.getShallow("symbolKeepAspect");if(Se(p)||Se(v)||Se(g)||Se(m)){var x=n.getRawValue(d),S=n.getDataParams(d);Se(p)&&(p=p(x,S)),Se(v)&&(v=v(x,S)),Se(g)&&(g=g(x,S)),Se(m)&&(m=m(x,S))}var _=h.getModel("itemStyle").getItemStyle(),b=zv(l,"color");_.fill||(_.fill=b),f.setItemVisual(d,{symbol:p,symbolSize:v,symbolRotate:g,symbolOffset:m,symbolKeepAspect:y,style:_})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(d){d.traverse(function(h){ke(h).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markPoint",t}(xP);function dNe(e,t,r){var n;e?n=Z(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return q(q({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new un(n,r),a=Z(r.get("data"),Ie(cv,t));e&&(a=dt(a,Ie(fv,e)));var o=O7(!!e,n);return i.initData(a,null,o),i}const hNe=fNe;function pNe(e){e.registerComponentModel(oNe),e.registerComponentView(hNe),e.registerPreprocessor(function(t){mP(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var vNe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,i){return new t(r,n,i)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(js);const gNe=vNe;var Mm=et(),mNe=function(e,t,r,n){var i=e.getData(),a;if(Y(n))a=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),l=Cr(n.yAxis,n.xAxis);else{var u=E7(n,i,t,e);s=u.valueAxis;var c=b9(i,u.valueDataDim);l=yP(i,c,o)}var f=s.dim==="x"?0:1,d=1-f,h=Te(n),p={coord:[]};h.type=null,h.coord=[],h.coord[d]=-1/0,p.coord[d]=1/0;var v=r.get("precision");v>=0&&it(l)&&(l=+l.toFixed(Math.min(v,20))),h.coord[f]=p.coord[f]=l,a=[h,p,{type:o,valueIndex:n.valueIndex,value:l}]}else a=[]}var g=[cv(e,a[0]),cv(e,a[1]),q({},a[2])];return g[2].type=g[2].type||null,Oe(g[2],g[0]),Oe(g[2],g[1]),g};function Q0(e){return!isNaN(e)&&!isFinite(e)}function B$(e,t,r,n){var i=1-e,a=n.dimensions[e];return Q0(t[i])&&Q0(r[i])&&t[e]===r[e]&&n.getAxis(a).containData(t[e])}function yNe(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(B$(1,r,n,e)||B$(0,r,n,e)))return!0}return fv(e,t[0])&&fv(e,t[1])}function Iw(e,t,r,n,i){var a=n.coordinateSystem,o=e.getItemModel(t),s,l=ne(o.get("x"),i.getWidth()),u=ne(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=a.dimensions,f=e.get(c[0],t),d=e.get(c[1],t);s=a.dataToPoint([f,d])}if(Yu(a,"cartesian2d")){var h=a.getAxis("x"),p=a.getAxis("y"),c=a.dimensions;Q0(e.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[r?0:1]):Q0(e.get(c[1],t))&&(s[1]=p.toGlobalCoord(p.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var xNe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=js.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=Mm(o).from,u=Mm(o).to;l.each(function(c){Iw(l,c,!0,a,i),Iw(u,c,!1,a,i)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new GI);this.group.add(c.group);var f=SNe(o,r,n),d=f.from,h=f.to,p=f.line;Mm(n).from=d,Mm(n).to=h,n.setData(p);var v=n.get("symbol"),g=n.get("symbolSize"),m=n.get("symbolRotate"),y=n.get("symbolOffset");Y(v)||(v=[v,v]),Y(g)||(g=[g,g]),Y(m)||(m=[m,m]),Y(y)||(y=[y,y]),f.from.each(function(S){x(d,S,!0),x(h,S,!1)}),p.each(function(S){var _=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[d.getItemLayout(S),h.getItemLayout(S)]),_.stroke==null&&(_.stroke=d.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:d.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(S,"symbolOffset"),fromSymbolRotate:d.getItemVisual(S,"symbolRotate"),fromSymbolSize:d.getItemVisual(S,"symbolSize"),fromSymbol:d.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:_})}),c.updateData(p),f.line.eachItemGraphicEl(function(S){ke(S).dataModel=n,S.traverse(function(_){ke(_).dataModel=n})});function x(S,_,b){var w=S.getItemModel(_);Iw(S,_,b,r,a);var C=w.getModel("itemStyle").getItemStyle();C.fill==null&&(C.fill=zv(l,"color")),S.setItemVisual(_,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:Ee(w.get("symbolOffset",!0),y[b?0:1]),symbolRotate:Ee(w.get("symbolRotate",!0),m[b?0:1]),symbolSize:Ee(w.get("symbolSize"),g[b?0:1]),symbol:Ee(w.get("symbol",!0),v[b?0:1]),style:C})}this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markLine",t}(xP);function SNe(e,t,r){var n;e?n=Z(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return q(q({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new un(n,r),a=new un(n,r),o=new un([],r),s=Z(r.get("data"),Ie(mNe,t,e,r));e&&(s=dt(s,Ie(yNe,e)));var l=O7(!!e,n);return i.initData(Z(s,function(u){return u[0]}),null,l),a.initData(Z(s,function(u){return u[1]}),null,l),o.initData(Z(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}const bNe=xNe;function _Ne(e){e.registerComponentModel(gNe),e.registerComponentView(bNe),e.registerPreprocessor(function(t){mP(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var wNe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,i){return new t(r,n,i)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(js);const CNe=wNe;var km=et(),TNe=function(e,t,r,n){var i=n[0],a=n[1];if(!(!i||!a)){var o=cv(e,i),s=cv(e,a),l=o.coord,u=s.coord;l[0]=Cr(l[0],-1/0),l[1]=Cr(l[1],-1/0),u[0]=Cr(u[0],1/0),u[1]=Cr(u[1],1/0);var c=mk([{},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 J0(e){return!isNaN(e)&&!isFinite(e)}function $$(e,t,r,n){var i=1-e;return J0(t[i])&&J0(r[i])}function ANe(e,t){var r=t.coord[0],n=t.coord[1],i={coord:r,x:t.x0,y:t.y0},a={coord:n,x:t.x1,y:t.y1};return Yu(e,"cartesian2d")?r&&n&&($$(1,r,n)||$$(0,r,n))?!0:uNe(e,i,a):fv(e,i)||fv(e,a)}function F$(e,t,r,n,i){var a=n.coordinateSystem,o=e.getItemModel(t),s,l=ne(o.get(r[0]),i.getWidth()),u=ne(o.get(r[1]),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var c=e.getValues(["x0","y0"],t),f=e.getValues(["x1","y1"],t),d=a.clampData(c),h=a.clampData(f),p=[];r[0]==="x0"?p[0]=d[0]>h[0]?f[0]:c[0]:p[0]=d[0]>h[0]?c[0]:f[0],r[1]==="y0"?p[1]=d[1]>h[1]?f[1]:c[1]:p[1]=d[1]>h[1]?c[1]:f[1],s=n.getMarkerPosition(p,r,!0)}else{var v=e.get(r[0],t),g=e.get(r[1],t),m=[v,g];a.clampData&&a.clampData(m,m),s=a.dataToPoint(m,!0)}if(Yu(a,"cartesian2d")){var y=a.getAxis("x"),x=a.getAxis("y"),v=e.get(r[0],t),g=e.get(r[1],t);J0(v)?s[0]=y.toGlobalCoord(y.getExtent()[r[0]==="x0"?0:1]):J0(g)&&(s[1]=x.toGlobalCoord(x.getExtent()[r[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var V$=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],MNe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=js.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Z(V$,function(f){return F$(s,l,f,a,i)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new Me});this.group.add(c.group),this.markKeep(c);var f=kNe(o,r,n);n.setData(f),f.each(function(d){var h=Z(V$,function(C){return F$(f,d,C,r,a)}),p=o.getAxis("x").scale,v=o.getAxis("y").scale,g=p.getExtent(),m=v.getExtent(),y=[p.parse(f.get("x0",d)),p.parse(f.get("x1",d))],x=[v.parse(f.get("y0",d)),v.parse(f.get("y1",d))];yi(y),yi(x);var S=!(g[0]>y[1]||g[1]x[1]||m[1]=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(tt);const WA=RNe;var _c=Ie,jA=R,Im=Me,LNe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new Im),this.group.add(this._selectorGroup=new Im),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var c=r.getBoxLayoutParams(),f={width:i.getWidth(),height:i.getHeight()},d=r.get("padding"),h=pr(c,f,d),p=this.layoutInner(r,o,h,a,l,u),v=pr(be({width:p.width,height:p.height},c),f,d);this.group.x=v.x-p.x,this.group.y=v.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=w7(p,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),c=ge(),f=n.get("selectedMode"),d=[];i.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),jA(n.getData(),function(h,p){var v=h.get("name");if(!this.newlineDisabled&&(v===""||v===` +`)){var g=new Im;g.newline=!0,u.add(g);return}var m=i.getSeriesByName(v)[0];if(!c.get(v))if(m){var y=m.getData(),x=y.getVisual("legendLineStyle")||{},S=y.getVisual("legendIcon"),_=y.getVisual("style"),b=this._createItem(m,v,p,h,n,r,x,_,S,f,a);b.on("click",_c(G$,v,null,a,d)).on("mouseover",_c(UA,m.name,null,a,d)).on("mouseout",_c(qA,m.name,null,a,d)),c.set(v,!0)}else i.eachRawSeries(function(w){if(!c.get(v)&&w.legendVisualProvider){var C=w.legendVisualProvider;if(!C.containName(v))return;var A=C.indexOfName(v),T=C.getItemVisual(A,"style"),M=C.getItemVisual(A,"legendIcon"),k=Wn(T.fill);k&&k[3]===0&&(k[3]=.2,T=q(q({},T),{fill:fo(k,"rgba")}));var I=this._createItem(w,v,p,h,n,r,{},T,M,f,a);I.on("click",_c(G$,null,v,a,d)).on("mouseover",_c(UA,null,v,a,d)).on("mouseout",_c(qA,null,v,a,d)),c.set(v,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();jA(r,function(u){var c=u.type,f=new nt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var d=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);Br(f,{normal:d,emphasis:h},{defaultText:u.title}),pu(f)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,c,f,d){var h=r.visualDrawType,p=o.get("itemWidth"),v=o.get("itemHeight"),g=o.isSelected(n),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),x=a.get("icon");c=x||c||"roundRect";var S=ENe(c,a,l,u,h,g,d),_=new Im,b=a.getModel("textStyle");if(Se(r.getLegendIcon)&&(!x||x==="inherit"))_.add(r.getLegendIcon({itemWidth:p,itemHeight:v,icon:c,iconRotate:m,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}));else{var w=x==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;_.add(ONe({itemWidth:p,itemHeight:v,icon:c,iconRotate:w,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}))}var C=s==="left"?p+5:-5,A=s,T=o.get("formatter"),M=n;oe(T)&&T?M=T.replace("{name}",n??""):Se(T)&&(M=T(n));var k=g?b.getTextColor():a.get("inactiveColor");_.add(new nt({style:_t(b,{text:M,x:C,y:v/2,fill:k,align:A,verticalAlign:"middle"},{inheritColor:k})}));var I=new Je({shape:_.getBoundingRect(),invisible:!0}),D=a.getModel("tooltip");return D.get("show")&&td({el:I,componentModel:o,itemName:n,itemTooltipOption:D.option}),_.add(I),_.eachChild(function(L){L.silent=!0}),I.silent=!f,this.getContentGroup().add(_),pu(_),_.__legendDataIndex=i,_},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();gu(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){gu("horizontal",u,r.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],p=r.get("selectorButtonGap",!0),v=r.getOrient().index,g=v===0?"width":"height",m=v===0?"height":"width",y=v===0?"y":"x";s==="end"?h[v]+=c[g]+p:f[v]+=d[g]+p,h[1-v]+=c[m]/2-d[m]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var x={x:0,y:0};return x[g]=c[g]+p+d[g],x[m]=Math.max(c[m],d[m]),x[y]=Math.min(0,d[y]+h[1-v]),x}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Ut);function ENe(e,t,r,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),jA(g,function(y,x){g[x]==="inherit"&&(g[x]=m[x])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:Rf(f,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var d=t.getModel("lineStyle"),h=d.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!a){var p=t.get("inactiveBorderWidth"),v=u[c];u.lineWidth=p==="auto"?n.lineWidth>0&&v?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function ONe(e){var t=e.icon||"roundRect",r=lr(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function G$(e,t,r,n){qA(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),UA(e,t,r,n)}function N7(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,i=t.length;ni[o],g=[-h.x,-h.y];n||(g[a]=c[u]);var m=[0,0],y=[-p.x,-p.y],x=Ee(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(v){var S=r.get("pageButtonPosition",!0);S==="end"?y[a]+=i[o]-p[o]:m[a]+=p[o]+x}y[1-a]+=h[s]/2-p[s]/2,c.setPosition(g),f.setPosition(m),d.setPosition(y);var _={x:0,y:0};if(_[o]=v?i[o]:h[o],_[s]=Math.max(h[s],p[s]),_[l]=Math.min(0,p[l]+y[1-a]),f.__rectSize=i[o],v){var b={x:0,y:0};b[o]=Math.max(i[o]-p[o]-x,0),b[s]=_[s],f.setClipPath(new Je({shape:b})),f.__rectSize=b[o]}else d.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(r);return w.pageIndex!=null&&at(c,{x:w.contentPosition[0],y:w.contentPosition[1]},v?r:null),this._updatePageInfoView(r,w),_},t.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;R(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=n[f]!=null,h=i.childOfName(c);h&&(h.setStyle("fill",d?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=d?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",oe(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=Pw[o],l=Dw[o],u=this._findTargetItemIndex(n),c=i.children(),f=c[u],d=c.length,h=d?1:0,p={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return p;var v=S(f);p.contentPosition[o]=-v.s;for(var g=u+1,m=v,y=v,x=null;g<=d;++g)x=S(c[g]),(!x&&y.e>m.s+a||x&&!_(x,m.s))&&(y.i>m.i?m=y:m=x,m&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=m.i),++p.pageCount)),y=x;for(var g=u-1,m=v,y=v,x=null;g>=-1;--g)x=S(c[g]),(!x||!_(y,x.s))&&m.i=w&&b.s<=w+a}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},t.type="legend.scroll",t}(z7);const VNe=FNe;function GNe(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function HNe(e){Fe(B7),e.registerComponentModel($Ne),e.registerComponentView(VNe),GNe(e)}function WNe(e){Fe(B7),Fe(HNe)}var jNe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.inside",t.defaultOption=Js(uv.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(uv);const UNe=jNe;var SP=et();function qNe(e,t,r){SP(e).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=r)})}function YNe(e,t){for(var r=SP(e).coordSysRecordMap,n=r.keys(),i=0;in[r+t]&&(t=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function JNe(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=SP(r),i=n.coordSysRecordMap||(n.coordSysRecordMap=ge());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=S7(a);R(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,XNe(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ge());c.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){$7(i,a);return}var c=QNe(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),ud(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var eze=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return t.prototype.render=function(r,n,i){if(e.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),qNe(i,r,{pan:ce(Rw.pan,this),zoom:ce(Rw.zoom,this),scrollMove:ce(Rw.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){YNe(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(fP),Rw={zoom:function(e,t,r,n){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=Lw[t](null,[n.originX,n.originY],o,r,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Zu(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:j$(function(e,t,r,n,i,a){var o=Lw[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:j$(function(e,t,r,n,i,a){var o=Lw[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,r);return o.signal*(e[1]-e[0])*a.scrollDelta})};function j$(e){return function(t,r,n,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,r,n,i);if(Zu(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var Lw={grid:function(e,t,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem.getRect();return e=e||[0,0],a.dim==="x"?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),r.mainType==="radiusAxis"?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,r,n,i){var a=r.axis,o=i.model.coordinateSystem.getRect(),s={};return e=e||[0,0],a.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};const tze=eze;function F7(e){dP(e),e.registerComponentModel(UNe),e.registerComponentView(tze),JNe(e)}var rze=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Js(uv.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(uv);const nze=rze;var th=Je,U$=7,ize=1,Ew=30,aze=7,rh="horizontal",q$="vertical",oze=5,sze=["line","bar","candlestick","scatter"],lze={easing:"cubicOut",duration:100,delay:0},uze=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._displayables={},r}return t.prototype.init=function(r,n){this.api=n,this._onBrush=ce(this._onBrush,this),this._onBrushEnd=ce(this._onBrushEnd,this)},t.prototype.render=function(r,n,i,a){if(e.prototype.render.apply(this,arguments),ud(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),r.get("show")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Kp(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new Me;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,i=r.get("brushSelect"),a=i?aze:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===rh?{right:s.width-o.x-o.width,top:s.height-Ew-U$-a,width:o.width,height:Ew}:{right:U$,top:o.y,width:Ew,height:o.height},u=ad(r.option);R(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=pr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===q$&&this._size.reverse()},t.prototype._positionGroup=function(){var r=this.group,n=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===rh&&!o?{scaleY:l?1:-1,scaleX:1}:i===rh&&o?{scaleY:l?1:-1,scaleX:-1}:i===q$&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=r.getBoundingRect([s]);r.x=n.x-u.x,r.y=n.y-u.y,r.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,i=this._displayables.sliderGroup,a=r.get("brushSelect");i.add(new th({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new th({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:ce(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},t.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,i=this._shadowSize||[],a=r.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():r.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var f=o.getDataExtent(l),d=(f[1]-f[0])*.3;f=[f[0]-d,f[1]+d];var h=[0,n[1]],p=[0,n[0]],v=[[n[0],0],[0,0]],g=[],m=p[1]/(o.count()-1),y=0,x=Math.round(o.count()/n[0]),S;o.each([l],function(A,T){if(x>0&&T%x){y+=m;return}var M=A==null||isNaN(A)||A==="",k=M?0:ft(A,f,h,!0);M&&!S&&T?(v.push([v[v.length-1][0],0]),g.push([g[g.length-1][0],0])):!M&&S&&(v.push([y,0]),g.push([y,0])),v.push([y,k]),g.push([y,k]),y+=m,S=M}),u=this._shadowPolygonPts=v,c=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var _=this.dataZoomModel;function b(A){var T=_.getModel(A?"selectedDataBackground":"dataBackground"),M=new Me,k=new Rn({shape:{points:u},segmentIgnoreThreshold:1,style:T.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),I=new En({shape:{points:c},segmentIgnoreThreshold:1,style:T.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(k),M.add(I),M}for(var w=0;w<3;w++){var C=b(w===1);this._displayables.sliderGroup.add(C),this._displayables.dataShadowSegs.push(C)}},t.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var i,a=this.ecModel;return r.eachTargetAxis(function(o,s){var l=r.getAxisProxy(o,s).getTargetSeriesModels();R(l,function(u){if(!i&&!(n!==!0&&ze(sze,u.get("type"))<0)){var c=a.getComponent(ps(o),s).axis,f=cze(o),d,h=u.coordinateSystem;f!=null&&h.getOtherAxis&&(d=h.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),i={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:d}}},this)},this),i}},t.prototype._renderHandle=function(){var r=this.group,n=this._displayables,i=n.handles=[null,null],a=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),d=n.filler=new th({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new th({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:ize,fill:"rgba(0,0,0,0)"}})),R([0,1],function(x){var S=l.get("handleIcon");!k0[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var _=lr(S,-1,0,2,2,null,!0);_.attr({cursor:Y$(this._orient),draggable:!0,drift:ce(this._onDragMove,this,x),ondragend:ce(this._onDragEnd,this),onmouseover:ce(this._showDataInfo,this,!0),onmouseout:ce(this._showDataInfo,this,!1),z2:5});var b=_.getBoundingRect(),w=l.get("handleSize");this._handleHeight=ne(w,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,_.setStyle(l.getModel("handleStyle").getItemStyle()),_.style.strokeNoScale=!0,_.rectHover=!0,_.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),pu(_);var C=l.get("handleColor");C!=null&&(_.style.fill=C),o.add(i[x]=_);var A=l.getModel("textStyle");r.add(a[x]=new nt({silent:!0,invisible:!0,style:_t(A,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:A.getTextColor(),font:A.getFont()}),z2:10}))},this);var h=d;if(f){var p=ne(l.get("moveHandleSize"),s[1]),v=n.moveHandle=new Je({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,m=n.moveHandleIcon=lr(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);m.silent=!0,m.y=s[1]+p/2-.5,v.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(p,10));h=n.moveZone=new Je({invisible:!0,shape:{y:s[1]-y,height:p+y}}),h.on("mouseover",function(){u.enterEmphasis(v)}).on("mouseout",function(){u.leaveEmphasis(v)}),o.add(v),o.add(m),o.add(h)}h.attr({draggable:!0,cursor:Y$(this._orient),drift:ce(this._onDragMove,this,"all"),ondragstart:ce(this._showDataInfo,this,!0),ondragend:ce(this._onDragEnd,this),onmouseover:ce(this._showDataInfo,this,!0),onmouseout:ce(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[ft(r[0],[0,100],n,!0),ft(r[1],[0,100],n,!0)]},t.prototype._updateInterval=function(r,n){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Zu(n,a,o,i.get("zoomLock")?"all":r,s.minSpan!=null?ft(s.minSpan,l,o,!0):null,s.maxSpan!=null?ft(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=yi([ft(a[0],o,l,!0),ft(a[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(r){var n=this._displayables,i=this._handleEnds,a=yi(i.slice()),o=this._size;R([0,1],function(h){var p=n.handles[h],v=this._handleHeight;p.attr({scaleX:v/2,scaleY:v/2,x:i[h]+(h?-1:1),y:o[1]/2-v/2})},this),n.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,a[0],a[1],o[0]],c=0;cn[0]||i[1]<0||i[1]>n[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(r){var n=r.offsetX,i=r.offsetY;this._brushStart=new Le(n,i),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(r){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var i=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=yi([ft(i.x,o,s,!0),ft(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(r){this._brushing&&(bo(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},t.prototype._updateBrushRect=function(r,n){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new th({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(r,n),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},t.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?lze:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=S7(this.dataZoomModel).infoList;if(!r&&n.length){var i=n[0].model.coordinateSystem;r=i.getRect&&i.getRect()}if(!r){var a=this.api.getWidth(),o=this.api.getHeight();r={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return r},t.type="dataZoom.slider",t}(fP);function cze(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function Y$(e){return e==="vertical"?"ns-resize":"ew-resize"}const fze=uze;function V7(e){e.registerComponentModel(nze),e.registerComponentView(fze),dP(e)}function dze(e){Fe(F7),Fe(V7)}var hze={get:function(e,t,r){var n=Te((pze[e]||{})[t]);return r&&Y(n)?n[n.length-1]:n}},pze={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 G7=hze;var X$=Or.mapVisual,vze=Or.eachVisual,gze=Y,Z$=R,mze=yi,yze=ft,xze=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.optionUpdated=function(r,n){var i=this.option;!n&&P7(i,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(r){var n=this.stateList;r=ce(r,this),this.controllerVisuals=VA(this.option.controller,n,r),this.targetVisuals=VA(this.option.target,n,r)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var r=this.option.seriesIndex,n=[];return r==null||r==="all"?this.ecModel.eachSeries(function(i,a){n.push(a)}):n=pt(r),n},t.prototype.eachTargetSeries=function(r,n){R(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&r.call(n,a)},this)},t.prototype.isTargetSeries=function(r){var n=!1;return this.eachTargetSeries(function(i){i===r&&(n=!0)}),n},t.prototype.formatValueText=function(r,n,i){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;i=i||["<",">"],Y(r)&&(r=r.slice(),u=!0);var c=n?r:u?[f(r[0]),f(r[1])]:f(r);if(oe(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(Se(l))return u?l(r[0],r[1]):l(r);if(u)return r[0]===s[0]?i[0]+" "+c[1]:r[1]===s[1]?i[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(d){return d===s[0]?"min":d===s[1]?"max":(+d).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var r=this.option,n=mze([r.min,r.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(r){var n=this.option.dimension;if(n!=null)return r.getDimensionIndex(n);for(var i=r.dimensions,a=i.length-1;a>=0;a--){var o=i[a],s=r.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var r=this.ecModel,n=this.option,i={inRange:n.inRange,outOfRange:n.outOfRange},a=n.target||(n.target={}),o=n.controller||(n.controller={});Oe(a,i),Oe(o,i);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),c.call(this,o);function l(f){gze(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:r.get("gradientColor")}}function u(f,d,h){var p=f[d],v=f[h];p&&!v&&(v=f[h]={},Z$(p,function(g,m){if(Or.isValidType(m)){var y=G7.get(m,"inactive",s);y!=null&&(v[m]=y,m==="color"&&!v.hasOwnProperty("opacity")&&!v.hasOwnProperty("colorAlpha")&&(v.opacity=[0,0]))}}))}function c(f){var d=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,h=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),v=this.getItemSymbol(),g=v||"roundRect";Z$(this.stateList,function(m){var y=this.itemSize,x=f[m];x||(x=f[m]={color:s?p:[p]}),x.symbol==null&&(x.symbol=d&&Te(d)||(s?g:[g])),x.symbolSize==null&&(x.symbolSize=h&&Te(h)||(s?y[0]:[y[0],y[0]])),x.symbol=X$(x.symbol,function(b){return b==="none"?g:b});var S=x.symbolSize;if(S!=null){var _=-1/0;vze(S,function(b){b>_&&(_=b)}),x.symbolSize=X$(S,function(b){return yze(b,[0,_],[0,y[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(r){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(r){return null},t.prototype.getVisualMeta=function(r){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(tt);const e1=xze;var K$=[20,140],Sze=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var r=this.itemSize;(r[0]==null||isNaN(r[0]))&&(r[0]=K$[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=K$[1])},t.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):Y(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),R(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},t.prototype.getSelected=function(){var r=this.getExtent(),n=yi((this.get("range")||[]).slice());return n[0]>r[1]&&(n[0]=r[1]),n[1]>r[1]&&(n[1]=r[1]),n[0]=i[1]||r<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[];return this.eachTargetSeries(function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){r[0]<=s&&s<=r[1]&&a.push(l)},this),n.push({seriesId:i.id,dataIndex:a})},this),n},t.prototype.getVisualMeta=function(r){var n=Q$(this,"outOfRange",this.getExtent()),i=Q$(this,"inRange",this.option.range.slice()),a=[];function o(h,p){a.push({value:h,color:r(h,p)})}for(var s=0,l=0,u=i.length,c=n.length;lr[1])break;a.push({color:this.getControllerVisual(l,"color",n),offset:s/i})}return a.push({color:this.getControllerVisual(r[1],"color",n),offset:1}),a},t.prototype._createBarPoints=function(r,n){var i=this.visualMapModel.itemSize;return[[i[0]-n[0],r[0]],[i[0],r[0]],[i[0],r[1]],[i[0]-n[1],r[1]]]},t.prototype._createBarGroup=function(r){var n=this._orient,i=this.visualMapModel.get("inverse");return new Me(n==="horizontal"&&!i?{scaleX:r==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&i?{scaleX:r==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!i?{scaleX:r==="left"?1:-1,scaleY:-1}:{scaleX:r==="left"?1:-1})},t.prototype._updateHandle=function(r,n){if(this._useHandle){var i=this._shapes,a=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=a.itemSize,u=a.getExtent();wze([0,1],function(c){var f=o[c];f.setStyle("fill",n.handlesColor[c]),f.y=r[c];var d=ca(r[c],[0,l[1]],u,!0),h=this.getControllerVisual(d,"symbolSize");f.scaleX=f.scaleY=h/l[0],f.x=l[0]-h/2;var p=Yi(i.handleLabelPoints[c],vu(f,this.group));s[c].setStyle({x:p[0],y:p[1],text:a.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(r,n,i,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var d={convertOpacityToAlpha:!0},h=this.getControllerVisual(r,"color",d),p=this.getControllerVisual(r,"symbolSize"),v=ca(r,s,u,!0),g=l[0]-p/2,m={x:f.x,y:f.y};f.y=v,f.x=g;var y=Yi(c.indicatorLabelPoint,vu(f,this.group)),x=c.indicatorLabel;x.attr("invisible",!1);var S=this._applyTransform("left",c.mainGroup),_=this._orient,b=_==="horizontal";x.setStyle({text:(i||"")+o.formatValueText(n),verticalAlign:b?S:"middle",align:b?"center":S});var w={x:g,y:v,style:{fill:h}},C={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var A={duration:100,easing:"cubicInOut",additive:!0};f.x=m.x,f.y=m.y,f.animateTo(w,A),x.animateTo(C,A)}else f.attr(w),x.attr(C);this._firstShowIndicator=!1;var T=this._shapes.handleLabels;if(T)for(var M=0;Mo[1]&&(f[1]=1/0),n&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var d=this._hoverLinkDataIndices,h=[];(n||rF(i))&&(h=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var p=pye(d,h);this._dispatchHighDown("downplay",vy(p[0],i)),this._dispatchHighDown("highlight",vy(p[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(nu(r.target,function(l){var u=ke(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var i=this.ecModel.getSeriesByIndex(n.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(i)){var o=i.getData(n.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var r=this._shapes;r.indicator&&r.indicator.attr("invisible",!0),r.indicatorLabel&&r.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var i=0;i=0&&(a.dimension=o,n.push(a))}}),e.getData().setVisual("visualMeta",n)}}];function Rze(e,t,r,n){for(var i=t.targetVisuals[n],a=Or.prepareVisualTypes(i),o={color:zv(e.getData(),"color")},s=0,l=a.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(Ize,Pze),R(Dze,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(Lze))}function U7(e){e.registerComponentModel(bze),e.registerComponentView(kze),j7(e)}var Eze=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._pieceList=[],r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],Oze[this._mode].call(this,this._pieceList),this._resetSelected(r,n);var a=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=Te(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Z(this._pieceList,function(l){return l=Te(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var r=this.option,n={},i=Or.listVisualTypes(),a=this.isCategory();R(r.pieces,function(s){R(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),R(n,function(s,l){var u=!1;R(this.stateList,function(c){u=u||o(r,c,l)||o(r.target,c,l)},this),!u&&R(this.stateList,function(c){(r[c]||(r[c]={}))[l]=G7.get(l,c==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(r,n){var i=this.option,a=this._pieceList,o=(n?i:r).selected||{};if(i.selected=o,R(a,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;R(a,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(r){return this._mode==="categories"?r.value+"":r.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(r){this.option.selected=Te(r)},t.prototype.getValueState=function(r){var n=Or.findPieceIndex(r,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[],i=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Or.findPieceIndex(l,i);c===r&&o.push(u)},this),n.push({seriesId:a.id,dataIndex:o})},this),n},t.prototype.getRepresentValue=function(r){var n;if(this.isCategory())n=r.value;else if(r.value!=null)n=r.value;else{var i=r.interval||[];n=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return n},t.prototype.getVisualMeta=function(r){if(this.isCategory())return;var n=[],i=["",""],a=this;function o(c,f){var d=a.getRepresentValue({interval:c});f||(f=a.getValueState(d));var h=r(d,f);c[0]===-1/0?i[0]=h:c[1]===1/0?i[1]=h:n.push({value:c[0],color:h},{value:c[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return R(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:n,outerColors:i}},t.type="visualMap.piecewise",t.defaultOption=Js(e1.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(e1),Oze={splitNumber:function(e){var t=this.option,r=Math.min(t.precision,20),n=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(n[1]-n[0])/i;+a.toFixed(r)!==a&&r<5;)r++;t.precision=r,a=+a.toFixed(r),t.minOpen&&e.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o","≥"][n[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,i)},this)}};function oF(e,t){var r=e.inverse;(e.orient==="vertical"?!r:r)&&t.reverse()}const Nze=Eze;var zze=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.doRender=function(){var r=this.group;r.removeAll();var n=this.visualMapModel,i=n.get("textGap"),a=n.textStyleModel,o=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=n.itemSize,c=this._getViewData(),f=c.endsText,d=Cr(n.get("showLabel",!0),!f);f&&this._renderEndsText(r,f[0],u,d,l),R(c.viewPieceList,function(h){var p=h.piece,v=new Me;v.onclick=ce(this._onItemClick,this,p),this._enableHoverLink(v,h.indexInModelPieceList);var g=n.getRepresentValue(p);if(this._createItemSymbol(v,g,[0,0,u[0],u[1]]),d){var m=this.visualMapModel.getValueState(g);v.add(new nt({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:m==="outOfRange"?.5:1}}))}r.add(v)},this),f&&this._renderEndsText(r,f[1],u,d,l),gu(n.get("orient"),r,n.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},t.prototype._enableHoverLink=function(r,n){var i=this;r.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:vy(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return W7(r,this.api,r.itemSize);var i=n.align;return(!i||i==="auto")&&(i="left"),i},t.prototype._renderEndsText=function(r,n,i,a,o){if(n){var s=new Me,l=this.visualMapModel.textStyleModel;s.add(new nt({style:_t(l,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:n})})),r.add(s)}},t.prototype._getViewData=function(){var r=this.visualMapModel,n=Z(r.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=r.get("text"),a=r.get("orient"),o=r.get("inverse");return(a==="horizontal"?o:!o)?n.reverse():i&&(i=i.slice().reverse()),{viewPieceList:n,endsText:i}},t.prototype._createItemSymbol=function(r,n,i){r.add(lr(this.getControllerVisual(n,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(n,"color")))},t.prototype._onItemClick=function(r){var n=this.visualMapModel,i=n.option,a=i.selectedMode;if(a){var o=Te(i.selected),s=n.getSelectedMapKey(r);a==="single"||a===!0?(o[s]=!0,R(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(H7);const Bze=zze;function q7(e){e.registerComponentModel(Nze),e.registerComponentView(Bze),j7(e)}function $ze(e){Fe(U7),Fe(q7)}var Fze={label:{enabled:!0},decal:{show:!1}},sF=et(),Vze={};function Gze(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=Te(Fze);Oe(n.label,e.getLocaleModel().get("aria"),!1),Oe(r.option,n,!1),i(),a();function i(){var u=r.getModel("decal"),c=u.get("show");if(c){var f=ge();e.eachSeries(function(d){if(!d.isColorBySeries()){var h=f.get(d.type);h||(h={},f.set(d.type,h)),sF(d).scope=h}}),e.eachRawSeries(function(d){if(e.isSeriesFiltered(d))return;if(Se(d.enableAriaDecal)){d.enableAriaDecal();return}var h=d.getData();if(d.isColorBySeries()){var y=YT(d.ecModel,d.name,Vze,e.getSeriesCount()),x=h.getVisual("decal");h.setVisual("decal",S(x,y))}else{var p=d.getRawData(),v={},g=sF(d).scope;h.each(function(_){var b=h.getRawIndex(_);v[b]=_});var m=p.count();p.each(function(_){var b=v[_],w=p.getName(_)||_+"",C=YT(d.ecModel,w,g,m),A=h.getItemVisual(b,"decal");h.setItemVisual(b,"decal",S(A,C))})}function S(_,b){var w=_?q(q({},b),_):b;return w.dirty=!0,w}})}}function a(){var u=e.getLocaleModel().get("aria"),c=r.getModel("label");if(c.option=be(c.option,u),!!c.get("enabled")){var f=t.getZr().dom;if(c.get("description")){f.setAttribute("aria-label",c.get("description"));return}var d=e.getSeriesCount(),h=c.get(["data","maxCount"])||10,p=c.get(["series","maxCount"])||10,v=Math.min(d,p),g;if(!(d<1)){var m=s();if(m){var y=c.get(["general","withTitle"]);g=o(y,{title:m})}else g=c.get(["general","withoutTitle"]);var x=[],S=d>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(S,{seriesCount:d}),e.eachSeries(function(C,A){if(A1?c.get(["series","multiple",k]):c.get(["series","single",k]),T=o(T,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var I=C.getData();if(I.count()>h){var D=c.get(["data","partialData"]);T+=o(D,{displayCnt:h})}else T+=c.get(["data","allData"]);for(var L=c.get(["data","separator","middle"]),z=c.get(["data","separator","end"]),V=[],N=0;N":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},jze=function(){function e(t){var r=this._condVal=oe(t)?new RegExp(t):Tge(t)?t:null;if(r==null){var n="";lt(n)}}return e.prototype.evaluate=function(t){var r=typeof t;return oe(r)?this._condVal.test(t):it(r)?this._condVal.test(t+""):!1},e}(),Uze=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),qze=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r2&&n.push(i),i=[I,D]}function c(I,D,L,z){Kc(I,L)&&Kc(D,z)||i.push(I,D,L,z,L,z)}function f(I,D,L,z,V,N){var F=Math.abs(D-I),E=Math.tan(F/4)*4/3,G=DC:M2&&n.push(i),n}function XA(e,t,r,n,i,a,o,s,l,u){if(Kc(e,r)&&Kc(t,n)&&Kc(i,o)&&Kc(a,s)){l.push(o,s);return}var c=2/u,f=c*c,d=o-e,h=s-t,p=Math.sqrt(d*d+h*h);d/=p,h/=p;var v=r-e,g=n-t,m=i-o,y=a-s,x=v*v+g*g,S=m*m+y*y;if(x=0&&C=0){l.push(o,s);return}var A=[],T=[];Bs(e,r,i,o,.5,A),Bs(t,n,a,s,.5,T),XA(A[0],T[0],A[1],T[1],A[2],T[2],A[3],T[3],l,u),XA(A[4],T[4],A[5],T[5],A[6],T[6],A[7],T[7],l,u)}function s5e(e,t){var r=YA(e),n=[];t=t||1;for(var i=0;i0)for(var u=0;uMath.abs(u),f=X7([l,u],c?0:1,t),d=(c?s:u)/f.length,h=0;hi,o=X7([n,i],a?0:1,t),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",c=a?"y":"x",f=e[s]/o.length,d=0;d1?null:new Le(v*l+e,v*u+t)}function c5e(e,t,r){var n=new Le;Le.sub(n,r,t),n.normalize();var i=new Le;Le.sub(i,e,t);var a=i.dot(n);return a}function Cc(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function f5e(e,t,r){for(var n=e.length,i=[],a=0;ao?(u.x=c.x=s+a/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+a),f5e(t,u,c)}function t1(e,t,r,n){if(r===1)n.push(t);else{var i=Math.floor(r/2),a=e(t);t1(e,a[0],i,n),t1(e,a[1],r-i,n)}return n}function d5e(e,t){for(var r=[],n=0;n0)for(var _=n/r,b=-n/2;b<=n/2;b+=_){for(var w=Math.sin(b),C=Math.cos(b),A=0,x=0;x0;u/=2){var c=0,f=0;(e&u)>0&&(c=1),(t&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(e=u-1-e,t=u-1-t),l=e,e=t,t=l)}return s}function i1(e){var t=1/0,r=1/0,n=-1/0,i=-1/0,a=Z(e,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return t=Math.min(c,t),r=Math.min(f,r),n=Math.max(c,n),i=Math.max(f,i),[c,f]}),o=Z(a,function(s,l){return{cp:s,z:b5e(s[0],s[1],t,r,n,i),path:e[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function Q7(e){return v5e(e.path,e.count)}function ZA(){return{fromIndividuals:[],toIndividuals:[],count:0}}function _5e(e,t,r){var n=[];function i(_){for(var b=0;b<_.length;b++){var w=_[b];r1(w)?i(w.childrenRef()):w instanceof je&&n.push(w)}}i(e);var a=n.length;if(!a)return ZA();var o=r.dividePath||Q7,s=o({path:t,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),ZA();n=i1(n),s=i1(s);for(var l=r.done,u=r.during,c=r.individualDelay,f=new oo,d=0;d=0;i--)if(!r[i].many.length){var l=r[s].many;if(l.length<=1)if(s)s=0;else return r;var a=l.length,u=Math.ceil(a/2);r[i].many=l.slice(u,a),r[s].many=l.slice(0,u),s++}return r}var C5e={clone:function(e){for(var t=[],r=1-Math.pow(1-e.path.style.opacity,1/e.count),n=0;n0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;gF(e)&&(u=e,c=t),gF(t)&&(u=t,c=e);function f(m,y,x,S,_){var b=m.many,w=m.one;if(b.length===1&&!_){var C=y?b[0]:w,A=y?w:b[0];if(r1(C))f({many:[C],one:A},!0,x,S,!0);else{var T=s?be({delay:s(x,S)},l):l;_P(C,A,T),a(C,A,C,A,T)}}else for(var M=be({dividePath:C5e[r],individualDelay:s&&function(V,N,F,E){return s(V+x,S)}},l),k=y?_5e(b,w,M):w5e(w,b,M),I=k.fromIndividuals,D=k.toIndividuals,L=I.length,z=0;zt.length,h=u?mF(c,u):mF(d?t:e,[d?e:t]),p=0,v=0;vJ7))for(var i=n.getIndices(),a=A5e(n),o=0;o0&&S.group.traverse(function(b){b instanceof je&&!b.animators.length&&b.animateFrom({style:{opacity:0}},_)})})}function xF(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function SF(e){return Y(e)?e.sort().join(","):e}function es(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function I5e(e,t){var r=ge(),n=ge(),i=ge();return R(e.oldSeries,function(a,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=xF(a),c=SF(u);n.set(c,{dataGroupId:s,data:l}),Y(u)&&R(u,function(f){i.set(f,{key:c,dataGroupId:s,data:l})})}),R(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=xF(a),u=SF(l),c=n.get(u);if(c)r.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:es(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:es(s),data:s}]});else if(Y(l)){var f=[];R(l,function(p){var v=n.get(p);v.data&&f.push({dataGroupId:v.dataGroupId,divide:es(v.data),data:v.data})}),f.length&&r.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:es(s)}]})}else{var d=i.get(l);if(d){var h=r.get(d.key);h||(h={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:es(d.data)}],newSeries:[]},r.set(d.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:es(s)})}}}}),r}function bF(e,t){for(var r=0;r=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:es(t.oldData[s]),dim:o.dimension})}),R(pt(e.to),function(o){var s=bF(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:es(l),dim:o.dimension})}}),i.length>0&&a.length>0&&eq(i,a,n)}function D5e(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){R(pt(n.seriesTransition),function(i){R(pt(i.to),function(a){for(var o=n.updatedSeries,s=0;se?new Date(e).toLocaleString():"",R5e=e=>e?new Date(e).toLocaleTimeString():"",op="#b3c3bc",QA="#5b6f66";fI("locust",{backgroundColor:"#27272a",textStyle:{color:op},title:{textStyle:{color:op}}});const L5e=({charts:e,title:t,seriesData:r,colors:n})=>({legend:{icon:"circle",inactiveColor:op,textStyle:{color:op}},title:{text:t,x:10,y:10},dataZoom:[{type:"inside",start:0,end:50}],tooltip:{trigger:"axis",formatter:i=>i&&Array.isArray(i)&&i.length>0&&i.some(a=>!!a.value)?i.reduce((a,{axisValue:o,color:s,seriesName:l,value:u},c)=>` + ${c===0?KA(o):""} ${a}
${l}: ${u} - `,""):"No data",axisPointer:{animation:!0},textStyle:{color:op,fontSize:13},backgroundColor:"rgba(21,35,28, 0.93)",borderWidth:0,extraCssText:"z-index:1;"},xAxis:{type:"category",splitLine:{show:!1},axisLine:{lineStyle:{color:KA}},axisLabel:{formatter:D5e},data:e.time},yAxis:{type:"value",boundaryGap:[0,"5%"],splitLine:{show:!1},axisLine:{lineStyle:{color:KA}}},series:r,grid:{x:60,y:70,x2:40,y2:40},color:n,toolbox:{feature:{saveAsImage:{name:t.replace(/\s+/g,"_").toLowerCase()+"_"+new Date().getTime()/1e3,title:"Download as PNG",emphasis:{iconStyle:{textPosition:"left"}}}}}}),L5e=({charts:e,lines:t})=>t.map(({key:r,name:n})=>({name:n,type:"line",showSymbol:!0,data:e[r]})),E5e=e=>({symbol:"none",label:{formatter:t=>`Run #${t.dataIndex+1}`},lineStyle:{color:KA},data:(e.markers||[]).map(t=>({xAxis:t}))});function O5e({charts:e,title:t,lines:r,colors:n}){const[i,a]=O.useState(null),o=O.useRef(null);return O.useEffect(()=>{if(!o.current)return;const s=bbe(o.current,"locust");s.setOption(R5e({charts:e,title:t,seriesData:L5e({charts:e,lines:r}),colors:n}));const l=()=>s.resize();return window.addEventListener("resize",l),s.group="swarmCharts",_be("swarmCharts"),a(s),()=>{wbe(s),window.removeEventListener("resize",l)}},[o]),O.useEffect(()=>{const s=r.every(({key:l})=>!!e[l]);i&&s&&i.setOption({xAxis:{data:e.time},series:r.map(({key:l},u)=>({data:e[l],...u===0?{markLine:E5e(e)}:{}}))})},[e,i,r]),D.jsx("div",{ref:o,style:{width:"100%",height:"300px"}})}const eq=Ra.percentilesToChart?Ra.percentilesToChart.map(e=>({name:`${e*100}th percentile`,key:`responseTimePercentile${e}`})):[],N5e=["#9966CC","#8A2BE2","#8E4585","#E0B0FF","#C8A2C8","#E6E6FA"].slice(0,eq.length).concat("#eeff00"),z5e=[{title:"Total Requests per Second",lines:[{name:"RPS",key:"currentRps"},{name:"Failures/s",key:"currentFailPerSec"}],colors:["#00ca5a","#ff6d6d"]},{title:"Response Times (ms)",lines:[...eq,{name:"Average Response Time",key:"totalAvgResponseTime"}],colors:N5e},{title:"Number of Users",lines:[{name:"Number of Users",key:"userCount"}],colors:["#0099ff"]}];function tq({charts:e}){return D.jsx("div",{children:z5e.map((t,r)=>D.jsx(O5e,{...t,charts:e},`swarm-chart-${r}`))})}const B5e=({ui:{charts:e}})=>({charts:e}),$5e=Ln(B5e)(tq);function F5e(e){return(e*100).toFixed(1)+"%"}function QA({classRatio:e}){return D.jsx("ul",{children:Object.entries(e).map(([t,{ratio:r,tasks:n}])=>D.jsxs("li",{children:[`${F5e(r)} ${t}`,n&&D.jsx(QA,{classRatio:n})]},`nested-ratio-${t}`))})}function rq({ratios:{perClass:e,total:t}}){return!e&&!t?null:D.jsxs("div",{children:[e&&D.jsxs(D.Fragment,{children:[D.jsx("h3",{children:"Ratio Per Class"}),D.jsx(QA,{classRatio:e})]}),t&&D.jsxs(D.Fragment,{children:[D.jsx("h3",{children:"Total Ratio"}),D.jsx(QA,{classRatio:t})]})]})}const V5e=({ui:{ratios:e}})=>({ratios:e}),G5e=Ln(V5e)(rq),H5e=[{key:"id",title:"Worker"},{key:"state",title:"State"},{key:"userCount",title:"# users"},{key:"cpuUsage",title:"CPU usage"},{key:"memoryUsage",title:"Memory usage",formatter:OK}];function W5e({workers:e=[]}){return D.jsx(Yf,{defaultSortKey:"id",rows:e,structure:H5e})}const j5e=({ui:{workers:e}})=>({workers:e}),U5e=Ln(j5e)(W5e),q5e=[{component:sge,key:"stats",title:"Statistics"},{component:$5e,key:"charts",title:"Charts"},{component:qve,key:"failures",title:"Failures"},{component:Wve,key:"exceptions",title:"Exceptions"},{component:G5e,key:"ratios",title:"Current Ratio"},{component:Qve,key:"reports",title:"Download Data"},{component:Xve,key:"logViewer",title:"Logs"}],Y5e=[{component:U5e,key:"workers",title:"Workers",shouldDisplayTab:e=>e.swarm.isDistributed}],X5e=e=>{const t=new URL(window.location.href);for(const[r,n]of Object.entries(e))t.searchParams.set(r,n);window.history.pushState(null,"",t)},Z5e=()=>window.location.search?EK(window.location.search):null,K5e={query:Z5e()},nq=ci({name:"url",initialState:K5e,reducers:{setUrl:Tv}}),Q5e=nq.actions,J5e=nq.reducer;function eBe({hasNotification:e,title:t}){return D.jsxs(it,{sx:{display:"flex",alignItems:"center"},children:[e&&D.jsx(a6,{color:"secondary"}),D.jsx("span",{children:t})]})}function tBe({currentTabIndexFromQuery:e,notification:t,setNotification:r,setUrl:n,tabs:i}){const[a,o]=O.useState(e),s=(l,u)=>{const c=i[u].key;t[c]&&r({[c]:!1}),X5e({tab:c}),n({query:{tab:c}}),o(u)};return D.jsxs(Uf,{maxWidth:"xl",children:[D.jsx(it,{sx:{mb:2},children:D.jsx(Qle,{onChange:s,value:a,children:i.map(({key:l,title:u},c)=>D.jsx(zse,{label:D.jsx(eBe,{hasNotification:t[l],title:u})},`tab-${c}`))})}),i.map(({component:l=Vve},u)=>a===u&&D.jsx(l,{},`tabpabel-${u}`))]})}const rBe=e=>{const{notification:t,swarm:{extendedTabs:r=[]},url:{query:n}}=e,i=Y5e.filter(({shouldDisplayTab:o})=>o(e)),a=[...q5e,...i,...r];return{notification:t,tabs:a,currentTabIndexFromQuery:n&&n.tab?a.findIndex(({key:o})=>o===n.tab):0}},nBe={setNotification:n6.setNotification,setUrl:Q5e.setUrl},iBe=Ln(rBe,nBe)(tBe);var SF;const aBe={totalRps:0,failRatio:0,stats:[],errors:[],exceptions:[],charts:(SF=Ra.history)==null?void 0:SF.reduce(q1,{}),ratios:{},userCount:0};var bF;const oBe=(bF=Ra.percentilesToChart)==null?void 0:bF.reduce((e,t)=>({...e,[`responseTimePercentile${t}`]:{value:null}}),{}),sBe=e=>q1(e,{...oBe,currentRps:{value:null},currentFailPerSec:{value:null},totalAvgResponseTime:{value:null},userCount:{value:null},time:""}),iq=ci({name:"ui",initialState:aBe,reducers:{setUi:Tv,updateCharts:(e,{payload:t})=>({...e,charts:q1(e.charts,t)}),updateChartMarkers:(e,{payload:t})=>({...e,charts:{...sBe(e.charts),markers:e.charts.markers?[...e.charts.markers,t]:[e.charts.time[0],t]}})}}),Bw=iq.actions,lBe=iq.reducer,yF=2e3;function uBe(){const e=Xl(XM.setSwarm),t=Xl(Bw.setUi),r=Xl(Bw.updateCharts),n=Xl(Bw.updateChartMarkers),i=Xs(({swarm:m})=>m),a=O.useRef(i.state),o=O.useRef(!1),[s,l]=O.useState(!1),{data:u,refetch:c}=Cce(),{data:f,refetch:d}=Tce(),{data:h,refetch:p}=Ace(),v=i.state===mi.SPAWNING||i.state==mi.RUNNING,g=()=>{if(!u)return;const{currentResponseTimePercentiles:m,extendedStats:y,stats:x,errors:S,totalRps:_,totalFailPerSec:b,failRatio:w,workers:C,userCount:A,totalAvgResponseTime:T}=u,M=new Date().toUTCString();s&&(l(!1),n(M));const k=dh(_,2),I=dh(b,2),P=dh(w*100),L={...m,currentRps:k,currentFailPerSec:I,totalAvgResponseTime:dh(T,2),userCount:A,time:M};t({extendedStats:y,stats:x,errors:S,totalRps:k,failRatio:P,workers:C,userCount:A}),r(L)};O.useEffect(()=>{u&&e({state:u.state})},[u&&u.state]),O.useEffect(()=>{u&&(o.current||g(),o.current=!0)},[u]),fh(g,yF,{shouldRunInterval:!!u&&v}),O.useEffect(()=>{f&&t({ratios:f})},[f]),O.useEffect(()=>{h&&t({exceptions:h.exceptions})},[h]),fh(c,yF,{shouldRunInterval:v}),fh(d,5e3,{shouldRunInterval:v}),fh(p,5e3,{shouldRunInterval:v}),O.useEffect(()=>{i.state===mi.RUNNING&&a.current===mi.STOPPED&&l(!0),a.current=i.state},[i.state,a])}function cBe({isDarkMode:e,swarmState:t}){uBe(),dfe();const r=O.useMemo(()=>FM(e?Si.DARK:Si.LIGHT),[e]);return D.jsxs(kM,{theme:r,children:[D.jsx(EM,{}),D.jsx(ife,{children:t===mi.READY?D.jsx(t6,{}):D.jsx(iBe,{})})]})}const fBe=({swarm:{state:e},theme:{isDarkMode:t}})=>({isDarkMode:t,swarmState:e}),dBe=Ln(fBe)(cBe),hBe=[{key:"method",title:"Method"},{key:"name",title:"Name"}];function pBe({responseTimes:e}){const t=O.useMemo(()=>Object.keys(e[0]).filter(r=>!!Number(r)).map(r=>({key:r,title:`${Number(r)*100}%ile (ms)`})),[e]);return D.jsx(Yf,{hasTotalRow:!0,rows:e,structure:[...hBe,...t]})}const vBe=FM(window.theme||BG);function gBe({locustfile:e,showDownloadLink:t,startTime:r,endTime:n,charts:i,host:a,exceptionsStatistics:o,requestsStatistics:s,failuresStatistics:l,responseTimeStatistics:u,tasks:c}){return D.jsxs(kM,{theme:vBe,children:[D.jsx(EM,{}),D.jsxs(Uf,{maxWidth:"lg",sx:{my:4},children:[D.jsxs(it,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-end"},children:[D.jsx(je,{component:"h1",noWrap:!0,sx:{fontWeight:700},variant:"h3",children:"Locust Test Report"}),t&&D.jsx(on,{href:`?download=1&theme=${window.theme}`,children:"Download the Report"})]}),D.jsxs(it,{sx:{my:2},children:[D.jsxs(it,{sx:{display:"flex",columnGap:.5},children:[D.jsx(je,{fontWeight:600,children:"During:"}),D.jsxs(je,{children:[ZA(r)," - ",ZA(n)]})]}),D.jsxs(it,{sx:{display:"flex",columnGap:.5},children:[D.jsx(je,{fontWeight:600,children:"Target Host:"}),D.jsx(je,{children:a||"None"})]}),D.jsxs(it,{sx:{display:"flex",columnGap:.5},children:[D.jsx(je,{fontWeight:600,children:"Script:"}),D.jsx(je,{children:e})]})]}),D.jsxs(it,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[D.jsxs(it,{children:[D.jsx(je,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Request Statistics"}),D.jsx(U6,{stats:s})]}),!!u.length&&D.jsxs(it,{children:[D.jsx(je,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Response Time Statistics"}),D.jsx(pBe,{responseTimes:u})]}),D.jsxs(it,{children:[D.jsx(je,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Failures Statistics"}),D.jsx(W6,{errors:l})]}),!!o.length&&D.jsxs(it,{children:[D.jsx(je,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Exceptions Statistics"}),D.jsx(H6,{exceptions:o})]}),D.jsxs(it,{children:[D.jsx(je,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Charts"}),D.jsx(tq,{charts:i})]}),D.jsxs(it,{children:[D.jsx(je,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Final ratio"}),D.jsx(rq,{ratios:c})]})]})]})]})}const mBe=w1({[i0.reducerPath]:i0.reducer,logViewer:cfe,notification:ofe,swarm:Wce,theme:FG,ui:lBe,url:J5e}),yBe=W4({reducer:mBe,middleware:e=>e().concat(i0.middleware)});function xBe(){if(nR){const e=W4({reducer:w1({theme:FG})});return D.jsx(tR,{store:e,children:D.jsx(mue,{...nR})})}else return iR?D.jsx(gBe,{...iR}):D.jsx(tR,{store:yBe,children:D.jsx(dBe,{})})}function SBe({error:e}){return D.jsxs("div",{role:"alert",children:[D.jsx("p",{children:"Something went wrong"}),e.message&&D.jsx("pre",{style:{color:"red"},children:e.message}),"If the issue persists, please consider opening an"," ",D.jsx("a",{href:"https://github.com/locustio/locust/issues/new?assignees=&labels=bug&projects=&template=bug.yml",children:"issue"})]})}const bBe=Fw.createRoot(document.getElementById("root"));bBe.render(D.jsx(LX,{fallbackRender:SBe,children:D.jsx(xBe,{})})); + `,""):"No data",axisPointer:{animation:!0},textStyle:{color:op,fontSize:13},backgroundColor:"rgba(21,35,28, 0.93)",borderWidth:0,extraCssText:"z-index:1;"},xAxis:{type:"category",splitLine:{show:!1},axisLine:{lineStyle:{color:QA}},axisLabel:{formatter:R5e},data:e.time},yAxis:{type:"value",boundaryGap:[0,"5%"],splitLine:{show:!1},axisLine:{lineStyle:{color:QA}}},series:r,grid:{x:60,y:70,x2:40,y2:40},color:n,toolbox:{feature:{saveAsImage:{name:t.replace(/\s+/g,"_").toLowerCase()+"_"+new Date().getTime()/1e3,title:"Download as PNG",emphasis:{iconStyle:{textPosition:"left"}}}}}}),E5e=({charts:e,lines:t})=>t.map(({key:r,name:n})=>({name:n,type:"line",showSymbol:!0,data:e[r]})),O5e=e=>({symbol:"none",label:{formatter:t=>`Run #${t.dataIndex+1}`},lineStyle:{color:QA},data:(e.markers||[]).map(t=>({xAxis:t}))});function N5e({charts:e,title:t,lines:r,colors:n}){const[i,a]=O.useState(null),o=O.useRef(null);return O.useEffect(()=>{if(!o.current)return;const s=_be(o.current,"locust");s.setOption(L5e({charts:e,title:t,seriesData:E5e({charts:e,lines:r}),colors:n}));const l=()=>s.resize();return window.addEventListener("resize",l),s.group="swarmCharts",wbe("swarmCharts"),a(s),()=>{Cbe(s),window.removeEventListener("resize",l)}},[o]),O.useEffect(()=>{const s=r.every(({key:l})=>!!e[l]);i&&s&&i.setOption({xAxis:{data:e.time},series:r.map(({key:l},u)=>({data:e[l],...u===0?{markLine:O5e(e)}:{}}))})},[e,i,r]),P.jsx("div",{ref:o,style:{width:"100%",height:"300px"}})}const tq=Ra.percentilesToChart?Ra.percentilesToChart.map(e=>({name:`${e*100}th percentile`,key:`responseTimePercentile${e}`})):[],z5e=["#9966CC","#8A2BE2","#8E4585","#E0B0FF","#C8A2C8","#E6E6FA"].slice(0,tq.length).concat("#eeff00"),B5e=[{title:"Total Requests per Second",lines:[{name:"RPS",key:"currentRps"},{name:"Failures/s",key:"currentFailPerSec"}],colors:["#00ca5a","#ff6d6d"]},{title:"Response Times (ms)",lines:[...tq,{name:"Average Response Time",key:"totalAvgResponseTime"}],colors:z5e},{title:"Number of Users",lines:[{name:"Number of Users",key:"userCount"}],colors:["#0099ff"]}];function rq({charts:e}){return P.jsx("div",{children:B5e.map((t,r)=>P.jsx(N5e,{...t,charts:e},`swarm-chart-${r}`))})}const $5e=({ui:{charts:e}})=>({charts:e}),F5e=Ln($5e)(rq);function V5e(e){return(e*100).toFixed(1)+"%"}function JA({classRatio:e}){return P.jsx("ul",{children:Object.entries(e).map(([t,{ratio:r,tasks:n}])=>P.jsxs("li",{children:[`${V5e(r)} ${t}`,n&&P.jsx(JA,{classRatio:n})]},`nested-ratio-${t}`))})}function nq({ratios:{perClass:e,total:t}}){return!e&&!t?null:P.jsxs("div",{children:[e&&P.jsxs(P.Fragment,{children:[P.jsx("h3",{children:"Ratio Per Class"}),P.jsx(JA,{classRatio:e})]}),t&&P.jsxs(P.Fragment,{children:[P.jsx("h3",{children:"Total Ratio"}),P.jsx(JA,{classRatio:t})]})]})}const G5e=({ui:{ratios:e}})=>({ratios:e}),H5e=Ln(G5e)(nq),W5e=[{key:"id",title:"Worker"},{key:"state",title:"State"},{key:"userCount",title:"# users"},{key:"cpuUsage",title:"CPU usage"},{key:"memoryUsage",title:"Memory usage",formatter:NK}];function j5e({workers:e=[]}){return P.jsx(Yf,{defaultSortKey:"id",rows:e,structure:W5e})}const U5e=({ui:{workers:e}})=>({workers:e}),q5e=Ln(U5e)(j5e),Y5e=[{component:lge,key:"stats",title:"Statistics"},{component:F5e,key:"charts",title:"Charts"},{component:Yve,key:"failures",title:"Failures"},{component:jve,key:"exceptions",title:"Exceptions"},{component:H5e,key:"ratios",title:"Current Ratio"},{component:Jve,key:"reports",title:"Download Data"},{component:Zve,key:"logViewer",title:"Logs"}],X5e=[{component:q5e,key:"workers",title:"Workers",shouldDisplayTab:e=>e.swarm.isDistributed}],Z5e=e=>{const t=new URL(window.location.href);for(const[r,n]of Object.entries(e))t.searchParams.set(r,n);window.history.pushState(null,"",t)},K5e=()=>window.location.search?OK(window.location.search):null,Q5e={query:K5e()},iq=ci({name:"url",initialState:Q5e,reducers:{setUrl:Tv}}),J5e=iq.actions,eBe=iq.reducer;function tBe({hasNotification:e,title:t}){return P.jsxs(Qe,{sx:{display:"flex",alignItems:"center"},children:[e&&P.jsx(o6,{color:"secondary"}),P.jsx("span",{children:t})]})}function rBe({currentTabIndexFromQuery:e,notification:t,setNotification:r,setUrl:n,tabs:i}){const[a,o]=O.useState(e),s=(l,u)=>{const c=i[u].key;t[c]&&r({[c]:!1}),Z5e({tab:c}),n({query:{tab:c}}),o(u)};return P.jsxs(Uf,{maxWidth:"xl",children:[P.jsx(Qe,{sx:{mb:2},children:P.jsx(Jle,{onChange:s,value:a,children:i.map(({key:l,title:u},c)=>P.jsx(Bse,{label:P.jsx(tBe,{hasNotification:t[l],title:u})},`tab-${c}`))})}),i.map(({component:l=Gve},u)=>a===u&&P.jsx(l,{},`tabpabel-${u}`))]})}const nBe=e=>{const{notification:t,swarm:{extendedTabs:r=[]},url:{query:n}}=e,i=X5e.filter(({shouldDisplayTab:o})=>o(e)),a=[...Y5e,...i,...r];return{notification:t,tabs:a,currentTabIndexFromQuery:n&&n.tab?a.findIndex(({key:o})=>o===n.tab):0}},iBe={setNotification:i6.setNotification,setUrl:J5e.setUrl},aBe=Ln(nBe,iBe)(rBe);var CF;const oBe={totalRps:0,failRatio:0,stats:[],errors:[],exceptions:[],charts:(CF=Ra.history)==null?void 0:CF.reduce(q1,{}),ratios:{},userCount:0};var TF;const sBe=(TF=Ra.percentilesToChart)==null?void 0:TF.reduce((e,t)=>({...e,[`responseTimePercentile${t}`]:{value:null}}),{}),lBe=e=>q1(e,{...sBe,currentRps:{value:null},currentFailPerSec:{value:null},totalAvgResponseTime:{value:null},userCount:{value:null},time:""}),aq=ci({name:"ui",initialState:oBe,reducers:{setUi:Tv,updateCharts:(e,{payload:t})=>({...e,charts:q1(e.charts,t)}),updateChartMarkers:(e,{payload:t})=>({...e,charts:{...lBe(e.charts),markers:e.charts.markers?[...e.charts.markers,t]:[e.charts.time[0],t]}})}}),$w=aq.actions,uBe=aq.reducer,_F=2e3;function cBe(){const e=Kl(QM.setSwarm),t=Kl($w.setUi),r=Kl($w.updateCharts),n=Kl($w.updateChartMarkers),i=Zs(({swarm:m})=>m),a=O.useRef(i.state),o=O.useRef(!1),[s,l]=O.useState(!1),{data:u,refetch:c}=Tce(),{data:f,refetch:d}=Ace(),{data:h,refetch:p}=Mce(),v=i.state===mi.SPAWNING||i.state==mi.RUNNING,g=()=>{if(!u)return;const{currentResponseTimePercentiles:m,extendedStats:y,stats:x,errors:S,totalRps:_,totalFailPerSec:b,failRatio:w,workers:C,userCount:A,totalAvgResponseTime:T}=u,M=new Date().toUTCString();s&&(l(!1),n(M));const k=dh(_,2),I=dh(b,2),D=dh(w*100),L={...m,currentRps:k,currentFailPerSec:I,totalAvgResponseTime:dh(T,2),userCount:A,time:M};t({extendedStats:y,stats:x,errors:S,totalRps:k,failRatio:D,workers:C,userCount:A}),r(L)};O.useEffect(()=>{u&&e({state:u.state})},[u&&u.state]),O.useEffect(()=>{u&&(o.current||g(),o.current=!0)},[u]),fh(g,_F,{shouldRunInterval:!!u&&v}),O.useEffect(()=>{f&&t({ratios:f})},[f]),O.useEffect(()=>{h&&t({exceptions:h.exceptions})},[h]),fh(c,_F,{shouldRunInterval:v}),fh(d,5e3,{shouldRunInterval:v}),fh(p,5e3,{shouldRunInterval:v}),O.useEffect(()=>{i.state===mi.RUNNING&&a.current===mi.STOPPED&&l(!0),a.current=i.state},[i.state,a])}function fBe({isDarkMode:e,swarmState:t}){cBe(),hfe();const r=O.useMemo(()=>WM(e?Si.DARK:Si.LIGHT),[e]);return P.jsxs(IM,{theme:r,children:[P.jsx(BM,{}),P.jsx(afe,{children:t===mi.READY?P.jsx(r6,{}):P.jsx(aBe,{})})]})}const dBe=({swarm:{state:e},theme:{isDarkMode:t}})=>({isDarkMode:t,swarmState:e}),hBe=Ln(dBe)(fBe),pBe=[{key:"method",title:"Method"},{key:"name",title:"Name"}];function vBe({responseTimes:e}){const t=O.useMemo(()=>Object.keys(e[0]).filter(r=>!!Number(r)).map(r=>({key:r,title:`${Number(r)*100}%ile (ms)`})),[e]);return P.jsx(Yf,{hasTotalRow:!0,rows:e,structure:[...pBe,...t]})}const gBe=WM(window.theme||$G);function mBe({locustfile:e,showDownloadLink:t,startTime:r,endTime:n,charts:i,host:a,exceptionsStatistics:o,requestsStatistics:s,failuresStatistics:l,responseTimeStatistics:u,tasks:c}){return P.jsxs(IM,{theme:gBe,children:[P.jsx(BM,{}),P.jsxs(Uf,{maxWidth:"lg",sx:{my:4},children:[P.jsxs(Qe,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-end"},children:[P.jsx(We,{component:"h1",noWrap:!0,sx:{fontWeight:700},variant:"h3",children:"Locust Test Report"}),t&&P.jsx(on,{href:`?download=1&theme=${window.theme}`,children:"Download the Report"})]}),P.jsxs(Qe,{sx:{my:2},children:[P.jsxs(Qe,{sx:{display:"flex",columnGap:.5},children:[P.jsx(We,{fontWeight:600,children:"During:"}),P.jsxs(We,{children:[KA(r)," - ",KA(n)]})]}),P.jsxs(Qe,{sx:{display:"flex",columnGap:.5},children:[P.jsx(We,{fontWeight:600,children:"Target Host:"}),P.jsx(We,{children:a||"None"})]}),P.jsxs(Qe,{sx:{display:"flex",columnGap:.5},children:[P.jsx(We,{fontWeight:600,children:"Script:"}),P.jsx(We,{children:e})]})]}),P.jsxs(Qe,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[P.jsxs(Qe,{children:[P.jsx(We,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Request Statistics"}),P.jsx(q6,{stats:s})]}),!!u.length&&P.jsxs(Qe,{children:[P.jsx(We,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Response Time Statistics"}),P.jsx(vBe,{responseTimes:u})]}),P.jsxs(Qe,{children:[P.jsx(We,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Failures Statistics"}),P.jsx(j6,{errors:l})]}),!!o.length&&P.jsxs(Qe,{children:[P.jsx(We,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Exceptions Statistics"}),P.jsx(W6,{exceptions:o})]}),P.jsxs(Qe,{children:[P.jsx(We,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Charts"}),P.jsx(rq,{charts:i})]}),P.jsxs(Qe,{children:[P.jsx(We,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Final ratio"}),P.jsx(nq,{ratios:c})]})]})]})]})}const yBe=w1({[i0.reducerPath]:i0.reducer,logViewer:ffe,notification:sfe,swarm:jce,theme:VG,ui:uBe,url:eBe}),xBe=Y4({reducer:yBe,middleware:e=>e().concat(i0.middleware)});function SBe(){if(oR){const e=Y4({reducer:w1({theme:VG})});return P.jsx(iR,{store:e,children:P.jsx(yue,{...oR})})}else return sR?P.jsx(mBe,{...sR}):P.jsx(iR,{store:xBe,children:P.jsx(hBe,{})})}function bBe({error:e}){return P.jsxs("div",{role:"alert",children:[P.jsx("p",{children:"Something went wrong"}),e.message&&P.jsx("pre",{style:{color:"red"},children:e.message}),"If the issue persists, please consider opening an"," ",P.jsx("a",{href:"https://github.com/locustio/locust/issues/new?assignees=&labels=bug&projects=&template=bug.yml",children:"issue"})]})}const _Be=Vw.createRoot(document.getElementById("root"));_Be.render(P.jsx(EX,{fallbackRender:bBe,children:P.jsx(SBe,{})})); diff --git a/locust/webui/dist/auth.html b/locust/webui/dist/auth.html index ece68eb1cf..b7d18e4310 100644 --- a/locust/webui/dist/auth.html +++ b/locust/webui/dist/auth.html @@ -7,7 +7,7 @@ Locust - +
diff --git a/locust/webui/dist/index.html b/locust/webui/dist/index.html index 0c6d15cb11..a736a7573f 100644 --- a/locust/webui/dist/index.html +++ b/locust/webui/dist/index.html @@ -7,7 +7,7 @@ Locust - +
diff --git a/locust/webui/src/components/LogViewer/LogViewer.tsx b/locust/webui/src/components/LogViewer/LogViewer.tsx index c7cdcf6aae..dfc9fa54a0 100644 --- a/locust/webui/src/components/LogViewer/LogViewer.tsx +++ b/locust/webui/src/components/LogViewer/LogViewer.tsx @@ -1,7 +1,16 @@ -import { Box, Paper, Typography } from '@mui/material'; +import ExpandMoreIcon from '@mui/icons-material/ExpandMore'; +import { + Accordion, + AccordionDetails, + AccordionSummary, + Box, + Paper, + Typography, +} from '@mui/material'; import { red, orange, blue } from '@mui/material/colors'; import { useSelector } from 'redux/hooks'; +import { objectLength } from 'utils/object'; const getLogColor = (log: string) => { if (log.includes('CRITICAL')) { @@ -19,21 +28,48 @@ const getLogColor = (log: string) => { return 'white'; }; +function LogDisplay({ log }: { log: string }) { + return ( + + {log} + + ); +} + export default function LogViewer() { - const logs = useSelector(({ logViewer: { logs } }) => logs); + const { master: masterLogs, workers: workerLogs } = useSelector(({ logViewer }) => logViewer); return ( - - - Logs - - - {logs.map((log, index) => ( - - {log} + + + + Master Logs + + + {masterLogs.map((log, index) => ( + + ))} + + + {!!objectLength(workerLogs) && ( + + + Worker Logs - ))} - + {Object.entries(workerLogs).map(([workerId, logs], index) => ( + + }>{workerId} + + + {logs.map((log, index) => ( + + ))} + + + + ))} + + )} ); } diff --git a/locust/webui/src/components/LogViewer/tests/LogViewer.test.tsx b/locust/webui/src/components/LogViewer/tests/LogViewer.test.tsx index bc90c0c5a4..2c2c9a7d7f 100644 --- a/locust/webui/src/components/LogViewer/tests/LogViewer.test.tsx +++ b/locust/webui/src/components/LogViewer/tests/LogViewer.test.tsx @@ -9,7 +9,7 @@ describe('LogViewer', () => { const { getByText } = renderWithProvider(, { swarm: swarmStateMock, logViewer: { - logs: ['Log 1', 'Log 2', 'Log 3'], + master: ['Log 1', 'Log 2', 'Log 3'], }, }); diff --git a/locust/webui/src/components/LogViewer/tests/useLogViewer.test.tsx b/locust/webui/src/components/LogViewer/tests/useLogViewer.test.tsx index 987aa474c4..fda648469a 100644 --- a/locust/webui/src/components/LogViewer/tests/useLogViewer.test.tsx +++ b/locust/webui/src/components/LogViewer/tests/useLogViewer.test.tsx @@ -11,7 +11,7 @@ import { renderWithProvider } from 'test/testUtils'; const mockLogs = ['Log 1', 'Log 2', 'Log 3']; const server = setupServer( - http.get(`${TEST_BASE_API}/logs`, () => HttpResponse.json({ logs: mockLogs })), + http.get(`${TEST_BASE_API}/logs`, () => HttpResponse.json({ master: mockLogs })), ); function MockHook() { @@ -32,7 +32,7 @@ describe('useLogViewer', () => { await waitFor(() => { expect(getByTestId('logs').textContent).toBe(JSON.stringify(mockLogs)); - expect(store.getState().logViewer.logs).toEqual(mockLogs); + expect(store.getState().logViewer.master).toEqual(mockLogs); }); }); }); diff --git a/locust/webui/src/components/LogViewer/useLogViewer.ts b/locust/webui/src/components/LogViewer/useLogViewer.ts index f7f90478c5..db8ae33059 100644 --- a/locust/webui/src/components/LogViewer/useLogViewer.ts +++ b/locust/webui/src/components/LogViewer/useLogViewer.ts @@ -15,20 +15,20 @@ export default function useLogViewer() { const setLogs = useAction(logViewerActions.setLogs); const { data, refetch: refetchLogs } = useGetLogsQuery(); - const logs = data ? data.logs : []; + const logs = data || { master: [], workers: {} }; const shouldNotifyLogsUpdate = useCallback( - () => logs.slice(localStorage['logViewer']).some(isImportantLog), + () => logs.master.slice(localStorage['logViewer']).some(isImportantLog), [logs], ); useInterval(refetchLogs, 5000, { shouldRunInterval: swarm.state === SWARM_STATE.SPAWNING || swarm.state == SWARM_STATE.RUNNING, }); - useNotifications(logs, { key: 'logViewer', shouldNotify: shouldNotifyLogsUpdate }); + useNotifications(logs.master, { key: 'logViewer', shouldNotify: shouldNotifyLogsUpdate }); useEffect(() => { - setLogs({ logs }); + setLogs(logs); }, [logs]); return logs; diff --git a/locust/webui/src/redux/slice/logViewer.slice.ts b/locust/webui/src/redux/slice/logViewer.slice.ts index 127851b2a5..cc3906f02d 100644 --- a/locust/webui/src/redux/slice/logViewer.slice.ts +++ b/locust/webui/src/redux/slice/logViewer.slice.ts @@ -1,15 +1,15 @@ import { PayloadAction, createSlice } from '@reduxjs/toolkit'; import { updateStateWithPayload } from 'redux/utils'; +import { ILogsResponse } from 'types/ui.types'; -export interface ILogViewerState { - logs: string[]; -} +export interface ILogViewerState extends ILogsResponse {} export type LogViewerAction = PayloadAction; const initialState = { - logs: [] as string[], + master: [] as string[], + workers: {}, }; const logViewerSlice = createSlice({ diff --git a/locust/webui/src/types/ui.types.ts b/locust/webui/src/types/ui.types.ts index d56eda76ed..3aec79348e 100644 --- a/locust/webui/src/types/ui.types.ts +++ b/locust/webui/src/types/ui.types.ts @@ -103,5 +103,8 @@ export interface IStatsResponse { } export interface ILogsResponse { - logs: string[]; + master: string[]; + workers: { + [key: string]: string[]; + }; }