From 73175258077530910e39e22c690887e47ab2bbea Mon Sep 17 00:00:00 2001 From: Andrew Baldwin Date: Mon, 4 Dec 2023 11:01:43 -0500 Subject: [PATCH 1/8] Setup useNotification hook --- .../{index-5727afdb.js => index-4821ac48.js} | 106 +++++++++--------- locust/webui/dist/index.html | 2 +- locust/webui/src/hooks/useNotifications.ts | 31 +++++ .../src/redux/slice/notification.slice.ts | 22 ++++ locust/webui/src/redux/slice/root.slice.ts | 22 +++- locust/webui/src/utils/object.ts | 6 +- 6 files changed, 132 insertions(+), 57 deletions(-) rename locust/webui/dist/assets/{index-5727afdb.js => index-4821ac48.js} (82%) create mode 100644 locust/webui/src/hooks/useNotifications.ts create mode 100644 locust/webui/src/redux/slice/notification.slice.ts diff --git a/locust/webui/dist/assets/index-5727afdb.js b/locust/webui/dist/assets/index-4821ac48.js similarity index 82% rename from locust/webui/dist/assets/index-5727afdb.js rename to locust/webui/dist/assets/index-4821ac48.js index d786fc4c5b..8a767bc20e 100644 --- a/locust/webui/dist/assets/index-5727afdb.js +++ b/locust/webui/dist/assets/index-4821ac48.js @@ -6,7 +6,7 @@ function m7(e,t){for(var r=0;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Tw=Object.prototype.hasOwnProperty,V7=/^[: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]*$/,QP={},JP={};function G7(e){return Tw.call(JP,e)?!0:Tw.call(QP,e)?!1:V7.test(e)?JP[e]=!0:(QP[e]=!0,!1)}function H7(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 W7(e,t,r,n){if(t===null||typeof t>"u"||H7(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 fn(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 fn(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 fn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Nr[e]=new fn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Nr[e]=new fn(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 fn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Nr[e]=new fn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Nr[e]=new fn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Nr[e]=new fn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Nr[e]=new fn(e,5,!1,e.toLowerCase(),null,!1,!1)});var VA=/[\-:]([a-z])/g;function GA(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(VA,GA);Nr[t]=new fn(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(VA,GA);Nr[t]=new fn(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(VA,GA);Nr[t]=new fn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Nr[e]=new fn(e,1,!1,e.toLowerCase(),null,!1,!1)});Nr.xlinkHref=new fn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Nr[e]=new fn(e,1,!1,e.toLowerCase(),null,!0,!0)});function HA(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"),Aw=Object.prototype.hasOwnProperty,V7=/^[: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]*$/,QP={},JP={};function G7(e){return Aw.call(JP,e)?!0:Aw.call(QP,e)?!1:V7.test(e)?JP[e]=!0:(QP[e]=!0,!1)}function H7(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 W7(e,t,r,n){if(t===null||typeof t>"u"||H7(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 fn(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 fn(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 fn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Nr[e]=new fn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Nr[e]=new fn(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 fn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Nr[e]=new fn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Nr[e]=new fn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Nr[e]=new fn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Nr[e]=new fn(e,5,!1,e.toLowerCase(),null,!1,!1)});var GA=/[\-:]([a-z])/g;function HA(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(GA,HA);Nr[t]=new fn(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(GA,HA);Nr[t]=new fn(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(GA,HA);Nr[t]=new fn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Nr[e]=new fn(e,1,!1,e.toLowerCase(),null,!1,!1)});Nr.xlinkHref=new fn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Nr[e]=new fn(e,1,!1,e.toLowerCase(),null,!0,!0)});function WA(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{Zx=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Yd(e):""}function U7(e){switch(e.tag){case 5:return Yd(e.type);case 16:return Yd("Lazy");case 13:return Yd("Suspense");case 19:return Yd("SuspenseList");case 0:case 2:case 15:return e=Kx(e.type,!1),e;case 11:return e=Kx(e.type.render,!1),e;case 1:return e=Kx(e.type,!0),e;default:return""}}function Pw(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 bc:return"Fragment";case Sc:return"Portal";case Aw:return"Profiler";case WA:return"StrictMode";case Mw:return"Suspense";case Iw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case a$:return(e.displayName||"Context")+".Consumer";case i$:return(e._context.displayName||"Context")+".Provider";case UA:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case jA:return t=e.displayName||null,t!==null?t:Pw(e.type)||"Memo";case Wo:t=e._payload,e=e._init;try{return Pw(e(t))}catch{}}return null}function j7(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 Pw(t);case 8:return t===WA?"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 _s(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function s$(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Y7(e){var t=s$(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 Nv(e){e._valueTracker||(e._valueTracker=Y7(e))}function l$(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=s$(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function ty(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 kw(e,t){var r=t.checked;return Kt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function tk(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=_s(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 u$(e,t){t=t.checked,t!=null&&HA(e,"checked",t,!1)}function Dw(e,t){u$(e,t);var r=_s(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")?Rw(e,t.type,r):t.hasOwnProperty("defaultValue")&&Rw(e,t.type,_s(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function rk(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 Rw(e,t,r){(t!=="number"||ty(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var qd=Array.isArray;function zc(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=zv.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Kh(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var ph={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},q7=["Webkit","ms","Moz","O"];Object.keys(ph).forEach(function(e){q7.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ph[t]=ph[e]})});function h$(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||ph.hasOwnProperty(e)&&ph[e]?(""+t).trim():t+"px"}function p$(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=h$(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var X7=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 Ow(e,t){if(t){if(X7[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 Nw(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 zw=null;function YA(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Bw=null,Bc=null,Fc=null;function ak(e){if(e=rv(e)){if(typeof Bw!="function")throw Error(ae(280));var t=e.stateNode;t&&(t=q0(t),Bw(e.stateNode,e.type,t))}}function v$(e){Bc?Fc?Fc.push(e):Fc=[e]:Bc=e}function g$(){if(Bc){var e=Bc,t=Fc;if(Fc=Bc=null,ak(e),t)for(e=0;e>>=0,e===0?32:31-(oY(e)/sY|0)|0}var Bv=64,Fv=4194304;function Xd(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 ay(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=Xd(s):(a&=o,a!==0&&(n=Xd(a)))}else o=r&~i,o!==0?n=Xd(o):a!==0&&(n=Xd(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 ev(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Vi(t),e[t]=r}function fY(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=gh),pk=String.fromCharCode(32),vk=!1;function N$(e,t){switch(e){case"keyup":return FY.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function z$(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var _c=!1;function VY(e,t){switch(e){case"compositionend":return z$(t);case"keypress":return t.which!==32?null:(vk=!0,pk);case"textInput":return e=t.data,e===pk&&vk?null:e;default:return null}}function GY(e,t){if(_c)return e==="compositionend"||!tM&&N$(e,t)?(e=E$(),mm=QA=Ko=null,_c=!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=xk(r)}}function V$(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?V$(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function G$(){for(var e=window,t=ty();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=ty(e.document)}return t}function rM(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 KY(e){var t=G$(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&V$(r.ownerDocument.documentElement,r)){if(n!==null&&rM(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=Sk(r,a);var o=Sk(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,wc=null,Ww=null,yh=null,Uw=!1;function bk(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Uw||wc==null||wc!==ty(n)||(n=wc,"selectionStart"in n&&rM(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}),yh&&np(yh,n)||(yh=n,n=ly(Ww,"onSelect"),0Ac||(e.current=Kw[Ac],Kw[Ac]=null,Ac--)}function Ot(e,t){Ac++,Kw[Ac]=e.current,e.current=t}var ws={},Xr=Fs(ws),_n=Fs(!1),lu=ws;function tf(e,t){var r=e.type.contextTypes;if(!r)return ws;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 wn(e){return e=e.childContextTypes,e!=null}function cy(){$t(_n),$t(Xr)}function Ik(e,t,r){if(Xr.current!==ws)throw Error(ae(168));Ot(Xr,t),Ot(_n,r)}function K$(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,j7(e)||"Unknown",i));return Kt({},r,n)}function fy(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ws,lu=Xr.current,Ot(Xr,e),Ot(_n,_n.current),!0}function Pk(e,t,r){var n=e.stateNode;if(!n)throw Error(ae(169));r?(e=K$(e,t,lu),n.__reactInternalMemoizedMergedChildContext=e,$t(_n),$t(Xr),Ot(Xr,e)):$t(_n),Ot(_n,r)}var Za=null,X0=!1,fS=!1;function Q$(e){Za===null?Za=[e]:Za.push(e)}function uq(e){X0=!0,Q$(e)}function $s(){if(!fS&&Za!==null){fS=!0;var e=0,t=Ct;try{var r=Za;for(Ct=1;e>=o,i-=o,Ka=1<<32-Vi(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&&gl(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&&gl(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&&gl(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(I){return t(m,I)}),Wt&&gl(m,C),_}function g(m,y,x,S){if(typeof x=="object"&&x!==null&&x.type===bc&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Ov:e:{for(var _=x.key,b=y;b!==null;){if(b.key===_){if(_=x.type,_===bc){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===Wo&&Nk(_)===b.type){r(m,b.sibling),y=i(b,x.props),y.ref=od(m,b,x),y.return=m,m=y;break e}r(m,b);break}else t(m,b);b=b.sibling}x.type===bc?(y=Zl(x.props.children,m.mode,S,x.key),y.return=m,m=y):(S=Tm(x.type,x.key,x.props,null,m.mode,S),S.ref=od(m,y,x),S.return=m,m=S)}return o(m);case Sc: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=xS(x,m.mode,S),y.return=m,m=y}return o(m);case Wo:return b=x._init,g(m,y,b(x._payload),S)}if(qd(x))return p(m,y,x,S);if(td(x))return v(m,y,x,S);jv(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=yS(x,m.mode,S),y.return=m,m=y),o(m)):r(m,y)}return g}var nf=o3(!0),s3=o3(!1),nv={},Ta=Fs(nv),sp=Fs(nv),lp=Fs(nv);function Nl(e){if(e===nv)throw Error(ae(174));return e}function fM(e,t){switch(Ot(lp,t),Ot(sp,e),Ot(Ta,nv),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ew(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ew(t,e)}$t(Ta),Ot(Ta,t)}function af(){$t(Ta),$t(sp),$t(lp)}function l3(e){Nl(lp.current);var t=Nl(Ta.current),r=Ew(t,e.type);t!==r&&(Ot(sp,e),Ot(Ta,r))}function dM(e){sp.current===e&&($t(Ta),$t(sp))}var qt=Fs(0);function my(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 dS=[];function hM(){for(var e=0;er?r:4,e(!0);var n=hS.transition;hS.transition={};try{e(!1),t()}finally{Ct=r,hS.transition=n}}function C3(){return Si().memoizedState}function hq(e,t,r){var n=ps(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},T3(e))A3(t,r);else if(r=r3(e,t,r,n),r!==null){var i=an();Gi(r,e,n,i),M3(r,t,n)}}function pq(e,t,r){var n=ps(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(T3(e))A3(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,Ui(s,o)){var l=t.interleaved;l===null?(i.next=i,uM(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=r3(e,t,i,n),r!==null&&(i=an(),Gi(r,e,n,i),M3(r,t,n))}}function T3(e){var t=e.alternate;return e===Zt||t!==null&&t===Zt}function A3(e,t){xh=yy=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function M3(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,XA(e,r)}}var xy={readContext:xi,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},vq={readContext:xi,useCallback:function(e,t){return oa().memoizedState=[e,t===void 0?null:t],e},useContext:xi,useEffect:Bk,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,bm(4194308,4,x3.bind(null,t,e),r)},useLayoutEffect:function(e,t){return bm(4194308,4,e,t)},useInsertionEffect:function(e,t){return bm(4,2,e,t)},useMemo:function(e,t){var r=oa();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=oa();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=hq.bind(null,Zt,e),[n.memoizedState,e]},useRef:function(e){var t=oa();return e={current:e},t.memoizedState=e},useState:zk,useDebugValue:yM,useDeferredValue:function(e){return oa().memoizedState=e},useTransition:function(){var e=zk(!1),t=e[0];return e=dq.bind(null,e[1]),oa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Zt,i=oa();if(Wt){if(r===void 0)throw Error(ae(407));r=r()}else{if(r=t(),Ar===null)throw Error(ae(349));cu&30||f3(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,Bk(h3.bind(null,n,a,e),[e]),n.flags|=2048,fp(9,d3.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=oa(),t=Ar.identifierPrefix;if(Wt){var r=Qa,n=Ka;r=(n&~(1<<32-Vi(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=up++,0")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{Kx=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Yd(e):""}function U7(e){switch(e.tag){case 5:return Yd(e.type);case 16:return Yd("Lazy");case 13:return Yd("Suspense");case 19:return Yd("SuspenseList");case 0:case 2:case 15:return e=Qx(e.type,!1),e;case 11:return e=Qx(e.type.render,!1),e;case 1:return e=Qx(e.type,!0),e;default:return""}}function kw(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 bc:return"Fragment";case Sc:return"Portal";case Mw:return"Profiler";case UA:return"StrictMode";case Iw:return"Suspense";case Pw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case a$:return(e.displayName||"Context")+".Consumer";case i$:return(e._context.displayName||"Context")+".Provider";case jA:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case YA:return t=e.displayName||null,t!==null?t:kw(e.type)||"Memo";case Wo:t=e._payload,e=e._init;try{return kw(e(t))}catch{}}return null}function j7(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 kw(t);case 8:return t===UA?"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 _s(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function s$(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Y7(e){var t=s$(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 Nv(e){e._valueTracker||(e._valueTracker=Y7(e))}function l$(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=s$(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function ty(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 Dw(e,t){var r=t.checked;return Kt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function tk(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=_s(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 u$(e,t){t=t.checked,t!=null&&WA(e,"checked",t,!1)}function Rw(e,t){u$(e,t);var r=_s(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")?Lw(e,t.type,r):t.hasOwnProperty("defaultValue")&&Lw(e,t.type,_s(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function rk(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 Lw(e,t,r){(t!=="number"||ty(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var qd=Array.isArray;function zc(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=zv.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Kh(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var ph={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},q7=["Webkit","ms","Moz","O"];Object.keys(ph).forEach(function(e){q7.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ph[t]=ph[e]})});function h$(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||ph.hasOwnProperty(e)&&ph[e]?(""+t).trim():t+"px"}function p$(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=h$(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var X7=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 Nw(e,t){if(t){if(X7[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 zw(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 Bw=null;function qA(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fw=null,Bc=null,Fc=null;function ak(e){if(e=rv(e)){if(typeof Fw!="function")throw Error(ae(280));var t=e.stateNode;t&&(t=q0(t),Fw(e.stateNode,e.type,t))}}function v$(e){Bc?Fc?Fc.push(e):Fc=[e]:Bc=e}function g$(){if(Bc){var e=Bc,t=Fc;if(Fc=Bc=null,ak(e),t)for(e=0;e>>=0,e===0?32:31-(oY(e)/sY|0)|0}var Bv=64,Fv=4194304;function Xd(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 ay(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=Xd(s):(a&=o,a!==0&&(n=Xd(a)))}else o=r&~i,o!==0?n=Xd(o):a!==0&&(n=Xd(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 ev(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Gi(t),e[t]=r}function fY(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=gh),pk=String.fromCharCode(32),vk=!1;function N$(e,t){switch(e){case"keyup":return FY.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function z$(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var _c=!1;function VY(e,t){switch(e){case"compositionend":return z$(t);case"keypress":return t.which!==32?null:(vk=!0,pk);case"textInput":return e=t.data,e===pk&&vk?null:e;default:return null}}function GY(e,t){if(_c)return e==="compositionend"||!rM&&N$(e,t)?(e=E$(),mm=JA=Ko=null,_c=!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=xk(r)}}function V$(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?V$(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function G$(){for(var e=window,t=ty();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=ty(e.document)}return t}function nM(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 KY(e){var t=G$(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&V$(r.ownerDocument.documentElement,r)){if(n!==null&&nM(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=Sk(r,a);var o=Sk(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,wc=null,Uw=null,yh=null,jw=!1;function bk(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;jw||wc==null||wc!==ty(n)||(n=wc,"selectionStart"in n&&nM(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}),yh&&np(yh,n)||(yh=n,n=ly(Uw,"onSelect"),0Ac||(e.current=Qw[Ac],Qw[Ac]=null,Ac--)}function Ot(e,t){Ac++,Qw[Ac]=e.current,e.current=t}var ws={},Xr=Fs(ws),_n=Fs(!1),lu=ws;function tf(e,t){var r=e.type.contextTypes;if(!r)return ws;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 wn(e){return e=e.childContextTypes,e!=null}function cy(){$t(_n),$t(Xr)}function Ik(e,t,r){if(Xr.current!==ws)throw Error(ae(168));Ot(Xr,t),Ot(_n,r)}function K$(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,j7(e)||"Unknown",i));return Kt({},r,n)}function fy(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ws,lu=Xr.current,Ot(Xr,e),Ot(_n,_n.current),!0}function Pk(e,t,r){var n=e.stateNode;if(!n)throw Error(ae(169));r?(e=K$(e,t,lu),n.__reactInternalMemoizedMergedChildContext=e,$t(_n),$t(Xr),Ot(Xr,e)):$t(_n),Ot(_n,r)}var Za=null,X0=!1,dS=!1;function Q$(e){Za===null?Za=[e]:Za.push(e)}function uq(e){X0=!0,Q$(e)}function $s(){if(!dS&&Za!==null){dS=!0;var e=0,t=Ct;try{var r=Za;for(Ct=1;e>=o,i-=o,Ka=1<<32-Gi(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&&gl(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&&gl(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&&gl(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(I){return t(m,I)}),Wt&&gl(m,C),_}function g(m,y,x,S){if(typeof x=="object"&&x!==null&&x.type===bc&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Ov:e:{for(var _=x.key,b=y;b!==null;){if(b.key===_){if(_=x.type,_===bc){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===Wo&&Nk(_)===b.type){r(m,b.sibling),y=i(b,x.props),y.ref=od(m,b,x),y.return=m,m=y;break e}r(m,b);break}else t(m,b);b=b.sibling}x.type===bc?(y=Zl(x.props.children,m.mode,S,x.key),y.return=m,m=y):(S=Tm(x.type,x.key,x.props,null,m.mode,S),S.ref=od(m,y,x),S.return=m,m=S)}return o(m);case Sc: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=SS(x,m.mode,S),y.return=m,m=y}return o(m);case Wo:return b=x._init,g(m,y,b(x._payload),S)}if(qd(x))return p(m,y,x,S);if(td(x))return v(m,y,x,S);jv(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=xS(x,m.mode,S),y.return=m,m=y),o(m)):r(m,y)}return g}var nf=o3(!0),s3=o3(!1),nv={},Ta=Fs(nv),sp=Fs(nv),lp=Fs(nv);function Nl(e){if(e===nv)throw Error(ae(174));return e}function dM(e,t){switch(Ot(lp,t),Ot(sp,e),Ot(Ta,nv),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ow(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ow(t,e)}$t(Ta),Ot(Ta,t)}function af(){$t(Ta),$t(sp),$t(lp)}function l3(e){Nl(lp.current);var t=Nl(Ta.current),r=Ow(t,e.type);t!==r&&(Ot(sp,e),Ot(Ta,r))}function hM(e){sp.current===e&&($t(Ta),$t(sp))}var qt=Fs(0);function my(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 hS=[];function pM(){for(var e=0;er?r:4,e(!0);var n=pS.transition;pS.transition={};try{e(!1),t()}finally{Ct=r,pS.transition=n}}function C3(){return Si().memoizedState}function hq(e,t,r){var n=ps(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},T3(e))A3(t,r);else if(r=r3(e,t,r,n),r!==null){var i=an();Hi(r,e,n,i),M3(r,t,n)}}function pq(e,t,r){var n=ps(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(T3(e))A3(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,ji(s,o)){var l=t.interleaved;l===null?(i.next=i,cM(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=r3(e,t,i,n),r!==null&&(i=an(),Hi(r,e,n,i),M3(r,t,n))}}function T3(e){var t=e.alternate;return e===Zt||t!==null&&t===Zt}function A3(e,t){xh=yy=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function M3(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,ZA(e,r)}}var xy={readContext:xi,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},vq={readContext:xi,useCallback:function(e,t){return sa().memoizedState=[e,t===void 0?null:t],e},useContext:xi,useEffect:Bk,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,bm(4194308,4,x3.bind(null,t,e),r)},useLayoutEffect:function(e,t){return bm(4194308,4,e,t)},useInsertionEffect:function(e,t){return bm(4,2,e,t)},useMemo:function(e,t){var r=sa();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=sa();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=hq.bind(null,Zt,e),[n.memoizedState,e]},useRef:function(e){var t=sa();return e={current:e},t.memoizedState=e},useState:zk,useDebugValue:xM,useDeferredValue:function(e){return sa().memoizedState=e},useTransition:function(){var e=zk(!1),t=e[0];return e=dq.bind(null,e[1]),sa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Zt,i=sa();if(Wt){if(r===void 0)throw Error(ae(407));r=r()}else{if(r=t(),Ar===null)throw Error(ae(349));cu&30||f3(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,Bk(h3.bind(null,n,a,e),[e]),n.flags|=2048,fp(9,d3.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=sa(),t=Ar.identifierPrefix;if(Wt){var r=Qa,n=Ka;r=(n&~(1<<32-Gi(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=up++,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[da]=t,e[op]=n,N3(e,t,!1,!1),t.stateNode=e;e:{switch(o=Nw(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;isf&&(t.flags|=128,n=!0,sd(a,!1),t.lanes=4194304)}else{if(!n)if(e=my(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),sd(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Wt)return Gr(t),null}else 2*ar()-a.renderingStartTime>sf&&r!==1073741824&&(t.flags|=128,n=!0,sd(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=qt.current,Ot(qt,n?r&1|2:r&1),t):(Gr(t),null);case 22:case 23:return CM(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Ln&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 wq(e,t){switch(iM(t),t.tag){case 1:return wn(t.type)&&cy(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return af(),$t(_n),$t(Xr),hM(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return dM(t),null;case 13:if($t(qt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ae(340));rf()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $t(qt),null;case 4:return af(),null;case 10:return lM(t.type._context),null;case 22:case 23:return CM(),null;case 24:return null;default:return null}}var qv=!1,qr=!1,Cq=typeof WeakSet=="function"?WeakSet:Set,be=null;function kc(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 uC(e,t,r){try{r()}catch(n){er(e,t,n)}}var Yk=!1;function Tq(e,t){if(jw=oy,e=G$(),rM(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(Yw={focusedElem:e,selectionRange:r},oy=!1,be=t;be!==null;)if(t=be,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,be=e;else for(;be!==null;){t=be;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:Ei(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,be=e;break}be=t.return}return p=Yk,Yk=!1,p}function Sh(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&&uC(t,r,a)}i=i.next}while(i!==n)}}function Q0(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 cC(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 F3(e){var t=e.alternate;t!==null&&(e.alternate=null,F3(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[da],delete t[op],delete t[Zw],delete t[sq],delete t[lq])),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 $3(e){return e.tag===5||e.tag===3||e.tag===4}function qk(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$3(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 fC(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=uy));else if(n!==4&&(e=e.child,e!==null))for(fC(e,t,r),e=e.sibling;e!==null;)fC(e,t,r),e=e.sibling}function dC(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(dC(e,t,r),e=e.sibling;e!==null;)dC(e,t,r),e=e.sibling}var Pr=null,Ni=!1;function Po(e,t,r){for(r=r.child;r!==null;)V3(e,t,r),r=r.sibling}function V3(e,t,r){if(Ca&&typeof Ca.onCommitFiberUnmount=="function")try{Ca.onCommitFiberUnmount(W0,r)}catch{}switch(r.tag){case 5:qr||kc(r,t);case 6:var n=Pr,i=Ni;Pr=null,Po(e,t,r),Pr=n,Ni=i,Pr!==null&&(Ni?(e=Pr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Pr.removeChild(r.stateNode));break;case 18:Pr!==null&&(Ni?(e=Pr,r=r.stateNode,e.nodeType===8?cS(e.parentNode,r):e.nodeType===1&&cS(e,r),tp(e)):cS(Pr,r.stateNode));break;case 4:n=Pr,i=Ni,Pr=r.stateNode.containerInfo,Ni=!0,Po(e,t,r),Pr=n,Ni=i;break;case 0:case 11:case 14:case 15:if(!qr&&(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)&&uC(r,t,o),i=i.next}while(i!==n)}Po(e,t,r);break;case 1:if(!qr&&(kc(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)}Po(e,t,r);break;case 21:Po(e,t,r);break;case 22:r.mode&1?(qr=(n=qr)||r.memoizedState!==null,Po(e,t,r),qr=n):Po(e,t,r);break;default:Po(e,t,r)}}function Xk(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Cq),t.forEach(function(n){var i=Eq.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Ii(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*Mq(n/1960))-n,10e?16:e,Qo===null)var n=!1;else{if(e=Qo,Qo=null,_y=0,dt&6)throw Error(ae(331));var i=dt;for(dt|=4,be=e.current;be!==null;){var a=be,o=a.child;if(be.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lar()-_M?Xl(e,0):bM|=r),Cn(e,t)}function X3(e,t){t===0&&(e.mode&1?(t=Fv,Fv<<=1,!(Fv&130023424)&&(Fv=4194304)):t=1);var r=an();e=uo(e,t),e!==null&&(ev(e,t,r),Cn(e,r))}function Lq(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),X3(e,r)}function Eq(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),X3(e,r)}var Z3;Z3=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||_n.current)bn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return bn=!1,bq(e,t,r);bn=!!(e.flags&131072)}else bn=!1,Wt&&t.flags&1048576&&J$(t,hy,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;_m(e,t),e=t.pendingProps;var i=tf(t,Xr.current);Vc(t,r),i=vM(null,t,n,e,i,r);var a=gM();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,wn(n)?(a=!0,fy(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,cM(t),i.updater=Z0,t.stateNode=i,i._reactInternals=t,rC(t,n,e,r),t=aC(null,t,n,!0,a,r)):(t.tag=0,Wt&&a&&nM(t),tn(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(_m(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=Nq(n),e=Ei(n,e),i){case 0:t=iC(null,t,n,e,r);break e;case 1:t=Wk(null,t,n,e,r);break e;case 11:t=Gk(null,t,n,e,r);break e;case 14:t=Hk(null,t,n,Ei(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:Ei(n,i),iC(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ei(n,i),Wk(e,t,n,i,r);case 3:e:{if(L3(t),e===null)throw Error(ae(387));n=t.pendingProps,a=t.memoizedState,i=a.element,n3(e,t),gy(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=of(Error(ae(423)),t),t=Uk(e,t,n,r,i);break e}else if(n!==i){i=of(Error(ae(424)),t),t=Uk(e,t,n,r,i);break e}else for(Nn=fs(t.stateNode.containerInfo.firstChild),Bn=t,Wt=!0,zi=null,r=s3(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(rf(),n===i){t=co(e,t,r);break e}tn(e,t,n,r)}t=t.child}return t;case 5:return l3(t),e===null&&Jw(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,qw(n,i)?o=null:a!==null&&qw(n,a)&&(t.flags|=32),R3(e,t),tn(e,t,o,r),t.child;case 6:return e===null&&Jw(t),null;case 13:return E3(e,t,r);case 4:return fM(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=nf(t,null,n,r):tn(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ei(n,i),Gk(e,t,n,i,r);case 7:return tn(e,t,t.pendingProps,r),t.child;case 8:return tn(e,t,t.pendingProps.children,r),t.child;case 12:return tn(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(py,n._currentValue),n._currentValue=o,a!==null)if(Ui(a.value,o)){if(a.children===i.children&&!_n.current){t=co(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=to(-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),eC(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),eC(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}tn(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Vc(t,r),i=xi(i),n=n(i),t.flags|=1,tn(e,t,n,r),t.child;case 14:return n=t.type,i=Ei(n,t.pendingProps),i=Ei(n.type,i),Hk(e,t,n,i,r);case 15:return k3(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ei(n,i),_m(e,t),t.tag=1,wn(n)?(e=!0,fy(t)):e=!1,Vc(t,r),a3(t,n,i),rC(t,n,i,r),aC(null,t,n,!0,e,r);case 19:return O3(e,t,r);case 22:return D3(e,t,r)}throw Error(ae(156,t.tag))};function K3(e,t){return w$(e,t)}function Oq(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 pi(e,t,r,n){return new Oq(e,t,r,n)}function AM(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Nq(e){if(typeof e=="function")return AM(e)?1:0;if(e!=null){if(e=e.$$typeof,e===UA)return 11;if(e===jA)return 14}return 2}function vs(e,t){var r=e.alternate;return r===null?(r=pi(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 Tm(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")AM(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case bc:return Zl(r.children,i,a,t);case WA:o=8,i|=8;break;case Aw:return e=pi(12,r,t,i|2),e.elementType=Aw,e.lanes=a,e;case Mw:return e=pi(13,r,t,i),e.elementType=Mw,e.lanes=a,e;case Iw:return e=pi(19,r,t,i),e.elementType=Iw,e.lanes=a,e;case o$:return e1(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case i$:o=10;break e;case a$:o=9;break e;case UA:o=11;break e;case jA:o=14;break e;case Wo:o=16,n=null;break e}throw Error(ae(130,e==null?e:typeof e,""))}return t=pi(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function Zl(e,t,r,n){return e=pi(7,e,n,t),e.lanes=r,e}function e1(e,t,r,n){return e=pi(22,e,n,t),e.elementType=o$,e.lanes=r,e.stateNode={isHidden:!1},e}function yS(e,t,r){return e=pi(6,e,null,t),e.lanes=r,e}function xS(e,t,r){return t=pi(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zq(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=Jx(0),this.expirationTimes=Jx(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Jx(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function MM(e,t,r,n,i,a,o,s,l){return e=new zq(e,t,r,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=pi(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},cM(a),e}function Bq(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(tV)}catch(e){console.error(e)}}tV(),JF.exports=Un;var Mf=JF.exports;const Kv=Qp(Mf);var nD=Mf;Cw.createRoot=nD.createRoot,Cw.hydrateRoot=nD.hydrateRoot;var rV={exports:{}},nV={};/** +`+a.stack}return{value:e,source:t,stack:i,digest:null}}function mS(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function iC(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var yq=typeof WeakMap=="function"?WeakMap:Map;function I3(e,t,r){r=to(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){by||(by=!0,pC=n),iC(e,t)},r}function P3(e,t,r){r=to(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){iC(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){iC(e,t),typeof n!="function"&&(hs===null?hs=new Set([this]):hs.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}function Fk(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new yq;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=Rq.bind(null,e,t,r),t.then(e,e))}function $k(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Vk(e,t,r,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=to(-1,1),t.tag=2,ds(r,t,1))),r.lanes|=1),e)}var xq=_o.ReactCurrentOwner,bn=!1;function tn(e,t,r,n){t.child=e===null?s3(t,null,r,n):nf(t,e.child,r,n)}function Gk(e,t,r,n,i){r=r.render;var a=t.ref;return Vc(t,i),n=gM(e,t,r,n,a,i),r=mM(),e!==null&&!bn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,co(e,t,i)):(Wt&&r&&iM(t),t.flags|=1,tn(e,t,n,i),t.child)}function Hk(e,t,r,n,i){if(e===null){var a=r.type;return typeof a=="function"&&!MM(a)&&a.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=a,k3(e,t,a,n,i)):(e=Tm(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var o=a.memoizedProps;if(r=r.compare,r=r!==null?r:np,r(o,n)&&e.ref===t.ref)return co(e,t,i)}return t.flags|=1,e=vs(a,n),e.ref=t.ref,e.return=t,t.child=e}function k3(e,t,r,n,i){if(e!==null){var a=e.memoizedProps;if(np(a,n)&&e.ref===t.ref)if(bn=!1,t.pendingProps=n=a,(e.lanes&i)!==0)e.flags&131072&&(bn=!0);else return t.lanes=e.lanes,co(e,t,i)}return aC(e,t,r,n,i)}function D3(e,t,r){var n=t.pendingProps,i=n.children,a=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ot(Dc,Ln),Ln|=r;else{if(!(r&1073741824))return e=a!==null?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ot(Dc,Ln),Ln|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=a!==null?a.baseLanes:r,Ot(Dc,Ln),Ln|=n}else a!==null?(n=a.baseLanes|r,t.memoizedState=null):n=r,Ot(Dc,Ln),Ln|=n;return tn(e,t,i,r),t.child}function R3(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function aC(e,t,r,n,i){var a=wn(r)?lu:Xr.current;return a=tf(t,a),Vc(t,i),r=gM(e,t,r,n,a,i),n=mM(),e!==null&&!bn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,co(e,t,i)):(Wt&&n&&iM(t),t.flags|=1,tn(e,t,r,i),t.child)}function Wk(e,t,r,n,i){if(wn(r)){var a=!0;fy(t)}else a=!1;if(Vc(t,i),t.stateNode===null)_m(e,t),a3(t,r,n),nC(t,r,n,i),n=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,u=r.contextType;typeof u=="object"&&u!==null?u=xi(u):(u=wn(r)?lu:Xr.current,u=tf(t,u));var c=r.getDerivedStateFromProps,f=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==n||l!==u)&&Ok(t,o,n,u),Uo=!1;var d=t.memoizedState;o.state=d,gy(t,n,o,i),l=t.memoizedState,s!==n||d!==l||_n.current||Uo?(typeof c=="function"&&(rC(t,r,c,n),l=t.memoizedState),(s=Uo||Ek(t,r,s,n,d,l,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),o.props=n,o.state=l,o.context=u,n=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,n3(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Ei(t.type,s),o.props=u,f=t.pendingProps,d=o.context,l=r.contextType,typeof l=="object"&&l!==null?l=xi(l):(l=wn(r)?lu:Xr.current,l=tf(t,l));var h=r.getDerivedStateFromProps;(c=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==f||d!==l)&&Ok(t,o,n,l),Uo=!1,d=t.memoizedState,o.state=d,gy(t,n,o,i);var p=t.memoizedState;s!==f||d!==p||_n.current||Uo?(typeof h=="function"&&(rC(t,r,h,n),p=t.memoizedState),(u=Uo||Ek(t,r,u,n,d,p,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,p,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,p,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=p),o.props=n,o.state=p,o.context=l,n=u):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),n=!1)}return oC(e,t,r,n,a,i)}function oC(e,t,r,n,i,a){R3(e,t);var o=(t.flags&128)!==0;if(!n&&!o)return i&&Pk(t,r,!1),co(e,t,a);n=t.stateNode,xq.current=t;var s=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=nf(t,e.child,null,a),t.child=nf(t,null,s,a)):tn(e,t,s,a),t.memoizedState=n.state,i&&Pk(t,r,!0),t.child}function L3(e){var t=e.stateNode;t.pendingContext?Ik(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ik(e,t.context,!1),dM(e,t.containerInfo)}function Uk(e,t,r,n,i){return rf(),oM(i),t.flags|=256,tn(e,t,r,n),t.child}var sC={dehydrated:null,treeContext:null,retryLane:0};function lC(e){return{baseLanes:e,cachePool:null,transitions:null}}function E3(e,t,r){var n=t.pendingProps,i=qt.current,a=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Ot(qt,i&1),e===null)return eC(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=n.children,e=n.fallback,a?(n=t.mode,a=t.child,o={mode:"hidden",children:o},!(n&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=e1(o,n,0,null),e=Zl(e,n,r,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=lC(r),t.memoizedState=sC,e):SM(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return Sq(e,t,o,n,s,i,r);if(a){a=n.fallback,o=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:n.children};return!(o&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=vs(i,l),n.subtreeFlags=i.subtreeFlags&14680064),s!==null?a=vs(s,a):(a=Zl(a,o,r,null),a.flags|=2),a.return=t,n.return=t,n.sibling=a,t.child=n,n=a,a=t.child,o=e.child.memoizedState,o=o===null?lC(r):{baseLanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~r,t.memoizedState=sC,n}return a=e.child,e=a.sibling,n=vs(a,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function SM(e,t){return t=e1({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Yv(e,t,r,n){return n!==null&&oM(n),nf(t,e.child,null,r),e=SM(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Sq(e,t,r,n,i,a,o){if(r)return t.flags&256?(t.flags&=-257,n=mS(Error(ae(422))),Yv(e,t,o,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=n.fallback,i=t.mode,n=e1({mode:"visible",children:n.children},i,0,null),a=Zl(a,i,o,null),a.flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,t.mode&1&&nf(t,e.child,null,o),t.child.memoizedState=lC(o),t.memoizedState=sC,a);if(!(t.mode&1))return Yv(e,t,o,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var s=n.dgst;return n=s,a=Error(ae(419)),n=mS(a,n,void 0),Yv(e,t,o,n)}if(s=(o&e.childLanes)!==0,bn||s){if(n=Ar,n!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|o)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,uo(e,i),Hi(n,e,i,-1))}return AM(),n=mS(Error(ae(421))),Yv(e,t,o,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Lq.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,Nn=fs(i.nextSibling),Bn=t,Wt=!0,zi=null,e!==null&&(ai[oi++]=Ka,ai[oi++]=Qa,ai[oi++]=uu,Ka=e.id,Qa=e.overflow,uu=t),t=SM(t,n.children),t.flags|=4096,t)}function jk(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),tC(e.return,t,r)}function yS(e,t,r,n,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=i)}function O3(e,t,r){var n=t.pendingProps,i=n.revealOrder,a=n.tail;if(tn(e,t,n.children,r),n=qt.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&jk(e,r,t);else if(e.tag===19)jk(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Ot(qt,n),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&my(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),yS(t,!1,i,r,a);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&my(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}yS(t,!0,r,null,a);break;case"together":yS(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function _m(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function co(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),fu|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(ae(153));if(t.child!==null){for(e=t.child,r=vs(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=vs(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function bq(e,t,r){switch(t.tag){case 3:L3(t),rf();break;case 5:l3(t);break;case 1:wn(t.type)&&fy(t);break;case 4:dM(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;Ot(py,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Ot(qt,qt.current&1),t.flags|=128,null):r&t.child.childLanes?E3(e,t,r):(Ot(qt,qt.current&1),e=co(e,t,r),e!==null?e.sibling:null);Ot(qt,qt.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return O3(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ot(qt,qt.current),n)break;return null;case 22:case 23:return t.lanes=0,D3(e,t,r)}return co(e,t,r)}var N3,uC,z3,B3;N3=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};uC=function(){};z3=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,Nl(Ta.current);var a=null;switch(r){case"input":i=Dw(e,i),n=Dw(e,n),a=[];break;case"select":i=Kt({},i,{value:void 0}),n=Kt({},n,{value:void 0}),a=[];break;case"textarea":i=Ew(e,i),n=Ew(e,n),a=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=uy)}Nw(r,n);var o;r=null;for(u in i)if(!n.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var s=i[u];for(o in s)s.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Zh.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in n){var l=n[u];if(s=i!=null?i[u]:void 0,n.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(r||(r={}),r[o]=l[o])}else r||(a||(a=[]),a.push(u,r)),r=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(a=a||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(a=a||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Zh.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Bt("scroll",e),a||s===l||(a=[])):(a=a||[]).push(u,l))}r&&(a=a||[]).push("style",r);var u=a;(t.updateQueue=u)&&(t.flags|=4)}};B3=function(e,t,r,n){r!==n&&(t.flags|=4)};function sd(e,t){if(!Wt)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Gr(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function _q(e,t,r){var n=t.pendingProps;switch(aM(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gr(t),null;case 1:return wn(t.type)&&cy(),Gr(t),null;case 3:return n=t.stateNode,af(),$t(_n),$t(Xr),pM(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Uv(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,zi!==null&&(mC(zi),zi=null))),uC(e,t),Gr(t),null;case 5:hM(t);var i=Nl(lp.current);if(r=t.type,e!==null&&t.stateNode!=null)z3(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(ae(166));return Gr(t),null}if(e=Nl(Ta.current),Uv(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[da]=t,n[op]=a,e=(t.mode&1)!==0,r){case"dialog":Bt("cancel",n),Bt("close",n);break;case"iframe":case"object":case"embed":Bt("load",n);break;case"video":case"audio":for(i=0;i<\/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[da]=t,e[op]=n,N3(e,t,!1,!1),t.stateNode=e;e:{switch(o=zw(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;isf&&(t.flags|=128,n=!0,sd(a,!1),t.lanes=4194304)}else{if(!n)if(e=my(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),sd(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Wt)return Gr(t),null}else 2*ar()-a.renderingStartTime>sf&&r!==1073741824&&(t.flags|=128,n=!0,sd(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=qt.current,Ot(qt,n?r&1|2:r&1),t):(Gr(t),null);case 22:case 23:return TM(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Ln&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 wq(e,t){switch(aM(t),t.tag){case 1:return wn(t.type)&&cy(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return af(),$t(_n),$t(Xr),pM(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return hM(t),null;case 13:if($t(qt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ae(340));rf()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $t(qt),null;case 4:return af(),null;case 10:return uM(t.type._context),null;case 22:case 23:return TM(),null;case 24:return null;default:return null}}var qv=!1,qr=!1,Cq=typeof WeakSet=="function"?WeakSet:Set,be=null;function kc(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 cC(e,t,r){try{r()}catch(n){er(e,t,n)}}var Yk=!1;function Tq(e,t){if(Yw=oy,e=G$(),nM(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(qw={focusedElem:e,selectionRange:r},oy=!1,be=t;be!==null;)if(t=be,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,be=e;else for(;be!==null;){t=be;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:Ei(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,be=e;break}be=t.return}return p=Yk,Yk=!1,p}function Sh(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&&cC(t,r,a)}i=i.next}while(i!==n)}}function Q0(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 fC(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 F3(e){var t=e.alternate;t!==null&&(e.alternate=null,F3(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[da],delete t[op],delete t[Kw],delete t[sq],delete t[lq])),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 $3(e){return e.tag===5||e.tag===3||e.tag===4}function qk(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$3(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 dC(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=uy));else if(n!==4&&(e=e.child,e!==null))for(dC(e,t,r),e=e.sibling;e!==null;)dC(e,t,r),e=e.sibling}function hC(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(hC(e,t,r),e=e.sibling;e!==null;)hC(e,t,r),e=e.sibling}var Pr=null,Ni=!1;function Po(e,t,r){for(r=r.child;r!==null;)V3(e,t,r),r=r.sibling}function V3(e,t,r){if(Ca&&typeof Ca.onCommitFiberUnmount=="function")try{Ca.onCommitFiberUnmount(W0,r)}catch{}switch(r.tag){case 5:qr||kc(r,t);case 6:var n=Pr,i=Ni;Pr=null,Po(e,t,r),Pr=n,Ni=i,Pr!==null&&(Ni?(e=Pr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Pr.removeChild(r.stateNode));break;case 18:Pr!==null&&(Ni?(e=Pr,r=r.stateNode,e.nodeType===8?fS(e.parentNode,r):e.nodeType===1&&fS(e,r),tp(e)):fS(Pr,r.stateNode));break;case 4:n=Pr,i=Ni,Pr=r.stateNode.containerInfo,Ni=!0,Po(e,t,r),Pr=n,Ni=i;break;case 0:case 11:case 14:case 15:if(!qr&&(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)&&cC(r,t,o),i=i.next}while(i!==n)}Po(e,t,r);break;case 1:if(!qr&&(kc(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)}Po(e,t,r);break;case 21:Po(e,t,r);break;case 22:r.mode&1?(qr=(n=qr)||r.memoizedState!==null,Po(e,t,r),qr=n):Po(e,t,r);break;default:Po(e,t,r)}}function Xk(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Cq),t.forEach(function(n){var i=Eq.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Ii(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*Mq(n/1960))-n,10e?16:e,Qo===null)var n=!1;else{if(e=Qo,Qo=null,_y=0,dt&6)throw Error(ae(331));var i=dt;for(dt|=4,be=e.current;be!==null;){var a=be,o=a.child;if(be.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lar()-wM?Xl(e,0):_M|=r),Cn(e,t)}function X3(e,t){t===0&&(e.mode&1?(t=Fv,Fv<<=1,!(Fv&130023424)&&(Fv=4194304)):t=1);var r=an();e=uo(e,t),e!==null&&(ev(e,t,r),Cn(e,r))}function Lq(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),X3(e,r)}function Eq(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),X3(e,r)}var Z3;Z3=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||_n.current)bn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return bn=!1,bq(e,t,r);bn=!!(e.flags&131072)}else bn=!1,Wt&&t.flags&1048576&&J$(t,hy,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;_m(e,t),e=t.pendingProps;var i=tf(t,Xr.current);Vc(t,r),i=gM(null,t,n,e,i,r);var a=mM();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,wn(n)?(a=!0,fy(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,fM(t),i.updater=Z0,t.stateNode=i,i._reactInternals=t,nC(t,n,e,r),t=oC(null,t,n,!0,a,r)):(t.tag=0,Wt&&a&&iM(t),tn(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(_m(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=Nq(n),e=Ei(n,e),i){case 0:t=aC(null,t,n,e,r);break e;case 1:t=Wk(null,t,n,e,r);break e;case 11:t=Gk(null,t,n,e,r);break e;case 14:t=Hk(null,t,n,Ei(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:Ei(n,i),aC(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ei(n,i),Wk(e,t,n,i,r);case 3:e:{if(L3(t),e===null)throw Error(ae(387));n=t.pendingProps,a=t.memoizedState,i=a.element,n3(e,t),gy(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=of(Error(ae(423)),t),t=Uk(e,t,n,r,i);break e}else if(n!==i){i=of(Error(ae(424)),t),t=Uk(e,t,n,r,i);break e}else for(Nn=fs(t.stateNode.containerInfo.firstChild),Bn=t,Wt=!0,zi=null,r=s3(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(rf(),n===i){t=co(e,t,r);break e}tn(e,t,n,r)}t=t.child}return t;case 5:return l3(t),e===null&&eC(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Xw(n,i)?o=null:a!==null&&Xw(n,a)&&(t.flags|=32),R3(e,t),tn(e,t,o,r),t.child;case 6:return e===null&&eC(t),null;case 13:return E3(e,t,r);case 4:return dM(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=nf(t,null,n,r):tn(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ei(n,i),Gk(e,t,n,i,r);case 7:return tn(e,t,t.pendingProps,r),t.child;case 8:return tn(e,t,t.pendingProps.children,r),t.child;case 12:return tn(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(py,n._currentValue),n._currentValue=o,a!==null)if(ji(a.value,o)){if(a.children===i.children&&!_n.current){t=co(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=to(-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),tC(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),tC(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}tn(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Vc(t,r),i=xi(i),n=n(i),t.flags|=1,tn(e,t,n,r),t.child;case 14:return n=t.type,i=Ei(n,t.pendingProps),i=Ei(n.type,i),Hk(e,t,n,i,r);case 15:return k3(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ei(n,i),_m(e,t),t.tag=1,wn(n)?(e=!0,fy(t)):e=!1,Vc(t,r),a3(t,n,i),nC(t,n,i,r),oC(null,t,n,!0,e,r);case 19:return O3(e,t,r);case 22:return D3(e,t,r)}throw Error(ae(156,t.tag))};function K3(e,t){return w$(e,t)}function Oq(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 pi(e,t,r,n){return new Oq(e,t,r,n)}function MM(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Nq(e){if(typeof e=="function")return MM(e)?1:0;if(e!=null){if(e=e.$$typeof,e===jA)return 11;if(e===YA)return 14}return 2}function vs(e,t){var r=e.alternate;return r===null?(r=pi(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 Tm(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")MM(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case bc:return Zl(r.children,i,a,t);case UA:o=8,i|=8;break;case Mw:return e=pi(12,r,t,i|2),e.elementType=Mw,e.lanes=a,e;case Iw:return e=pi(13,r,t,i),e.elementType=Iw,e.lanes=a,e;case Pw:return e=pi(19,r,t,i),e.elementType=Pw,e.lanes=a,e;case o$:return e1(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case i$:o=10;break e;case a$:o=9;break e;case jA:o=11;break e;case YA:o=14;break e;case Wo:o=16,n=null;break e}throw Error(ae(130,e==null?e:typeof e,""))}return t=pi(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function Zl(e,t,r,n){return e=pi(7,e,n,t),e.lanes=r,e}function e1(e,t,r,n){return e=pi(22,e,n,t),e.elementType=o$,e.lanes=r,e.stateNode={isHidden:!1},e}function xS(e,t,r){return e=pi(6,e,null,t),e.lanes=r,e}function SS(e,t,r){return t=pi(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zq(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=eS(0),this.expirationTimes=eS(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=eS(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function IM(e,t,r,n,i,a,o,s,l){return e=new zq(e,t,r,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=pi(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},fM(a),e}function Bq(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(tV)}catch(e){console.error(e)}}tV(),JF.exports=Un;var Mf=JF.exports;const Kv=Qp(Mf);var nD=Mf;Tw.createRoot=nD.createRoot,Tw.hydrateRoot=nD.hydrateRoot;var rV={exports:{}},nV={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -45,7 +45,7 @@ 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 lf=O;function Hq(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Wq=typeof Object.is=="function"?Object.is:Hq,Uq=lf.useState,jq=lf.useEffect,Yq=lf.useLayoutEffect,qq=lf.useDebugValue;function Xq(e,t){var r=t(),n=Uq({inst:{value:r,getSnapshot:t}}),i=n[0].inst,a=n[1];return Yq(function(){i.value=r,i.getSnapshot=t,SS(i)&&a({inst:i})},[e,r,t]),jq(function(){return SS(i)&&a({inst:i}),e(function(){SS(i)&&a({inst:i})})},[e]),qq(r),r}function SS(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Wq(e,r)}catch{return!0}}function Zq(e,t){return t()}var Kq=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Zq:Xq;nV.useSyncExternalStore=lf.useSyncExternalStore!==void 0?lf.useSyncExternalStore:Kq;rV.exports=nV;var iV=rV.exports,aV={exports:{}},oV={};/** + */var lf=O;function Hq(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Wq=typeof Object.is=="function"?Object.is:Hq,Uq=lf.useState,jq=lf.useEffect,Yq=lf.useLayoutEffect,qq=lf.useDebugValue;function Xq(e,t){var r=t(),n=Uq({inst:{value:r,getSnapshot:t}}),i=n[0].inst,a=n[1];return Yq(function(){i.value=r,i.getSnapshot=t,bS(i)&&a({inst:i})},[e,r,t]),jq(function(){return bS(i)&&a({inst:i}),e(function(){bS(i)&&a({inst:i})})},[e]),qq(r),r}function bS(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Wq(e,r)}catch{return!0}}function Zq(e,t){return t()}var Kq=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Zq:Xq;nV.useSyncExternalStore=lf.useSyncExternalStore!==void 0?lf.useSyncExternalStore:Kq;rV.exports=nV;var iV=rV.exports,aV={exports:{}},oV={};/** * @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,Qq=iV;function Jq(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var eX=typeof Object.is=="function"?Object.is:Jq,tX=Qq.useSyncExternalStore,rX=a1.useRef,nX=a1.useEffect,iX=a1.useMemo,aX=a1.useDebugValue;oV.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var a=rX(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=iX(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,eX(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=tX(e,a[0],a[1]);return nX(function(){o.hasValue=!0,o.value=s},[s]),aX(s),s};aV.exports=oV;var oX=aV.exports;function sX(e){e()}let sV=sX;const lX=e=>sV=e,uX=()=>sV,iD=Symbol.for("react-redux-context"),aD=typeof globalThis<"u"?globalThis:{};function cX(){var e;if(!O.createContext)return{};const t=(e=aD[iD])!=null?e:aD[iD]=new Map;let r=t.get(O.createContext);return r||(r=O.createContext(null),t.set(O.createContext,r)),r}const fo=cX();function DM(e=fo){return function(){return O.useContext(e)}}const lV=DM(),uV=()=>{throw new Error("uSES not initialized!")};let cV=uV;const fX=e=>{cV=e},dX=(e,t)=>e===t;function hX(e=fo){const t=e===fo?lV:DM(e);return function(n,i={}){const{equalityFn:a=dX,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=cV(u.addNestedSub,l.getState,c||l.getState,h,a);return O.useDebugValue(p),p}}const fV=hX();function F(){return F=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}var dV={exports:{}},At={};/** @license React v16.13.1 + */var a1=O,Qq=iV;function Jq(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var eX=typeof Object.is=="function"?Object.is:Jq,tX=Qq.useSyncExternalStore,rX=a1.useRef,nX=a1.useEffect,iX=a1.useMemo,aX=a1.useDebugValue;oV.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var a=rX(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=iX(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,eX(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=tX(e,a[0],a[1]);return nX(function(){o.hasValue=!0,o.value=s},[s]),aX(s),s};aV.exports=oV;var oX=aV.exports;function sX(e){e()}let sV=sX;const lX=e=>sV=e,uX=()=>sV,iD=Symbol.for("react-redux-context"),aD=typeof globalThis<"u"?globalThis:{};function cX(){var e;if(!O.createContext)return{};const t=(e=aD[iD])!=null?e:aD[iD]=new Map;let r=t.get(O.createContext);return r||(r=O.createContext(null),t.set(O.createContext,r)),r}const fo=cX();function RM(e=fo){return function(){return O.useContext(e)}}const lV=RM(),uV=()=>{throw new Error("uSES not initialized!")};let cV=uV;const fX=e=>{cV=e},dX=(e,t)=>e===t;function hX(e=fo){const t=e===fo?lV:RM(e);return function(n,i={}){const{equalityFn:a=dX,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=cV(u.addNestedSub,l.getState,c||l.getState,h,a);return O.useDebugValue(p),p}}const fV=hX();function F(){return F=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}var dV={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 Ir=typeof Symbol=="function"&&Symbol.for,RM=Ir?Symbol.for("react.element"):60103,LM=Ir?Symbol.for("react.portal"):60106,o1=Ir?Symbol.for("react.fragment"):60107,s1=Ir?Symbol.for("react.strict_mode"):60108,l1=Ir?Symbol.for("react.profiler"):60114,u1=Ir?Symbol.for("react.provider"):60109,c1=Ir?Symbol.for("react.context"):60110,EM=Ir?Symbol.for("react.async_mode"):60111,f1=Ir?Symbol.for("react.concurrent_mode"):60111,d1=Ir?Symbol.for("react.forward_ref"):60112,h1=Ir?Symbol.for("react.suspense"):60113,pX=Ir?Symbol.for("react.suspense_list"):60120,p1=Ir?Symbol.for("react.memo"):60115,v1=Ir?Symbol.for("react.lazy"):60116,vX=Ir?Symbol.for("react.block"):60121,gX=Ir?Symbol.for("react.fundamental"):60117,mX=Ir?Symbol.for("react.responder"):60118,yX=Ir?Symbol.for("react.scope"):60119;function Yn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case RM:switch(e=e.type,e){case EM:case f1:case o1:case l1:case s1:case h1:return e;default:switch(e=e&&e.$$typeof,e){case c1:case d1:case v1:case p1:case u1:return e;default:return t}}case LM:return t}}}function hV(e){return Yn(e)===f1}At.AsyncMode=EM;At.ConcurrentMode=f1;At.ContextConsumer=c1;At.ContextProvider=u1;At.Element=RM;At.ForwardRef=d1;At.Fragment=o1;At.Lazy=v1;At.Memo=p1;At.Portal=LM;At.Profiler=l1;At.StrictMode=s1;At.Suspense=h1;At.isAsyncMode=function(e){return hV(e)||Yn(e)===EM};At.isConcurrentMode=hV;At.isContextConsumer=function(e){return Yn(e)===c1};At.isContextProvider=function(e){return Yn(e)===u1};At.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===RM};At.isForwardRef=function(e){return Yn(e)===d1};At.isFragment=function(e){return Yn(e)===o1};At.isLazy=function(e){return Yn(e)===v1};At.isMemo=function(e){return Yn(e)===p1};At.isPortal=function(e){return Yn(e)===LM};At.isProfiler=function(e){return Yn(e)===l1};At.isStrictMode=function(e){return Yn(e)===s1};At.isSuspense=function(e){return Yn(e)===h1};At.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===o1||e===f1||e===l1||e===s1||e===h1||e===pX||typeof e=="object"&&e!==null&&(e.$$typeof===v1||e.$$typeof===p1||e.$$typeof===u1||e.$$typeof===c1||e.$$typeof===d1||e.$$typeof===gX||e.$$typeof===mX||e.$$typeof===yX||e.$$typeof===vX)};At.typeOf=Yn;dV.exports=At;var xX=dV.exports,OM=xX,SX={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},bX={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},_X={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},pV={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},NM={};NM[OM.ForwardRef]=_X;NM[OM.Memo]=pV;function oD(e){return OM.isMemo(e)?pV:NM[e.$$typeof]||SX}var wX=Object.defineProperty,CX=Object.getOwnPropertyNames,sD=Object.getOwnPropertySymbols,TX=Object.getOwnPropertyDescriptor,AX=Object.getPrototypeOf,lD=Object.prototype;function vV(e,t,r){if(typeof t!="string"){if(lD){var n=AX(t);n&&n!==lD&&vV(e,n,r)}var i=CX(t);sD&&(i=i.concat(sD(t)));for(var a=oD(e),o=oD(t),s=0;st(i(...a)))}return r}function mC(e){return function(r){const n=e(r);function i(){return n}return i.dependsOnOwnProps=!1,i}}function cD(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function yV(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=cD(e);let u=a(s,l);return typeof u=="function"&&(a.mapToProps=u,a.dependsOnOwnProps=cD(u),u=a(s,l)),u},a}}function FM(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function OX(e){return e&&typeof e=="object"?mC(t=>EX(e,t)):e?typeof e=="function"?yV(e):FM(e,"mapDispatchToProps"):mC(t=>({dispatch:t}))}function NX(e){return e?typeof e=="function"?yV(e):FM(e,"mapStateToProps"):mC(()=>({}))}function zX(e,t,r){return F({},r,e,t)}function BX(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 FX(e){return e?typeof e=="function"?BX(e):FM(e,"mergeProps"):()=>zX}function $X(){const e=uX();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 fD={notify(){},get:()=>[]};function xV(e,t){let r,n=fD;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=$X())}function u(){r&&(r(),r=void 0,n.clear(),n=fD)}const c={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:s,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>n};return c}const VX=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ty=VX?O.useLayoutEffect:O.useEffect;function dD(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Kl(e,t){if(dD(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{SV=e},WX=[null,null];function UX(e,t,r){Ty(()=>e(...t),r)}function jX(e,t,r,n,i,a){e.current=n,r.current=!1,i.current&&(i.current=null,a())}function YX(e,t,r,n,i,a,o,s,l,u,c){if(!e)return()=>{};let f=!1,d=null;const 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 qX(e,t){return e===t}function qn(e,t,r,{pure:n,areStatesEqual:i=qX,areOwnPropsEqual:a=Kl,areStatePropsEqual:o=Kl,areMergedPropsEqual:s=Kl,forwardRef:l=!1,context:u=fo}={}){const c=u,f=NX(e),d=OX(t),h=FX(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,fe=ye(w,GX);return[w.context,J,fe]},[w]),M=O.useMemo(()=>C&&C.Consumer&&kX.isContextConsumer(O.createElement(C.Consumer,null))?C:c,[C,c]),I=O.useContext(M),P=!!w.store&&!!w.store.getState&&!!w.store.dispatch,k=!!I&&!!I.store,R=P?w.store:I.store,z=k?I.getServerState:R.getState,$=O.useMemo(()=>LX(R.dispatch,x),[R]),[N,V]=O.useMemo(()=>{if(!p)return WX;const J=xV(R,P?void 0:I.subscription),fe=J.notifyNestedSubs.bind(J);return[J,fe]},[R,P,I]),L=O.useMemo(()=>P?I:F({},I,{subscription:N}),[P,I,N]),G=O.useRef(),U=O.useRef(T),B=O.useRef(),j=O.useRef(!1);O.useRef(!1);const X=O.useRef(!1),W=O.useRef();Ty(()=>(X.current=!0,()=>{X.current=!1}),[]);const ee=O.useMemo(()=>()=>B.current&&T===U.current?B.current:$(R.getState(),T),[R,T]),te=O.useMemo(()=>fe=>N?YX(p,R,N,$,U,G,j,X,B,V,fe):()=>{},[N]);UX(jX,[U,G,j,T,B,V]);let ie;try{ie=SV(te,ee,z?()=>$(z(),T):ee)}catch(J){throw W.current&&(J.message+=` + */var BM=Symbol.for("react.element"),FM=Symbol.for("react.portal"),g1=Symbol.for("react.fragment"),m1=Symbol.for("react.strict_mode"),y1=Symbol.for("react.profiler"),x1=Symbol.for("react.provider"),S1=Symbol.for("react.context"),IX=Symbol.for("react.server_context"),b1=Symbol.for("react.forward_ref"),_1=Symbol.for("react.suspense"),w1=Symbol.for("react.suspense_list"),C1=Symbol.for("react.memo"),T1=Symbol.for("react.lazy"),PX=Symbol.for("react.offscreen"),mV;mV=Symbol.for("react.module.reference");function wi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case BM:switch(e=e.type,e){case g1:case y1:case m1:case _1:case w1:return e;default:switch(e=e&&e.$$typeof,e){case IX:case S1:case b1:case T1:case C1:case x1:return e;default:return t}}case FM:return t}}}Mt.ContextConsumer=S1;Mt.ContextProvider=x1;Mt.Element=BM;Mt.ForwardRef=b1;Mt.Fragment=g1;Mt.Lazy=T1;Mt.Memo=C1;Mt.Portal=FM;Mt.Profiler=y1;Mt.StrictMode=m1;Mt.Suspense=_1;Mt.SuspenseList=w1;Mt.isAsyncMode=function(){return!1};Mt.isConcurrentMode=function(){return!1};Mt.isContextConsumer=function(e){return wi(e)===S1};Mt.isContextProvider=function(e){return wi(e)===x1};Mt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===BM};Mt.isForwardRef=function(e){return wi(e)===b1};Mt.isFragment=function(e){return wi(e)===g1};Mt.isLazy=function(e){return wi(e)===T1};Mt.isMemo=function(e){return wi(e)===C1};Mt.isPortal=function(e){return wi(e)===FM};Mt.isProfiler=function(e){return wi(e)===y1};Mt.isStrictMode=function(e){return wi(e)===m1};Mt.isSuspense=function(e){return wi(e)===_1};Mt.isSuspenseList=function(e){return wi(e)===w1};Mt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===g1||e===y1||e===m1||e===_1||e===w1||e===PX||typeof e=="object"&&e!==null&&(e.$$typeof===T1||e.$$typeof===C1||e.$$typeof===x1||e.$$typeof===S1||e.$$typeof===b1||e.$$typeof===mV||e.getModuleId!==void 0)};Mt.typeOf=wi;gV.exports=Mt;var kX=gV.exports;const DX=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function RX(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 LX(e,t){let{initMapStateToProps:r,initMapDispatchToProps:n,initMergeProps:i}=t,a=ye(t,DX);const o=r(e,a),s=n(e,a),l=i(e,a);return RX(o,s,l,e,a)}function EX(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 yC(e){return function(r){const n=e(r);function i(){return n}return i.dependsOnOwnProps=!1,i}}function cD(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function yV(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=cD(e);let u=a(s,l);return typeof u=="function"&&(a.mapToProps=u,a.dependsOnOwnProps=cD(u),u=a(s,l)),u},a}}function $M(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function OX(e){return e&&typeof e=="object"?yC(t=>EX(e,t)):e?typeof e=="function"?yV(e):$M(e,"mapDispatchToProps"):yC(t=>({dispatch:t}))}function NX(e){return e?typeof e=="function"?yV(e):$M(e,"mapStateToProps"):yC(()=>({}))}function zX(e,t,r){return F({},r,e,t)}function BX(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 FX(e){return e?typeof e=="function"?BX(e):$M(e,"mergeProps"):()=>zX}function $X(){const e=uX();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 fD={notify(){},get:()=>[]};function xV(e,t){let r,n=fD;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=$X())}function u(){r&&(r(),r=void 0,n.clear(),n=fD)}const c={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:s,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>n};return c}const VX=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ty=VX?O.useLayoutEffect:O.useEffect;function dD(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Kl(e,t){if(dD(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{SV=e},WX=[null,null];function UX(e,t,r){Ty(()=>e(...t),r)}function jX(e,t,r,n,i,a){e.current=n,r.current=!1,i.current&&(i.current=null,a())}function YX(e,t,r,n,i,a,o,s,l,u,c){if(!e)return()=>{};let f=!1,d=null;const 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 qX(e,t){return e===t}function qn(e,t,r,{pure:n,areStatesEqual:i=qX,areOwnPropsEqual:a=Kl,areStatePropsEqual:o=Kl,areMergedPropsEqual:s=Kl,forwardRef:l=!1,context:u=fo}={}){const c=u,f=NX(e),d=OX(t),h=FX(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,fe=ye(w,GX);return[w.context,J,fe]},[w]),M=O.useMemo(()=>C&&C.Consumer&&kX.isContextConsumer(O.createElement(C.Consumer,null))?C:c,[C,c]),I=O.useContext(M),P=!!w.store&&!!w.store.getState&&!!w.store.dispatch,k=!!I&&!!I.store,R=P?w.store:I.store,z=k?I.getServerState:R.getState,$=O.useMemo(()=>LX(R.dispatch,x),[R]),[N,V]=O.useMemo(()=>{if(!p)return WX;const J=xV(R,P?void 0:I.subscription),fe=J.notifyNestedSubs.bind(J);return[J,fe]},[R,P,I]),L=O.useMemo(()=>P?I:F({},I,{subscription:N}),[P,I,N]),G=O.useRef(),U=O.useRef(T),B=O.useRef(),j=O.useRef(!1);O.useRef(!1);const X=O.useRef(!1),W=O.useRef();Ty(()=>(X.current=!0,()=>{X.current=!1}),[]);const ee=O.useMemo(()=>()=>B.current&&T===U.current?B.current:$(R.getState(),T),[R,T]),te=O.useMemo(()=>fe=>N?YX(p,R,N,$,U,G,j,X,B,V,fe):()=>{},[N]);UX(jX,[U,G,j,T,B,V]);let ie;try{ie=SV(te,ee,z?()=>$(z(),T):ee)}catch(J){throw W.current&&(J.message+=` The error may be correlated with this previous error: ${W.current.stack} -`),J}Ty(()=>{W.current=void 0,B.current=void 0,G.current=ie});const re=O.useMemo(()=>O.createElement(g,F({},ie,{ref:A})),[A,g,ie]);return O.useMemo(()=>p?O.createElement(M.Provider,{value:L},re):re,[M,re,L])}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,F({},T,{reactReduxForwardedRef:M}))});return C.displayName=y,C.WrappedComponent=g,uD(C,g)}return uD(b,g)}}function XX({store:e,context:t,children:r,serverState:n,stabilityCheck:i="once",noopCheck:a="once"}){const o=O.useMemo(()=>{const u=xV(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]);Ty(()=>{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||fo;return O.createElement(l.Provider,{value:o},r)}function bV(e=fo){const t=e===fo?lV:DM(e);return function(){const{store:n}=t();return n}}const _V=bV();function ZX(e=fo){const t=e===fo?_V:bV(e);return function(){return t().dispatch}}const wV=ZX();fX(oX.useSyncExternalStoreWithSelector);HX(iV.useSyncExternalStore);lX(Mf.unstable_batchedUpdates);function Il(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function CV(e){if(!Il(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=CV(e[r])}),t}function mi(e,t,r={clone:!0}){const n=r.clone?F({},e):e;return Il(e)&&Il(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(Il(t[i])&&i in e&&Il(e[i])?n[i]=mi(e[i],t[i],r):r.clone?n[i]=Il(t[i])?CV(t[i]):t[i]:n[i]=t[i])}),n}function Cs(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 iv(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 KX(e,t){return()=>null}function wh(e,t){return O.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function on(e){return e&&e.ownerDocument||document}function Da(e){return on(e).defaultView||window}function QX(e,t){return()=>null}function Ay(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const JX=typeof window<"u"?O.useLayoutEffect:O.useEffect,ho=JX;let hD=0;function eZ(e){const[t,r]=O.useState(e),n=e||t;return O.useEffect(()=>{t==null&&(hD+=1,r(`mui-${hD}`))},[t]),n}const pD=ww["useId".toString()];function TV(e){if(pD!==void 0){const t=pD();return e??t}return eZ(e)}function tZ(e,t,r,n,i){return null}function My({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 ya(e){const t=O.useRef(e);return ho(()=>{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=>{Ay(r,t)})},e)}let A1=!0,xC=!1,vD;const rZ={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 nZ(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&rZ[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function iZ(e){e.metaKey||e.altKey||e.ctrlKey||(A1=!0)}function bS(){A1=!1}function aZ(){this.visibilityState==="hidden"&&xC&&(A1=!0)}function oZ(e){e.addEventListener("keydown",iZ,!0),e.addEventListener("mousedown",bS,!0),e.addEventListener("pointerdown",bS,!0),e.addEventListener("touchstart",bS,!0),e.addEventListener("visibilitychange",aZ,!0)}function sZ(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return A1||nZ(t)}function $M(){const e=O.useCallback(i=>{i!=null&&oZ(i.ownerDocument)},[]),t=O.useRef(!1);function r(){return t.current?(xC=!0,window.clearTimeout(vD),vD=window.setTimeout(()=>{xC=!1},100),t.current=!1,!0):!1}function n(i){return sZ(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function AV(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let zu;function MV(){if(zu)return zu;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),zu="reverse",e.scrollLeft>0?zu="default":(e.scrollLeft=1,e.scrollLeft===0&&(zu="negative")),document.body.removeChild(e),zu}function lZ(e,t){const r=e.scrollLeft;if(t!=="rtl")return r;switch(MV()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function VM(e,t){const r=F({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=F({},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]=F({},a),Object.keys(i).forEach(o=>{r[n][o]=VM(i[o],a[o])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function Ze(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 gD=e=>e,uZ=()=>{let e=gD;return{configure(t){e=t},generate(t){return e(t)},reset(){e=gD}}},cZ=uZ(),GM=cZ,fZ={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 Ue(e,t,r="Mui"){const n=fZ[t];return n?`${r}-${n}`:`${GM.generate(e)}-${t}`}function je(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=Ue(e,i,r)}),n}function IV(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var dZ=/^((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)-.*))$/,hZ=IV(function(e){return dZ.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function pZ(e){if(e.sheet)return e.sheet;for(var t=0;t0?Dr(If,--Mn):0,uf--,cr===10&&(uf=1,I1--),cr}function Fn(){return cr=Mn2||pp(cr)>3?"":" "}function MZ(e,t){for(;--t&&Fn()&&!(cr<48||cr>102||cr>57&&cr<65||cr>70&&cr<97););return av(e,Am()+(t<6&&Aa()==32&&Fn()==32))}function bC(e){for(;Fn();)switch(cr){case e:return Mn;case 34:case 39:e!==34&&e!==39&&bC(cr);break;case 40:e===41&&bC(e);break;case 92:Fn();break}return Mn}function IZ(e,t){for(;Fn()&&e+cr!==47+10;)if(e+cr===42+42&&Aa()===47)break;return"/*"+av(t,Mn-1)+"*"+M1(e===47?e:Fn())}function PZ(e){for(;!pp(Aa());)Fn();return av(e,Mn)}function kZ(e){return EV(Im("",null,null,null,[""],e=LV(e),0,[0],e))}function Im(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=Fn()){case 40:if(p!=108&&Dr(w,f-1)==58){SC(w+=gt(Mm(y),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:w+=Mm(y);break;case 9:case 10:case 13:case 32:w+=AZ(p);break;case 92:w+=MZ(Am()-1,7);continue;case 47:switch(Aa()){case 42:case 47:Qv(DZ(IZ(Fn(),Am()),t,r),l);break;default:w+="/"}break;case 123*v:s[u++]=ua(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&&ua(w)-f&&Qv(h>32?yD(w+";",n,r,f-1):yD(gt(w," ","")+";",n,r,f-2),l);break;case 59:w+=";";default:if(Qv(b=mD(w,t,r,u,c,i,s,x,S=[],_=[],f),a),y===123)if(c===0)Im(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:Im(e,b,b,n&&Qv(mD(e,b,b,0,0,i,s,x,i,S=[],f),_),i,_,f,s,n?S:_);break;default:Im(w,b,b,b,[""],_,0,s,_)}}u=c=h=0,v=m=1,x=w="",f=o;break;case 58:f=1+ua(w),h=p;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&TZ()==125)continue}switch(w+=M1(y),y*v){case 38:m=c>0?1:(w+="\f",-1);break;case 44:s[u++]=(ua(w)-1)*m,m=1;break;case 64:Aa()===45&&(w+=Mm(Fn())),d=Aa(),c=f=ua(x=w+=PZ(Am())),y++;break;case 45:p===45&&ua(w)==2&&(v=0)}}return a}function mD(e,t,r,n,i,a,o,s,l,u,c){for(var f=i-1,d=i===0?a:[""],h=UM(d),p=0,v=0,g=0;p0?d[m]+" "+y:gt(y,/&\f/g,d[m])))&&(l[g++]=x);return P1(e,t,r,i===0?HM:s,l,u,c)}function DZ(e,t,r){return P1(e,t,r,PV,M1(CZ()),hp(e,2,-2),0)}function yD(e,t,r,n){return P1(e,t,r,WM,hp(e,0,n),hp(e,n+1,-1),n)}function Hc(e,t){for(var r="",n=UM(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"+Iy+(Dr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~SC(e,"stretch")?OV(gt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Dr(e,t+1)!==115)break;case 6444:switch(Dr(e,ua(e)-3-(~SC(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"+Ur+"$2box$3")+e}break;case 5936:switch(Dr(e,t+11)){case 114:return vt+e+Ur+gt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return vt+e+Ur+gt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return vt+e+Ur+gt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return vt+e+Ur+e+e}return e}var $Z=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case WM:t.return=OV(t.value,t.length);break;case kV:return Hc([ud(t,{value:gt(t.value,"@","@"+vt)})],i);case HM:if(t.length)return wZ(t.props,function(a){switch(_Z(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Hc([ud(t,{props:[gt(a,/:(read-\w+)/,":"+Iy+"$1")]})],i);case"::placeholder":return Hc([ud(t,{props:[gt(a,/:(plac\w+)/,":"+vt+"input-$1")]}),ud(t,{props:[gt(a,/:(plac\w+)/,":"+Iy+"$1")]}),ud(t,{props:[gt(a,/:(plac\w+)/,Ur+"input-$1")]})],i)}return""})}},VZ=[$Z],GZ=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||VZ,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 jZ={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},YZ=/[A-Z]|^ms/g,qZ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,BV=function(t){return t.charCodeAt(1)===45},SD=function(t){return t!=null&&typeof t!="boolean"},_S=IV(function(e){return BV(e)?e:e.replace(YZ,"-$&").toLowerCase()}),bD=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(qZ,function(n,i,a){return ca={name:i,styles:a,next:ca},i})}return jZ[t]!==1&&!BV(t)&&typeof r=="number"&&r!==0?r+"px":r};function vp(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 ca={name:r.name,styles:r.styles,next:ca},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)ca={name:n.name,styles:n.styles,next:ca},n=n.next;var i=r.styles+";";return i}return XZ(e,t,r)}case"function":{if(e!==void 0){var a=ca,o=r(e);return ca=a,vp(e,t,o)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function XZ(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i96?eK:tK},TD=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},rK=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return NV(r,n,i),KZ(function(){return zV(r,n,i)}),null},nK=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=TD(t,r,n),l=s||CD(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(aK(i)?r:i):t;return E.jsx(QZ,{styles:n})}/** +`),J}Ty(()=>{W.current=void 0,B.current=void 0,G.current=ie});const re=O.useMemo(()=>O.createElement(g,F({},ie,{ref:A})),[A,g,ie]);return O.useMemo(()=>p?O.createElement(M.Provider,{value:L},re):re,[M,re,L])}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,F({},T,{reactReduxForwardedRef:M}))});return C.displayName=y,C.WrappedComponent=g,uD(C,g)}return uD(b,g)}}function XX({store:e,context:t,children:r,serverState:n,stabilityCheck:i="once",noopCheck:a="once"}){const o=O.useMemo(()=>{const u=xV(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]);Ty(()=>{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||fo;return O.createElement(l.Provider,{value:o},r)}function bV(e=fo){const t=e===fo?lV:RM(e);return function(){const{store:n}=t();return n}}const _V=bV();function ZX(e=fo){const t=e===fo?_V:bV(e);return function(){return t().dispatch}}const wV=ZX();fX(oX.useSyncExternalStoreWithSelector);HX(iV.useSyncExternalStore);lX(Mf.unstable_batchedUpdates);function Il(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function CV(e){if(!Il(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=CV(e[r])}),t}function mi(e,t,r={clone:!0}){const n=r.clone?F({},e):e;return Il(e)&&Il(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(Il(t[i])&&i in e&&Il(e[i])?n[i]=mi(e[i],t[i],r):r.clone?n[i]=Il(t[i])?CV(t[i]):t[i]:n[i]=t[i])}),n}function Cs(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 iv(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 KX(e,t){return()=>null}function wh(e,t){return O.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function on(e){return e&&e.ownerDocument||document}function Da(e){return on(e).defaultView||window}function QX(e,t){return()=>null}function Ay(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const JX=typeof window<"u"?O.useLayoutEffect:O.useEffect,ho=JX;let hD=0;function eZ(e){const[t,r]=O.useState(e),n=e||t;return O.useEffect(()=>{t==null&&(hD+=1,r(`mui-${hD}`))},[t]),n}const pD=Cw["useId".toString()];function TV(e){if(pD!==void 0){const t=pD();return e??t}return eZ(e)}function tZ(e,t,r,n,i){return null}function My({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 ya(e){const t=O.useRef(e);return ho(()=>{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=>{Ay(r,t)})},e)}let A1=!0,SC=!1,vD;const rZ={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 nZ(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&rZ[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function iZ(e){e.metaKey||e.altKey||e.ctrlKey||(A1=!0)}function _S(){A1=!1}function aZ(){this.visibilityState==="hidden"&&SC&&(A1=!0)}function oZ(e){e.addEventListener("keydown",iZ,!0),e.addEventListener("mousedown",_S,!0),e.addEventListener("pointerdown",_S,!0),e.addEventListener("touchstart",_S,!0),e.addEventListener("visibilitychange",aZ,!0)}function sZ(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return A1||nZ(t)}function VM(){const e=O.useCallback(i=>{i!=null&&oZ(i.ownerDocument)},[]),t=O.useRef(!1);function r(){return t.current?(SC=!0,window.clearTimeout(vD),vD=window.setTimeout(()=>{SC=!1},100),t.current=!1,!0):!1}function n(i){return sZ(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function AV(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let zu;function MV(){if(zu)return zu;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),zu="reverse",e.scrollLeft>0?zu="default":(e.scrollLeft=1,e.scrollLeft===0&&(zu="negative")),document.body.removeChild(e),zu}function lZ(e,t){const r=e.scrollLeft;if(t!=="rtl")return r;switch(MV()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function GM(e,t){const r=F({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=F({},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]=F({},a),Object.keys(i).forEach(o=>{r[n][o]=GM(i[o],a[o])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function Ze(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 gD=e=>e,uZ=()=>{let e=gD;return{configure(t){e=t},generate(t){return e(t)},reset(){e=gD}}},cZ=uZ(),HM=cZ,fZ={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 Ue(e,t,r="Mui"){const n=fZ[t];return n?`${r}-${n}`:`${HM.generate(e)}-${t}`}function je(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=Ue(e,i,r)}),n}function IV(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var dZ=/^((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)-.*))$/,hZ=IV(function(e){return dZ.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function pZ(e){if(e.sheet)return e.sheet;for(var t=0;t0?Dr(If,--Mn):0,uf--,cr===10&&(uf=1,I1--),cr}function Fn(){return cr=Mn2||pp(cr)>3?"":" "}function MZ(e,t){for(;--t&&Fn()&&!(cr<48||cr>102||cr>57&&cr<65||cr>70&&cr<97););return av(e,Am()+(t<6&&Aa()==32&&Fn()==32))}function _C(e){for(;Fn();)switch(cr){case e:return Mn;case 34:case 39:e!==34&&e!==39&&_C(cr);break;case 40:e===41&&_C(e);break;case 92:Fn();break}return Mn}function IZ(e,t){for(;Fn()&&e+cr!==47+10;)if(e+cr===42+42&&Aa()===47)break;return"/*"+av(t,Mn-1)+"*"+M1(e===47?e:Fn())}function PZ(e){for(;!pp(Aa());)Fn();return av(e,Mn)}function kZ(e){return EV(Im("",null,null,null,[""],e=LV(e),0,[0],e))}function Im(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=Fn()){case 40:if(p!=108&&Dr(w,f-1)==58){bC(w+=gt(Mm(y),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:w+=Mm(y);break;case 9:case 10:case 13:case 32:w+=AZ(p);break;case 92:w+=MZ(Am()-1,7);continue;case 47:switch(Aa()){case 42:case 47:Qv(DZ(IZ(Fn(),Am()),t,r),l);break;default:w+="/"}break;case 123*v:s[u++]=ca(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&&ca(w)-f&&Qv(h>32?yD(w+";",n,r,f-1):yD(gt(w," ","")+";",n,r,f-2),l);break;case 59:w+=";";default:if(Qv(b=mD(w,t,r,u,c,i,s,x,S=[],_=[],f),a),y===123)if(c===0)Im(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:Im(e,b,b,n&&Qv(mD(e,b,b,0,0,i,s,x,i,S=[],f),_),i,_,f,s,n?S:_);break;default:Im(w,b,b,b,[""],_,0,s,_)}}u=c=h=0,v=m=1,x=w="",f=o;break;case 58:f=1+ca(w),h=p;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&TZ()==125)continue}switch(w+=M1(y),y*v){case 38:m=c>0?1:(w+="\f",-1);break;case 44:s[u++]=(ca(w)-1)*m,m=1;break;case 64:Aa()===45&&(w+=Mm(Fn())),d=Aa(),c=f=ca(x=w+=PZ(Am())),y++;break;case 45:p===45&&ca(w)==2&&(v=0)}}return a}function mD(e,t,r,n,i,a,o,s,l,u,c){for(var f=i-1,d=i===0?a:[""],h=jM(d),p=0,v=0,g=0;p0?d[m]+" "+y:gt(y,/&\f/g,d[m])))&&(l[g++]=x);return P1(e,t,r,i===0?WM:s,l,u,c)}function DZ(e,t,r){return P1(e,t,r,PV,M1(CZ()),hp(e,2,-2),0)}function yD(e,t,r,n){return P1(e,t,r,UM,hp(e,0,n),hp(e,n+1,-1),n)}function Hc(e,t){for(var r="",n=jM(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"+Iy+(Dr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~bC(e,"stretch")?OV(gt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Dr(e,t+1)!==115)break;case 6444:switch(Dr(e,ca(e)-3-(~bC(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"+Ur+"$2box$3")+e}break;case 5936:switch(Dr(e,t+11)){case 114:return vt+e+Ur+gt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return vt+e+Ur+gt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return vt+e+Ur+gt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return vt+e+Ur+e+e}return e}var $Z=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case UM:t.return=OV(t.value,t.length);break;case kV:return Hc([ud(t,{value:gt(t.value,"@","@"+vt)})],i);case WM:if(t.length)return wZ(t.props,function(a){switch(_Z(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Hc([ud(t,{props:[gt(a,/:(read-\w+)/,":"+Iy+"$1")]})],i);case"::placeholder":return Hc([ud(t,{props:[gt(a,/:(plac\w+)/,":"+vt+"input-$1")]}),ud(t,{props:[gt(a,/:(plac\w+)/,":"+Iy+"$1")]}),ud(t,{props:[gt(a,/:(plac\w+)/,Ur+"input-$1")]})],i)}return""})}},VZ=[$Z],GZ=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||VZ,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 jZ={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},YZ=/[A-Z]|^ms/g,qZ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,BV=function(t){return t.charCodeAt(1)===45},SD=function(t){return t!=null&&typeof t!="boolean"},wS=IV(function(e){return BV(e)?e:e.replace(YZ,"-$&").toLowerCase()}),bD=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(qZ,function(n,i,a){return fa={name:i,styles:a,next:fa},i})}return jZ[t]!==1&&!BV(t)&&typeof r=="number"&&r!==0?r+"px":r};function vp(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 fa={name:r.name,styles:r.styles,next:fa},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)fa={name:n.name,styles:n.styles,next:fa},n=n.next;var i=r.styles+";";return i}return XZ(e,t,r)}case"function":{if(e!==void 0){var a=fa,o=r(e);return fa=a,vp(e,t,o)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function XZ(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i96?eK:tK},TD=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},rK=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return NV(r,n,i),KZ(function(){return zV(r,n,i)}),null},nK=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=TD(t,r,n),l=s||CD(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(aK(i)?r:i):t;return E.jsx(QZ,{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 GV(e,t){return _C(e,t)}const sK=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},lK=["values","unit","step"],uK=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)=>F({},r,{[n.key]:n.val}),{})};function cK(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,i=ye(e,lK),a=uK(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:${qM[e]}px)`};function po(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||AD;return t.reduce((o,s,l)=>(o[a.up(a.keys[l])]=r(t[l]),o),{})}if(typeof t=="object"){const a=n.breakpoints||AD;return Object.keys(t).reduce((o,s)=>{if(Object.keys(a.values||qM).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 hK(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,i)=>{const a=e.up(i);return n[a]={},n},{}))||{}}function pK(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function cf(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 Py(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=cf(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=cf(l,n)||{};return po(o,s,f=>{let d=Py(u,i,f);return f===d&&typeof f=="string"&&(d=Py(u,i,`${t}${f==="default"?"":Me(f)}`,f)),r===!1?d:{[r]:d}})};return a.propTypes={},a.filterProps=[t],a}function vK(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const gK={m:"margin",p:"padding"},mK={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},MD={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},yK=vK(e=>{if(e.length>2)if(MD[e])e=MD[e];else return[e];const[t,r]=e.split(""),n=gK[t],i=mK[r]||"";return Array.isArray(i)?i.map(a=>n+a):[n+i]}),XM=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ZM=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...XM,...ZM];function ov(e,t,r,n){var i;const a=(i=cf(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 HV(e){return ov(e,"spacing",8)}function sv(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 xK(e,t){return r=>e.reduce((n,i)=>(n[i]=sv(t,r),n),{})}function SK(e,t,r,n){if(t.indexOf(r)===-1)return null;const i=yK(r),a=xK(i,n),o=e[r];return po(e,o,a)}function WV(e,t){const r=HV(e.theme);return Object.keys(e).map(n=>SK(e,t,n,r)).reduce(Ch,{})}function Qt(e){return WV(e,XM)}Qt.propTypes={};Qt.filterProps=XM;function Jt(e){return WV(e,ZM)}Jt.propTypes={};Jt.filterProps=ZM;function bK(e=8){if(e.mui)return e;const t=HV({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 D1(...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]?Ch(i,t[a](n)):i,{});return r.propTypes={},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function ha(e){return typeof e!="number"?e:`${e}px solid`}const _K=St({prop:"border",themeKey:"borders",transform:ha}),wK=St({prop:"borderTop",themeKey:"borders",transform:ha}),CK=St({prop:"borderRight",themeKey:"borders",transform:ha}),TK=St({prop:"borderBottom",themeKey:"borders",transform:ha}),AK=St({prop:"borderLeft",themeKey:"borders",transform:ha}),MK=St({prop:"borderColor",themeKey:"palette"}),IK=St({prop:"borderTopColor",themeKey:"palette"}),PK=St({prop:"borderRightColor",themeKey:"palette"}),kK=St({prop:"borderBottomColor",themeKey:"palette"}),DK=St({prop:"borderLeftColor",themeKey:"palette"}),R1=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ov(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:sv(t,n)});return po(e,e.borderRadius,r)}return null};R1.propTypes={};R1.filterProps=["borderRadius"];D1(_K,wK,CK,TK,AK,MK,IK,PK,kK,DK,R1);const L1=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ov(e.theme,"spacing",8),r=n=>({gap:sv(t,n)});return po(e,e.gap,r)}return null};L1.propTypes={};L1.filterProps=["gap"];const E1=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ov(e.theme,"spacing",8),r=n=>({columnGap:sv(t,n)});return po(e,e.columnGap,r)}return null};E1.propTypes={};E1.filterProps=["columnGap"];const O1=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ov(e.theme,"spacing",8),r=n=>({rowGap:sv(t,n)});return po(e,e.rowGap,r)}return null};O1.propTypes={};O1.filterProps=["rowGap"];const RK=St({prop:"gridColumn"}),LK=St({prop:"gridRow"}),EK=St({prop:"gridAutoFlow"}),OK=St({prop:"gridAutoColumns"}),NK=St({prop:"gridAutoRows"}),zK=St({prop:"gridTemplateColumns"}),BK=St({prop:"gridTemplateRows"}),FK=St({prop:"gridTemplateAreas"}),$K=St({prop:"gridArea"});D1(L1,E1,O1,RK,LK,EK,OK,NK,zK,BK,FK,$K);function Wc(e,t){return t==="grey"?t:e}const VK=St({prop:"color",themeKey:"palette",transform:Wc}),GK=St({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Wc}),HK=St({prop:"backgroundColor",themeKey:"palette",transform:Wc});D1(VK,GK,HK);function En(e){return e<=1&&e!==0?`${e*100}%`:e}const WK=St({prop:"width",transform:En}),KM=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])||qM[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:En(r)}};return po(e,e.maxWidth,t)}return null};KM.filterProps=["maxWidth"];const UK=St({prop:"minWidth",transform:En}),jK=St({prop:"height",transform:En}),YK=St({prop:"maxHeight",transform:En}),qK=St({prop:"minHeight",transform:En});St({prop:"size",cssProperty:"width",transform:En});St({prop:"size",cssProperty:"height",transform:En});const XK=St({prop:"boxSizing"});D1(WK,KM,UK,jK,YK,qK,XK);const ZK={border:{themeKey:"borders",transform:ha},borderTop:{themeKey:"borders",transform:ha},borderRight:{themeKey:"borders",transform:ha},borderBottom:{themeKey:"borders",transform:ha},borderLeft:{themeKey:"borders",transform:ha},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:R1},color:{themeKey:"palette",transform:Wc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Wc},backgroundColor:{themeKey:"palette",transform:Wc},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:L1},rowGap:{style:O1},columnGap:{style:E1},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:En},maxWidth:{style:KM},minWidth:{transform:En},height:{transform:En},maxHeight:{transform:En},minHeight:{transform:En},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},N1=ZK;function KK(...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 QK(e,t){return typeof e=="function"?e(t):e}function JK(){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=cf(i,u)||{};return f?f(o):po(o,n,p=>{let v=Py(d,c,p);return p===v&&typeof p=="string"&&(v=Py(d,c,`${r}${p==="default"?"":Me(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:N1;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=hK(a.breakpoints),f=Object.keys(c);let d=c;return Object.keys(u).forEach(h=>{const p=QK(u[h],a);if(p!=null)if(typeof p=="object")if(o[h])d=Ch(d,e(h,p,a,o));else{const v=po({theme:a},p,g=>({[h]:g}));KK(v,p)?d[h]=t({sx:p,theme:a}):d=Ch(d,v)}else d=Ch(d,e(h,p,a,o))}),pK(f,d)}return Array.isArray(i)?i.map(s):s(i)}return t}const UV=JK();UV.filterProps=["sx"];const z1=UV,eQ=["breakpoints","palette","spacing","shape"];function B1(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:a={}}=e,o=ye(e,eQ),s=cK(r),l=bK(i);let u=mi({breakpoints:s,direction:"ltr",components:{},palette:F({mode:"light"},n),spacing:l,shape:F({},dK,a)},o);return u=t.reduce((c,f)=>mi(c,f),u),u.unstable_sxConfig=F({},N1,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(f){return z1({sx:f,theme:this})},u}function tQ(e){return Object.keys(e).length===0}function jV(e=null){const t=O.useContext(k1);return!t||tQ(t)?e:t}const rQ=B1();function F1(e=rQ){return jV(e)}function nQ({styles:e,themeId:t,defaultTheme:r={}}){const n=F1(r),i=typeof e=="function"?e(t&&n[t]||n):e;return E.jsx(oK,{styles:i})}const iQ=["sx"],aQ=e=>{var t,r;const n={systemProps:{},otherProps:{}},i=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:N1;return Object.keys(e).forEach(a=>{i[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function YV(e){const{sx:t}=e,r=ye(e,iQ),{systemProps:n,otherProps:i}=aQ(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...o)=>{const s=t(...o);return Il(s)?F({},n,s):n}:a=F({},n,t),F({},i,{sx:a})}function qV(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"})(z1);return O.forwardRef(function(l,u){const c=F1(r),f=YV(l),{className:d,component:h="div"}=f,p=ye(f,oQ);return E.jsx(a,F({as:h,ref:u,className:Ce(d,i?i(n):n),theme:t&&c[t]||c},p))})}const lQ=["variant"];function ID(e){return e.length===0}function XV(e){const{variant:t}=e,r=ye(e,lQ);let n=t||"";return Object.keys(r).sort().forEach(i=>{i==="color"?n+=ID(n)?e[i]:Me(e[i]):n+=`${ID(n)?i:Me(i)}${Me(e[i].toString())}`}),n}const uQ=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function cQ(e){return Object.keys(e).length===0}function fQ(e){return typeof e=="string"&&e.charCodeAt(0)>96}const dQ=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,hQ=(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=XV(i.props);n[a]=i.style}),n},pQ=(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[XV(l.props)])}),o};function Th(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const vQ=B1(),gQ=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function cd({defaultTheme:e,theme:t,themeId:r}){return cQ(t)?e:t[r]||t}function mQ(e){return e?(t,r)=>r[e]:null}function ZV(e={}){const{themeId:t,defaultTheme:r=vQ,rootShouldForwardProp:n=Th,slotShouldForwardProp:i=Th}=e,a=o=>z1(F({},o,{theme:cd(F({},o,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(o,s={})=>{sK(o,S=>S.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:d=mQ(gQ(u))}=s,h=ye(s,uQ),p=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,v=f||!1;let g,m=Th;u==="Root"||u==="root"?m=n:u?m=i:fQ(o)&&(m=void 0);const y=GV(o,F({shouldForwardProp:m,label:g},h)),x=(S,..._)=>{const b=_?_.map(T=>typeof T=="function"&&T.__emotion_real!==T?M=>T(F({},M,{theme:cd(F({},M,{defaultTheme:r,themeId:t}))})):T):[];let w=S;l&&d&&b.push(T=>{const M=cd(F({},T,{defaultTheme:r,themeId:t})),I=dQ(l,M);if(I){const P={};return Object.entries(I).forEach(([k,R])=>{P[k]=typeof R=="function"?R(F({},T,{theme:M})):R}),d(T,P)}return null}),l&&!p&&b.push(T=>{const M=cd(F({},T,{defaultTheme:r,themeId:t}));return pQ(T,hQ(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(F({},T,{theme:cd(F({},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 yQ=ZV(),xQ=yQ;function SQ(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:VM(t.components[r].defaultProps,n)}function KV({props:e,name:t,defaultTheme:r,themeId:n}){let i=F1(r);return n&&(i=i[n]||i),SQ({theme:i,name:t,props:e})}function QM(e,t=0,r=1){return Math.min(Math.max(t,e),r)}function bQ(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 hu(e){if(e.type)return e;if(e.charAt(0)==="#")return hu(bQ(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(Cs(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(Cs(10,i))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:i}}function $1(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 _Q(e){e=hu(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])),$1({type:s,values:l})}function PD(e){e=hu(e);let t=e.type==="hsl"||e.type==="hsla"?hu(_Q(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 wQ(e,t){const r=PD(e),n=PD(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function wr(e,t){return e=hu(e),t=QM(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,$1(e)}function QV(e,t){if(e=hu(e),t=QM(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 $1(e)}function JV(e,t){if(e=hu(e),t=QM(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 $1(e)}const CQ=O.createContext(null),e4=CQ;function t4(){return O.useContext(e4)}const TQ=typeof Symbol=="function"&&Symbol.for,AQ=TQ?Symbol.for("mui.nested"):"__THEME_NESTED__";function MQ(e,t){return typeof t=="function"?t(e):F({},e,t)}function IQ(e){const{children:t,theme:r}=e,n=t4(),i=O.useMemo(()=>{const a=n===null?r:MQ(n,r);return a!=null&&(a[AQ]=n!==null),a},[r,n]);return E.jsx(e4.Provider,{value:i,children:t})}const kD={};function DD(e,t,r,n=!1){return O.useMemo(()=>{const i=e&&t[e]||t;if(typeof r=="function"){const a=r(i),o=e?F({},t,{[e]:a}):a;return n?()=>o:o}return e?F({},t,{[e]:r}):F({},t,r)},[e,t,r,n])}function PQ(e){const{children:t,theme:r,themeId:n}=e,i=jV(kD),a=t4()||kD,o=DD(n,i,r),s=DD(n,a,r,!0);return E.jsx(IQ,{theme:s,children:E.jsx(k1.Provider,{value:o,children:t})})}const kQ=["className","component","disableGutters","fixed","maxWidth","classes"],DQ=B1(),RQ=xQ("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Me(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),LQ=e=>KV({props:e,name:"MuiContainer",defaultTheme:DQ}),EQ=(e,t)=>{const r=l=>Ue(t,l),{classes:n,fixed:i,disableGutters:a,maxWidth:o}=e,s={root:["root",o&&`maxWidth${Me(String(o))}`,i&&"fixed",a&&"disableGutters"]};return Ze(s,r,n)};function OQ(e={}){const{createStyledComponent:t=RQ,useThemeProps:r=LQ,componentName:n="MuiContainer"}=e,i=t(({theme:o,ownerState:s})=>F({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})=>F({},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=ye(u,kQ),g=F({},u,{component:f,disableGutters:d,fixed:h,maxWidth:p}),m=EQ(g,n);return E.jsx(i,F({as:f,ownerState:g,className:Ce(m.root,c),ref:l},v))})}function NQ(e,t){return F({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const zQ={black:"#000",white:"#fff"},gp=zQ,BQ={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"},FQ=BQ,$Q={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"},Bu=$Q,VQ={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"},Fu=VQ,GQ={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"},fd=GQ,HQ={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"},$u=HQ,WQ={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"},Vu=WQ,UQ={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"},Gu=UQ,jQ=["mode","contrastThreshold","tonalOffset"],RD={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:gp.white,default:gp.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}},wS={text:{primary:gp.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:gp.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 LD(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=JV(e.main,i):t==="dark"&&(e.dark=QV(e.main,a)))}function YQ(e="light"){return e==="dark"?{main:$u[200],light:$u[50],dark:$u[400]}:{main:$u[700],light:$u[400],dark:$u[800]}}function qQ(e="light"){return e==="dark"?{main:Bu[200],light:Bu[50],dark:Bu[400]}:{main:Bu[500],light:Bu[300],dark:Bu[700]}}function XQ(e="light"){return e==="dark"?{main:Fu[500],light:Fu[300],dark:Fu[700]}:{main:Fu[700],light:Fu[400],dark:Fu[800]}}function ZQ(e="light"){return e==="dark"?{main:Vu[400],light:Vu[300],dark:Vu[700]}:{main:Vu[700],light:Vu[500],dark:Vu[900]}}function KQ(e="light"){return e==="dark"?{main:Gu[400],light:Gu[300],dark:Gu[700]}:{main:Gu[800],light:Gu[500],dark:Gu[900]}}function QQ(e="light"){return e==="dark"?{main:fd[400],light:fd[300],dark:fd[700]}:{main:"#ed6c02",light:fd[500],dark:fd[900]}}function JQ(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,i=ye(e,jQ),a=e.primary||YQ(t),o=e.secondary||qQ(t),s=e.error||XQ(t),l=e.info||ZQ(t),u=e.success||KQ(t),c=e.warning||QQ(t);function f(v){return wQ(v,wS.text.primary)>=r?wS.text.primary:RD.text.primary}const d=({color:v,name:g,mainShade:m=500,lightShade:y=300,darkShade:x=700})=>{if(v=F({},v),!v.main&&v[m]&&(v.main=v[m]),!v.hasOwnProperty("main"))throw new Error(Cs(11,g?` (${g})`:"",m));if(typeof v.main!="string")throw new Error(Cs(12,g?` (${g})`:"",JSON.stringify(v.main)));return LD(v,"light",y,n),LD(v,"dark",x,n),v.contrastText||(v.contrastText=f(v.main)),v},h={dark:wS,light:RD};return mi(F({common:F({},gp),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:FQ,contrastThreshold:r,getContrastText:f,augmentColor:d,tonalOffset:n},h[t]),i)}const eJ=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function tJ(e){return Math.round(e*1e5)/1e5}const ED={textTransform:"uppercase"},OD='"Roboto", "Helvetica", "Arial", sans-serif';function rJ(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=OD,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:o=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:f}=r,d=ye(r,eJ),h=i/14,p=f||(m=>`${m/u*h}rem`),v=(m,y,x,S,_)=>F({fontFamily:n,fontWeight:m,fontSize:p(y),lineHeight:x},n===OD?{letterSpacing:`${tJ(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,ED),caption:v(o,12,1.66,.4),overline:v(o,12,2.66,1,ED),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return mi(F({htmlFontSize:u,pxToRem:p,fontFamily:n,fontSize:i,fontWeightLight:a,fontWeightRegular:o,fontWeightMedium:s,fontWeightBold:l},g),d,{clone:!1})}const nJ=.2,iJ=.14,aJ=.12;function Gt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${nJ})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${iJ})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${aJ})`].join(",")}const oJ=["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)],sJ=oJ,lJ=["duration","easing","delay"],uJ={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)"},r4={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ND(e){return`${Math.round(e)}ms`}function cJ(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function fJ(e){const t=F({},uJ,e.easing),r=F({},r4,e.duration);return F({getAutoHeightDuration:cJ,create:(i=["all"],a={})=>{const{duration:o=r.standard,easing:s=t.easeInOut,delay:l=0}=a;return ye(a,lJ),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof o=="string"?o:ND(o)} ${s} ${typeof l=="string"?l:ND(l)}`).join(",")}},e,{easing:t,duration:r})}const dJ={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},hJ=dJ,pJ=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function JM(e={},...t){const{mixins:r={},palette:n={},transitions:i={},typography:a={}}=e,o=ye(e,pJ);if(e.vars)throw new Error(Cs(18));const s=JQ(n),l=B1(e);let u=mi(l,{mixins:NQ(l.breakpoints,r),palette:s,shadows:sJ.slice(),typography:rJ(s,a),transitions:fJ(i),zIndex:F({},hJ)});return u=mi(u,o),u=t.reduce((c,f)=>mi(c,f),u),u.unstable_sxConfig=F({},N1,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(f){return z1({sx:f,theme:this})},u}const vJ=JM(),V1=vJ,pu="$$material";function Ye({props:e,name:t}){return KV({props:e,name:t,defaultTheme:V1,themeId:pu})}function n4(e){return E.jsx(nQ,F({},e,{defaultTheme:V1,themeId:pu}))}const gJ=(e,t)=>F({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),mJ=e=>F({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}}),yJ=(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=F({html:gJ(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:F({margin:0},mJ(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 i4(e){const t=Ye({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return E.jsxs(O.Fragment,{children:[E.jsx(n4,{styles:i=>yJ(i,n)}),r]})}function Pf(){const e=F1(V1);return e[pu]||e}const wo=e=>Th(e)&&e!=="classes",xJ=Th,SJ=ZV({themeId:pu,defaultTheme:V1,rootShouldForwardProp:wo}),ge=SJ,bJ=["theme"];function a4(e){let{theme:t}=e,r=ye(e,bJ);const n=t[pu];return E.jsx(PQ,F({},r,{themeId:n?pu:void 0,theme:n||t}))}const _J=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},zD=_J;function wJ(e){return Ue("MuiSvgIcon",e)}je("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const CJ=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],TJ=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${Me(t)}`,`fontSize${Me(r)}`]};return Ze(i,wJ,n)},AJ=ge("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Me(r.color)}`],t[`fontSize${Me(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]}}),o4=O.forwardRef(function(t,r){const n=Ye({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=ye(n,CJ),p=O.isValidElement(i)&&i.type==="svg",v=F({},n,{color:o,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:p}),g={};c||(g.viewBox=d);const m=TJ(v);return E.jsxs(AJ,F({as:s,className:Ce(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?E.jsx("title",{children:f}):null]}))});o4.muiName="SvgIcon";const BD=o4;function G1(e,t){function r(n,i){return E.jsx(BD,F({"data-testid":`${t}Icon`,ref:i},n,{children:e}))}return r.muiName=BD.muiName,O.memo(O.forwardRef(r))}const MJ={configure:e=>{GM.configure(e)}},IJ=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Me,createChainedFunction:yC,createSvgIcon:G1,debounce:iv,deprecatedPropType:KX,isMuiElement:wh,ownerDocument:on,ownerWindow:Da,requirePropFactory:QX,setRef:Ay,unstable_ClassNameGenerator:MJ,unstable_useEnhancedEffect:ho,unstable_useId:TV,unsupportedProp:tZ,useControlled:My,useEventCallback:ya,useForkRef:Mr,useIsFocusVisible:$M},Symbol.toStringTag,{value:"Module"}));function wC(e,t){return wC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},wC(e,t)}function s4(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,wC(e,t)}const FD={disabled:!1},ky=ma.createContext(null);var PJ=function(t){return t.scrollTop},Kd="unmounted",yl="exited",xl="entering",hc="entered",CC="exiting",Co=function(e){s4(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=yl,a.appearStatus=xl):l=hc:n.unmountOnExit||n.mountOnEnter?l=Kd:l=yl,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===Kd?{status:yl}: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!==xl&&o!==hc&&(a=xl):(o===xl||o===hc)&&(a=CC)}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===xl){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Kv.findDOMNode(this);o&&PJ(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===yl&&this.setState({status:Kd})},r.performEnter=function(i){var a=this,o=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[Kv.findDOMNode(this),s],u=l[0],c=l[1],f=this.getTimeouts(),d=s?f.appear:f.enter;if(!i&&!o||FD.disabled){this.safeSetState({status:hc},function(){a.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:xl},function(){a.props.onEntering(u,c),a.onTransitionEnd(d,function(){a.safeSetState({status:hc},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:Kv.findDOMNode(this);if(!a||FD.disabled){this.safeSetState({status:yl},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:CC},function(){i.props.onExiting(s),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:yl},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:Kv.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===Kd)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=ye(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ma.createElement(ky.Provider,{value:null},typeof o=="function"?o(i,s):ma.cloneElement(ma.Children.only(o),s))},t}(ma.Component);Co.contextType=ky;Co.propTypes={};function Hu(){}Co.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Hu,onEntering:Hu,onEntered:Hu,onExit:Hu,onExiting:Hu,onExited:Hu};Co.UNMOUNTED=Kd;Co.EXITED=yl;Co.ENTERING=xl;Co.ENTERED=hc;Co.EXITING=CC;const e2=Co;function kJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function t2(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 DJ(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 ff(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 zJ(e){return Ue("MuiCollapse",e)}je("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const BJ=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],FJ=e=>{const{orientation:t,classes:r}=e,n={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Ze(n,zJ,r)},$J=ge("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})=>F({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&F({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),VJ=ge("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>F({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),GJ=ge("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>F({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),u4=O.forwardRef(function(t,r){const n=Ye({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=r4.standard,TransitionComponent:S=e2}=n,_=ye(n,BJ),b=F({},n,{orientation:m,collapsedSize:s}),w=FJ(b),C=Pf(),A=O.useRef(),T=O.useRef(null),M=O.useRef(),I=typeof s=="number"?`${s}px`:s,P=m==="horizontal",k=P?"width":"height";O.useEffect(()=>()=>{clearTimeout(A.current)},[]);const R=O.useRef(null),z=Mr(r,R),$=W=>ee=>{if(W){const te=R.current;ee===void 0?W(te):W(te,ee)}},N=()=>T.current?T.current[P?"clientWidth":"clientHeight"]:0,V=$((W,ee)=>{T.current&&P&&(T.current.style.position="absolute"),W.style[k]=I,f&&f(W,ee)}),L=$((W,ee)=>{const te=N();T.current&&P&&(T.current.style.position="");const{duration:ie,easing:re}=ff({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[k]=`${te}px`,W.style.transitionTimingFunction=re,h&&h(W,ee)}),G=$((W,ee)=>{W.style[k]="auto",d&&d(W,ee)}),U=$(W=>{W.style[k]=`${N()}px`,p&&p(W)}),B=$(v),j=$(W=>{const ee=N(),{duration:te,easing:ie}=ff({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[k]=I,W.style.transitionTimingFunction=ie,g&&g(W)}),X=W=>{x==="auto"&&(A.current=setTimeout(W,M.current||0)),i&&i(R.current,W)};return E.jsx(S,F({in:c,onEnter:V,onEntered:G,onEntering:L,onExit:U,onExited:B,onExiting:j,addEndListener:X,nodeRef:R,timeout:x==="auto"?null:x},_,{children:(W,ee)=>E.jsx($J,F({as:l,className:Ce(w.root,o,{entered:w.entered,exited:!c&&I==="0px"&&w.hidden}[W]),style:F({[P?"minWidth":"minHeight"]:I},y),ownerState:F({},b,{state:W}),ref:z},ee,{children:E.jsx(VJ,{ownerState:F({},b,{state:W}),className:w.wrapper,ref:T,children:E.jsx(GJ,{ownerState:F({},b,{state:W}),className:w.wrapperInner,children:a})})}))}))});u4.muiSupportAuto=!0;const HJ=u4;function WJ(e){return Ue("MuiPaper",e)}je("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 UJ=["className","component","elevation","square","variant"],jJ=e=>{const{square:t,elevation:r,variant:n,classes:i}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Ze(a,WJ,i)},YJ=ge("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 F({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"&&F({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${wr("#fff",zD(t.elevation))}, ${wr("#fff",zD(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),qJ=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiPaper"}),{className:i,component:a="div",elevation:o=1,square:s=!1,variant:l="elevation"}=n,u=ye(n,UJ),c=F({},n,{component:a,elevation:o,square:s,variant:l}),f=jJ(c);return E.jsx(YJ,F({as:a,ownerState:c,className:Ce(f.root,i),ref:r},u))}),H1=qJ,XJ=O.createContext({}),c4=XJ;function ZJ(e){return Ue("MuiAccordion",e)}const KJ=je("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),Jv=KJ,QJ=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],JJ=e=>{const{classes:t,square:r,expanded:n,disabled:i,disableGutters:a}=e;return Ze({root:["root",!r&&"rounded",n&&"expanded",i&&"disabled",!a&&"gutters"],region:["region"]},ZJ,t)},eee=ge(H1,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Jv.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"}},[`&.${Jv.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${Jv.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e,ownerState:t})=>F({},!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&&{[`&.${Jv.expanded}`]:{margin:"16px 0"}})),tee=O.forwardRef(function(t,r){const n=Ye({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=HJ,TransitionProps:h}=n,p=ye(n,QJ),[v,g]=My({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]),_=F({},n,{square:f,disabled:s,disableGutters:l,expanded:v}),b=JJ(_);return E.jsxs(eee,F({className:Ce(b.root,a),ref:r,ownerState:_,square:f},p,{children:[E.jsx(c4.Provider,{value:S,children:y}),E.jsx(d,F({in:v,timeout:"auto"},h,{children:E.jsx("div",{"aria-labelledby":y.props.id,id:y.props["aria-controls"],role:"region",className:b.region,children:x})}))]}))}),f4=tee;function ree(e){return Ue("MuiAccordionDetails",e)}je("MuiAccordionDetails",["root"]);const nee=["className"],iee=e=>{const{classes:t}=e;return Ze({root:["root"]},ree,t)},aee=ge("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),oee=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiAccordionDetails"}),{className:i}=n,a=ye(n,nee),o=n,s=iee(o);return E.jsx(aee,F({className:Ce(s.root,i),ref:r,ownerState:o},a))}),d4=oee;function see(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=Ce(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),h={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},p=Ce(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]),E.jsx("span",{className:d,style:h,children:E.jsx("span",{className:p})})}const lee=je("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ii=lee,uee=["center","classes","className"];let W1=e=>e,$D,VD,GD,HD;const TC=550,cee=80,fee=YM($D||($D=W1` + */function GV(e,t){return wC(e,t)}const sK=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},lK=["values","unit","step"],uK=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)=>F({},r,{[n.key]:n.val}),{})};function cK(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,i=ye(e,lK),a=uK(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 po(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||AD;return t.reduce((o,s,l)=>(o[a.up(a.keys[l])]=r(t[l]),o),{})}if(typeof t=="object"){const a=n.breakpoints||AD;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 hK(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,i)=>{const a=e.up(i);return n[a]={},n},{}))||{}}function pK(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function cf(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 Py(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=cf(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=cf(l,n)||{};return po(o,s,f=>{let d=Py(u,i,f);return f===d&&typeof f=="string"&&(d=Py(u,i,`${t}${f==="default"?"":Me(f)}`,f)),r===!1?d:{[r]:d}})};return a.propTypes={},a.filterProps=[t],a}function vK(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const gK={m:"margin",p:"padding"},mK={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},MD={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},yK=vK(e=>{if(e.length>2)if(MD[e])e=MD[e];else return[e];const[t,r]=e.split(""),n=gK[t],i=mK[r]||"";return Array.isArray(i)?i.map(a=>n+a):[n+i]}),ZM=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],KM=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...ZM,...KM];function ov(e,t,r,n){var i;const a=(i=cf(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 HV(e){return ov(e,"spacing",8)}function sv(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 xK(e,t){return r=>e.reduce((n,i)=>(n[i]=sv(t,r),n),{})}function SK(e,t,r,n){if(t.indexOf(r)===-1)return null;const i=yK(r),a=xK(i,n),o=e[r];return po(e,o,a)}function WV(e,t){const r=HV(e.theme);return Object.keys(e).map(n=>SK(e,t,n,r)).reduce(Ch,{})}function Qt(e){return WV(e,ZM)}Qt.propTypes={};Qt.filterProps=ZM;function Jt(e){return WV(e,KM)}Jt.propTypes={};Jt.filterProps=KM;function bK(e=8){if(e.mui)return e;const t=HV({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 D1(...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]?Ch(i,t[a](n)):i,{});return r.propTypes={},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function ha(e){return typeof e!="number"?e:`${e}px solid`}const _K=St({prop:"border",themeKey:"borders",transform:ha}),wK=St({prop:"borderTop",themeKey:"borders",transform:ha}),CK=St({prop:"borderRight",themeKey:"borders",transform:ha}),TK=St({prop:"borderBottom",themeKey:"borders",transform:ha}),AK=St({prop:"borderLeft",themeKey:"borders",transform:ha}),MK=St({prop:"borderColor",themeKey:"palette"}),IK=St({prop:"borderTopColor",themeKey:"palette"}),PK=St({prop:"borderRightColor",themeKey:"palette"}),kK=St({prop:"borderBottomColor",themeKey:"palette"}),DK=St({prop:"borderLeftColor",themeKey:"palette"}),R1=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ov(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:sv(t,n)});return po(e,e.borderRadius,r)}return null};R1.propTypes={};R1.filterProps=["borderRadius"];D1(_K,wK,CK,TK,AK,MK,IK,PK,kK,DK,R1);const L1=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ov(e.theme,"spacing",8),r=n=>({gap:sv(t,n)});return po(e,e.gap,r)}return null};L1.propTypes={};L1.filterProps=["gap"];const E1=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ov(e.theme,"spacing",8),r=n=>({columnGap:sv(t,n)});return po(e,e.columnGap,r)}return null};E1.propTypes={};E1.filterProps=["columnGap"];const O1=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ov(e.theme,"spacing",8),r=n=>({rowGap:sv(t,n)});return po(e,e.rowGap,r)}return null};O1.propTypes={};O1.filterProps=["rowGap"];const RK=St({prop:"gridColumn"}),LK=St({prop:"gridRow"}),EK=St({prop:"gridAutoFlow"}),OK=St({prop:"gridAutoColumns"}),NK=St({prop:"gridAutoRows"}),zK=St({prop:"gridTemplateColumns"}),BK=St({prop:"gridTemplateRows"}),FK=St({prop:"gridTemplateAreas"}),$K=St({prop:"gridArea"});D1(L1,E1,O1,RK,LK,EK,OK,NK,zK,BK,FK,$K);function Wc(e,t){return t==="grey"?t:e}const VK=St({prop:"color",themeKey:"palette",transform:Wc}),GK=St({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Wc}),HK=St({prop:"backgroundColor",themeKey:"palette",transform:Wc});D1(VK,GK,HK);function En(e){return e<=1&&e!==0?`${e*100}%`:e}const WK=St({prop:"width",transform:En}),QM=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:En(r)}};return po(e,e.maxWidth,t)}return null};QM.filterProps=["maxWidth"];const UK=St({prop:"minWidth",transform:En}),jK=St({prop:"height",transform:En}),YK=St({prop:"maxHeight",transform:En}),qK=St({prop:"minHeight",transform:En});St({prop:"size",cssProperty:"width",transform:En});St({prop:"size",cssProperty:"height",transform:En});const XK=St({prop:"boxSizing"});D1(WK,QM,UK,jK,YK,qK,XK);const ZK={border:{themeKey:"borders",transform:ha},borderTop:{themeKey:"borders",transform:ha},borderRight:{themeKey:"borders",transform:ha},borderBottom:{themeKey:"borders",transform:ha},borderLeft:{themeKey:"borders",transform:ha},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:R1},color:{themeKey:"palette",transform:Wc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Wc},backgroundColor:{themeKey:"palette",transform:Wc},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:L1},rowGap:{style:O1},columnGap:{style:E1},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:En},maxWidth:{style:QM},minWidth:{transform:En},height:{transform:En},maxHeight:{transform:En},minHeight:{transform:En},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},N1=ZK;function KK(...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 QK(e,t){return typeof e=="function"?e(t):e}function JK(){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=cf(i,u)||{};return f?f(o):po(o,n,p=>{let v=Py(d,c,p);return p===v&&typeof p=="string"&&(v=Py(d,c,`${r}${p==="default"?"":Me(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:N1;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=hK(a.breakpoints),f=Object.keys(c);let d=c;return Object.keys(u).forEach(h=>{const p=QK(u[h],a);if(p!=null)if(typeof p=="object")if(o[h])d=Ch(d,e(h,p,a,o));else{const v=po({theme:a},p,g=>({[h]:g}));KK(v,p)?d[h]=t({sx:p,theme:a}):d=Ch(d,v)}else d=Ch(d,e(h,p,a,o))}),pK(f,d)}return Array.isArray(i)?i.map(s):s(i)}return t}const UV=JK();UV.filterProps=["sx"];const z1=UV,eQ=["breakpoints","palette","spacing","shape"];function B1(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:a={}}=e,o=ye(e,eQ),s=cK(r),l=bK(i);let u=mi({breakpoints:s,direction:"ltr",components:{},palette:F({mode:"light"},n),spacing:l,shape:F({},dK,a)},o);return u=t.reduce((c,f)=>mi(c,f),u),u.unstable_sxConfig=F({},N1,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(f){return z1({sx:f,theme:this})},u}function tQ(e){return Object.keys(e).length===0}function jV(e=null){const t=O.useContext(k1);return!t||tQ(t)?e:t}const rQ=B1();function F1(e=rQ){return jV(e)}function nQ({styles:e,themeId:t,defaultTheme:r={}}){const n=F1(r),i=typeof e=="function"?e(t&&n[t]||n):e;return E.jsx(oK,{styles:i})}const iQ=["sx"],aQ=e=>{var t,r;const n={systemProps:{},otherProps:{}},i=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:N1;return Object.keys(e).forEach(a=>{i[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function YV(e){const{sx:t}=e,r=ye(e,iQ),{systemProps:n,otherProps:i}=aQ(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...o)=>{const s=t(...o);return Il(s)?F({},n,s):n}:a=F({},n,t),F({},i,{sx:a})}function qV(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"})(z1);return O.forwardRef(function(l,u){const c=F1(r),f=YV(l),{className:d,component:h="div"}=f,p=ye(f,oQ);return E.jsx(a,F({as:h,ref:u,className:Ce(d,i?i(n):n),theme:t&&c[t]||c},p))})}const lQ=["variant"];function ID(e){return e.length===0}function XV(e){const{variant:t}=e,r=ye(e,lQ);let n=t||"";return Object.keys(r).sort().forEach(i=>{i==="color"?n+=ID(n)?e[i]:Me(e[i]):n+=`${ID(n)?i:Me(i)}${Me(e[i].toString())}`}),n}const uQ=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function cQ(e){return Object.keys(e).length===0}function fQ(e){return typeof e=="string"&&e.charCodeAt(0)>96}const dQ=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,hQ=(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=XV(i.props);n[a]=i.style}),n},pQ=(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[XV(l.props)])}),o};function Th(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const vQ=B1(),gQ=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function cd({defaultTheme:e,theme:t,themeId:r}){return cQ(t)?e:t[r]||t}function mQ(e){return e?(t,r)=>r[e]:null}function ZV(e={}){const{themeId:t,defaultTheme:r=vQ,rootShouldForwardProp:n=Th,slotShouldForwardProp:i=Th}=e,a=o=>z1(F({},o,{theme:cd(F({},o,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(o,s={})=>{sK(o,S=>S.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:d=mQ(gQ(u))}=s,h=ye(s,uQ),p=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,v=f||!1;let g,m=Th;u==="Root"||u==="root"?m=n:u?m=i:fQ(o)&&(m=void 0);const y=GV(o,F({shouldForwardProp:m,label:g},h)),x=(S,..._)=>{const b=_?_.map(T=>typeof T=="function"&&T.__emotion_real!==T?M=>T(F({},M,{theme:cd(F({},M,{defaultTheme:r,themeId:t}))})):T):[];let w=S;l&&d&&b.push(T=>{const M=cd(F({},T,{defaultTheme:r,themeId:t})),I=dQ(l,M);if(I){const P={};return Object.entries(I).forEach(([k,R])=>{P[k]=typeof R=="function"?R(F({},T,{theme:M})):R}),d(T,P)}return null}),l&&!p&&b.push(T=>{const M=cd(F({},T,{defaultTheme:r,themeId:t}));return pQ(T,hQ(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(F({},T,{theme:cd(F({},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 yQ=ZV(),xQ=yQ;function SQ(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:GM(t.components[r].defaultProps,n)}function KV({props:e,name:t,defaultTheme:r,themeId:n}){let i=F1(r);return n&&(i=i[n]||i),SQ({theme:i,name:t,props:e})}function JM(e,t=0,r=1){return Math.min(Math.max(t,e),r)}function bQ(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 hu(e){if(e.type)return e;if(e.charAt(0)==="#")return hu(bQ(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(Cs(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(Cs(10,i))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:i}}function $1(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 _Q(e){e=hu(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])),$1({type:s,values:l})}function PD(e){e=hu(e);let t=e.type==="hsl"||e.type==="hsla"?hu(_Q(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 wQ(e,t){const r=PD(e),n=PD(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function wr(e,t){return e=hu(e),t=JM(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,$1(e)}function QV(e,t){if(e=hu(e),t=JM(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 $1(e)}function JV(e,t){if(e=hu(e),t=JM(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 $1(e)}const CQ=O.createContext(null),e4=CQ;function t4(){return O.useContext(e4)}const TQ=typeof Symbol=="function"&&Symbol.for,AQ=TQ?Symbol.for("mui.nested"):"__THEME_NESTED__";function MQ(e,t){return typeof t=="function"?t(e):F({},e,t)}function IQ(e){const{children:t,theme:r}=e,n=t4(),i=O.useMemo(()=>{const a=n===null?r:MQ(n,r);return a!=null&&(a[AQ]=n!==null),a},[r,n]);return E.jsx(e4.Provider,{value:i,children:t})}const kD={};function DD(e,t,r,n=!1){return O.useMemo(()=>{const i=e&&t[e]||t;if(typeof r=="function"){const a=r(i),o=e?F({},t,{[e]:a}):a;return n?()=>o:o}return e?F({},t,{[e]:r}):F({},t,r)},[e,t,r,n])}function PQ(e){const{children:t,theme:r,themeId:n}=e,i=jV(kD),a=t4()||kD,o=DD(n,i,r),s=DD(n,a,r,!0);return E.jsx(IQ,{theme:s,children:E.jsx(k1.Provider,{value:o,children:t})})}const kQ=["className","component","disableGutters","fixed","maxWidth","classes"],DQ=B1(),RQ=xQ("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Me(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),LQ=e=>KV({props:e,name:"MuiContainer",defaultTheme:DQ}),EQ=(e,t)=>{const r=l=>Ue(t,l),{classes:n,fixed:i,disableGutters:a,maxWidth:o}=e,s={root:["root",o&&`maxWidth${Me(String(o))}`,i&&"fixed",a&&"disableGutters"]};return Ze(s,r,n)};function OQ(e={}){const{createStyledComponent:t=RQ,useThemeProps:r=LQ,componentName:n="MuiContainer"}=e,i=t(({theme:o,ownerState:s})=>F({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})=>F({},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=ye(u,kQ),g=F({},u,{component:f,disableGutters:d,fixed:h,maxWidth:p}),m=EQ(g,n);return E.jsx(i,F({as:f,ownerState:g,className:Ce(m.root,c),ref:l},v))})}function NQ(e,t){return F({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const zQ={black:"#000",white:"#fff"},gp=zQ,BQ={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"},FQ=BQ,$Q={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"},Bu=$Q,VQ={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"},Fu=VQ,GQ={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"},fd=GQ,HQ={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"},$u=HQ,WQ={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"},Vu=WQ,UQ={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"},Gu=UQ,jQ=["mode","contrastThreshold","tonalOffset"],RD={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:gp.white,default:gp.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}},CS={text:{primary:gp.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:gp.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 LD(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=JV(e.main,i):t==="dark"&&(e.dark=QV(e.main,a)))}function YQ(e="light"){return e==="dark"?{main:$u[200],light:$u[50],dark:$u[400]}:{main:$u[700],light:$u[400],dark:$u[800]}}function qQ(e="light"){return e==="dark"?{main:Bu[200],light:Bu[50],dark:Bu[400]}:{main:Bu[500],light:Bu[300],dark:Bu[700]}}function XQ(e="light"){return e==="dark"?{main:Fu[500],light:Fu[300],dark:Fu[700]}:{main:Fu[700],light:Fu[400],dark:Fu[800]}}function ZQ(e="light"){return e==="dark"?{main:Vu[400],light:Vu[300],dark:Vu[700]}:{main:Vu[700],light:Vu[500],dark:Vu[900]}}function KQ(e="light"){return e==="dark"?{main:Gu[400],light:Gu[300],dark:Gu[700]}:{main:Gu[800],light:Gu[500],dark:Gu[900]}}function QQ(e="light"){return e==="dark"?{main:fd[400],light:fd[300],dark:fd[700]}:{main:"#ed6c02",light:fd[500],dark:fd[900]}}function JQ(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,i=ye(e,jQ),a=e.primary||YQ(t),o=e.secondary||qQ(t),s=e.error||XQ(t),l=e.info||ZQ(t),u=e.success||KQ(t),c=e.warning||QQ(t);function f(v){return wQ(v,CS.text.primary)>=r?CS.text.primary:RD.text.primary}const d=({color:v,name:g,mainShade:m=500,lightShade:y=300,darkShade:x=700})=>{if(v=F({},v),!v.main&&v[m]&&(v.main=v[m]),!v.hasOwnProperty("main"))throw new Error(Cs(11,g?` (${g})`:"",m));if(typeof v.main!="string")throw new Error(Cs(12,g?` (${g})`:"",JSON.stringify(v.main)));return LD(v,"light",y,n),LD(v,"dark",x,n),v.contrastText||(v.contrastText=f(v.main)),v},h={dark:CS,light:RD};return mi(F({common:F({},gp),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:FQ,contrastThreshold:r,getContrastText:f,augmentColor:d,tonalOffset:n},h[t]),i)}const eJ=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function tJ(e){return Math.round(e*1e5)/1e5}const ED={textTransform:"uppercase"},OD='"Roboto", "Helvetica", "Arial", sans-serif';function rJ(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=OD,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:o=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:f}=r,d=ye(r,eJ),h=i/14,p=f||(m=>`${m/u*h}rem`),v=(m,y,x,S,_)=>F({fontFamily:n,fontWeight:m,fontSize:p(y),lineHeight:x},n===OD?{letterSpacing:`${tJ(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,ED),caption:v(o,12,1.66,.4),overline:v(o,12,2.66,1,ED),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return mi(F({htmlFontSize:u,pxToRem:p,fontFamily:n,fontSize:i,fontWeightLight:a,fontWeightRegular:o,fontWeightMedium:s,fontWeightBold:l},g),d,{clone:!1})}const nJ=.2,iJ=.14,aJ=.12;function Gt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${nJ})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${iJ})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${aJ})`].join(",")}const oJ=["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)],sJ=oJ,lJ=["duration","easing","delay"],uJ={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)"},r4={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ND(e){return`${Math.round(e)}ms`}function cJ(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function fJ(e){const t=F({},uJ,e.easing),r=F({},r4,e.duration);return F({getAutoHeightDuration:cJ,create:(i=["all"],a={})=>{const{duration:o=r.standard,easing:s=t.easeInOut,delay:l=0}=a;return ye(a,lJ),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof o=="string"?o:ND(o)} ${s} ${typeof l=="string"?l:ND(l)}`).join(",")}},e,{easing:t,duration:r})}const dJ={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},hJ=dJ,pJ=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function e2(e={},...t){const{mixins:r={},palette:n={},transitions:i={},typography:a={}}=e,o=ye(e,pJ);if(e.vars)throw new Error(Cs(18));const s=JQ(n),l=B1(e);let u=mi(l,{mixins:NQ(l.breakpoints,r),palette:s,shadows:sJ.slice(),typography:rJ(s,a),transitions:fJ(i),zIndex:F({},hJ)});return u=mi(u,o),u=t.reduce((c,f)=>mi(c,f),u),u.unstable_sxConfig=F({},N1,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(f){return z1({sx:f,theme:this})},u}const vJ=e2(),V1=vJ,pu="$$material";function Ye({props:e,name:t}){return KV({props:e,name:t,defaultTheme:V1,themeId:pu})}function n4(e){return E.jsx(nQ,F({},e,{defaultTheme:V1,themeId:pu}))}const gJ=(e,t)=>F({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),mJ=e=>F({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}}),yJ=(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=F({html:gJ(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:F({margin:0},mJ(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 i4(e){const t=Ye({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return E.jsxs(O.Fragment,{children:[E.jsx(n4,{styles:i=>yJ(i,n)}),r]})}function Pf(){const e=F1(V1);return e[pu]||e}const wo=e=>Th(e)&&e!=="classes",xJ=Th,SJ=ZV({themeId:pu,defaultTheme:V1,rootShouldForwardProp:wo}),ge=SJ,bJ=["theme"];function a4(e){let{theme:t}=e,r=ye(e,bJ);const n=t[pu];return E.jsx(PQ,F({},r,{themeId:n?pu:void 0,theme:n||t}))}const _J=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},zD=_J;function wJ(e){return Ue("MuiSvgIcon",e)}je("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const CJ=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],TJ=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${Me(t)}`,`fontSize${Me(r)}`]};return Ze(i,wJ,n)},AJ=ge("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Me(r.color)}`],t[`fontSize${Me(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]}}),o4=O.forwardRef(function(t,r){const n=Ye({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=ye(n,CJ),p=O.isValidElement(i)&&i.type==="svg",v=F({},n,{color:o,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:p}),g={};c||(g.viewBox=d);const m=TJ(v);return E.jsxs(AJ,F({as:s,className:Ce(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?E.jsx("title",{children:f}):null]}))});o4.muiName="SvgIcon";const BD=o4;function G1(e,t){function r(n,i){return E.jsx(BD,F({"data-testid":`${t}Icon`,ref:i},n,{children:e}))}return r.muiName=BD.muiName,O.memo(O.forwardRef(r))}const MJ={configure:e=>{HM.configure(e)}},IJ=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Me,createChainedFunction:xC,createSvgIcon:G1,debounce:iv,deprecatedPropType:KX,isMuiElement:wh,ownerDocument:on,ownerWindow:Da,requirePropFactory:QX,setRef:Ay,unstable_ClassNameGenerator:MJ,unstable_useEnhancedEffect:ho,unstable_useId:TV,unsupportedProp:tZ,useControlled:My,useEventCallback:ya,useForkRef:Mr,useIsFocusVisible:VM},Symbol.toStringTag,{value:"Module"}));function CC(e,t){return CC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},CC(e,t)}function s4(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,CC(e,t)}const FD={disabled:!1},ky=ma.createContext(null);var PJ=function(t){return t.scrollTop},Kd="unmounted",yl="exited",xl="entering",hc="entered",TC="exiting",Co=function(e){s4(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=yl,a.appearStatus=xl):l=hc:n.unmountOnExit||n.mountOnEnter?l=Kd:l=yl,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===Kd?{status:yl}: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!==xl&&o!==hc&&(a=xl):(o===xl||o===hc)&&(a=TC)}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===xl){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Kv.findDOMNode(this);o&&PJ(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===yl&&this.setState({status:Kd})},r.performEnter=function(i){var a=this,o=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[Kv.findDOMNode(this),s],u=l[0],c=l[1],f=this.getTimeouts(),d=s?f.appear:f.enter;if(!i&&!o||FD.disabled){this.safeSetState({status:hc},function(){a.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:xl},function(){a.props.onEntering(u,c),a.onTransitionEnd(d,function(){a.safeSetState({status:hc},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:Kv.findDOMNode(this);if(!a||FD.disabled){this.safeSetState({status:yl},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:TC},function(){i.props.onExiting(s),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:yl},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:Kv.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===Kd)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=ye(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ma.createElement(ky.Provider,{value:null},typeof o=="function"?o(i,s):ma.cloneElement(ma.Children.only(o),s))},t}(ma.Component);Co.contextType=ky;Co.propTypes={};function Hu(){}Co.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Hu,onEntering:Hu,onEntered:Hu,onExit:Hu,onExiting:Hu,onExited:Hu};Co.UNMOUNTED=Kd;Co.EXITED=yl;Co.ENTERING=xl;Co.ENTERED=hc;Co.EXITING=TC;const t2=Co;function kJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r2(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 DJ(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 ff(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 zJ(e){return Ue("MuiCollapse",e)}je("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const BJ=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],FJ=e=>{const{orientation:t,classes:r}=e,n={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Ze(n,zJ,r)},$J=ge("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})=>F({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&F({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),VJ=ge("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>F({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),GJ=ge("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>F({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),u4=O.forwardRef(function(t,r){const n=Ye({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=r4.standard,TransitionComponent:S=t2}=n,_=ye(n,BJ),b=F({},n,{orientation:m,collapsedSize:s}),w=FJ(b),C=Pf(),A=O.useRef(),T=O.useRef(null),M=O.useRef(),I=typeof s=="number"?`${s}px`:s,P=m==="horizontal",k=P?"width":"height";O.useEffect(()=>()=>{clearTimeout(A.current)},[]);const R=O.useRef(null),z=Mr(r,R),$=W=>ee=>{if(W){const te=R.current;ee===void 0?W(te):W(te,ee)}},N=()=>T.current?T.current[P?"clientWidth":"clientHeight"]:0,V=$((W,ee)=>{T.current&&P&&(T.current.style.position="absolute"),W.style[k]=I,f&&f(W,ee)}),L=$((W,ee)=>{const te=N();T.current&&P&&(T.current.style.position="");const{duration:ie,easing:re}=ff({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[k]=`${te}px`,W.style.transitionTimingFunction=re,h&&h(W,ee)}),G=$((W,ee)=>{W.style[k]="auto",d&&d(W,ee)}),U=$(W=>{W.style[k]=`${N()}px`,p&&p(W)}),B=$(v),j=$(W=>{const ee=N(),{duration:te,easing:ie}=ff({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[k]=I,W.style.transitionTimingFunction=ie,g&&g(W)}),X=W=>{x==="auto"&&(A.current=setTimeout(W,M.current||0)),i&&i(R.current,W)};return E.jsx(S,F({in:c,onEnter:V,onEntered:G,onEntering:L,onExit:U,onExited:B,onExiting:j,addEndListener:X,nodeRef:R,timeout:x==="auto"?null:x},_,{children:(W,ee)=>E.jsx($J,F({as:l,className:Ce(w.root,o,{entered:w.entered,exited:!c&&I==="0px"&&w.hidden}[W]),style:F({[P?"minWidth":"minHeight"]:I},y),ownerState:F({},b,{state:W}),ref:z},ee,{children:E.jsx(VJ,{ownerState:F({},b,{state:W}),className:w.wrapper,ref:T,children:E.jsx(GJ,{ownerState:F({},b,{state:W}),className:w.wrapperInner,children:a})})}))}))});u4.muiSupportAuto=!0;const HJ=u4;function WJ(e){return Ue("MuiPaper",e)}je("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 UJ=["className","component","elevation","square","variant"],jJ=e=>{const{square:t,elevation:r,variant:n,classes:i}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Ze(a,WJ,i)},YJ=ge("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 F({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"&&F({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${wr("#fff",zD(t.elevation))}, ${wr("#fff",zD(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),qJ=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiPaper"}),{className:i,component:a="div",elevation:o=1,square:s=!1,variant:l="elevation"}=n,u=ye(n,UJ),c=F({},n,{component:a,elevation:o,square:s,variant:l}),f=jJ(c);return E.jsx(YJ,F({as:a,ownerState:c,className:Ce(f.root,i),ref:r},u))}),H1=qJ,XJ=O.createContext({}),c4=XJ;function ZJ(e){return Ue("MuiAccordion",e)}const KJ=je("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),Jv=KJ,QJ=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],JJ=e=>{const{classes:t,square:r,expanded:n,disabled:i,disableGutters:a}=e;return Ze({root:["root",!r&&"rounded",n&&"expanded",i&&"disabled",!a&&"gutters"],region:["region"]},ZJ,t)},eee=ge(H1,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Jv.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"}},[`&.${Jv.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${Jv.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e,ownerState:t})=>F({},!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&&{[`&.${Jv.expanded}`]:{margin:"16px 0"}})),tee=O.forwardRef(function(t,r){const n=Ye({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=HJ,TransitionProps:h}=n,p=ye(n,QJ),[v,g]=My({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]),_=F({},n,{square:f,disabled:s,disableGutters:l,expanded:v}),b=JJ(_);return E.jsxs(eee,F({className:Ce(b.root,a),ref:r,ownerState:_,square:f},p,{children:[E.jsx(c4.Provider,{value:S,children:y}),E.jsx(d,F({in:v,timeout:"auto"},h,{children:E.jsx("div",{"aria-labelledby":y.props.id,id:y.props["aria-controls"],role:"region",className:b.region,children:x})}))]}))}),f4=tee;function ree(e){return Ue("MuiAccordionDetails",e)}je("MuiAccordionDetails",["root"]);const nee=["className"],iee=e=>{const{classes:t}=e;return Ze({root:["root"]},ree,t)},aee=ge("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),oee=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiAccordionDetails"}),{className:i}=n,a=ye(n,nee),o=n,s=iee(o);return E.jsx(aee,F({className:Ce(s.root,i),ref:r,ownerState:o},a))}),d4=oee;function see(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=Ce(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),h={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},p=Ce(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]),E.jsx("span",{className:d,style:h,children:E.jsx("span",{className:p})})}const lee=je("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ii=lee,uee=["center","classes","className"];let W1=e=>e,$D,VD,GD,HD;const AC=550,cee=80,fee=qM($D||($D=W1` 0% { transform: scale(0); opacity: 0.1; @@ -88,7 +88,7 @@ ${W.current.stack} transform: scale(1); opacity: 0.3; } -`)),dee=YM(VD||(VD=W1` +`)),dee=qM(VD||(VD=W1` 0% { opacity: 1; } @@ -96,7 +96,7 @@ ${W.current.stack} 100% { opacity: 0; } -`)),hee=YM(GD||(GD=W1` +`)),hee=qM(GD||(GD=W1` 0% { transform: scale(1); } @@ -151,24 +151,24 @@ ${W.current.stack} animation-iteration-count: infinite; animation-delay: 200ms; } -`),ii.rippleVisible,fee,TC,({theme:e})=>e.transitions.easing.easeInOut,ii.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ii.child,ii.childLeaving,dee,TC,({theme:e})=>e.transitions.easing.easeInOut,ii.childPulsate,hee,({theme:e})=>e.transitions.easing.easeInOut),gee=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:o}=n,s=ye(n,uee),[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,E.jsx(vee,{classes:{ripple:Ce(a.ripple,ii.ripple),rippleVisible:Ce(a.rippleVisible,ii.rippleVisible),ripplePulsate:Ce(a.ripplePulsate,ii.ripplePulsate),child:Ce(a.child,ii.child),childLeaving:Ce(a.childLeaving,ii.childLeaving),childPulsate:Ce(a.childPulsate,ii.childPulsate)},timeout:TC,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 I,P,k;if(C||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)I=Math.round(M.width/2),P=Math.round(M.height/2);else{const{clientX:R,clientY:z}=S.touches&&S.touches.length>0?S.touches[0]:S;I=Math.round(R-M.left),P=Math.round(z-M.top)}if(C)k=Math.sqrt((2*M.width**2+M.height**2)/3),k%2===0&&(k+=1);else{const R=Math.max(Math.abs((T?T.clientWidth:0)-I),I)*2+2,z=Math.max(Math.abs((T?T.clientHeight:0)-P),P)*2+2;k=Math.sqrt(R**2+z**2)}S!=null&&S.touches?p.current===null&&(p.current=()=>{g({pulsate:w,rippleX:I,rippleY:P,rippleSize:k,cb:b})},h.current=setTimeout(()=>{p.current&&(p.current(),p.current=null)},cee)):g({pulsate:w,rippleX:I,rippleY:P,rippleSize:k,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]),E.jsx(pee,F({className:Ce(ii.root,a.root,o),ref:v},s,{children:E.jsx(NJ,{component:null,exit:!0,children:l})}))}),mee=gee;function yee(e){return Ue("MuiButtonBase",e)}const xee=je("MuiButtonBase",["root","disabled","focusVisible"]),See=xee,bee=["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"],_ee=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,o=Ze({root:["root",t&&"disabled",r&&"focusVisible"]},yee,i);return r&&n&&(o.root+=` ${n}`),o},wee=ge("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${See.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Cee=O.forwardRef(function(t,r){const n=Ye({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:I=0,TouchRippleProps:P,touchRippleRef:k,type:R}=n,z=ye(n,bee),$=O.useRef(null),N=O.useRef(null),V=Mr(N,k),{isFocusVisibleRef:L,onFocus:G,onBlur:U,ref:B}=$M(),[j,X]=O.useState(!1);u&&j&&X(!1),O.useImperativeHandle(i,()=>({focusVisible:()=>{X(!0),$.current.focus()}}),[]);const[W,ee]=O.useState(!1);O.useEffect(()=>{ee(!0)},[]);const te=W&&!c&&!u;O.useEffect(()=>{j&&d&&!c&&W&&N.current.pulsate()},[c,d,j,W]);function ie(he,Vt,Sr=f){return ya(Te=>(Vt&&Vt(Te),!Sr&&N.current&&N.current[he](Te),!0))}const re=ie("start",b),Q=ie("stop",g),J=ie("stop",m),fe=ie("stop",C),de=ie("stop",he=>{j&&he.preventDefault(),w&&w(he)}),ke=ie("start",M),We=ie("stop",A),Ge=ie("stop",T),at=ie("stop",he=>{U(he),L.current===!1&&X(!1),p&&p(he)},!1),ot=ya(he=>{$.current||($.current=he.currentTarget),G(he),L.current===!0&&(X(!0),x&&x(he)),y&&y(he)}),It=()=>{const he=$.current;return l&&l!=="button"&&!(he.tagName==="A"&&he.href)},Be=O.useRef(!1),Pt=ya(he=>{d&&!Be.current&&j&&N.current&&he.key===" "&&(Be.current=!0,N.current.stop(he,()=>{N.current.start(he)})),he.target===he.currentTarget&&It()&&he.key===" "&&he.preventDefault(),S&&S(he),he.target===he.currentTarget&&It()&&he.key==="Enter"&&!u&&(he.preventDefault(),v&&v(he))}),Yt=ya(he=>{d&&he.key===" "&&N.current&&j&&!he.defaultPrevented&&(Be.current=!1,N.current.stop(he,()=>{N.current.pulsate(he)})),_&&_(he),v&&he.target===he.currentTarget&&It()&&he.key===" "&&!he.defaultPrevented&&v(he)});let kt=l;kt==="button"&&(z.href||z.to)&&(kt=h);const K={};kt==="button"?(K.type=R===void 0?"button":R,K.disabled=u):(!z.href&&!z.to&&(K.role="button"),u&&(K["aria-disabled"]=u));const le=Mr(r,B,$),Re=F({},n,{centerRipple:a,component:l,disabled:u,disableRipple:c,disableTouchRipple:f,focusRipple:d,tabIndex:I,focusVisible:j}),_e=_ee(Re);return E.jsxs(wee,F({as:kt,className:Ce(_e.root,s),ownerState:Re,onBlur:at,onClick:v,onContextMenu:Q,onFocus:ot,onKeyDown:Pt,onKeyUp:Yt,onMouseDown:re,onMouseLeave:de,onMouseUp:fe,onDragLeave:J,onTouchEnd:We,onTouchMove:Ge,onTouchStart:ke,ref:le,tabIndex:u?-1:I,type:R},K,z,{children:[o,te?E.jsx(mee,F({ref:V,center:a},P)):null]}))}),kf=Cee;function Tee(e){return Ue("MuiAccordionSummary",e)}const Aee=je("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),Rc=Aee,Mee=["children","className","expandIcon","focusVisibleClassName","onClick"],Iee=e=>{const{classes:t,expanded:r,disabled:n,disableGutters:i}=e;return Ze({root:["root",r&&"expanded",n&&"disabled",!i&&"gutters"],focusVisible:["focusVisible"],content:["content",r&&"expanded",!i&&"contentGutters"],expandIconWrapper:["expandIconWrapper",r&&"expanded"]},Tee,t)},Pee=ge(kf,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const r={duration:e.transitions.duration.shortest};return F({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],r),[`&.${Rc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Rc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${Rc.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${Rc.expanded}`]:{minHeight:64}})}),kee=ge("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>F({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${Rc.expanded}`]:{margin:"20px 0"}})),Dee=ge("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}),[`&.${Rc.expanded}`]:{transform:"rotate(180deg)"}})),Ree=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiAccordionSummary"}),{children:i,className:a,expandIcon:o,focusVisibleClassName:s,onClick:l}=n,u=ye(n,Mee),{disabled:c=!1,disableGutters:f,expanded:d,toggle:h}=O.useContext(c4),p=m=>{h&&h(m),l&&l(m)},v=F({},n,{expanded:d,disabled:c,disableGutters:f}),g=Iee(v);return E.jsxs(Pee,F({focusRipple:!1,disableRipple:!0,disabled:c,component:"div","aria-expanded":d,className:Ce(g.root,a),focusVisibleClassName:Ce(g.focusVisible,s),onClick:p,ref:r,ownerState:v},u,{children:[E.jsx(kee,{className:g.content,ownerState:v,children:i}),o&&E.jsx(Dee,{className:g.expandIconWrapper,ownerState:v,children:o})]}))}),h4=Ree;function Lee(e){return Ue("MuiIconButton",e)}const Eee=je("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Oee=Eee,Nee=["edge","children","className","color","disabled","disableFocusRipple","size"],zee=e=>{const{classes:t,disabled:r,color:n,edge:i,size:a}=e,o={root:["root",r&&"disabled",n!=="default"&&`color${Me(n)}`,i&&`edge${Me(i)}`,`size${Me(a)}`]};return Ze(o,Lee,t)},Bee=ge(kf,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${Me(r.color)}`],r.edge&&t[`edge${Me(r.edge)}`],t[`size${Me(r.size)}`]]}})(({theme:e,ownerState:t})=>F({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})`:wr(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 F({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&F({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":F({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:wr(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)},{[`&.${Oee.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Fee=O.forwardRef(function(t,r){const n=Ye({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=ye(n,Nee),d=F({},n,{edge:i,color:s,disabled:l,disableFocusRipple:u,size:c}),h=zee(d);return E.jsx(Bee,F({className:Ce(h.root,o),centerRipple:!0,focusRipple:!u,disabled:l,ref:r,ownerState:d},f,{children:a}))}),p4=Fee;function $ee(e){return Ue("MuiTypography",e)}je("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Vee=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Gee=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:a,classes:o}=e,s={root:["root",a,e.align!=="inherit"&&`align${Me(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return Ze(s,$ee,o)},Hee=ge("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${Me(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>F({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})),WD={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Wee={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Uee=e=>Wee[e]||e,jee=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTypography"}),i=Uee(n.color),a=YV(F({},n,{color:i})),{align:o="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:f=!1,variant:d="body1",variantMapping:h=WD}=a,p=ye(a,Vee),v=F({},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]||WD[d])||"span",m=Gee(v);return E.jsx(Hee,F({as:g,ref:r,ownerState:v,className:Ce(m.root,s)},p))}),Xe=jee;function Yee(e){return Ue("MuiAppBar",e)}je("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const qee=["className","color","enableColorOnDark","position"],Xee=e=>{const{color:t,position:r,classes:n}=e,i={root:["root",`color${Me(t)}`,`position${Me(r)}`]};return Ze(i,Yee,n)},eg=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Zee=ge(H1,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Me(r.position)}`],t[`color${Me(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return F({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&&F({},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"&&F({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&F({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:eg(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:eg(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:eg(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:eg(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"}))}),Kee=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiAppBar"}),{className:i,color:a="primary",enableColorOnDark:o=!1,position:s="fixed"}=n,l=ye(n,qee),u=F({},n,{color:a,position:s,enableColorOnDark:o}),c=Xee(u);return E.jsx(Zee,F({square:!0,component:"header",ownerState:u,elevation:4,className:Ce(c.root,i,s==="fixed"&&"mui-fixed"),ref:r},l))}),Qee=Kee;function df(e){return typeof e=="string"}function Jee(e,t,r){return e===void 0||df(e)?t:F({},t,{ownerState:F({},t.ownerState,r)})}function v4(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 ete(e,t,r){return typeof e=="function"?e(t,r):e}function UD(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 tte(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:a}=e;if(!t){const h=Ce(i==null?void 0:i.className,n==null?void 0:n.className,a,r==null?void 0:r.className),p=F({},r==null?void 0:r.style,i==null?void 0:i.style,n==null?void 0:n.style),v=F({},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=v4(F({},i,n)),s=UD(n),l=UD(i),u=t(o),c=Ce(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=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=F({},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 rte=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ra(e){var t;const{elementType:r,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:a=!1}=e,o=ye(e,rte),s=a?{}:ete(n,i),{props:l,internalRef:u}=tte(F({},o,{externalSlotProps:s})),c=Mr(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Jee(r,F({},l,{ref:c}),i)}const nte=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ite(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 ate(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 ote(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||ate(e))}function ste(e){const t=[],r=[];return Array.from(e.querySelectorAll(nte)).forEach((n,i)=>{const a=ite(n);a===-1||!ote(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 lte(){return!0}function ute(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:a=ste,isEnabled:o=lte,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=on(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=on(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"),I=C[0],P=C[C.length-1];typeof I!="string"&&typeof P!="string"&&(M?P.focus():I.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 E.jsxs(O.Fragment,{children:[E.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelStart"}),O.cloneElement(t,{ref:v,onFocus:m}),E.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelEnd"})]})}function cte(e){return typeof e=="function"?e():e}const fte=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(ho(()=>{a||s(cte(i)||document.body)},[i,a]),ho(()=>{if(o&&!a)return Ay(r,o),()=>{Ay(r,null)}},[r,o,a]),a){if(O.isValidElement(n)){const u={ref:l};return O.cloneElement(n,u)}return E.jsx(O.Fragment,{children:n})}return E.jsx(O.Fragment,{children:o&&Mf.createPortal(n,o)})});function dte(e){const t=on(e);return t.body===e?Da(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ah(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function jD(e){return parseInt(Da(e).getComputedStyle(e).paddingRight,10)||0}function hte(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 YD(e,t,r,n,i){const a=[t,r,...n];[].forEach.call(e.children,o=>{const s=a.indexOf(o)===-1,l=!hte(o);s&&l&&Ah(o,i)})}function CS(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function pte(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(dte(n)){const o=AV(on(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${jD(n)+o}px`;const s=on(n).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${jD(l)+o}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=on(n).body;else{const o=n.parentElement,s=Da(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 vte(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class gte{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&&Ah(t.modalRef,!1);const i=vte(r);YD(r,t.mount,t.modalRef,i,!0);const a=CS(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=CS(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[n];i.restore||(i.restore=pte(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=CS(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&&Ah(t.modalRef,r),YD(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&&Ah(o.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function mte(e){return typeof e=="function"?e():e}function yte(e){return e?e.props.hasOwnProperty("in"):!1}const xte=new gte;function Ste(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:i=xte,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=yte(l);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const S=()=>on(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=ya(()=>{const z=mte(t)||S().body;i.add(_(),z),p.current&&b()}),C=O.useCallback(()=>i.isTopModal(_()),[i]),A=ya(z=>{h.current=z,z&&(c&&C()?b():p.current&&Ah(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=>$=>{var N;(N=z.onKeyDown)==null||N.call(z,$),!($.key!=="Escape"||!C())&&(r||($.stopPropagation(),u&&u($,"escapeKeyDown")))},I=z=>$=>{var N;(N=z.onClick)==null||N.call(z,$),$.target===$.currentTarget&&u&&u($,"backdropClick")};return{getRootProps:(z={})=>{const $=v4(e);delete $.onTransitionEnter,delete $.onTransitionExited;const N=F({},$,z);return F({role:"presentation"},N,{onKeyDown:M(N),ref:v})},getBackdropProps:(z={})=>{const $=z;return F({"aria-hidden":!0},$,{onClick:I($),open:c})},getTransitionProps:()=>{const z=()=>{m(!1),o&&o()},$=()=>{m(!0),s&&s(),a&&T()};return{onEnter:yC(z,l==null?void 0:l.props.onEnter),onExited:yC($,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:A,isTopModal:C,exited:g,hasTransition:y}}const bte=["onChange","maxRows","minRows","style","value"];function tg(e){return parseInt(e,10)||0}const _te={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function qD(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const wte=O.forwardRef(function(t,r){const{onChange:n,maxRows:i,minRows:a=1,style:o,value:s}=t,l=ye(t,bte),{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=Da(_).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=tg(w.paddingBottom)+tg(w.paddingTop),M=tg(w.borderBottomWidth)+tg(w.borderTopWidth),I=C.scrollHeight;C.value="x";const P=C.scrollHeight;let k=I;a&&(k=Math.max(Number(a)*P,k)),i&&(k=Math.min(Number(i)*P,k)),k=Math.max(k,P);const R=k+(A==="border-box"?T+M:0),z=Math.abs(k-I)<=1;return{outerHeightStyle:R,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();qD(_)||v(b=>m(b,_))},[g]),x=()=>{const _=g();qD(_)||Mf.flushSync(()=>{v(b=>m(b,_))})};O.useEffect(()=>{const _=()=>{h.current=0,c.current&&x()},b=iv(()=>{h.current=0,c.current&&x()});let w;const C=c.current,A=Da(C);return A.addEventListener("resize",b),typeof ResizeObserver<"u"&&(w=new ResizeObserver(_),w.observe(C)),()=>{b.clear(),A.removeEventListener("resize",b),w&&w.disconnect()}}),ho(()=>{y()}),O.useEffect(()=>{h.current=0},[s]);const S=_=>{h.current=0,u||y(),n&&n(_)};return E.jsxs(O.Fragment,{children:[E.jsx("textarea",F({value:s,onChange:S,ref:f,rows:a,style:F({height:p.outerHeightStyle,overflow:p.overflow?"hidden":void 0},o)},l)),E.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:d,tabIndex:-1,style:F({},_te.shadow,o,{paddingTop:0,paddingBottom:0})})]})});function Df({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 Cte=O.createContext(void 0),n2=Cte;function Rf(){return O.useContext(n2)}function XD(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Dy(e,t=!1){return e&&(XD(e.value)&&e.value!==""||t&&XD(e.defaultValue)&&e.defaultValue!=="")}function Tte(e){return e.startAdornment}function Ate(e){return Ue("MuiInputBase",e)}const Mte=je("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),hf=Mte,Ite=["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"],U1=(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${Me(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},j1=(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]},Pte=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${Me(r)}`,n&&"disabled",i&&"error",l&&"fullWidth",o&&"focused",s&&"formControl",d&&d!=="medium"&&`size${Me(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 Ze(v,Ate,t)},Y1=ge("div",{name:"MuiInputBase",slot:"Root",overridesResolver:U1})(({theme:e,ownerState:t})=>F({},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",[`&.${hf.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&F({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),q1=ge("input",{name:"MuiInputBase",slot:"Input",overridesResolver:j1})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=F({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 F({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] + .${hf.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},[`&.${hf.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"})}),kte=E.jsx(n4,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Dte=O.forwardRef(function(t,r){var n;const i=Ye({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:I,onKeyUp:P,placeholder:k,readOnly:R,renderSuffix:z,rows:$,slotProps:N={},slots:V={},startAdornment:L,type:G="text",value:U}=i,B=ye(i,Ite),j=y.value!=null?y.value:U,{current:X}=O.useRef(j!=null),W=O.useRef(),ee=O.useCallback(_e=>{},[]),te=Mr(W,x,y.ref,ee),[ie,re]=O.useState(!1),Q=Rf(),J=Df({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 fe=Q&&Q.onFilled,de=Q&&Q.onEmpty,ke=O.useCallback(_e=>{Dy(_e)?fe&&fe():de&&de()},[fe,de]);ho(()=>{X&&ke({value:j})},[j,ke,X]);const We=_e=>{if(J.disabled){_e.stopPropagation();return}M&&M(_e),y.onFocus&&y.onFocus(_e),Q&&Q.onFocus?Q.onFocus(_e):re(!0)},Ge=_e=>{C&&C(_e),y.onBlur&&y.onBlur(_e),Q&&Q.onBlur?Q.onBlur(_e):re(!1)},at=(_e,...he)=>{if(!X){const Vt=_e.target||W.current;if(Vt==null)throw new Error(Cs(1));ke({value:Vt.value})}y.onChange&&y.onChange(_e,...he),A&&A(_e,...he)};O.useEffect(()=>{ke(W.current)},[]);const ot=_e=>{W.current&&_e.currentTarget===_e.target&&W.current.focus(),T&&T(_e)};let It=m,Be=y;b&&It==="input"&&($?Be=F({type:void 0,minRows:$,maxRows:$},Be):Be=F({type:void 0,maxRows:S,minRows:_},Be),It=wte);const Pt=_e=>{ke(_e.animationName==="mui-auto-fill-cancel"?W.current:{value:"x"})};O.useEffect(()=>{Q&&Q.setAdornedStart(!!L)},[Q,L]);const Yt=F({},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:L,type:G}),kt=Pte(Yt),K=V.root||u.Root||Y1,le=N.root||c.root||{},Re=V.input||u.Input||q1;return Be=F({},Be,(n=N.input)!=null?n:c.input),E.jsxs(O.Fragment,{children:[!h&&kte,E.jsxs(K,F({},le,!df(K)&&{ownerState:F({},Yt,le.ownerState)},{ref:r,onClick:ot},B,{className:Ce(kt.root,le.className,l,R&&"MuiInputBase-readOnly"),children:[L,E.jsx(n2.Provider,{value:null,children:E.jsx(Re,F({ownerState:Yt,"aria-invalid":J.error,"aria-describedby":a,autoComplete:o,autoFocus:s,defaultValue:f,disabled:J.disabled,id:g,onAnimationStart:Pt,name:w,placeholder:k,readOnly:R,required:J.required,rows:$,value:j,onKeyDown:I,onKeyUp:P,type:G},Be,!df(Re)&&{as:It,ownerState:F({},Yt,Be.ownerState)},{ref:te,className:Ce(kt.input,Be.className,R&&"MuiInputBase-readOnly"),onBlur:Ge,onChange:at,onFocus:We}))}),p,z?z(F({},J,{startAdornment:L})):null]}))]})}),i2=Dte;function Rte(e){return Ue("MuiInput",e)}const Lte=F({},hf,je("MuiInput",["root","underline","input"])),dd=Lte;function Ete(e){return Ue("MuiOutlinedInput",e)}const Ote=F({},hf,je("MuiOutlinedInput",["root","notchedOutline","input"])),ko=Ote;function Nte(e){return Ue("MuiFilledInput",e)}const zte=F({},hf,je("MuiFilledInput",["root","underline","input"])),Ws=zte,Bte=G1(E.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Fte=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],$te={entering:{opacity:1},entered:{opacity:1}},Vte=O.forwardRef(function(t,r){const n=Pf(),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=e2}=t,x=ye(t,Fte),S=O.useRef(null),_=Mr(S,s.ref,r),b=k=>R=>{if(k){const z=S.current;R===void 0?k(z):k(z,R)}},w=b(d),C=b((k,R)=>{l4(k);const z=ff({style:g,timeout:m,easing:l},{mode:"enter"});k.style.webkitTransition=n.transitions.create("opacity",z),k.style.transition=n.transitions.create("opacity",z),c&&c(k,R)}),A=b(f),T=b(v),M=b(k=>{const R=ff({style:g,timeout:m,easing:l},{mode:"exit"});k.style.webkitTransition=n.transitions.create("opacity",R),k.style.transition=n.transitions.create("opacity",R),h&&h(k)}),I=b(p),P=k=>{a&&a(S.current,k)};return E.jsx(y,F({appear:o,in:u,nodeRef:S,onEnter:C,onEntered:A,onEntering:w,onExit:M,onExited:I,onExiting:T,addEndListener:P,timeout:m},x,{children:(k,R)=>O.cloneElement(s,F({style:F({opacity:0,visibility:k==="exited"&&!u?"hidden":void 0},$te[k],g,s.props.style),ref:_},R))}))}),Gte=Vte;function Hte(e){return Ue("MuiBackdrop",e)}je("MuiBackdrop",["root","invisible"]);const Wte=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Ute=e=>{const{classes:t,invisible:r}=e;return Ze({root:["root",r&&"invisible"]},Hte,t)},jte=ge("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>F({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"})),Yte=O.forwardRef(function(t,r){var n,i,a;const o=Ye({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=Gte,transitionDuration:m}=o,y=ye(o,Wte),x=F({},o,{component:u,invisible:d}),S=Ute(x),_=(n=p.root)!=null?n:f.root;return E.jsx(g,F({in:h,timeout:m},y,{children:E.jsx(jte,F({"aria-hidden":!0},_,{as:(i=(a=v.root)!=null?a:c.Root)!=null?i:u,className:Ce(S.root,l,_==null?void 0:_.className),ownerState:F({},x,_==null?void 0:_.ownerState),classes:S,ref:r,children:s}))}))}),qte=Yte,Xte=JM(),Zte=sQ({themeId:pu,defaultTheme:Xte,defaultClassName:"MuiBox-root",generateClassName:GM.generate}),ht=Zte;function Kte(e){return Ue("MuiButton",e)}const Qte=je("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"]),rg=Qte,Jte=O.createContext({}),ere=Jte,tre=O.createContext(void 0),rre=tre,nre=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],ire=e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:a,classes:o}=e,s={root:["root",a,`${a}${Me(t)}`,`size${Me(i)}`,`${a}Size${Me(i)}`,t==="inherit"&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Me(i)}`],endIcon:["endIcon",`iconSize${Me(i)}`]},l=Ze(s,Kte,o);return F({},o,l)},g4=e=>F({},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}}),are=ge(kf,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Me(r.color)}`],t[`size${Me(r.size)}`],t[`${r.variant}Size${Me(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 F({},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":F({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:wr(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})`:wr(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})`:wr(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":F({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${rg.focusVisible}`]:F({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${rg.disabled}`]:F({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 ${wr(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"},[`&.${rg.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${rg.disabled}`]:{boxShadow:"none"}}),ore=ge("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Me(r.size)}`]]}})(({ownerState:e})=>F({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},g4(e))),sre=ge("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Me(r.size)}`]]}})(({ownerState:e})=>F({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},g4(e))),lre=O.forwardRef(function(t,r){const n=O.useContext(ere),i=O.useContext(rre),a=VM(n,t),o=Ye({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,_=ye(o,nre),b=F({},o,{color:l,component:u,disabled:f,disableElevation:d,disableFocusRipple:h,fullWidth:g,size:m,type:x,variant:S}),w=ire(b),C=y&&E.jsx(ore,{className:w.startIcon,ownerState:b,children:y}),A=p&&E.jsx(sre,{className:w.endIcon,ownerState:b,children:p}),T=i||"";return E.jsxs(are,F({ownerState:b,className:Ce(n.className,w.root,c,T),component:u,disabled:f,focusRipple:!h,focusVisibleClassName:Ce(w.focusVisible,v),ref:r,type:x},_,{classes:w,children:[C,s,A]}))}),Cu=lre,ure=OQ({createStyledComponent:ge("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Me(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Ye({props:e,name:"MuiContainer"})}),Lf=ure;function cre(e){return Ue("MuiModal",e)}je("MuiModal",["root","hidden","backdrop"]);const fre=["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"],dre=e=>{const{open:t,exited:r,classes:n}=e;return Ze({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},cre,n)},hre=ge("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})=>F({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),pre=ge(qte,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),vre=O.forwardRef(function(t,r){var n,i,a,o,s,l;const u=Ye({name:"MuiModal",props:t}),{BackdropComponent:c=pre,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:I,slotProps:P,slots:k}=u,R=ye(u,fre),z=F({},u,{closeAfterTransition:h,disableAutoFocus:x,disableEnforceFocus:S,disableEscapeKeyDown:_,disablePortal:b,disableRestoreFocus:w,disableScrollLock:C,hideBackdrop:A,keepMounted:T}),{getRootProps:$,getBackdropProps:N,getTransitionProps:V,portalRef:L,isTopModal:G,exited:U,hasTransition:B}=Ste(F({},z,{rootRef:r})),j=F({},z,{exited:U}),X=dre(j),W={};if(p.props.tabIndex===void 0&&(W.tabIndex="-1"),B){const{onEnter:fe,onExited:de}=V();W.onEnter=fe,W.onExited=de}const ee=(n=(i=k==null?void 0:k.root)!=null?i:m.Root)!=null?n:hre,te=(a=(o=k==null?void 0:k.backdrop)!=null?o:m.Backdrop)!=null?a:c,ie=(s=P==null?void 0:P.root)!=null?s:y.root,re=(l=P==null?void 0:P.backdrop)!=null?l:y.backdrop,Q=Ra({elementType:ee,externalSlotProps:ie,externalForwardedProps:R,getSlotProps:$,additionalProps:{ref:r,as:g},ownerState:j,className:Ce(d,ie==null?void 0:ie.className,X==null?void 0:X.root,!j.open&&j.exited&&(X==null?void 0:X.hidden))}),J=Ra({elementType:te,externalSlotProps:re,additionalProps:f,getSlotProps:fe=>N(F({},fe,{onClick:de=>{M&&M(de),fe!=null&&fe.onClick&&fe.onClick(de)}})),className:Ce(re==null?void 0:re.className,f==null?void 0:f.className,X==null?void 0:X.backdrop),ownerState:j});return!T&&!I&&(!B||U)?null:E.jsx(fte,{ref:L,container:v,disablePortal:b,children:E.jsxs(ee,F({},Q,{children:[!A&&c?E.jsx(te,F({},J)):null,E.jsx(ute,{disableEnforceFocus:S,disableAutoFocus:x,disableRestoreFocus:w,isEnabled:G,open:I,children:O.cloneElement(p,W)})]}))})}),m4=vre;function gre(e){return Ue("MuiDivider",e)}je("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const mre=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],yre=e=>{const{absolute:t,children:r,classes:n,flexItem:i,light:a,orientation:o,textAlign:s,variant:l}=e;return Ze({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"]},gre,n)},xre=ge("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})=>F({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)`:wr(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})=>F({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>F({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>F({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>F({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Sre=ge("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>F({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)`})),y4=O.forwardRef(function(t,r){const n=Ye({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=ye(n,mre),v=F({},n,{absolute:i,component:s,flexItem:l,light:u,orientation:c,role:f,textAlign:d,variant:h}),g=yre(v);return E.jsx(xre,F({as:s,className:Ce(g.root,o),role:f,ref:r,ownerState:v},p,{children:a?E.jsx(Sre,{className:g.wrapper,ownerState:v,children:a}):null}))});y4.muiSkipListHighlight=!0;const hd=y4,bre=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],_re=e=>{const{classes:t,disableUnderline:r}=e,i=Ze({root:["root",!r&&"underline"],input:["input"]},Nte,t);return F({},t,i)},wre=ge(Y1,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...U1(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 F({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}},[`&.${Ws.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${Ws.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"},[`&.${Ws.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ws.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(.${Ws.disabled}, .${Ws.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ws.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&F({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),Cre=ge(q1,{name:"MuiFilledInput",slot:"Input",overridesResolver:j1})(({theme:e,ownerState:t})=>F({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})),x4=O.forwardRef(function(t,r){var n,i,a,o;const s=Ye({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=ye(s,bre),m=F({},s,{fullWidth:c,inputComponent:f,multiline:d,type:v}),y=_re(s),x={root:{ownerState:m},input:{ownerState:m}},S=h??u?mi(h??u,x):x,_=(n=(i=p.root)!=null?i:l.Root)!=null?n:wre,b=(a=(o=p.input)!=null?o:l.Input)!=null?a:Cre;return E.jsx(i2,F({slots:{root:_,input:b},componentsProps:S,fullWidth:c,inputComponent:f,multiline:d,ref:r,type:v},g,{classes:y}))});x4.muiName="Input";const S4=x4;function Tre(e){return Ue("MuiFormControl",e)}je("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Are=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Mre=e=>{const{classes:t,margin:r,fullWidth:n}=e,i={root:["root",r!=="none"&&`margin${Me(r)}`,n&&"fullWidth"]};return Ze(i,Tre,t)},Ire=ge("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>F({},t.root,t[`margin${Me(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>F({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%"})),Pre=O.forwardRef(function(t,r){const n=Ye({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=ye(n,Are),y=F({},n,{color:o,component:s,disabled:l,error:u,fullWidth:f,hiddenLabel:d,margin:h,required:p,size:v,variant:g}),x=Mre(y),[S,_]=O.useState(()=>{let P=!1;return i&&O.Children.forEach(i,k=>{if(!wh(k,["Input","Select"]))return;const R=wh(k,["Select"])?k.props.input:k;R&&Tte(R.props)&&(P=!0)}),P}),[b,w]=O.useState(()=>{let P=!1;return i&&O.Children.forEach(i,k=>{wh(k,["Input","Select"])&&(Dy(k.props,!0)||Dy(k.props.inputProps,!0))&&(P=!0)}),P}),[C,A]=O.useState(!1);l&&C&&A(!1);const T=c!==void 0&&!l?c:C;let M;const I=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 E.jsx(n2.Provider,{value:I,children:E.jsx(Ire,F({as:s,ownerState:y,className:Ce(x.root,a),ref:r},m,{children:i}))})}),b4=Pre;function kre(e){return Ue("MuiFormHelperText",e)}const Dre=je("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),ZD=Dre;var KD;const Rre=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Lre=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${Me(n)}`,r&&"contained",s&&"focused",o&&"filled",l&&"required"]};return Ze(u,kre,t)},Ere=ge("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${Me(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>F({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${ZD.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ZD.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Ore=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:o="p"}=n,s=ye(n,Rre),l=Rf(),u=Df({props:n,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=F({},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=Lre(c);return E.jsx(Ere,F({as:o,ownerState:c,className:Ce(f.root,a),ref:r},s,{children:i===" "?KD||(KD=E.jsx("span",{className:"notranslate",children:"​"})):i}))}),Nre=Ore;function zre(e){return Ue("MuiFormLabel",e)}const Bre=je("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Mh=Bre,Fre=["children","className","color","component","disabled","error","filled","focused","required"],$re=e=>{const{classes:t,color:r,focused:n,disabled:i,error:a,filled:o,required:s}=e,l={root:["root",`color${Me(r)}`,i&&"disabled",a&&"error",o&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return Ze(l,zre,t)},Vre=ge("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>F({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>F({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Mh.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Mh.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Mh.error}`]:{color:(e.vars||e).palette.error.main}})),Gre=ge("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Mh.error}`]:{color:(e.vars||e).palette.error.main}})),Hre=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiFormLabel"}),{children:i,className:a,component:o="label"}=n,s=ye(n,Fre),l=Rf(),u=Df({props:n,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=F({},n,{color:u.color||"primary",component:o,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=$re(c);return E.jsxs(Vre,F({as:o,ownerState:c,className:Ce(f.root,a),ref:r},s,{children:[i,u.required&&E.jsxs(Gre,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),Wre=Hre,Ure=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function AC(e){return`scale(${e}, ${e**2})`}const jre={entering:{opacity:1,transform:AC(1)},entered:{opacity:1,transform:"none"}},TS=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),_4=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=e2}=t,m=ye(t,Ure),y=O.useRef(),x=O.useRef(),S=Pf(),_=O.useRef(null),b=Mr(_,a.ref,r),w=R=>z=>{if(R){const $=_.current;z===void 0?R($):R($,z)}},C=w(c),A=w((R,z)=>{l4(R);const{duration:$,delay:N,easing:V}=ff({style:p,timeout:v,easing:o},{mode:"enter"});let L;v==="auto"?(L=S.transitions.getAutoHeightDuration(R.clientHeight),x.current=L):L=$,R.style.transition=[S.transitions.create("opacity",{duration:L,delay:N}),S.transitions.create("transform",{duration:TS?L:L*.666,delay:N,easing:V})].join(","),l&&l(R,z)}),T=w(u),M=w(h),I=w(R=>{const{duration:z,delay:$,easing:N}=ff({style:p,timeout:v,easing:o},{mode:"exit"});let V;v==="auto"?(V=S.transitions.getAutoHeightDuration(R.clientHeight),x.current=V):V=z,R.style.transition=[S.transitions.create("opacity",{duration:V,delay:$}),S.transitions.create("transform",{duration:TS?V:V*.666,delay:TS?$:$||V*.333,easing:N})].join(","),R.style.opacity=0,R.style.transform=AC(.75),f&&f(R)}),P=w(d),k=R=>{v==="auto"&&(y.current=setTimeout(R,x.current||0)),n&&n(_.current,R)};return O.useEffect(()=>()=>{clearTimeout(y.current)},[]),E.jsx(g,F({appear:i,in:s,nodeRef:_,onEnter:A,onEntered:T,onEntering:C,onExit:I,onExited:P,onExiting:M,addEndListener:k,timeout:v==="auto"?null:v},m,{children:(R,z)=>O.cloneElement(a,F({style:F({opacity:0,transform:AC(.75),visibility:R==="exited"&&!s?"hidden":void 0},jre[R],p,a.props.style),ref:b},z))}))});_4.muiSupportAuto=!0;const Yre=_4,qre=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Xre=e=>{const{classes:t,disableUnderline:r}=e,i=Ze({root:["root",!r&&"underline"],input:["input"]},Rte,t);return F({},t,i)},Zre=ge(Y1,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...U1(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})`),F({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"},[`&.${dd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${dd.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(.${dd.disabled}, .${dd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${dd.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Kre=ge(q1,{name:"MuiInput",slot:"Input",overridesResolver:j1})({}),w4=O.forwardRef(function(t,r){var n,i,a,o;const s=Ye({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=ye(s,qre),y=Xre(s),S={root:{ownerState:{disableUnderline:l}}},_=p??c?mi(p??c,S):S,b=(n=(i=v.root)!=null?i:u.Root)!=null?n:Zre,w=(a=(o=v.input)!=null?o:u.Input)!=null?a:Kre;return E.jsx(i2,F({slots:{root:b,input:w},slotProps:_,fullWidth:f,inputComponent:d,multiline:h,ref:r,type:g},m,{classes:y}))});w4.muiName="Input";const C4=w4;function Qre(e){return Ue("MuiInputLabel",e)}je("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Jre=["disableAnimation","margin","shrink","variant","className"],ene=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${Me(n)}`,o],asterisk:[s&&"asterisk"]},u=Ze(l,Qre,t);return F({},t,u)},tne=ge(Wre,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Mh.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})=>F({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"&&F({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&&F({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"&&F({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)"}))),rne=O.forwardRef(function(t,r){const n=Ye({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:a,className:o}=n,s=ye(n,Jre),l=Rf();let u=a;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=Df({props:n,muiFormControl:l,states:["size","variant","required"]}),f=F({},n,{disableAnimation:i,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required}),d=ene(f);return E.jsx(tne,F({"data-shrink":u,ownerState:f,ref:r,className:Ce(d.root,o)},s,{classes:d}))}),T4=rne;function nne(e){return Ue("MuiLink",e)}const ine=je("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),ane=ine,A4={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},one=e=>A4[e]||e,sne=({theme:e,ownerState:t})=>{const r=one(t.color),n=cf(e,`palette.${r}`,!1)||t.color,i=cf(e,`palette.${r}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:wr(n,.4)},lne=sne,une=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],cne=e=>{const{classes:t,component:r,focusVisible:n,underline:i}=e,a={root:["root",`underline${Me(i)}`,r==="button"&&"button",n&&"focusVisible"]};return Ze(a,nne,t)},fne=ge(Xe,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Me(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>F({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&F({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:lne({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"},[`&.${ane.focusVisible}`]:{outline:"auto"}})),dne=O.forwardRef(function(t,r){const n=Ye({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=ye(n,une),{isFocusVisibleRef:p,onBlur:v,onFocus:g,ref:m}=$M(),[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=F({},n,{color:a,component:o,focusVisible:y,underline:c,variant:f}),C=cne(w);return E.jsx(fne,F({color:a,className:Ce(C.root,i),classes:u,component:o,onBlur:_,onFocus:b,ref:S,ownerState:w,variant:f,sx:[...Object.keys(A4).includes(a)?[]:[{color:a}],...Array.isArray(d)?d:[d]]},h))}),si=dne,hne=O.createContext({}),Ih=hne;function pne(e){return Ue("MuiList",e)}je("MuiList",["root","padding","dense","subheader"]);const vne=["children","className","component","dense","disablePadding","subheader"],gne=e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return Ze({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},pne,t)},mne=ge("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})=>F({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),yne=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiList"}),{children:i,className:a,component:o="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=n,c=ye(n,vne),f=O.useMemo(()=>({dense:s}),[s]),d=F({},n,{component:o,dense:s,disablePadding:l}),h=gne(d);return E.jsx(Ih.Provider,{value:f,children:E.jsxs(mne,F({as:o,className:Ce(h.root,a),ref:r,ownerState:d},c,{children:[u,i]}))})}),M4=yne;function xne(e){return Ue("MuiListItem",e)}const Sne=je("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),pc=Sne,bne=je("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),_ne=bne;function wne(e){return Ue("MuiListItemSecondaryAction",e)}je("MuiListItemSecondaryAction",["root","disableGutters"]);const Cne=["className"],Tne=e=>{const{disableGutters:t,classes:r}=e;return Ze({root:["root",t&&"disableGutters"]},wne,r)},Ane=ge("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})(({ownerState:e})=>F({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),I4=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=n,a=ye(n,Cne),o=O.useContext(Ih),s=F({},n,{disableGutters:o.disableGutters}),l=Tne(s);return E.jsx(Ane,F({className:Ce(l.root,i),ownerState:s,ref:r},a))});I4.muiName="ListItemSecondaryAction";const Mne=I4,Ine=["className"],Pne=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],kne=(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]},Dne=e=>{const{alignItems:t,button:r,classes:n,dense:i,disabled:a,disableGutters:o,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return Ze({root:["root",i&&"dense",!o&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",r&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},xne,n)},Rne=ge("div",{name:"MuiListItem",slot:"Root",overridesResolver:kne})(({theme:e,ownerState:t})=>F({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&F({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${_ne.root}`]:{paddingRight:48}},{[`&.${pc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${pc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:wr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${pc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:wr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${pc.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"}},[`&.${pc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:wr(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})`:wr(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Lne=ge("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Ene=O.forwardRef(function(t,r){const n=Ye({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=ye(n.ContainerProps,Ine),A=ye(n,Pne),T=O.useContext(Ih),M=O.useMemo(()=>({dense:p||T.dense||!1,alignItems:i,disableGutters:g}),[i,T.dense,p,g]),I=O.useRef(null);ho(()=>{a&&I.current&&I.current.focus()},[a]);const P=O.Children.toArray(s),k=P.length&&wh(P[P.length-1],["ListItemSecondaryAction"]),R=F({},n,{alignItems:i,autoFocus:a,button:o,dense:M.dense,disabled:v,disableGutters:g,disablePadding:m,divider:y,hasSecondaryAction:k,selected:_}),z=Dne(R),$=Mr(I,r),N=w.root||c.Root||Rne,V=b.root||f.root||{},L=F({className:Ce(z.root,V.className,l),disabled:v},A);let G=u||"li";return o&&(L.component=u||"div",L.focusVisibleClassName=Ce(pc.focusVisible,x),G=kf),k?(G=!L.component&&!u?"div":G,d==="li"&&(G==="li"?G="div":L.component==="li"&&(L.component="div")),E.jsx(Ih.Provider,{value:M,children:E.jsxs(Lne,F({as:d,className:Ce(z.container,h),ref:$,ownerState:R},C,{children:[E.jsx(N,F({},V,!df(N)&&{as:G,ownerState:F({},R,V.ownerState)},L,{children:P})),P.pop()]}))})):E.jsx(Ih.Provider,{value:M,children:E.jsxs(N,F({},V,{as:G,ref:$},!df(N)&&{ownerState:F({},R,V.ownerState)},L,{children:[P,S&&E.jsx(Mne,{children:S})]}))})}),Wu=Ene,One=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function AS(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function QD(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function P4(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 pd(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")||!P4(s,a)||l)s=i(e,s,r);else return s.focus(),!0}return!1}const Nne=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=ye(t,One),h=O.useRef(null),p=O.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ho(()=>{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=on(S).activeElement;if(_==="ArrowDown")x.preventDefault(),pd(S,b,u,l,AS);else if(_==="ArrowUp")x.preventDefault(),pd(S,b,u,l,QD);else if(_==="Home")x.preventDefault(),pd(S,null,u,l,AS);else if(_==="End")x.preventDefault(),pd(S,null,u,l,QD);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&&P4(b,w);w.previousKeyMatched&&(T||pd(S,b,!1,l,AS,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 E.jsx(M4,F({role:"menu",ref:g,className:s,onKeyDown:v,tabIndex:i?0:-1},d,{children:y}))}),zne=Nne;function Bne(e){return Ue("MuiPopover",e)}je("MuiPopover",["root","paper"]);const Fne=["onEntering"],$ne=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Vne=["slotProps"];function JD(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function eR(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function tR(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function MS(e){return typeof e=="function"?e():e}const Gne=e=>{const{classes:t}=e;return Ze({root:["root"],paper:["paper"]},Bne,t)},Hne=ge(m4,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),k4=ge(H1,{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}),Wne=O.forwardRef(function(t,r){var n,i,a;const o=Ye({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=Yre,transitionDuration:w="auto",TransitionProps:{onEntering:C}={},disableScrollLock:A=!1}=o,T=ye(o.TransitionProps,Fne),M=ye(o,$ne),I=(n=S==null?void 0:S.paper)!=null?n:y,P=O.useRef(),k=Mr(P,I.ref),R=F({},o,{anchorOrigin:u,anchorReference:f,elevation:v,marginThreshold:g,externalPaperSlotProps:I,transformOrigin:_,TransitionComponent:b,transitionDuration:w,TransitionProps:T}),z=Gne(R),$=O.useCallback(()=>{if(f==="anchorPosition")return c;const fe=MS(l),ke=(fe&&fe.nodeType===1?fe:on(P.current).body).getBoundingClientRect();return{top:ke.top+JD(ke,u.vertical),left:ke.left+eR(ke,u.horizontal)}},[l,u.horizontal,u.vertical,c,f]),N=O.useCallback(fe=>({vertical:JD(fe,_.vertical),horizontal:eR(fe,_.horizontal)}),[_.horizontal,_.vertical]),V=O.useCallback(fe=>{const de={width:fe.offsetWidth,height:fe.offsetHeight},ke=N(de);if(f==="none")return{top:null,left:null,transformOrigin:tR(ke)};const We=$();let Ge=We.top-ke.vertical,at=We.left-ke.horizontal;const ot=Ge+de.height,It=at+de.width,Be=Da(MS(l)),Pt=Be.innerHeight-g,Yt=Be.innerWidth-g;if(g!==null&&GePt){const kt=ot-Pt;Ge-=kt,ke.vertical+=kt}if(g!==null&&atYt){const kt=It-Yt;at-=kt,ke.horizontal+=kt}return{top:`${Math.round(Ge)}px`,left:`${Math.round(at)}px`,transformOrigin:tR(ke)}},[l,f,$,N,g]),[L,G]=O.useState(m),U=O.useCallback(()=>{const fe=P.current;if(!fe)return;const de=V(fe);de.top!==null&&(fe.style.top=de.top),de.left!==null&&(fe.style.left=de.left),fe.style.transformOrigin=de.transformOrigin,G(!0)},[V]);O.useEffect(()=>(A&&window.addEventListener("scroll",U),()=>window.removeEventListener("scroll",U)),[l,A,U]);const B=(fe,de)=>{C&&C(fe,de),U()},j=()=>{G(!1)};O.useEffect(()=>{m&&U()}),O.useImperativeHandle(s,()=>m?{updatePosition:()=>{U()}}:null,[m,U]),O.useEffect(()=>{if(!m)return;const fe=iv(()=>{U()}),de=Da(l);return de.addEventListener("resize",fe),()=>{fe.clear(),de.removeEventListener("resize",fe)}},[l,m,U]);let X=w;w==="auto"&&!b.muiSupportAuto&&(X=void 0);const W=p||(l?on(MS(l)).body:void 0),ee=(i=x==null?void 0:x.root)!=null?i:Hne,te=(a=x==null?void 0:x.paper)!=null?a:k4,ie=Ra({elementType:te,externalSlotProps:F({},I,{style:L?I.style:F({},I.style,{opacity:0})}),additionalProps:{elevation:v,ref:k},ownerState:R,className:Ce(z.paper,I==null?void 0:I.className)}),re=Ra({elementType:ee,externalSlotProps:(S==null?void 0:S.root)||{},externalForwardedProps:M,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:W,open:m},ownerState:R,className:Ce(z.root,h)}),{slotProps:Q}=re,J=ye(re,Vne);return E.jsx(ee,F({},J,!df(ee)&&{slotProps:Q,disableScrollLock:A},{children:E.jsx(b,F({appear:!0,in:m,onEntering:B,onExited:j,timeout:X},T,{children:E.jsx(te,F({},ie,{children:d}))}))}))}),Une=Wne;function jne(e){return Ue("MuiMenu",e)}je("MuiMenu",["root","paper","list"]);const Yne=["onEntering"],qne=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Xne={vertical:"top",horizontal:"right"},Zne={vertical:"top",horizontal:"left"},Kne=e=>{const{classes:t}=e;return Ze({root:["root"],paper:["paper"],list:["list"]},jne,t)},Qne=ge(Une,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Jne=ge(k4,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),eie=ge(zne,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),tie=O.forwardRef(function(t,r){var n,i;const a=Ye({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=ye(a.TransitionProps,Yne),_=ye(a,qne),b=Pf(),w=b.direction==="rtl",C=F({},a,{autoFocus:o,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:h,transitionDuration:v,TransitionProps:S,variant:m}),A=Kne(C),T=o&&!u&&d,M=O.useRef(null),I=(V,L)=>{M.current&&M.current.adjustStyleForScrollbar(V,b),g&&g(V,L)},P=V=>{V.key==="Tab"&&(V.preventDefault(),f&&f(V,"tabKeyDown"))};let k=-1;O.Children.map(s,(V,L)=>{O.isValidElement(V)&&(V.props.disabled||(m==="selectedMenu"&&V.props.selected||k===-1)&&(k=L))});const R=(n=y.paper)!=null?n:Jne,z=(i=x.paper)!=null?i:h,$=Ra({elementType:y.root,externalSlotProps:x.root,ownerState:C,className:[A.root,l]}),N=Ra({elementType:R,externalSlotProps:z,ownerState:C,className:A.paper});return E.jsx(Qne,F({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Xne:Zne,slots:{paper:R,root:y.root},slotProps:{root:$,paper:N},open:d,ref:r,transitionDuration:v,TransitionProps:F({onEntering:I},S),ownerState:C},_,{classes:p,children:E.jsx(eie,F({onKeyDown:P,actions:M,autoFocus:o&&(k===-1||u),autoFocusItem:T,variant:m},c,{className:Ce(A.list,c.className),children:s}))}))}),rie=tie;function nie(e){return Ue("MuiNativeSelect",e)}const iie=je("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),a2=iie,aie=["className","disabled","error","IconComponent","inputRef","variant"],oie=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${Me(r)}`,a&&"iconOpen",n&&"disabled"]};return Ze(s,nie,t)},D4=({ownerState:e,theme:t})=>F({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":F({},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"},[`&.${a2.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}}),sie=ge("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:wo,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${a2.multiple}`]:t.multiple}]}})(D4),R4=({ownerState:e,theme:t})=>F({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${a2.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),lie=ge("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Me(r.variant)}`],r.open&&t.iconOpen]}})(R4),uie=O.forwardRef(function(t,r){const{className:n,disabled:i,error:a,IconComponent:o,inputRef:s,variant:l="standard"}=t,u=ye(t,aie),c=F({},t,{disabled:i,variant:l,error:a}),f=oie(c);return E.jsxs(O.Fragment,{children:[E.jsx(sie,F({ownerState:c,className:Ce(f.select,n),disabled:i,ref:s||r},u)),t.multiple?null:E.jsx(lie,{as:o,ownerState:c,className:f.icon})]})}),cie=uie;var rR;const fie=["children","classes","className","label","notched"],die=ge("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%"}),hie=ge("legend")(({ownerState:e,theme:t})=>F({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&&F({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 pie(e){const{className:t,label:r,notched:n}=e,i=ye(e,fie),a=r!=null&&r!=="",o=F({},e,{notched:n,withLabel:a});return E.jsx(die,F({"aria-hidden":!0,className:t,ownerState:o},i,{children:E.jsx(hie,{ownerState:o,children:a?E.jsx("span",{children:r}):rR||(rR=E.jsx("span",{className:"notranslate",children:"​"}))})}))}const vie=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],gie=e=>{const{classes:t}=e,n=Ze({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Ete,t);return F({},t,n)},mie=ge(Y1,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:U1})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return F({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ko.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ko.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${ko.focused} .${ko.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ko.error} .${ko.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ko.disabled} .${ko.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&F({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),yie=ge(pie,{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}}),xie=ge(q1,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:j1})(({theme:e,ownerState:t})=>F({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})),L4=O.forwardRef(function(t,r){var n,i,a,o,s;const l=Ye({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=ye(l,vie),y=gie(l),x=Rf(),S=Df({props:l,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=F({},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:mie,w=(a=(o=v.input)!=null?o:u.Input)!=null?a:xie;return E.jsx(i2,F({slots:{root:b,input:w},renderSuffix:C=>E.jsx(yie,{ownerState:_,className:y.notchedOutline,label:d!=null&&d!==""&&S.required?s||(s=E.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:F({},y,{notchedOutline:null})}))});L4.muiName="Input";const E4=L4;function Sie(e){return Ue("MuiSelect",e)}const bie=je("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),vd=bie;var nR;const _ie=["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"],wie=ge("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${vd.select}`]:t.select},{[`&.${vd.select}`]:t[r.variant]},{[`&.${vd.error}`]:t.error},{[`&.${vd.multiple}`]:t.multiple}]}})(D4,{[`&.${vd.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Cie=ge("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Me(r.variant)}`],r.open&&t.iconOpen]}})(R4),Tie=ge("input",{shouldForwardProp:e=>xJ(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 iR(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Aie(e){return e==null||typeof e=="string"&&!e.trim()}const Mie=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${Me(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Ze(s,Sie,t)},Iie=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:I,SelectDisplayProps:P={},tabIndex:k,value:R,variant:z="standard"}=t,$=ye(t,_ie),[N,V]=My({controlled:R,default:f,name:"Select"}),[L,G]=My({controlled:T,default:c,name:"Select"}),U=O.useRef(null),B=O.useRef(null),[j,X]=O.useState(null),{current:W}=O.useRef(T!=null),[ee,te]=O.useState(),ie=Mr(r,g),re=O.useCallback(Te=>{B.current=Te,Te&&X(Te)},[]),Q=j==null?void 0:j.parentNode;O.useImperativeHandle(ie,()=>({focus:()=>{B.current.focus()},node:U.current,value:N}),[N]),O.useEffect(()=>{c&&L&&j&&!W&&(te(s?null:Q.clientWidth),B.current.focus())},[j,s]),O.useEffect(()=>{o&&B.current.focus()},[o]),O.useEffect(()=>{if(!m)return;const Te=on(B.current).getElementById(m);if(Te){const ut=()=>{getSelection().isCollapsed&&B.current.focus()};return Te.addEventListener("click",ut),()=>{Te.removeEventListener("click",ut)}}},[m]);const J=(Te,ut)=>{Te?A&&A(ut):w&&w(ut),W||(te(s?null:Q.clientWidth),G(Te))},fe=Te=>{Te.button===0&&(Te.preventDefault(),B.current.focus(),J(!0,Te))},de=Te=>{J(!1,Te)},ke=O.Children.toArray(l),We=Te=>{const ut=ke.find(Rt=>Rt.props.value===Te.target.value);ut!==void 0&&(V(ut.props.value),b&&b(Te,ut))},Ge=Te=>ut=>{let Rt;if(ut.currentTarget.hasAttribute("tabindex")){if(x){Rt=Array.isArray(N)?N.slice():[];const pe=N.indexOf(Te.props.value);pe===-1?Rt.push(Te.props.value):Rt.splice(pe,1)}else Rt=Te.props.value;if(Te.props.onClick&&Te.props.onClick(ut),N!==Rt&&(V(Rt),b)){const pe=ut.nativeEvent||ut,De=new pe.constructor(pe.type,pe);Object.defineProperty(De,"target",{writable:!0,value:{value:Rt,name:S}}),b(De,Te)}x||J(!1,ut)}},at=Te=>{M||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Te.key)!==-1&&(Te.preventDefault(),J(!0,Te))},ot=j!==null&&L,It=Te=>{!ot&&_&&(Object.defineProperty(Te,"target",{writable:!0,value:{value:N,name:S}}),_(Te))};delete $["aria-invalid"];let Be,Pt;const Yt=[];let kt=!1;(Dy({value:N})||h)&&(I?Be=I(N):kt=!0);const K=ke.map(Te=>{if(!O.isValidElement(Te))return null;let ut;if(x){if(!Array.isArray(N))throw new Error(Cs(2));ut=N.some(Rt=>iR(Rt,Te.props.value)),ut&&kt&&Yt.push(Te.props.children)}else ut=iR(N,Te.props.value),ut&&kt&&(Pt=Te.props.children);return O.cloneElement(Te,{"aria-selected":ut?"true":"false",onClick:Ge(Te),onKeyUp:Rt=>{Rt.key===" "&&Rt.preventDefault(),Te.props.onKeyUp&&Te.props.onKeyUp(Rt)},role:"option",selected:ut,value:void 0,"data-value":Te.props.value})});kt&&(x?Yt.length===0?Be=null:Be=Yt.reduce((Te,ut,Rt)=>(Te.push(ut),Rt{const{classes:t}=e;return t},o2={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>wo(e)&&e!=="variant",slot:"Root"},Lie=ge(C4,o2)(""),Eie=ge(E4,o2)(""),Oie=ge(S4,o2)(""),O4=O.forwardRef(function(t,r){const n=Ye({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:o={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=Bte,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=ye(n,kie),T=y?cie:Pie,M=Rf(),I=Df({props:n,muiFormControl:M,states:["variant","error"]}),P=I.variant||C,k=F({},n,{variant:P,classes:o}),R=Rie(k),z=ye(R,Die),$=d||{standard:E.jsx(Lie,{ownerState:k}),outlined:E.jsx(Eie,{label:p,ownerState:k}),filled:E.jsx(Oie,{ownerState:k})}[P],N=Mr(r,$.ref);return E.jsx(O.Fragment,{children:O.cloneElement($,F({inputComponent:T,inputProps:F({children:a,error:I.error,IconComponent:c,variant:P,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:F({id:f},w)},h,{classes:h?mi(z,h.classes):z},d?d.props.inputProps:{})},m&&y&&P==="outlined"?{notched:!0}:{},{ref:N,className:Ce($.props.className,s,R.root)},!d&&{variant:P},A))})});O4.muiName="Select";const N4=O4;function Nie(e){return Ue("MuiTab",e)}const zie=je("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Us=zie,Bie=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Fie=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${Me(r)}`,n&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Ze(u,Nie,t)},$ie=ge(kf,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${Me(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>F({},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,[`& > .${Us.iconWrapper}`]:F({},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,[`&.${Us.selected}`]:{opacity:1},[`&.${Us.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Us.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Us.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Us.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Us.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)})),Vie=O.forwardRef(function(t,r){const n=Ye({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=ye(n,Bie),_=F({},n,{disabled:a,disableFocusRipple:o,selected:v,icon:!!l,iconPosition:u,label:!!f,fullWidth:s,textColor:m,wrapped:x}),b=Fie(_),w=l&&f&&O.isValidElement(l)?O.cloneElement(l,{className:Ce(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 E.jsxs($ie,F({focusRipple:!o,className:Ce(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"?E.jsxs(O.Fragment,{children:[w,f]}):E.jsxs(O.Fragment,{children:[f,w]}),c]}))}),Gie=Vie,Hie=O.createContext(),z4=Hie;function Wie(e){return Ue("MuiTable",e)}je("MuiTable",["root","stickyHeader"]);const Uie=["className","component","padding","size","stickyHeader"],jie=e=>{const{classes:t,stickyHeader:r}=e;return Ze({root:["root",r&&"stickyHeader"]},Wie,t)},Yie=ge("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>F({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":F({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),aR="table",qie=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTable"}),{className:i,component:a=aR,padding:o="normal",size:s="medium",stickyHeader:l=!1}=n,u=ye(n,Uie),c=F({},n,{component:a,padding:o,size:s,stickyHeader:l}),f=jie(c),d=O.useMemo(()=>({padding:o,size:s,stickyHeader:l}),[o,s,l]);return E.jsx(z4.Provider,{value:d,children:E.jsx(Yie,F({as:a,role:a===aR?null:"table",ref:r,className:Ce(f.root,i),ownerState:c},u))})}),Xie=qie,Zie=O.createContext(),X1=Zie;function Kie(e){return Ue("MuiTableBody",e)}je("MuiTableBody",["root"]);const Qie=["className","component"],Jie=e=>{const{classes:t}=e;return Ze({root:["root"]},Kie,t)},eae=ge("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),tae={variant:"body"},oR="tbody",rae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableBody"}),{className:i,component:a=oR}=n,o=ye(n,Qie),s=F({},n,{component:a}),l=Jie(s);return E.jsx(X1.Provider,{value:tae,children:E.jsx(eae,F({className:Ce(l.root,i),as:a,ref:r,role:a===oR?null:"rowgroup",ownerState:s},o))})}),nae=rae;function iae(e){return Ue("MuiTableCell",e)}const aae=je("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),oae=aae,sae=["align","className","component","padding","scope","size","sortDirection","variant"],lae=e=>{const{classes:t,variant:r,align:n,padding:i,size:a,stickyHeader:o}=e,s={root:["root",r,o&&"stickyHeader",n!=="inherit"&&`align${Me(n)}`,i!=="normal"&&`padding${Me(i)}`,`size${Me(a)}`]};return Ze(s,iae,t)},uae=ge("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Me(r.size)}`],r.padding!=="normal"&&t[`padding${Me(r.padding)}`],r.align!=="inherit"&&t[`align${Me(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>F({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?JV(wr(e.palette.divider,1),.88):QV(wr(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",[`&.${oae.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})),cae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:o,padding:s,scope:l,size:u,sortDirection:c,variant:f}=n,d=ye(n,sae),h=O.useContext(z4),p=O.useContext(X1),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=F({},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=lae(x);let _=null;return c&&(_=c==="asc"?"ascending":"descending"),E.jsx(uae,F({as:g,ref:r,className:Ce(S.root,a),"aria-sort":_,scope:m,ownerState:x},d))}),sR=cae;function fae(e){return Ue("MuiTableContainer",e)}je("MuiTableContainer",["root"]);const dae=["className","component"],hae=e=>{const{classes:t}=e;return Ze({root:["root"]},fae,t)},pae=ge("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),vae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableContainer"}),{className:i,component:a="div"}=n,o=ye(n,dae),s=F({},n,{component:a}),l=hae(s);return E.jsx(pae,F({ref:r,as:a,className:Ce(l.root,i),ownerState:s},o))}),gae=vae;function mae(e){return Ue("MuiTableHead",e)}je("MuiTableHead",["root"]);const yae=["className","component"],xae=e=>{const{classes:t}=e;return Ze({root:["root"]},mae,t)},Sae=ge("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),bae={variant:"head"},lR="thead",_ae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableHead"}),{className:i,component:a=lR}=n,o=ye(n,yae),s=F({},n,{component:a}),l=xae(s);return E.jsx(X1.Provider,{value:bae,children:E.jsx(Sae,F({as:a,className:Ce(l.root,i),ref:r,role:a===lR?null:"rowgroup",ownerState:s},o))})}),wae=_ae;function Cae(e){return Ue("MuiToolbar",e)}je("MuiToolbar",["root","gutters","regular","dense"]);const Tae=["className","component","disableGutters","variant"],Aae=e=>{const{classes:t,disableGutters:r,variant:n}=e;return Ze({root:["root",!r&&"gutters",n]},Cae,t)},Mae=ge("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})=>F({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),Iae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiToolbar"}),{className:i,component:a="div",disableGutters:o=!1,variant:s="regular"}=n,l=ye(n,Tae),u=F({},n,{component:a,disableGutters:o,variant:s}),c=Aae(u);return E.jsx(Mae,F({as:a,className:Ce(c.root,i),ref:r,ownerState:u},l))}),Pae=Iae,kae=G1(E.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Dae=G1(E.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Rae(e){return Ue("MuiTableRow",e)}const Lae=je("MuiTableRow",["root","selected","hover","head","footer"]),uR=Lae,Eae=["className","component","hover","selected"],Oae=e=>{const{classes:t,selected:r,hover:n,head:i,footer:a}=e;return Ze({root:["root",r&&"selected",n&&"hover",i&&"head",a&&"footer"]},Rae,t)},Nae=ge("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,[`&.${uR.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${uR.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:wr(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}))`:wr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),cR="tr",zae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableRow"}),{className:i,component:a=cR,hover:o=!1,selected:s=!1}=n,l=ye(n,Eae),u=O.useContext(X1),c=F({},n,{component:a,hover:o,selected:s,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),f=Oae(c);return E.jsx(Nae,F({as:a,ref:r,className:Ce(f.root,i),role:a===cR?null:"row",ownerState:c},l))}),fR=zae;function Bae(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Fae(e,t,r,n={},i=()=>{}){const{ease:a=Bae,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 $ae=["onChange"],Vae={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Gae(e){const{onChange:t}=e,r=ye(e,$ae),n=O.useRef(),i=O.useRef(null),a=()=>{n.current=i.current.offsetHeight-i.current.clientHeight};return ho(()=>{const o=iv(()=>{const l=n.current;a(),l!==n.current&&t(n.current)}),s=Da(i.current);return s.addEventListener("resize",o),()=>{o.clear(),s.removeEventListener("resize",o)}},[t]),O.useEffect(()=>{a(),t(n.current)},[t]),E.jsx("div",F({style:Vae,ref:i},r))}function Hae(e){return Ue("MuiTabScrollButton",e)}const Wae=je("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Uae=Wae,jae=["className","slots","slotProps","direction","orientation","disabled"],Yae=e=>{const{classes:t,orientation:r,disabled:n}=e;return Ze({root:["root",r,n&&"disabled"]},Hae,t)},qae=ge(kf,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>F({width:40,flexShrink:0,opacity:.8,[`&.${Uae.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Xae=O.forwardRef(function(t,r){var n,i;const a=Ye({props:t,name:"MuiTabScrollButton"}),{className:o,slots:s={},slotProps:l={},direction:u}=a,c=ye(a,jae),d=Pf().direction==="rtl",h=F({isRtl:d},a),p=Yae(h),v=(n=s.StartScrollButtonIcon)!=null?n:kae,g=(i=s.EndScrollButtonIcon)!=null?i:Dae,m=Ra({elementType:v,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),y=Ra({elementType:g,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return E.jsx(qae,F({component:"div",className:Ce(p.root,o),ref:r,role:null,ownerState:h,tabIndex:null},c,{children:u==="left"?E.jsx(v,F({},m)):E.jsx(g,F({},y))}))}),Zae=Xae;function Kae(e){return Ue("MuiTabs",e)}const Qae=je("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),IS=Qae,Jae=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],dR=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,hR=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,ng=(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}}},eoe=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:i,scrollableY:a,centered:o,scrollButtonsHideMobile:s,classes:l}=e;return Ze({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"]},Kae,l)},toe=ge("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${IS.scrollButtons}`]:t.scrollButtons},{[`& .${IS.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>F({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${IS.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),roe=ge("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})=>F({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"})),noe=ge("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})=>F({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),ioe=ge("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>F({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})),aoe=ge(Gae)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),pR={},ooe=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTabs"}),i=Pf(),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=Zae,scrollButtons:y="auto",selectionFollowsFocus:x,slots:S={},slotProps:_={},TabIndicatorProps:b={},TabScrollButtonProps:w={},textColor:C="primary",value:A,variant:T="standard",visibleScrollbar:M=!1}=n,I=ye(n,Jae),P=T==="scrollable",k=g==="vertical",R=k?"scrollTop":"scrollLeft",z=k?"top":"left",$=k?"bottom":"right",N=k?"clientHeight":"clientWidth",V=k?"height":"width",L=F({},n,{component:d,allowScrollButtonsMobile:h,indicatorColor:p,orientation:g,vertical:k,scrollButtons:y,textColor:C,variant:T,visibleScrollbar:M,fixed:!P,hideScrollbar:P&&!M,scrollableX:P&&!k,scrollableY:P&&k,centered:u&&!P,scrollButtonsHideMobile:!h}),G=eoe(L),U=Ra({elementType:S.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:L}),B=Ra({elementType:S.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:L}),[j,X]=O.useState(!1),[W,ee]=O.useState(pR),[te,ie]=O.useState(!1),[re,Q]=O.useState(!1),[J,fe]=O.useState(!1),[de,ke]=O.useState({overflow:"hidden",scrollbarWidth:0}),We=new Map,Ge=O.useRef(null),at=O.useRef(null),ot=()=>{const pe=Ge.current;let De;if(pe){const yt=pe.getBoundingClientRect();De={clientWidth:pe.clientWidth,scrollLeft:pe.scrollLeft,scrollTop:pe.scrollTop,scrollLeftNormalized:lZ(pe,i.direction),scrollWidth:pe.scrollWidth,top:yt.top,bottom:yt.bottom,left:yt.left,right:yt.right}}let qe;if(pe&&A!==!1){const yt=at.current.children;if(yt.length>0){const $r=yt[We.get(A)];qe=$r?$r.getBoundingClientRect():null}}return{tabsMeta:De,tabMeta:qe}},It=ya(()=>{const{tabsMeta:pe,tabMeta:De}=ot();let qe=0,yt;if(k)yt="top",De&&pe&&(qe=De.top-pe.top+pe.scrollTop);else if(yt=a?"right":"left",De&&pe){const Io=a?pe.scrollLeftNormalized+pe.clientWidth-pe.scrollWidth:pe.scrollLeft;qe=(a?-1:1)*(De[yt]-pe[yt]+Io)}const $r={[yt]:qe,[V]:De?De[V]:0};if(isNaN(W[yt])||isNaN(W[V]))ee($r);else{const Io=Math.abs(W[yt]-$r[yt]),Lv=Math.abs(W[V]-$r[V]);(Io>=1||Lv>=1)&&ee($r)}}),Be=(pe,{animation:De=!0}={})=>{De?Fae(R,Ge.current,pe,{duration:i.transitions.duration.standard}):Ge.current[R]=pe},Pt=pe=>{let De=Ge.current[R];k?De+=pe:(De+=pe*(a?-1:1),De*=a&&MV()==="reverse"?-1:1),Be(De)},Yt=()=>{const pe=Ge.current[N];let De=0;const qe=Array.from(at.current.children);for(let yt=0;ytpe){yt===0&&(De=pe);break}De+=$r[N]}return De},kt=()=>{Pt(-1*Yt())},K=()=>{Pt(Yt())},le=O.useCallback(pe=>{ke({overflow:null,scrollbarWidth:pe})},[]),Re=()=>{const pe={};pe.scrollbarSizeListener=P?E.jsx(aoe,{onChange:le,className:Ce(G.scrollableX,G.hideScrollbar)}):null;const qe=P&&(y==="auto"&&(te||re)||y===!0);return pe.scrollButtonStart=qe?E.jsx(m,F({slots:{StartScrollButtonIcon:S.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:U},orientation:g,direction:a?"right":"left",onClick:kt,disabled:!te},w,{className:Ce(G.scrollButtons,w.className)})):null,pe.scrollButtonEnd=qe?E.jsx(m,F({slots:{EndScrollButtonIcon:S.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:B},orientation:g,direction:a?"left":"right",onClick:K,disabled:!re},w,{className:Ce(G.scrollButtons,w.className)})):null,pe},_e=ya(pe=>{const{tabsMeta:De,tabMeta:qe}=ot();if(!(!qe||!De)){if(qe[z]De[$]){const yt=De[R]+(qe[$]-De[$]);Be(yt,{animation:pe})}}}),he=ya(()=>{P&&y!==!1&&fe(!J)});O.useEffect(()=>{const pe=iv(()=>{Ge.current&&It()}),De=Da(Ge.current);De.addEventListener("resize",pe);let qe;return typeof ResizeObserver<"u"&&(qe=new ResizeObserver(pe),Array.from(at.current.children).forEach(yt=>{qe.observe(yt)})),()=>{pe.clear(),De.removeEventListener("resize",pe),qe&&qe.disconnect()}},[It]),O.useEffect(()=>{const pe=Array.from(at.current.children),De=pe.length;if(typeof IntersectionObserver<"u"&&De>0&&P&&y!==!1){const qe=pe[0],yt=pe[De-1],$r={root:Ge.current,threshold:.99},Io=Yx=>{ie(!Yx[0].isIntersecting)},Lv=new IntersectionObserver(Io,$r);Lv.observe(qe);const g7=Yx=>{Q(!Yx[0].isIntersecting)},qP=new IntersectionObserver(g7,$r);return qP.observe(yt),()=>{Lv.disconnect(),qP.disconnect()}}},[P,y,J,c==null?void 0:c.length]),O.useEffect(()=>{X(!0)},[]),O.useEffect(()=>{It()}),O.useEffect(()=>{_e(pR!==W)},[_e,W]),O.useImperativeHandle(l,()=>({updateIndicator:It,updateScrollButtons:he}),[It,he]);const Vt=E.jsx(ioe,F({},b,{className:Ce(G.indicator,b.className),ownerState:L,style:F({},W,b.style)}));let Sr=0;const Te=O.Children.map(c,pe=>{if(!O.isValidElement(pe))return null;const De=pe.props.value===void 0?Sr:pe.props.value;We.set(De,Sr);const qe=De===A;return Sr+=1,O.cloneElement(pe,F({fullWidth:T==="fullWidth",indicator:qe&&!j&&Vt,selected:qe,selectionFollowsFocus:x,onChange:v,textColor:C,value:De},Sr===1&&A===!1&&!pe.props.tabIndex?{tabIndex:0}:{}))}),ut=pe=>{const De=at.current,qe=on(De).activeElement;if(qe.getAttribute("role")!=="tab")return;let $r=g==="horizontal"?"ArrowLeft":"ArrowUp",Io=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&a&&($r="ArrowRight",Io="ArrowLeft"),pe.key){case $r:pe.preventDefault(),ng(De,qe,hR);break;case Io:pe.preventDefault(),ng(De,qe,dR);break;case"Home":pe.preventDefault(),ng(De,null,dR);break;case"End":pe.preventDefault(),ng(De,null,hR);break}},Rt=Re();return E.jsxs(toe,F({className:Ce(G.root,f),ownerState:L,ref:r,as:d},I,{children:[Rt.scrollButtonStart,Rt.scrollbarSizeListener,E.jsxs(roe,{className:G.scroller,ownerState:L,style:{overflow:de.overflow,[k?`margin${a?"Left":"Right"}`:"marginBottom"]:M?void 0:-de.scrollbarWidth},ref:Ge,children:[E.jsx(noe,{"aria-label":o,"aria-labelledby":s,"aria-orientation":g==="vertical"?"vertical":null,className:G.flexContainer,ownerState:L,onKeyDown:ut,ref:at,role:"tablist",children:Te}),j&&Vt]}),Rt.scrollButtonEnd]}))}),soe=ooe;function loe(e){return Ue("MuiTextField",e)}je("MuiTextField",["root"]);const uoe=["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"],coe={standard:C4,filled:S4,outlined:E4},foe=e=>{const{classes:t}=e;return Ze({root:["root"]},loe,t)},doe=ge(b4,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),hoe=O.forwardRef(function(t,r){const n=Ye({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:I,required:P=!1,rows:k,select:R=!1,SelectProps:z,type:$,value:N,variant:V="outlined"}=n,L=ye(n,uoe),G=F({},n,{autoFocus:a,color:l,disabled:c,error:f,fullWidth:h,multiline:w,required:P,select:R,variant:V}),U=foe(G),B={};V==="outlined"&&(g&&typeof g.shrink<"u"&&(B.notched=g.shrink),B.label=S),R&&((!z||!z.native)&&(B.id=void 0),B["aria-describedby"]=void 0);const j=TV(v),X=p&&j?`${j}-helper-text`:void 0,W=S&&j?`${j}-label`:void 0,ee=coe[V],te=E.jsx(ee,F({"aria-describedby":X,autoComplete:i,autoFocus:a,defaultValue:u,fullWidth:h,multiline:w,name:C,rows:k,maxRows:_,minRows:b,type:$,value:N,id:j,inputRef:x,onBlur:A,onChange:T,onFocus:M,placeholder:I,inputProps:m},B,y));return E.jsxs(doe,F({className:Ce(U.root,s),disabled:c,error:f,fullWidth:h,ref:r,required:P,color:l,variant:V,ownerState:G},L,{children:[S!=null&&S!==""&&E.jsx(T4,F({htmlFor:j,id:W},g,{children:S})),R?E.jsx(N4,F({"aria-describedby":X,id:j,labelId:W,value:N,input:te},z,{children:o})):te,p&&E.jsx(Nre,F({id:X},d,{children:p}))]}))}),Bl=hoe;var s2={},B4={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})(B4);var Z1=B4.exports,PS={};const poe=y7(IJ);var vR;function K1(){return vR||(vR=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=poe}(PS)),PS}var voe=Z1;Object.defineProperty(s2,"__esModule",{value:!0});var F4=s2.default=void 0,goe=voe(K1()),moe=E,yoe=(0,goe.default)((0,moe.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");F4=s2.default=yoe;function l2({open:e,onClose:t,children:r}){return E.jsx(m4,{onClose:t,open:e,children:E.jsxs(ht,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"md",display:"flex",flexDirection:"column",rowGap:2,bgcolor:"background.paper",boxShadow:24,borderRadius:2,p:4},children:[E.jsx(p4,{color:"inherit",onClick:t,sx:{position:"absolute",top:1,right:1},children:E.jsx(F4,{})}),r]})})}const Ef=fV,xoe=wV;function Qd(e){const t=xoe();return O.useCallback(r=>{t(e(r))},[e,t])}const Soe=[{name:"Carl Byström",website:"http://cgbystrom.com/",social:{handle:"@cgbystrom",link:"https://twitter.com/cgbystrom/"}},{name:"Jonatan Heyman",website:"http://heyman.info/",social:{handle:"@jonatanheyman",link:"https://twitter.com/jonatanheyman/"}},{name:"Joakim Hamrén",social:{handle:"@jahaaja",link:"https://twitter.com/Jahaaja/"}},{name:"ESN Social Software",website:"http://esn.me/",social:{handle:"@uprise_ea",link:"https://twitter.com/uprise_ea"}},{name:"Hugo Heyman",social:{handle:"@hugoheyman",link:"https://twitter.com/hugoheyman/"}}];function boe(){const[e,t]=O.useState(!1),r=Ef(({swarm:n})=>n.version);return E.jsxs(E.Fragment,{children:[E.jsx(ht,{sx:{display:"flex",justifyContent:"flex-end"},children:E.jsx(Cu,{color:"inherit",onClick:()=>t(!0),variant:"text",children:"About"})}),E.jsxs(l2,{onClose:()=>t(!1),open:e,children:[E.jsxs("div",{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"About"}),E.jsx(Xe,{component:"p",variant:"subtitle1",children:"The original idea for Locust was Carl Byström's who made a first proof of concept in June 2010. Jonatan Heyman picked up Locust in January 2011, implemented the current concept of Locust classes and made it work distributed across multiple machines."}),E.jsx(Xe,{component:"p",sx:{mt:2},variant:"subtitle1",children:"Jonatan, Carl and Joakim Hamrén has continued the development of Locust at their job, ESN Social Software, who have adopted Locust as an inhouse Open Source project."})]}),E.jsxs("div",{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"Authors and Copyright"}),E.jsx(ht,{sx:{display:"flex",flexDirection:"column",rowGap:.5},children:Soe.map(({name:n,website:i,social:{handle:a,link:o}},s)=>E.jsxs("div",{children:[i?E.jsx(si,{href:i,children:n}):n,E.jsxs(ht,{sx:{display:"inline",ml:.5},children:["(",E.jsx(si,{href:o,children:a}),")"]})]},`author-${s}`))})]}),E.jsxs("div",{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"License"}),E.jsx(Xe,{component:"p",variant:"subtitle1",children:"Open source licensed under the MIT license."})]}),E.jsxs("div",{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"Version"}),E.jsx(si,{href:`https://github.com/locustio/locust/releases/tag/${r}`,children:r})]}),E.jsxs("div",{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"Website"}),E.jsx(si,{href:"https://locust.io/",children:"https://locust.io"})]})]})]})}function _oe(){return E.jsx(ht,{component:"nav",sx:{position:"fixed",bottom:0,width:"100%"},children:E.jsx(Lf,{maxWidth:"xl",sx:{display:"flex",justifyContent:"flex-end"},children:E.jsx(boe,{})})})}var u2={},woe=Z1;Object.defineProperty(u2,"__esModule",{value:!0});var $4=u2.default=void 0,Coe=woe(K1()),Toe=E,Aoe=(0,Coe.default)((0,Toe.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");$4=u2.default=Aoe;var c2={},Moe=Z1;Object.defineProperty(c2,"__esModule",{value:!0});var V4=c2.default=void 0,Ioe=Moe(K1()),Poe=E,koe=(0,Ioe.default)((0,Poe.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");V4=c2.default=koe;const Ma={DARK:"dark",LIGHT:"light"},G4=localStorage.theme===Ma.DARK||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?Ma.DARK:Ma.LIGHT;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:Q1(e)?2:J1(e)?3:0}function gs(e,t){return As(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Pm(e,t){return As(e)===2?e.get(t):e[t]}function H4(e,t,r){var n=As(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function W4(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Q1(e){return zoe&&e instanceof Map}function J1(e){return Boe&&e instanceof Set}function Sl(e){return e.o||e.t}function f2(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=j4(e);delete t[Ft];for(var r=Uc(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=Roe),Object.freeze(e),t&&Ts(e,function(r,n){return d2(n,!0)},!0)),e}function Roe(){Rr(2)}function h2(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ia(e){var t=kC[e];return t||Rr(18,e),t}function U4(e,t){kC[e]||(kC[e]=t)}function MC(){return mp}function kS(e,t){t&&(Ia("Patches"),e.u=[],e.s=[],e.v=t)}function Ry(e){IC(e),e.p.forEach(Loe),e.p=null}function IC(e){e===mp&&(mp=e.l)}function gR(e){return mp={p:[],l:mp,h:e,m:!0,_:0}}function Loe(e){var t=e[Ft];t.i===0||t.i===1?t.j():t.g=!0}function DS(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||Ia("ES5").S(t,e,n),n?(r[Ft].P&&(Ry(t),Rr(4)),Yi(e)&&(e=Ly(t,e),t.l||Ey(t,e)),t.u&&Ia("Patches").M(r[Ft].t,e,t.u,t.s)):e=Ly(t,r,[]),Ry(t),t.u&&t.v(t.u,t.s),e!==v2?e:void 0}function Ly(e,t,r){if(h2(t))return t;var n=t[Ft];if(!n)return Ts(t,function(s,l){return mR(e,n,t,s,l,r)},!0),t;if(n.A!==e)return t;if(!n.P)return Ey(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=f2(n.k):n.o,a=i,o=!1;n.i===3&&(a=new Set(i),i.clear(),o=!0),Ts(a,function(s,l){return mR(e,n,i,s,l,r,o)}),Ey(e,i,!1),r&&e.u&&Ia("Patches").N(n,r,e.u,e.s)}return n.o}function mR(e,t,r,n,i,a,o){if(ji(i)){var s=Ly(e,i,a&&t&&t.i!==3&&!gs(t.R,n)?a.concat(n):void 0);if(H4(r,n,s),!ji(s))return;e.m=!1}else o&&r.add(i);if(Yi(i)&&!h2(i)){if(!e.h.D&&e._<1)return;Ly(e,i),t&&t.A.l||Ey(e,i)}}function Ey(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&d2(t,r)}function RS(e,t){var r=e[Ft];return(r?Sl(r):e)[t]}function yR(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 Zo(e){e.P||(e.P=!0,e.l&&Zo(e.l))}function LS(e){e.o||(e.o=f2(e.t))}function PC(e,t,r){var n=Q1(t)?Ia("MapSet").F(t,r):J1(t)?Ia("MapSet").T(t,r):e.O?function(i,a){var o=Array.isArray(i),s={i:o?1:0,A:a?a.A:MC(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},l=s,u=yp;o&&(l=[s],u=Jd);var c=Proxy.revocable(l,u),f=c.revoke,d=c.proxy;return s.k=d,s.j=f,d}(t,r):Ia("ES5").J(t,r);return(r?r.A:MC()).p.push(n),n}function Eoe(e){return ji(e)||Rr(22,e),function t(r){if(!Yi(r))return r;var n,i=r[Ft],a=As(r);if(i){if(!i.P&&(i.i<4||!Ia("ES5").K(i)))return i.t;i.I=!0,n=xR(r,a),i.I=!1}else n=xR(r,a);return Ts(n,function(o,s){i&&Pm(i.t,o)===s||H4(n,o,t(s))}),a===3?new Set(n):n}(e)}function xR(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return f2(e)}function Ooe(){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[Ft];return yp.get(l,a)},set:function(l){var u=this[Ft];yp.set(u,a,l)}},s}function t(a){for(var o=a.length-1;o>=0;o--){var s=a[o][Ft];if(!s.P)switch(s.i){case 5:n(s)&&Zo(s);break;case 4:r(s)&&Zo(s)}}}function r(a){for(var o=a.t,s=a.k,l=Uc(s),u=l.length-1;u>=0;u--){var c=l[u];if(c!==Ft){var f=o[c];if(f===void 0&&!gs(o,c))return!0;var d=s[c],h=d&&d[Ft];if(h?h.t!==f:!W4(d,f))return!0}}var p=!!o[Ft];return l.length!==Uc(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=Ia("Patches").$;return ji(r)?o(r,n):this.produce(r,function(s){return o(s,n)})},e}(),Hn=new $oe,lv=Hn.produce,Y4=Hn.produceWithPatches.bind(Hn);Hn.setAutoFreeze.bind(Hn);Hn.setUseProxies.bind(Hn);var _R=Hn.applyPatches.bind(Hn);Hn.createDraft.bind(Hn);Hn.finishDraft.bind(Hn);function xp(e){"@babel/helpers - typeof";return xp=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},xp(e)}function Voe(e,t){if(xp(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(xp(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Goe(e){var t=Voe(e,"string");return xp(t)==="symbol"?t:String(t)}function Hoe(e,t,r){return t=Goe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wR(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 CR(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(jr(1));return r(q4)(e,t)}if(typeof e!="function")throw new Error(jr(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(jr(3));return a}function f(v){if(typeof v!="function")throw new Error(jr(4));if(l)throw new Error(jr(5));var g=!0;return u(),s.push(v),function(){if(g){if(l)throw new Error(jr(6));g=!1,u();var y=s.indexOf(v);s.splice(y,1),o=null}}}function d(v){if(!Woe(v))throw new Error(jr(7));if(typeof v.type>"u")throw new Error(jr(8));if(l)throw new Error(jr(9));try{l=!0,a=i(a,v)}finally{l=!1}for(var g=o=s,m=0;m"u")throw new Error(jr(12));if(typeof r(void 0,{type:Oy.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(jr(13))})}function g2(e){for(var t=Object.keys(e),r={},n=0;n"u")throw u&&u.type,new Error(jr(14));f[h]=g,c=c||g!==v}return c=c||a.length!==Object.keys(l).length,c?f:l}}function Ny(){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 zy}function i(s,l){n(s)===zy&&(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 Xoe=function(t,r){return t===r};function Zoe(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 uv(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function m2(){for(var e=[],t=0;t{e.isDarkMode=t}}}),Cse=tG.actions,Tse=tG.reducer;function Ase(){const e=Ef(({theme:{isDarkMode:n}})=>n),t=Qd(Cse.setIsDarkMode);O.useEffect(()=>{t(G4===Ma.DARK)},[]);const r=()=>{localStorage.theme=e?Ma.LIGHT:Ma.DARK,t(!e)};return E.jsx(p4,{color:"inherit",onClick:r,children:e?E.jsx(V4,{}):E.jsx($4,{})})}const li={READY:"ready",RUNNING:"running",STOPPED:"stopped",SPAWNING:"spawning",CLEANUP:"cleanup",STOPPING:"stopping",MISSING:"missing"};function Mse({isDistributed:e,state:t,host:r,totalRps:n,failRatio:i,userCount:a,workerCount:o}){return E.jsxs(ht,{sx:{display:"flex",columnGap:2},children:[E.jsxs(ht,{sx:{display:"flex",flexDirection:"column"},children:[E.jsx(Xe,{variant:"button",children:"Host"}),E.jsx(Xe,{children:r})]}),E.jsx(hd,{flexItem:!0,orientation:"vertical"}),E.jsxs(ht,{sx:{display:"flex",flexDirection:"column"},children:[E.jsx(Xe,{variant:"button",children:"Status"}),E.jsx(Xe,{variant:"button",children:t})]}),t===li.RUNNING&&E.jsxs(E.Fragment,{children:[E.jsx(hd,{flexItem:!0,orientation:"vertical"}),E.jsxs(ht,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[E.jsx(Xe,{variant:"button",children:"Users"}),E.jsx(Xe,{variant:"button",children:a})]})]}),e&&E.jsxs(E.Fragment,{children:[E.jsx(hd,{flexItem:!0,orientation:"vertical"}),E.jsxs(ht,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[E.jsx(Xe,{variant:"button",children:"Workers"}),E.jsx(Xe,{variant:"button",children:o})]})]}),E.jsx(hd,{flexItem:!0,orientation:"vertical"}),E.jsxs(ht,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[E.jsx(Xe,{variant:"button",children:"RPS"}),E.jsx(Xe,{variant:"button",children:n})]}),E.jsx(hd,{flexItem:!0,orientation:"vertical"}),E.jsxs(ht,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[E.jsx(Xe,{variant:"button",children:"Failures"}),E.jsx(Xe,{variant:"button",children:`${i}%`})]})]})}const Ise=({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}),Pse=qn(Ise)(Mse);function rG({children:e,onSubmit:t}){const r=O.useCallback(async n=>{n.preventDefault();const i=new FormData(n.target),a={};for(const[o,s]of i.entries())a.hasOwnProperty(o)?(Array.isArray(a[o])||(a[o]=[a[o]]),a[o].push(s)):a[o]=s;t(a)},[t]);return E.jsx("form",{onSubmit:r,children:e})}var By=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 Fse(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var OR=Ms;function aG(e,t){if(e===t||!(OR(e)&&OR(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},Vse=function(e){return/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"")};function zR(e){if(!Ms(e))return e;for(var t=ir({},e),r=0,n=Object.entries(t);r"u"&&s===NR&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),function(x,S){return Vy(t,null,function(){var _,b,w,C,A,T,M,I,P,k,R,z,$,N,V,L,G,U,B,j,X,W,ee,te,ie,re,Q,J,fe,de,ke,We,Ge,at,ot,It;return By(this,function(Be){switch(Be.label){case 0:return _=S.signal,b=S.getState,w=S.extra,C=S.endpoint,A=S.forced,T=S.type,I=typeof x=="string"?{url:x}:x,P=I.url,k=I.headers,R=k===void 0?new Headers(m.headers):k,z=I.params,$=z===void 0?void 0:z,N=I.responseHandler,V=N===void 0?v??"json":N,L=I.validateStatus,G=L===void 0?g??$se:L,U=I.timeout,B=U===void 0?p:U,j=LR(I,["url","headers","params","responseHandler","validateStatus","timeout"]),X=ir(xa(ir({},m),{signal:_}),j),R=new Headers(zR(R)),W=X,[4,a(R,{getState:b,extra:w,endpoint:C,forced:A,type:T})];case 1:W.headers=Be.sent()||R,ee=function(Pt){return typeof Pt=="object"&&(Ms(Pt)||Array.isArray(Pt)||typeof Pt.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)),$&&(te=~P.indexOf("?")?"&":"?",ie=l?l($):new URLSearchParams(zR($)),P+=te+ie),P=zse(n,P),re=new Request(P,X),Q=re.clone(),M={request:Q},fe=!1,de=B&&setTimeout(function(){fe=!0,S.abort()},B),Be.label=2;case 2:return Be.trys.push([2,4,5,6]),[4,s(re)];case 3:return J=Be.sent(),[3,6];case 4:return ke=Be.sent(),[2,{error:{status:fe?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(ke)},meta:M}];case 5:return de&&clearTimeout(de),[7];case 6:We=J.clone(),M.response=We,at="",Be.label=7;case 7:return Be.trys.push([7,9,,10]),[4,Promise.all([y(J,V).then(function(Pt){return Ge=Pt},function(Pt){return ot=Pt}),We.text().then(function(Pt){return at=Pt},function(){})])];case 8:if(Be.sent(),ot)throw ot;return[3,10];case 9:return It=Be.sent(),[2,{error:{status:"PARSING_ERROR",originalStatus:J.status,data:at,error:String(It)},meta:M}];case 10:return[2,G(J,Ge)?{data:Ge,meta:M}:{error:{status:J.status,data:Ge},meta:M}]}})})};function y(x,S){return Vy(this,null,function(){var _;return By(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 BR=function(){function e(t,r){r===void 0&&(r=void 0),this.value=t,this.meta=r}return e}(),x2=Tn("__rtkq/focused"),oG=Tn("__rtkq/unfocused"),S2=Tn("__rtkq/online"),sG=Tn("__rtkq/offline"),La;(function(e){e.query="query",e.mutation="mutation"})(La||(La={}));function lG(e){return e.type===La.query}function Hse(e){return e.type===La.mutation}function uG(e,t,r,n,i,a){return Wse(e)?e(t,r,n,i).map(EC).map(a):Array.isArray(e)?e.map(EC).map(a):[]}function Wse(e){return typeof e=="function"}function EC(e){return typeof e=="string"?{type:e}:e}function BS(e){return e!=null}var bp=Symbol("forceQueryFn"),OC=function(e){return typeof e[bp]=="function"};function Use(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. +`),ii.rippleVisible,fee,AC,({theme:e})=>e.transitions.easing.easeInOut,ii.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ii.child,ii.childLeaving,dee,AC,({theme:e})=>e.transitions.easing.easeInOut,ii.childPulsate,hee,({theme:e})=>e.transitions.easing.easeInOut),gee=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:o}=n,s=ye(n,uee),[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,E.jsx(vee,{classes:{ripple:Ce(a.ripple,ii.ripple),rippleVisible:Ce(a.rippleVisible,ii.rippleVisible),ripplePulsate:Ce(a.ripplePulsate,ii.ripplePulsate),child:Ce(a.child,ii.child),childLeaving:Ce(a.childLeaving,ii.childLeaving),childPulsate:Ce(a.childPulsate,ii.childPulsate)},timeout:AC,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 I,P,k;if(C||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)I=Math.round(M.width/2),P=Math.round(M.height/2);else{const{clientX:R,clientY:z}=S.touches&&S.touches.length>0?S.touches[0]:S;I=Math.round(R-M.left),P=Math.round(z-M.top)}if(C)k=Math.sqrt((2*M.width**2+M.height**2)/3),k%2===0&&(k+=1);else{const R=Math.max(Math.abs((T?T.clientWidth:0)-I),I)*2+2,z=Math.max(Math.abs((T?T.clientHeight:0)-P),P)*2+2;k=Math.sqrt(R**2+z**2)}S!=null&&S.touches?p.current===null&&(p.current=()=>{g({pulsate:w,rippleX:I,rippleY:P,rippleSize:k,cb:b})},h.current=setTimeout(()=>{p.current&&(p.current(),p.current=null)},cee)):g({pulsate:w,rippleX:I,rippleY:P,rippleSize:k,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]),E.jsx(pee,F({className:Ce(ii.root,a.root,o),ref:v},s,{children:E.jsx(NJ,{component:null,exit:!0,children:l})}))}),mee=gee;function yee(e){return Ue("MuiButtonBase",e)}const xee=je("MuiButtonBase",["root","disabled","focusVisible"]),See=xee,bee=["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"],_ee=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,o=Ze({root:["root",t&&"disabled",r&&"focusVisible"]},yee,i);return r&&n&&(o.root+=` ${n}`),o},wee=ge("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${See.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Cee=O.forwardRef(function(t,r){const n=Ye({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:I=0,TouchRippleProps:P,touchRippleRef:k,type:R}=n,z=ye(n,bee),$=O.useRef(null),N=O.useRef(null),V=Mr(N,k),{isFocusVisibleRef:L,onFocus:G,onBlur:U,ref:B}=VM(),[j,X]=O.useState(!1);u&&j&&X(!1),O.useImperativeHandle(i,()=>({focusVisible:()=>{X(!0),$.current.focus()}}),[]);const[W,ee]=O.useState(!1);O.useEffect(()=>{ee(!0)},[]);const te=W&&!c&&!u;O.useEffect(()=>{j&&d&&!c&&W&&N.current.pulsate()},[c,d,j,W]);function ie(he,Vt,Sr=f){return ya(Te=>(Vt&&Vt(Te),!Sr&&N.current&&N.current[he](Te),!0))}const re=ie("start",b),Q=ie("stop",g),J=ie("stop",m),fe=ie("stop",C),de=ie("stop",he=>{j&&he.preventDefault(),w&&w(he)}),ke=ie("start",M),We=ie("stop",A),Ge=ie("stop",T),at=ie("stop",he=>{U(he),L.current===!1&&X(!1),p&&p(he)},!1),ot=ya(he=>{$.current||($.current=he.currentTarget),G(he),L.current===!0&&(X(!0),x&&x(he)),y&&y(he)}),It=()=>{const he=$.current;return l&&l!=="button"&&!(he.tagName==="A"&&he.href)},Be=O.useRef(!1),Pt=ya(he=>{d&&!Be.current&&j&&N.current&&he.key===" "&&(Be.current=!0,N.current.stop(he,()=>{N.current.start(he)})),he.target===he.currentTarget&&It()&&he.key===" "&&he.preventDefault(),S&&S(he),he.target===he.currentTarget&&It()&&he.key==="Enter"&&!u&&(he.preventDefault(),v&&v(he))}),Yt=ya(he=>{d&&he.key===" "&&N.current&&j&&!he.defaultPrevented&&(Be.current=!1,N.current.stop(he,()=>{N.current.pulsate(he)})),_&&_(he),v&&he.target===he.currentTarget&&It()&&he.key===" "&&!he.defaultPrevented&&v(he)});let kt=l;kt==="button"&&(z.href||z.to)&&(kt=h);const K={};kt==="button"?(K.type=R===void 0?"button":R,K.disabled=u):(!z.href&&!z.to&&(K.role="button"),u&&(K["aria-disabled"]=u));const le=Mr(r,B,$),Re=F({},n,{centerRipple:a,component:l,disabled:u,disableRipple:c,disableTouchRipple:f,focusRipple:d,tabIndex:I,focusVisible:j}),_e=_ee(Re);return E.jsxs(wee,F({as:kt,className:Ce(_e.root,s),ownerState:Re,onBlur:at,onClick:v,onContextMenu:Q,onFocus:ot,onKeyDown:Pt,onKeyUp:Yt,onMouseDown:re,onMouseLeave:de,onMouseUp:fe,onDragLeave:J,onTouchEnd:We,onTouchMove:Ge,onTouchStart:ke,ref:le,tabIndex:u?-1:I,type:R},K,z,{children:[o,te?E.jsx(mee,F({ref:V,center:a},P)):null]}))}),kf=Cee;function Tee(e){return Ue("MuiAccordionSummary",e)}const Aee=je("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),Rc=Aee,Mee=["children","className","expandIcon","focusVisibleClassName","onClick"],Iee=e=>{const{classes:t,expanded:r,disabled:n,disableGutters:i}=e;return Ze({root:["root",r&&"expanded",n&&"disabled",!i&&"gutters"],focusVisible:["focusVisible"],content:["content",r&&"expanded",!i&&"contentGutters"],expandIconWrapper:["expandIconWrapper",r&&"expanded"]},Tee,t)},Pee=ge(kf,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const r={duration:e.transitions.duration.shortest};return F({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],r),[`&.${Rc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Rc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${Rc.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${Rc.expanded}`]:{minHeight:64}})}),kee=ge("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>F({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${Rc.expanded}`]:{margin:"20px 0"}})),Dee=ge("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}),[`&.${Rc.expanded}`]:{transform:"rotate(180deg)"}})),Ree=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiAccordionSummary"}),{children:i,className:a,expandIcon:o,focusVisibleClassName:s,onClick:l}=n,u=ye(n,Mee),{disabled:c=!1,disableGutters:f,expanded:d,toggle:h}=O.useContext(c4),p=m=>{h&&h(m),l&&l(m)},v=F({},n,{expanded:d,disabled:c,disableGutters:f}),g=Iee(v);return E.jsxs(Pee,F({focusRipple:!1,disableRipple:!0,disabled:c,component:"div","aria-expanded":d,className:Ce(g.root,a),focusVisibleClassName:Ce(g.focusVisible,s),onClick:p,ref:r,ownerState:v},u,{children:[E.jsx(kee,{className:g.content,ownerState:v,children:i}),o&&E.jsx(Dee,{className:g.expandIconWrapper,ownerState:v,children:o})]}))}),h4=Ree;function Lee(e){return Ue("MuiIconButton",e)}const Eee=je("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Oee=Eee,Nee=["edge","children","className","color","disabled","disableFocusRipple","size"],zee=e=>{const{classes:t,disabled:r,color:n,edge:i,size:a}=e,o={root:["root",r&&"disabled",n!=="default"&&`color${Me(n)}`,i&&`edge${Me(i)}`,`size${Me(a)}`]};return Ze(o,Lee,t)},Bee=ge(kf,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${Me(r.color)}`],r.edge&&t[`edge${Me(r.edge)}`],t[`size${Me(r.size)}`]]}})(({theme:e,ownerState:t})=>F({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})`:wr(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 F({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&F({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":F({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:wr(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)},{[`&.${Oee.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Fee=O.forwardRef(function(t,r){const n=Ye({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=ye(n,Nee),d=F({},n,{edge:i,color:s,disabled:l,disableFocusRipple:u,size:c}),h=zee(d);return E.jsx(Bee,F({className:Ce(h.root,o),centerRipple:!0,focusRipple:!u,disabled:l,ref:r,ownerState:d},f,{children:a}))}),p4=Fee;function $ee(e){return Ue("MuiTypography",e)}je("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Vee=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Gee=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:a,classes:o}=e,s={root:["root",a,e.align!=="inherit"&&`align${Me(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return Ze(s,$ee,o)},Hee=ge("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${Me(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>F({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})),WD={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Wee={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Uee=e=>Wee[e]||e,jee=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTypography"}),i=Uee(n.color),a=YV(F({},n,{color:i})),{align:o="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:f=!1,variant:d="body1",variantMapping:h=WD}=a,p=ye(a,Vee),v=F({},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]||WD[d])||"span",m=Gee(v);return E.jsx(Hee,F({as:g,ref:r,ownerState:v,className:Ce(m.root,s)},p))}),Xe=jee;function Yee(e){return Ue("MuiAppBar",e)}je("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const qee=["className","color","enableColorOnDark","position"],Xee=e=>{const{color:t,position:r,classes:n}=e,i={root:["root",`color${Me(t)}`,`position${Me(r)}`]};return Ze(i,Yee,n)},eg=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Zee=ge(H1,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Me(r.position)}`],t[`color${Me(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return F({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&&F({},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"&&F({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&F({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:eg(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:eg(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:eg(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:eg(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"}))}),Kee=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiAppBar"}),{className:i,color:a="primary",enableColorOnDark:o=!1,position:s="fixed"}=n,l=ye(n,qee),u=F({},n,{color:a,position:s,enableColorOnDark:o}),c=Xee(u);return E.jsx(Zee,F({square:!0,component:"header",ownerState:u,elevation:4,className:Ce(c.root,i,s==="fixed"&&"mui-fixed"),ref:r},l))}),Qee=Kee;function df(e){return typeof e=="string"}function Jee(e,t,r){return e===void 0||df(e)?t:F({},t,{ownerState:F({},t.ownerState,r)})}function v4(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 ete(e,t,r){return typeof e=="function"?e(t,r):e}function UD(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 tte(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:a}=e;if(!t){const h=Ce(i==null?void 0:i.className,n==null?void 0:n.className,a,r==null?void 0:r.className),p=F({},r==null?void 0:r.style,i==null?void 0:i.style,n==null?void 0:n.style),v=F({},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=v4(F({},i,n)),s=UD(n),l=UD(i),u=t(o),c=Ce(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=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=F({},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 rte=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ra(e){var t;const{elementType:r,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:a=!1}=e,o=ye(e,rte),s=a?{}:ete(n,i),{props:l,internalRef:u}=tte(F({},o,{externalSlotProps:s})),c=Mr(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Jee(r,F({},l,{ref:c}),i)}const nte=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ite(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 ate(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 ote(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||ate(e))}function ste(e){const t=[],r=[];return Array.from(e.querySelectorAll(nte)).forEach((n,i)=>{const a=ite(n);a===-1||!ote(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 lte(){return!0}function ute(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:a=ste,isEnabled:o=lte,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=on(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=on(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"),I=C[0],P=C[C.length-1];typeof I!="string"&&typeof P!="string"&&(M?P.focus():I.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 E.jsxs(O.Fragment,{children:[E.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelStart"}),O.cloneElement(t,{ref:v,onFocus:m}),E.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelEnd"})]})}function cte(e){return typeof e=="function"?e():e}const fte=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(ho(()=>{a||s(cte(i)||document.body)},[i,a]),ho(()=>{if(o&&!a)return Ay(r,o),()=>{Ay(r,null)}},[r,o,a]),a){if(O.isValidElement(n)){const u={ref:l};return O.cloneElement(n,u)}return E.jsx(O.Fragment,{children:n})}return E.jsx(O.Fragment,{children:o&&Mf.createPortal(n,o)})});function dte(e){const t=on(e);return t.body===e?Da(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ah(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function jD(e){return parseInt(Da(e).getComputedStyle(e).paddingRight,10)||0}function hte(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 YD(e,t,r,n,i){const a=[t,r,...n];[].forEach.call(e.children,o=>{const s=a.indexOf(o)===-1,l=!hte(o);s&&l&&Ah(o,i)})}function TS(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function pte(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(dte(n)){const o=AV(on(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${jD(n)+o}px`;const s=on(n).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${jD(l)+o}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=on(n).body;else{const o=n.parentElement,s=Da(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 vte(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class gte{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&&Ah(t.modalRef,!1);const i=vte(r);YD(r,t.mount,t.modalRef,i,!0);const a=TS(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=TS(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[n];i.restore||(i.restore=pte(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=TS(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&&Ah(t.modalRef,r),YD(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&&Ah(o.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function mte(e){return typeof e=="function"?e():e}function yte(e){return e?e.props.hasOwnProperty("in"):!1}const xte=new gte;function Ste(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:i=xte,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=yte(l);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const S=()=>on(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=ya(()=>{const z=mte(t)||S().body;i.add(_(),z),p.current&&b()}),C=O.useCallback(()=>i.isTopModal(_()),[i]),A=ya(z=>{h.current=z,z&&(c&&C()?b():p.current&&Ah(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=>$=>{var N;(N=z.onKeyDown)==null||N.call(z,$),!($.key!=="Escape"||!C())&&(r||($.stopPropagation(),u&&u($,"escapeKeyDown")))},I=z=>$=>{var N;(N=z.onClick)==null||N.call(z,$),$.target===$.currentTarget&&u&&u($,"backdropClick")};return{getRootProps:(z={})=>{const $=v4(e);delete $.onTransitionEnter,delete $.onTransitionExited;const N=F({},$,z);return F({role:"presentation"},N,{onKeyDown:M(N),ref:v})},getBackdropProps:(z={})=>{const $=z;return F({"aria-hidden":!0},$,{onClick:I($),open:c})},getTransitionProps:()=>{const z=()=>{m(!1),o&&o()},$=()=>{m(!0),s&&s(),a&&T()};return{onEnter:xC(z,l==null?void 0:l.props.onEnter),onExited:xC($,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:A,isTopModal:C,exited:g,hasTransition:y}}const bte=["onChange","maxRows","minRows","style","value"];function tg(e){return parseInt(e,10)||0}const _te={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function qD(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const wte=O.forwardRef(function(t,r){const{onChange:n,maxRows:i,minRows:a=1,style:o,value:s}=t,l=ye(t,bte),{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=Da(_).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=tg(w.paddingBottom)+tg(w.paddingTop),M=tg(w.borderBottomWidth)+tg(w.borderTopWidth),I=C.scrollHeight;C.value="x";const P=C.scrollHeight;let k=I;a&&(k=Math.max(Number(a)*P,k)),i&&(k=Math.min(Number(i)*P,k)),k=Math.max(k,P);const R=k+(A==="border-box"?T+M:0),z=Math.abs(k-I)<=1;return{outerHeightStyle:R,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();qD(_)||v(b=>m(b,_))},[g]),x=()=>{const _=g();qD(_)||Mf.flushSync(()=>{v(b=>m(b,_))})};O.useEffect(()=>{const _=()=>{h.current=0,c.current&&x()},b=iv(()=>{h.current=0,c.current&&x()});let w;const C=c.current,A=Da(C);return A.addEventListener("resize",b),typeof ResizeObserver<"u"&&(w=new ResizeObserver(_),w.observe(C)),()=>{b.clear(),A.removeEventListener("resize",b),w&&w.disconnect()}}),ho(()=>{y()}),O.useEffect(()=>{h.current=0},[s]);const S=_=>{h.current=0,u||y(),n&&n(_)};return E.jsxs(O.Fragment,{children:[E.jsx("textarea",F({value:s,onChange:S,ref:f,rows:a,style:F({height:p.outerHeightStyle,overflow:p.overflow?"hidden":void 0},o)},l)),E.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:d,tabIndex:-1,style:F({},_te.shadow,o,{paddingTop:0,paddingBottom:0})})]})});function Df({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 Cte=O.createContext(void 0),i2=Cte;function Rf(){return O.useContext(i2)}function XD(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Dy(e,t=!1){return e&&(XD(e.value)&&e.value!==""||t&&XD(e.defaultValue)&&e.defaultValue!=="")}function Tte(e){return e.startAdornment}function Ate(e){return Ue("MuiInputBase",e)}const Mte=je("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),hf=Mte,Ite=["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"],U1=(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${Me(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},j1=(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]},Pte=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${Me(r)}`,n&&"disabled",i&&"error",l&&"fullWidth",o&&"focused",s&&"formControl",d&&d!=="medium"&&`size${Me(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 Ze(v,Ate,t)},Y1=ge("div",{name:"MuiInputBase",slot:"Root",overridesResolver:U1})(({theme:e,ownerState:t})=>F({},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",[`&.${hf.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&F({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),q1=ge("input",{name:"MuiInputBase",slot:"Input",overridesResolver:j1})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=F({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 F({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] + .${hf.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},[`&.${hf.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"})}),kte=E.jsx(n4,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Dte=O.forwardRef(function(t,r){var n;const i=Ye({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:I,onKeyUp:P,placeholder:k,readOnly:R,renderSuffix:z,rows:$,slotProps:N={},slots:V={},startAdornment:L,type:G="text",value:U}=i,B=ye(i,Ite),j=y.value!=null?y.value:U,{current:X}=O.useRef(j!=null),W=O.useRef(),ee=O.useCallback(_e=>{},[]),te=Mr(W,x,y.ref,ee),[ie,re]=O.useState(!1),Q=Rf(),J=Df({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 fe=Q&&Q.onFilled,de=Q&&Q.onEmpty,ke=O.useCallback(_e=>{Dy(_e)?fe&&fe():de&&de()},[fe,de]);ho(()=>{X&&ke({value:j})},[j,ke,X]);const We=_e=>{if(J.disabled){_e.stopPropagation();return}M&&M(_e),y.onFocus&&y.onFocus(_e),Q&&Q.onFocus?Q.onFocus(_e):re(!0)},Ge=_e=>{C&&C(_e),y.onBlur&&y.onBlur(_e),Q&&Q.onBlur?Q.onBlur(_e):re(!1)},at=(_e,...he)=>{if(!X){const Vt=_e.target||W.current;if(Vt==null)throw new Error(Cs(1));ke({value:Vt.value})}y.onChange&&y.onChange(_e,...he),A&&A(_e,...he)};O.useEffect(()=>{ke(W.current)},[]);const ot=_e=>{W.current&&_e.currentTarget===_e.target&&W.current.focus(),T&&T(_e)};let It=m,Be=y;b&&It==="input"&&($?Be=F({type:void 0,minRows:$,maxRows:$},Be):Be=F({type:void 0,maxRows:S,minRows:_},Be),It=wte);const Pt=_e=>{ke(_e.animationName==="mui-auto-fill-cancel"?W.current:{value:"x"})};O.useEffect(()=>{Q&&Q.setAdornedStart(!!L)},[Q,L]);const Yt=F({},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:L,type:G}),kt=Pte(Yt),K=V.root||u.Root||Y1,le=N.root||c.root||{},Re=V.input||u.Input||q1;return Be=F({},Be,(n=N.input)!=null?n:c.input),E.jsxs(O.Fragment,{children:[!h&&kte,E.jsxs(K,F({},le,!df(K)&&{ownerState:F({},Yt,le.ownerState)},{ref:r,onClick:ot},B,{className:Ce(kt.root,le.className,l,R&&"MuiInputBase-readOnly"),children:[L,E.jsx(i2.Provider,{value:null,children:E.jsx(Re,F({ownerState:Yt,"aria-invalid":J.error,"aria-describedby":a,autoComplete:o,autoFocus:s,defaultValue:f,disabled:J.disabled,id:g,onAnimationStart:Pt,name:w,placeholder:k,readOnly:R,required:J.required,rows:$,value:j,onKeyDown:I,onKeyUp:P,type:G},Be,!df(Re)&&{as:It,ownerState:F({},Yt,Be.ownerState)},{ref:te,className:Ce(kt.input,Be.className,R&&"MuiInputBase-readOnly"),onBlur:Ge,onChange:at,onFocus:We}))}),p,z?z(F({},J,{startAdornment:L})):null]}))]})}),a2=Dte;function Rte(e){return Ue("MuiInput",e)}const Lte=F({},hf,je("MuiInput",["root","underline","input"])),dd=Lte;function Ete(e){return Ue("MuiOutlinedInput",e)}const Ote=F({},hf,je("MuiOutlinedInput",["root","notchedOutline","input"])),ko=Ote;function Nte(e){return Ue("MuiFilledInput",e)}const zte=F({},hf,je("MuiFilledInput",["root","underline","input"])),Ws=zte,Bte=G1(E.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Fte=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],$te={entering:{opacity:1},entered:{opacity:1}},Vte=O.forwardRef(function(t,r){const n=Pf(),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=t2}=t,x=ye(t,Fte),S=O.useRef(null),_=Mr(S,s.ref,r),b=k=>R=>{if(k){const z=S.current;R===void 0?k(z):k(z,R)}},w=b(d),C=b((k,R)=>{l4(k);const z=ff({style:g,timeout:m,easing:l},{mode:"enter"});k.style.webkitTransition=n.transitions.create("opacity",z),k.style.transition=n.transitions.create("opacity",z),c&&c(k,R)}),A=b(f),T=b(v),M=b(k=>{const R=ff({style:g,timeout:m,easing:l},{mode:"exit"});k.style.webkitTransition=n.transitions.create("opacity",R),k.style.transition=n.transitions.create("opacity",R),h&&h(k)}),I=b(p),P=k=>{a&&a(S.current,k)};return E.jsx(y,F({appear:o,in:u,nodeRef:S,onEnter:C,onEntered:A,onEntering:w,onExit:M,onExited:I,onExiting:T,addEndListener:P,timeout:m},x,{children:(k,R)=>O.cloneElement(s,F({style:F({opacity:0,visibility:k==="exited"&&!u?"hidden":void 0},$te[k],g,s.props.style),ref:_},R))}))}),Gte=Vte;function Hte(e){return Ue("MuiBackdrop",e)}je("MuiBackdrop",["root","invisible"]);const Wte=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Ute=e=>{const{classes:t,invisible:r}=e;return Ze({root:["root",r&&"invisible"]},Hte,t)},jte=ge("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>F({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"})),Yte=O.forwardRef(function(t,r){var n,i,a;const o=Ye({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=Gte,transitionDuration:m}=o,y=ye(o,Wte),x=F({},o,{component:u,invisible:d}),S=Ute(x),_=(n=p.root)!=null?n:f.root;return E.jsx(g,F({in:h,timeout:m},y,{children:E.jsx(jte,F({"aria-hidden":!0},_,{as:(i=(a=v.root)!=null?a:c.Root)!=null?i:u,className:Ce(S.root,l,_==null?void 0:_.className),ownerState:F({},x,_==null?void 0:_.ownerState),classes:S,ref:r,children:s}))}))}),qte=Yte,Xte=e2(),Zte=sQ({themeId:pu,defaultTheme:Xte,defaultClassName:"MuiBox-root",generateClassName:HM.generate}),ht=Zte;function Kte(e){return Ue("MuiButton",e)}const Qte=je("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"]),rg=Qte,Jte=O.createContext({}),ere=Jte,tre=O.createContext(void 0),rre=tre,nre=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],ire=e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:a,classes:o}=e,s={root:["root",a,`${a}${Me(t)}`,`size${Me(i)}`,`${a}Size${Me(i)}`,t==="inherit"&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Me(i)}`],endIcon:["endIcon",`iconSize${Me(i)}`]},l=Ze(s,Kte,o);return F({},o,l)},g4=e=>F({},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}}),are=ge(kf,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Me(r.color)}`],t[`size${Me(r.size)}`],t[`${r.variant}Size${Me(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 F({},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":F({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:wr(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})`:wr(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})`:wr(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":F({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${rg.focusVisible}`]:F({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${rg.disabled}`]:F({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 ${wr(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"},[`&.${rg.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${rg.disabled}`]:{boxShadow:"none"}}),ore=ge("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Me(r.size)}`]]}})(({ownerState:e})=>F({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},g4(e))),sre=ge("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Me(r.size)}`]]}})(({ownerState:e})=>F({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},g4(e))),lre=O.forwardRef(function(t,r){const n=O.useContext(ere),i=O.useContext(rre),a=GM(n,t),o=Ye({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,_=ye(o,nre),b=F({},o,{color:l,component:u,disabled:f,disableElevation:d,disableFocusRipple:h,fullWidth:g,size:m,type:x,variant:S}),w=ire(b),C=y&&E.jsx(ore,{className:w.startIcon,ownerState:b,children:y}),A=p&&E.jsx(sre,{className:w.endIcon,ownerState:b,children:p}),T=i||"";return E.jsxs(are,F({ownerState:b,className:Ce(n.className,w.root,c,T),component:u,disabled:f,focusRipple:!h,focusVisibleClassName:Ce(w.focusVisible,v),ref:r,type:x},_,{classes:w,children:[C,s,A]}))}),Cu=lre,ure=OQ({createStyledComponent:ge("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Me(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Ye({props:e,name:"MuiContainer"})}),Lf=ure;function cre(e){return Ue("MuiModal",e)}je("MuiModal",["root","hidden","backdrop"]);const fre=["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"],dre=e=>{const{open:t,exited:r,classes:n}=e;return Ze({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},cre,n)},hre=ge("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})=>F({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),pre=ge(qte,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),vre=O.forwardRef(function(t,r){var n,i,a,o,s,l;const u=Ye({name:"MuiModal",props:t}),{BackdropComponent:c=pre,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:I,slotProps:P,slots:k}=u,R=ye(u,fre),z=F({},u,{closeAfterTransition:h,disableAutoFocus:x,disableEnforceFocus:S,disableEscapeKeyDown:_,disablePortal:b,disableRestoreFocus:w,disableScrollLock:C,hideBackdrop:A,keepMounted:T}),{getRootProps:$,getBackdropProps:N,getTransitionProps:V,portalRef:L,isTopModal:G,exited:U,hasTransition:B}=Ste(F({},z,{rootRef:r})),j=F({},z,{exited:U}),X=dre(j),W={};if(p.props.tabIndex===void 0&&(W.tabIndex="-1"),B){const{onEnter:fe,onExited:de}=V();W.onEnter=fe,W.onExited=de}const ee=(n=(i=k==null?void 0:k.root)!=null?i:m.Root)!=null?n:hre,te=(a=(o=k==null?void 0:k.backdrop)!=null?o:m.Backdrop)!=null?a:c,ie=(s=P==null?void 0:P.root)!=null?s:y.root,re=(l=P==null?void 0:P.backdrop)!=null?l:y.backdrop,Q=Ra({elementType:ee,externalSlotProps:ie,externalForwardedProps:R,getSlotProps:$,additionalProps:{ref:r,as:g},ownerState:j,className:Ce(d,ie==null?void 0:ie.className,X==null?void 0:X.root,!j.open&&j.exited&&(X==null?void 0:X.hidden))}),J=Ra({elementType:te,externalSlotProps:re,additionalProps:f,getSlotProps:fe=>N(F({},fe,{onClick:de=>{M&&M(de),fe!=null&&fe.onClick&&fe.onClick(de)}})),className:Ce(re==null?void 0:re.className,f==null?void 0:f.className,X==null?void 0:X.backdrop),ownerState:j});return!T&&!I&&(!B||U)?null:E.jsx(fte,{ref:L,container:v,disablePortal:b,children:E.jsxs(ee,F({},Q,{children:[!A&&c?E.jsx(te,F({},J)):null,E.jsx(ute,{disableEnforceFocus:S,disableAutoFocus:x,disableRestoreFocus:w,isEnabled:G,open:I,children:O.cloneElement(p,W)})]}))})}),m4=vre;function gre(e){return Ue("MuiDivider",e)}je("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const mre=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],yre=e=>{const{absolute:t,children:r,classes:n,flexItem:i,light:a,orientation:o,textAlign:s,variant:l}=e;return Ze({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"]},gre,n)},xre=ge("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})=>F({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)`:wr(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})=>F({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>F({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>F({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>F({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Sre=ge("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>F({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)`})),y4=O.forwardRef(function(t,r){const n=Ye({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=ye(n,mre),v=F({},n,{absolute:i,component:s,flexItem:l,light:u,orientation:c,role:f,textAlign:d,variant:h}),g=yre(v);return E.jsx(xre,F({as:s,className:Ce(g.root,o),role:f,ref:r,ownerState:v},p,{children:a?E.jsx(Sre,{className:g.wrapper,ownerState:v,children:a}):null}))});y4.muiSkipListHighlight=!0;const hd=y4,bre=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],_re=e=>{const{classes:t,disableUnderline:r}=e,i=Ze({root:["root",!r&&"underline"],input:["input"]},Nte,t);return F({},t,i)},wre=ge(Y1,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...U1(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 F({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}},[`&.${Ws.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${Ws.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"},[`&.${Ws.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ws.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(.${Ws.disabled}, .${Ws.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ws.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&F({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),Cre=ge(q1,{name:"MuiFilledInput",slot:"Input",overridesResolver:j1})(({theme:e,ownerState:t})=>F({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})),x4=O.forwardRef(function(t,r){var n,i,a,o;const s=Ye({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=ye(s,bre),m=F({},s,{fullWidth:c,inputComponent:f,multiline:d,type:v}),y=_re(s),x={root:{ownerState:m},input:{ownerState:m}},S=h??u?mi(h??u,x):x,_=(n=(i=p.root)!=null?i:l.Root)!=null?n:wre,b=(a=(o=p.input)!=null?o:l.Input)!=null?a:Cre;return E.jsx(a2,F({slots:{root:_,input:b},componentsProps:S,fullWidth:c,inputComponent:f,multiline:d,ref:r,type:v},g,{classes:y}))});x4.muiName="Input";const S4=x4;function Tre(e){return Ue("MuiFormControl",e)}je("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Are=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Mre=e=>{const{classes:t,margin:r,fullWidth:n}=e,i={root:["root",r!=="none"&&`margin${Me(r)}`,n&&"fullWidth"]};return Ze(i,Tre,t)},Ire=ge("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>F({},t.root,t[`margin${Me(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>F({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%"})),Pre=O.forwardRef(function(t,r){const n=Ye({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=ye(n,Are),y=F({},n,{color:o,component:s,disabled:l,error:u,fullWidth:f,hiddenLabel:d,margin:h,required:p,size:v,variant:g}),x=Mre(y),[S,_]=O.useState(()=>{let P=!1;return i&&O.Children.forEach(i,k=>{if(!wh(k,["Input","Select"]))return;const R=wh(k,["Select"])?k.props.input:k;R&&Tte(R.props)&&(P=!0)}),P}),[b,w]=O.useState(()=>{let P=!1;return i&&O.Children.forEach(i,k=>{wh(k,["Input","Select"])&&(Dy(k.props,!0)||Dy(k.props.inputProps,!0))&&(P=!0)}),P}),[C,A]=O.useState(!1);l&&C&&A(!1);const T=c!==void 0&&!l?c:C;let M;const I=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 E.jsx(i2.Provider,{value:I,children:E.jsx(Ire,F({as:s,ownerState:y,className:Ce(x.root,a),ref:r},m,{children:i}))})}),b4=Pre;function kre(e){return Ue("MuiFormHelperText",e)}const Dre=je("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),ZD=Dre;var KD;const Rre=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Lre=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${Me(n)}`,r&&"contained",s&&"focused",o&&"filled",l&&"required"]};return Ze(u,kre,t)},Ere=ge("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${Me(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>F({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${ZD.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ZD.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Ore=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:o="p"}=n,s=ye(n,Rre),l=Rf(),u=Df({props:n,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=F({},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=Lre(c);return E.jsx(Ere,F({as:o,ownerState:c,className:Ce(f.root,a),ref:r},s,{children:i===" "?KD||(KD=E.jsx("span",{className:"notranslate",children:"​"})):i}))}),Nre=Ore;function zre(e){return Ue("MuiFormLabel",e)}const Bre=je("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Mh=Bre,Fre=["children","className","color","component","disabled","error","filled","focused","required"],$re=e=>{const{classes:t,color:r,focused:n,disabled:i,error:a,filled:o,required:s}=e,l={root:["root",`color${Me(r)}`,i&&"disabled",a&&"error",o&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return Ze(l,zre,t)},Vre=ge("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>F({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>F({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Mh.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Mh.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Mh.error}`]:{color:(e.vars||e).palette.error.main}})),Gre=ge("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Mh.error}`]:{color:(e.vars||e).palette.error.main}})),Hre=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiFormLabel"}),{children:i,className:a,component:o="label"}=n,s=ye(n,Fre),l=Rf(),u=Df({props:n,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=F({},n,{color:u.color||"primary",component:o,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=$re(c);return E.jsxs(Vre,F({as:o,ownerState:c,className:Ce(f.root,a),ref:r},s,{children:[i,u.required&&E.jsxs(Gre,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),Wre=Hre,Ure=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function MC(e){return`scale(${e}, ${e**2})`}const jre={entering:{opacity:1,transform:MC(1)},entered:{opacity:1,transform:"none"}},AS=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),_4=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=t2}=t,m=ye(t,Ure),y=O.useRef(),x=O.useRef(),S=Pf(),_=O.useRef(null),b=Mr(_,a.ref,r),w=R=>z=>{if(R){const $=_.current;z===void 0?R($):R($,z)}},C=w(c),A=w((R,z)=>{l4(R);const{duration:$,delay:N,easing:V}=ff({style:p,timeout:v,easing:o},{mode:"enter"});let L;v==="auto"?(L=S.transitions.getAutoHeightDuration(R.clientHeight),x.current=L):L=$,R.style.transition=[S.transitions.create("opacity",{duration:L,delay:N}),S.transitions.create("transform",{duration:AS?L:L*.666,delay:N,easing:V})].join(","),l&&l(R,z)}),T=w(u),M=w(h),I=w(R=>{const{duration:z,delay:$,easing:N}=ff({style:p,timeout:v,easing:o},{mode:"exit"});let V;v==="auto"?(V=S.transitions.getAutoHeightDuration(R.clientHeight),x.current=V):V=z,R.style.transition=[S.transitions.create("opacity",{duration:V,delay:$}),S.transitions.create("transform",{duration:AS?V:V*.666,delay:AS?$:$||V*.333,easing:N})].join(","),R.style.opacity=0,R.style.transform=MC(.75),f&&f(R)}),P=w(d),k=R=>{v==="auto"&&(y.current=setTimeout(R,x.current||0)),n&&n(_.current,R)};return O.useEffect(()=>()=>{clearTimeout(y.current)},[]),E.jsx(g,F({appear:i,in:s,nodeRef:_,onEnter:A,onEntered:T,onEntering:C,onExit:I,onExited:P,onExiting:M,addEndListener:k,timeout:v==="auto"?null:v},m,{children:(R,z)=>O.cloneElement(a,F({style:F({opacity:0,transform:MC(.75),visibility:R==="exited"&&!s?"hidden":void 0},jre[R],p,a.props.style),ref:b},z))}))});_4.muiSupportAuto=!0;const Yre=_4,qre=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Xre=e=>{const{classes:t,disableUnderline:r}=e,i=Ze({root:["root",!r&&"underline"],input:["input"]},Rte,t);return F({},t,i)},Zre=ge(Y1,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...U1(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})`),F({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"},[`&.${dd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${dd.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(.${dd.disabled}, .${dd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${dd.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Kre=ge(q1,{name:"MuiInput",slot:"Input",overridesResolver:j1})({}),w4=O.forwardRef(function(t,r){var n,i,a,o;const s=Ye({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=ye(s,qre),y=Xre(s),S={root:{ownerState:{disableUnderline:l}}},_=p??c?mi(p??c,S):S,b=(n=(i=v.root)!=null?i:u.Root)!=null?n:Zre,w=(a=(o=v.input)!=null?o:u.Input)!=null?a:Kre;return E.jsx(a2,F({slots:{root:b,input:w},slotProps:_,fullWidth:f,inputComponent:d,multiline:h,ref:r,type:g},m,{classes:y}))});w4.muiName="Input";const C4=w4;function Qre(e){return Ue("MuiInputLabel",e)}je("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Jre=["disableAnimation","margin","shrink","variant","className"],ene=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${Me(n)}`,o],asterisk:[s&&"asterisk"]},u=Ze(l,Qre,t);return F({},t,u)},tne=ge(Wre,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Mh.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})=>F({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"&&F({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&&F({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"&&F({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)"}))),rne=O.forwardRef(function(t,r){const n=Ye({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:a,className:o}=n,s=ye(n,Jre),l=Rf();let u=a;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=Df({props:n,muiFormControl:l,states:["size","variant","required"]}),f=F({},n,{disableAnimation:i,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required}),d=ene(f);return E.jsx(tne,F({"data-shrink":u,ownerState:f,ref:r,className:Ce(d.root,o)},s,{classes:d}))}),T4=rne;function nne(e){return Ue("MuiLink",e)}const ine=je("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),ane=ine,A4={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},one=e=>A4[e]||e,sne=({theme:e,ownerState:t})=>{const r=one(t.color),n=cf(e,`palette.${r}`,!1)||t.color,i=cf(e,`palette.${r}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:wr(n,.4)},lne=sne,une=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],cne=e=>{const{classes:t,component:r,focusVisible:n,underline:i}=e,a={root:["root",`underline${Me(i)}`,r==="button"&&"button",n&&"focusVisible"]};return Ze(a,nne,t)},fne=ge(Xe,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Me(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>F({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&F({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:lne({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"},[`&.${ane.focusVisible}`]:{outline:"auto"}})),dne=O.forwardRef(function(t,r){const n=Ye({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=ye(n,une),{isFocusVisibleRef:p,onBlur:v,onFocus:g,ref:m}=VM(),[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=F({},n,{color:a,component:o,focusVisible:y,underline:c,variant:f}),C=cne(w);return E.jsx(fne,F({color:a,className:Ce(C.root,i),classes:u,component:o,onBlur:_,onFocus:b,ref:S,ownerState:w,variant:f,sx:[...Object.keys(A4).includes(a)?[]:[{color:a}],...Array.isArray(d)?d:[d]]},h))}),si=dne,hne=O.createContext({}),Ih=hne;function pne(e){return Ue("MuiList",e)}je("MuiList",["root","padding","dense","subheader"]);const vne=["children","className","component","dense","disablePadding","subheader"],gne=e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return Ze({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},pne,t)},mne=ge("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})=>F({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),yne=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiList"}),{children:i,className:a,component:o="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=n,c=ye(n,vne),f=O.useMemo(()=>({dense:s}),[s]),d=F({},n,{component:o,dense:s,disablePadding:l}),h=gne(d);return E.jsx(Ih.Provider,{value:f,children:E.jsxs(mne,F({as:o,className:Ce(h.root,a),ref:r,ownerState:d},c,{children:[u,i]}))})}),M4=yne;function xne(e){return Ue("MuiListItem",e)}const Sne=je("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),pc=Sne,bne=je("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),_ne=bne;function wne(e){return Ue("MuiListItemSecondaryAction",e)}je("MuiListItemSecondaryAction",["root","disableGutters"]);const Cne=["className"],Tne=e=>{const{disableGutters:t,classes:r}=e;return Ze({root:["root",t&&"disableGutters"]},wne,r)},Ane=ge("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})(({ownerState:e})=>F({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),I4=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=n,a=ye(n,Cne),o=O.useContext(Ih),s=F({},n,{disableGutters:o.disableGutters}),l=Tne(s);return E.jsx(Ane,F({className:Ce(l.root,i),ownerState:s,ref:r},a))});I4.muiName="ListItemSecondaryAction";const Mne=I4,Ine=["className"],Pne=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],kne=(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]},Dne=e=>{const{alignItems:t,button:r,classes:n,dense:i,disabled:a,disableGutters:o,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return Ze({root:["root",i&&"dense",!o&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",r&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},xne,n)},Rne=ge("div",{name:"MuiListItem",slot:"Root",overridesResolver:kne})(({theme:e,ownerState:t})=>F({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&F({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${_ne.root}`]:{paddingRight:48}},{[`&.${pc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${pc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:wr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${pc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:wr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${pc.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"}},[`&.${pc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:wr(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})`:wr(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Lne=ge("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Ene=O.forwardRef(function(t,r){const n=Ye({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=ye(n.ContainerProps,Ine),A=ye(n,Pne),T=O.useContext(Ih),M=O.useMemo(()=>({dense:p||T.dense||!1,alignItems:i,disableGutters:g}),[i,T.dense,p,g]),I=O.useRef(null);ho(()=>{a&&I.current&&I.current.focus()},[a]);const P=O.Children.toArray(s),k=P.length&&wh(P[P.length-1],["ListItemSecondaryAction"]),R=F({},n,{alignItems:i,autoFocus:a,button:o,dense:M.dense,disabled:v,disableGutters:g,disablePadding:m,divider:y,hasSecondaryAction:k,selected:_}),z=Dne(R),$=Mr(I,r),N=w.root||c.Root||Rne,V=b.root||f.root||{},L=F({className:Ce(z.root,V.className,l),disabled:v},A);let G=u||"li";return o&&(L.component=u||"div",L.focusVisibleClassName=Ce(pc.focusVisible,x),G=kf),k?(G=!L.component&&!u?"div":G,d==="li"&&(G==="li"?G="div":L.component==="li"&&(L.component="div")),E.jsx(Ih.Provider,{value:M,children:E.jsxs(Lne,F({as:d,className:Ce(z.container,h),ref:$,ownerState:R},C,{children:[E.jsx(N,F({},V,!df(N)&&{as:G,ownerState:F({},R,V.ownerState)},L,{children:P})),P.pop()]}))})):E.jsx(Ih.Provider,{value:M,children:E.jsxs(N,F({},V,{as:G,ref:$},!df(N)&&{ownerState:F({},R,V.ownerState)},L,{children:[P,S&&E.jsx(Mne,{children:S})]}))})}),Wu=Ene,One=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function MS(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function QD(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function P4(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 pd(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")||!P4(s,a)||l)s=i(e,s,r);else return s.focus(),!0}return!1}const Nne=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=ye(t,One),h=O.useRef(null),p=O.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ho(()=>{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=on(S).activeElement;if(_==="ArrowDown")x.preventDefault(),pd(S,b,u,l,MS);else if(_==="ArrowUp")x.preventDefault(),pd(S,b,u,l,QD);else if(_==="Home")x.preventDefault(),pd(S,null,u,l,MS);else if(_==="End")x.preventDefault(),pd(S,null,u,l,QD);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&&P4(b,w);w.previousKeyMatched&&(T||pd(S,b,!1,l,MS,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 E.jsx(M4,F({role:"menu",ref:g,className:s,onKeyDown:v,tabIndex:i?0:-1},d,{children:y}))}),zne=Nne;function Bne(e){return Ue("MuiPopover",e)}je("MuiPopover",["root","paper"]);const Fne=["onEntering"],$ne=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Vne=["slotProps"];function JD(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function eR(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function tR(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function IS(e){return typeof e=="function"?e():e}const Gne=e=>{const{classes:t}=e;return Ze({root:["root"],paper:["paper"]},Bne,t)},Hne=ge(m4,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),k4=ge(H1,{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}),Wne=O.forwardRef(function(t,r){var n,i,a;const o=Ye({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=Yre,transitionDuration:w="auto",TransitionProps:{onEntering:C}={},disableScrollLock:A=!1}=o,T=ye(o.TransitionProps,Fne),M=ye(o,$ne),I=(n=S==null?void 0:S.paper)!=null?n:y,P=O.useRef(),k=Mr(P,I.ref),R=F({},o,{anchorOrigin:u,anchorReference:f,elevation:v,marginThreshold:g,externalPaperSlotProps:I,transformOrigin:_,TransitionComponent:b,transitionDuration:w,TransitionProps:T}),z=Gne(R),$=O.useCallback(()=>{if(f==="anchorPosition")return c;const fe=IS(l),ke=(fe&&fe.nodeType===1?fe:on(P.current).body).getBoundingClientRect();return{top:ke.top+JD(ke,u.vertical),left:ke.left+eR(ke,u.horizontal)}},[l,u.horizontal,u.vertical,c,f]),N=O.useCallback(fe=>({vertical:JD(fe,_.vertical),horizontal:eR(fe,_.horizontal)}),[_.horizontal,_.vertical]),V=O.useCallback(fe=>{const de={width:fe.offsetWidth,height:fe.offsetHeight},ke=N(de);if(f==="none")return{top:null,left:null,transformOrigin:tR(ke)};const We=$();let Ge=We.top-ke.vertical,at=We.left-ke.horizontal;const ot=Ge+de.height,It=at+de.width,Be=Da(IS(l)),Pt=Be.innerHeight-g,Yt=Be.innerWidth-g;if(g!==null&&GePt){const kt=ot-Pt;Ge-=kt,ke.vertical+=kt}if(g!==null&&atYt){const kt=It-Yt;at-=kt,ke.horizontal+=kt}return{top:`${Math.round(Ge)}px`,left:`${Math.round(at)}px`,transformOrigin:tR(ke)}},[l,f,$,N,g]),[L,G]=O.useState(m),U=O.useCallback(()=>{const fe=P.current;if(!fe)return;const de=V(fe);de.top!==null&&(fe.style.top=de.top),de.left!==null&&(fe.style.left=de.left),fe.style.transformOrigin=de.transformOrigin,G(!0)},[V]);O.useEffect(()=>(A&&window.addEventListener("scroll",U),()=>window.removeEventListener("scroll",U)),[l,A,U]);const B=(fe,de)=>{C&&C(fe,de),U()},j=()=>{G(!1)};O.useEffect(()=>{m&&U()}),O.useImperativeHandle(s,()=>m?{updatePosition:()=>{U()}}:null,[m,U]),O.useEffect(()=>{if(!m)return;const fe=iv(()=>{U()}),de=Da(l);return de.addEventListener("resize",fe),()=>{fe.clear(),de.removeEventListener("resize",fe)}},[l,m,U]);let X=w;w==="auto"&&!b.muiSupportAuto&&(X=void 0);const W=p||(l?on(IS(l)).body:void 0),ee=(i=x==null?void 0:x.root)!=null?i:Hne,te=(a=x==null?void 0:x.paper)!=null?a:k4,ie=Ra({elementType:te,externalSlotProps:F({},I,{style:L?I.style:F({},I.style,{opacity:0})}),additionalProps:{elevation:v,ref:k},ownerState:R,className:Ce(z.paper,I==null?void 0:I.className)}),re=Ra({elementType:ee,externalSlotProps:(S==null?void 0:S.root)||{},externalForwardedProps:M,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:W,open:m},ownerState:R,className:Ce(z.root,h)}),{slotProps:Q}=re,J=ye(re,Vne);return E.jsx(ee,F({},J,!df(ee)&&{slotProps:Q,disableScrollLock:A},{children:E.jsx(b,F({appear:!0,in:m,onEntering:B,onExited:j,timeout:X},T,{children:E.jsx(te,F({},ie,{children:d}))}))}))}),Une=Wne;function jne(e){return Ue("MuiMenu",e)}je("MuiMenu",["root","paper","list"]);const Yne=["onEntering"],qne=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Xne={vertical:"top",horizontal:"right"},Zne={vertical:"top",horizontal:"left"},Kne=e=>{const{classes:t}=e;return Ze({root:["root"],paper:["paper"],list:["list"]},jne,t)},Qne=ge(Une,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Jne=ge(k4,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),eie=ge(zne,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),tie=O.forwardRef(function(t,r){var n,i;const a=Ye({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=ye(a.TransitionProps,Yne),_=ye(a,qne),b=Pf(),w=b.direction==="rtl",C=F({},a,{autoFocus:o,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:h,transitionDuration:v,TransitionProps:S,variant:m}),A=Kne(C),T=o&&!u&&d,M=O.useRef(null),I=(V,L)=>{M.current&&M.current.adjustStyleForScrollbar(V,b),g&&g(V,L)},P=V=>{V.key==="Tab"&&(V.preventDefault(),f&&f(V,"tabKeyDown"))};let k=-1;O.Children.map(s,(V,L)=>{O.isValidElement(V)&&(V.props.disabled||(m==="selectedMenu"&&V.props.selected||k===-1)&&(k=L))});const R=(n=y.paper)!=null?n:Jne,z=(i=x.paper)!=null?i:h,$=Ra({elementType:y.root,externalSlotProps:x.root,ownerState:C,className:[A.root,l]}),N=Ra({elementType:R,externalSlotProps:z,ownerState:C,className:A.paper});return E.jsx(Qne,F({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Xne:Zne,slots:{paper:R,root:y.root},slotProps:{root:$,paper:N},open:d,ref:r,transitionDuration:v,TransitionProps:F({onEntering:I},S),ownerState:C},_,{classes:p,children:E.jsx(eie,F({onKeyDown:P,actions:M,autoFocus:o&&(k===-1||u),autoFocusItem:T,variant:m},c,{className:Ce(A.list,c.className),children:s}))}))}),rie=tie;function nie(e){return Ue("MuiNativeSelect",e)}const iie=je("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),o2=iie,aie=["className","disabled","error","IconComponent","inputRef","variant"],oie=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${Me(r)}`,a&&"iconOpen",n&&"disabled"]};return Ze(s,nie,t)},D4=({ownerState:e,theme:t})=>F({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":F({},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"},[`&.${o2.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}}),sie=ge("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:wo,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${o2.multiple}`]:t.multiple}]}})(D4),R4=({ownerState:e,theme:t})=>F({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${o2.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),lie=ge("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Me(r.variant)}`],r.open&&t.iconOpen]}})(R4),uie=O.forwardRef(function(t,r){const{className:n,disabled:i,error:a,IconComponent:o,inputRef:s,variant:l="standard"}=t,u=ye(t,aie),c=F({},t,{disabled:i,variant:l,error:a}),f=oie(c);return E.jsxs(O.Fragment,{children:[E.jsx(sie,F({ownerState:c,className:Ce(f.select,n),disabled:i,ref:s||r},u)),t.multiple?null:E.jsx(lie,{as:o,ownerState:c,className:f.icon})]})}),cie=uie;var rR;const fie=["children","classes","className","label","notched"],die=ge("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%"}),hie=ge("legend")(({ownerState:e,theme:t})=>F({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&&F({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 pie(e){const{className:t,label:r,notched:n}=e,i=ye(e,fie),a=r!=null&&r!=="",o=F({},e,{notched:n,withLabel:a});return E.jsx(die,F({"aria-hidden":!0,className:t,ownerState:o},i,{children:E.jsx(hie,{ownerState:o,children:a?E.jsx("span",{children:r}):rR||(rR=E.jsx("span",{className:"notranslate",children:"​"}))})}))}const vie=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],gie=e=>{const{classes:t}=e,n=Ze({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Ete,t);return F({},t,n)},mie=ge(Y1,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:U1})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return F({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ko.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ko.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${ko.focused} .${ko.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ko.error} .${ko.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ko.disabled} .${ko.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&F({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),yie=ge(pie,{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}}),xie=ge(q1,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:j1})(({theme:e,ownerState:t})=>F({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})),L4=O.forwardRef(function(t,r){var n,i,a,o,s;const l=Ye({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=ye(l,vie),y=gie(l),x=Rf(),S=Df({props:l,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=F({},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:mie,w=(a=(o=v.input)!=null?o:u.Input)!=null?a:xie;return E.jsx(a2,F({slots:{root:b,input:w},renderSuffix:C=>E.jsx(yie,{ownerState:_,className:y.notchedOutline,label:d!=null&&d!==""&&S.required?s||(s=E.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:F({},y,{notchedOutline:null})}))});L4.muiName="Input";const E4=L4;function Sie(e){return Ue("MuiSelect",e)}const bie=je("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),vd=bie;var nR;const _ie=["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"],wie=ge("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${vd.select}`]:t.select},{[`&.${vd.select}`]:t[r.variant]},{[`&.${vd.error}`]:t.error},{[`&.${vd.multiple}`]:t.multiple}]}})(D4,{[`&.${vd.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Cie=ge("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Me(r.variant)}`],r.open&&t.iconOpen]}})(R4),Tie=ge("input",{shouldForwardProp:e=>xJ(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 iR(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Aie(e){return e==null||typeof e=="string"&&!e.trim()}const Mie=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${Me(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Ze(s,Sie,t)},Iie=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:I,SelectDisplayProps:P={},tabIndex:k,value:R,variant:z="standard"}=t,$=ye(t,_ie),[N,V]=My({controlled:R,default:f,name:"Select"}),[L,G]=My({controlled:T,default:c,name:"Select"}),U=O.useRef(null),B=O.useRef(null),[j,X]=O.useState(null),{current:W}=O.useRef(T!=null),[ee,te]=O.useState(),ie=Mr(r,g),re=O.useCallback(Te=>{B.current=Te,Te&&X(Te)},[]),Q=j==null?void 0:j.parentNode;O.useImperativeHandle(ie,()=>({focus:()=>{B.current.focus()},node:U.current,value:N}),[N]),O.useEffect(()=>{c&&L&&j&&!W&&(te(s?null:Q.clientWidth),B.current.focus())},[j,s]),O.useEffect(()=>{o&&B.current.focus()},[o]),O.useEffect(()=>{if(!m)return;const Te=on(B.current).getElementById(m);if(Te){const ut=()=>{getSelection().isCollapsed&&B.current.focus()};return Te.addEventListener("click",ut),()=>{Te.removeEventListener("click",ut)}}},[m]);const J=(Te,ut)=>{Te?A&&A(ut):w&&w(ut),W||(te(s?null:Q.clientWidth),G(Te))},fe=Te=>{Te.button===0&&(Te.preventDefault(),B.current.focus(),J(!0,Te))},de=Te=>{J(!1,Te)},ke=O.Children.toArray(l),We=Te=>{const ut=ke.find(Rt=>Rt.props.value===Te.target.value);ut!==void 0&&(V(ut.props.value),b&&b(Te,ut))},Ge=Te=>ut=>{let Rt;if(ut.currentTarget.hasAttribute("tabindex")){if(x){Rt=Array.isArray(N)?N.slice():[];const pe=N.indexOf(Te.props.value);pe===-1?Rt.push(Te.props.value):Rt.splice(pe,1)}else Rt=Te.props.value;if(Te.props.onClick&&Te.props.onClick(ut),N!==Rt&&(V(Rt),b)){const pe=ut.nativeEvent||ut,De=new pe.constructor(pe.type,pe);Object.defineProperty(De,"target",{writable:!0,value:{value:Rt,name:S}}),b(De,Te)}x||J(!1,ut)}},at=Te=>{M||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Te.key)!==-1&&(Te.preventDefault(),J(!0,Te))},ot=j!==null&&L,It=Te=>{!ot&&_&&(Object.defineProperty(Te,"target",{writable:!0,value:{value:N,name:S}}),_(Te))};delete $["aria-invalid"];let Be,Pt;const Yt=[];let kt=!1;(Dy({value:N})||h)&&(I?Be=I(N):kt=!0);const K=ke.map(Te=>{if(!O.isValidElement(Te))return null;let ut;if(x){if(!Array.isArray(N))throw new Error(Cs(2));ut=N.some(Rt=>iR(Rt,Te.props.value)),ut&&kt&&Yt.push(Te.props.children)}else ut=iR(N,Te.props.value),ut&&kt&&(Pt=Te.props.children);return O.cloneElement(Te,{"aria-selected":ut?"true":"false",onClick:Ge(Te),onKeyUp:Rt=>{Rt.key===" "&&Rt.preventDefault(),Te.props.onKeyUp&&Te.props.onKeyUp(Rt)},role:"option",selected:ut,value:void 0,"data-value":Te.props.value})});kt&&(x?Yt.length===0?Be=null:Be=Yt.reduce((Te,ut,Rt)=>(Te.push(ut),Rt{const{classes:t}=e;return t},s2={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>wo(e)&&e!=="variant",slot:"Root"},Lie=ge(C4,s2)(""),Eie=ge(E4,s2)(""),Oie=ge(S4,s2)(""),O4=O.forwardRef(function(t,r){const n=Ye({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:o={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=Bte,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=ye(n,kie),T=y?cie:Pie,M=Rf(),I=Df({props:n,muiFormControl:M,states:["variant","error"]}),P=I.variant||C,k=F({},n,{variant:P,classes:o}),R=Rie(k),z=ye(R,Die),$=d||{standard:E.jsx(Lie,{ownerState:k}),outlined:E.jsx(Eie,{label:p,ownerState:k}),filled:E.jsx(Oie,{ownerState:k})}[P],N=Mr(r,$.ref);return E.jsx(O.Fragment,{children:O.cloneElement($,F({inputComponent:T,inputProps:F({children:a,error:I.error,IconComponent:c,variant:P,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:F({id:f},w)},h,{classes:h?mi(z,h.classes):z},d?d.props.inputProps:{})},m&&y&&P==="outlined"?{notched:!0}:{},{ref:N,className:Ce($.props.className,s,R.root)},!d&&{variant:P},A))})});O4.muiName="Select";const N4=O4;function Nie(e){return Ue("MuiTab",e)}const zie=je("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Us=zie,Bie=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Fie=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${Me(r)}`,n&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Ze(u,Nie,t)},$ie=ge(kf,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${Me(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>F({},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,[`& > .${Us.iconWrapper}`]:F({},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,[`&.${Us.selected}`]:{opacity:1},[`&.${Us.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Us.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Us.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Us.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Us.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)})),Vie=O.forwardRef(function(t,r){const n=Ye({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=ye(n,Bie),_=F({},n,{disabled:a,disableFocusRipple:o,selected:v,icon:!!l,iconPosition:u,label:!!f,fullWidth:s,textColor:m,wrapped:x}),b=Fie(_),w=l&&f&&O.isValidElement(l)?O.cloneElement(l,{className:Ce(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 E.jsxs($ie,F({focusRipple:!o,className:Ce(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"?E.jsxs(O.Fragment,{children:[w,f]}):E.jsxs(O.Fragment,{children:[f,w]}),c]}))}),Gie=Vie,Hie=O.createContext(),z4=Hie;function Wie(e){return Ue("MuiTable",e)}je("MuiTable",["root","stickyHeader"]);const Uie=["className","component","padding","size","stickyHeader"],jie=e=>{const{classes:t,stickyHeader:r}=e;return Ze({root:["root",r&&"stickyHeader"]},Wie,t)},Yie=ge("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>F({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":F({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),aR="table",qie=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTable"}),{className:i,component:a=aR,padding:o="normal",size:s="medium",stickyHeader:l=!1}=n,u=ye(n,Uie),c=F({},n,{component:a,padding:o,size:s,stickyHeader:l}),f=jie(c),d=O.useMemo(()=>({padding:o,size:s,stickyHeader:l}),[o,s,l]);return E.jsx(z4.Provider,{value:d,children:E.jsx(Yie,F({as:a,role:a===aR?null:"table",ref:r,className:Ce(f.root,i),ownerState:c},u))})}),Xie=qie,Zie=O.createContext(),X1=Zie;function Kie(e){return Ue("MuiTableBody",e)}je("MuiTableBody",["root"]);const Qie=["className","component"],Jie=e=>{const{classes:t}=e;return Ze({root:["root"]},Kie,t)},eae=ge("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),tae={variant:"body"},oR="tbody",rae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableBody"}),{className:i,component:a=oR}=n,o=ye(n,Qie),s=F({},n,{component:a}),l=Jie(s);return E.jsx(X1.Provider,{value:tae,children:E.jsx(eae,F({className:Ce(l.root,i),as:a,ref:r,role:a===oR?null:"rowgroup",ownerState:s},o))})}),nae=rae;function iae(e){return Ue("MuiTableCell",e)}const aae=je("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),oae=aae,sae=["align","className","component","padding","scope","size","sortDirection","variant"],lae=e=>{const{classes:t,variant:r,align:n,padding:i,size:a,stickyHeader:o}=e,s={root:["root",r,o&&"stickyHeader",n!=="inherit"&&`align${Me(n)}`,i!=="normal"&&`padding${Me(i)}`,`size${Me(a)}`]};return Ze(s,iae,t)},uae=ge("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Me(r.size)}`],r.padding!=="normal"&&t[`padding${Me(r.padding)}`],r.align!=="inherit"&&t[`align${Me(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>F({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?JV(wr(e.palette.divider,1),.88):QV(wr(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",[`&.${oae.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})),cae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:o,padding:s,scope:l,size:u,sortDirection:c,variant:f}=n,d=ye(n,sae),h=O.useContext(z4),p=O.useContext(X1),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=F({},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=lae(x);let _=null;return c&&(_=c==="asc"?"ascending":"descending"),E.jsx(uae,F({as:g,ref:r,className:Ce(S.root,a),"aria-sort":_,scope:m,ownerState:x},d))}),sR=cae;function fae(e){return Ue("MuiTableContainer",e)}je("MuiTableContainer",["root"]);const dae=["className","component"],hae=e=>{const{classes:t}=e;return Ze({root:["root"]},fae,t)},pae=ge("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),vae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableContainer"}),{className:i,component:a="div"}=n,o=ye(n,dae),s=F({},n,{component:a}),l=hae(s);return E.jsx(pae,F({ref:r,as:a,className:Ce(l.root,i),ownerState:s},o))}),gae=vae;function mae(e){return Ue("MuiTableHead",e)}je("MuiTableHead",["root"]);const yae=["className","component"],xae=e=>{const{classes:t}=e;return Ze({root:["root"]},mae,t)},Sae=ge("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),bae={variant:"head"},lR="thead",_ae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableHead"}),{className:i,component:a=lR}=n,o=ye(n,yae),s=F({},n,{component:a}),l=xae(s);return E.jsx(X1.Provider,{value:bae,children:E.jsx(Sae,F({as:a,className:Ce(l.root,i),ref:r,role:a===lR?null:"rowgroup",ownerState:s},o))})}),wae=_ae;function Cae(e){return Ue("MuiToolbar",e)}je("MuiToolbar",["root","gutters","regular","dense"]);const Tae=["className","component","disableGutters","variant"],Aae=e=>{const{classes:t,disableGutters:r,variant:n}=e;return Ze({root:["root",!r&&"gutters",n]},Cae,t)},Mae=ge("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})=>F({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),Iae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiToolbar"}),{className:i,component:a="div",disableGutters:o=!1,variant:s="regular"}=n,l=ye(n,Tae),u=F({},n,{component:a,disableGutters:o,variant:s}),c=Aae(u);return E.jsx(Mae,F({as:a,className:Ce(c.root,i),ref:r,ownerState:u},l))}),Pae=Iae,kae=G1(E.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Dae=G1(E.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Rae(e){return Ue("MuiTableRow",e)}const Lae=je("MuiTableRow",["root","selected","hover","head","footer"]),uR=Lae,Eae=["className","component","hover","selected"],Oae=e=>{const{classes:t,selected:r,hover:n,head:i,footer:a}=e;return Ze({root:["root",r&&"selected",n&&"hover",i&&"head",a&&"footer"]},Rae,t)},Nae=ge("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,[`&.${uR.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${uR.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:wr(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}))`:wr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),cR="tr",zae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableRow"}),{className:i,component:a=cR,hover:o=!1,selected:s=!1}=n,l=ye(n,Eae),u=O.useContext(X1),c=F({},n,{component:a,hover:o,selected:s,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),f=Oae(c);return E.jsx(Nae,F({as:a,ref:r,className:Ce(f.root,i),role:a===cR?null:"row",ownerState:c},l))}),fR=zae;function Bae(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Fae(e,t,r,n={},i=()=>{}){const{ease:a=Bae,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 $ae=["onChange"],Vae={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Gae(e){const{onChange:t}=e,r=ye(e,$ae),n=O.useRef(),i=O.useRef(null),a=()=>{n.current=i.current.offsetHeight-i.current.clientHeight};return ho(()=>{const o=iv(()=>{const l=n.current;a(),l!==n.current&&t(n.current)}),s=Da(i.current);return s.addEventListener("resize",o),()=>{o.clear(),s.removeEventListener("resize",o)}},[t]),O.useEffect(()=>{a(),t(n.current)},[t]),E.jsx("div",F({style:Vae,ref:i},r))}function Hae(e){return Ue("MuiTabScrollButton",e)}const Wae=je("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Uae=Wae,jae=["className","slots","slotProps","direction","orientation","disabled"],Yae=e=>{const{classes:t,orientation:r,disabled:n}=e;return Ze({root:["root",r,n&&"disabled"]},Hae,t)},qae=ge(kf,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>F({width:40,flexShrink:0,opacity:.8,[`&.${Uae.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Xae=O.forwardRef(function(t,r){var n,i;const a=Ye({props:t,name:"MuiTabScrollButton"}),{className:o,slots:s={},slotProps:l={},direction:u}=a,c=ye(a,jae),d=Pf().direction==="rtl",h=F({isRtl:d},a),p=Yae(h),v=(n=s.StartScrollButtonIcon)!=null?n:kae,g=(i=s.EndScrollButtonIcon)!=null?i:Dae,m=Ra({elementType:v,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),y=Ra({elementType:g,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return E.jsx(qae,F({component:"div",className:Ce(p.root,o),ref:r,role:null,ownerState:h,tabIndex:null},c,{children:u==="left"?E.jsx(v,F({},m)):E.jsx(g,F({},y))}))}),Zae=Xae;function Kae(e){return Ue("MuiTabs",e)}const Qae=je("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),PS=Qae,Jae=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],dR=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,hR=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,ng=(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}}},eoe=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:i,scrollableY:a,centered:o,scrollButtonsHideMobile:s,classes:l}=e;return Ze({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"]},Kae,l)},toe=ge("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${PS.scrollButtons}`]:t.scrollButtons},{[`& .${PS.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>F({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${PS.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),roe=ge("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})=>F({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"})),noe=ge("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})=>F({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),ioe=ge("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>F({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})),aoe=ge(Gae)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),pR={},ooe=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTabs"}),i=Pf(),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=Zae,scrollButtons:y="auto",selectionFollowsFocus:x,slots:S={},slotProps:_={},TabIndicatorProps:b={},TabScrollButtonProps:w={},textColor:C="primary",value:A,variant:T="standard",visibleScrollbar:M=!1}=n,I=ye(n,Jae),P=T==="scrollable",k=g==="vertical",R=k?"scrollTop":"scrollLeft",z=k?"top":"left",$=k?"bottom":"right",N=k?"clientHeight":"clientWidth",V=k?"height":"width",L=F({},n,{component:d,allowScrollButtonsMobile:h,indicatorColor:p,orientation:g,vertical:k,scrollButtons:y,textColor:C,variant:T,visibleScrollbar:M,fixed:!P,hideScrollbar:P&&!M,scrollableX:P&&!k,scrollableY:P&&k,centered:u&&!P,scrollButtonsHideMobile:!h}),G=eoe(L),U=Ra({elementType:S.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:L}),B=Ra({elementType:S.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:L}),[j,X]=O.useState(!1),[W,ee]=O.useState(pR),[te,ie]=O.useState(!1),[re,Q]=O.useState(!1),[J,fe]=O.useState(!1),[de,ke]=O.useState({overflow:"hidden",scrollbarWidth:0}),We=new Map,Ge=O.useRef(null),at=O.useRef(null),ot=()=>{const pe=Ge.current;let De;if(pe){const yt=pe.getBoundingClientRect();De={clientWidth:pe.clientWidth,scrollLeft:pe.scrollLeft,scrollTop:pe.scrollTop,scrollLeftNormalized:lZ(pe,i.direction),scrollWidth:pe.scrollWidth,top:yt.top,bottom:yt.bottom,left:yt.left,right:yt.right}}let qe;if(pe&&A!==!1){const yt=at.current.children;if(yt.length>0){const $r=yt[We.get(A)];qe=$r?$r.getBoundingClientRect():null}}return{tabsMeta:De,tabMeta:qe}},It=ya(()=>{const{tabsMeta:pe,tabMeta:De}=ot();let qe=0,yt;if(k)yt="top",De&&pe&&(qe=De.top-pe.top+pe.scrollTop);else if(yt=a?"right":"left",De&&pe){const Io=a?pe.scrollLeftNormalized+pe.clientWidth-pe.scrollWidth:pe.scrollLeft;qe=(a?-1:1)*(De[yt]-pe[yt]+Io)}const $r={[yt]:qe,[V]:De?De[V]:0};if(isNaN(W[yt])||isNaN(W[V]))ee($r);else{const Io=Math.abs(W[yt]-$r[yt]),Lv=Math.abs(W[V]-$r[V]);(Io>=1||Lv>=1)&&ee($r)}}),Be=(pe,{animation:De=!0}={})=>{De?Fae(R,Ge.current,pe,{duration:i.transitions.duration.standard}):Ge.current[R]=pe},Pt=pe=>{let De=Ge.current[R];k?De+=pe:(De+=pe*(a?-1:1),De*=a&&MV()==="reverse"?-1:1),Be(De)},Yt=()=>{const pe=Ge.current[N];let De=0;const qe=Array.from(at.current.children);for(let yt=0;ytpe){yt===0&&(De=pe);break}De+=$r[N]}return De},kt=()=>{Pt(-1*Yt())},K=()=>{Pt(Yt())},le=O.useCallback(pe=>{ke({overflow:null,scrollbarWidth:pe})},[]),Re=()=>{const pe={};pe.scrollbarSizeListener=P?E.jsx(aoe,{onChange:le,className:Ce(G.scrollableX,G.hideScrollbar)}):null;const qe=P&&(y==="auto"&&(te||re)||y===!0);return pe.scrollButtonStart=qe?E.jsx(m,F({slots:{StartScrollButtonIcon:S.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:U},orientation:g,direction:a?"right":"left",onClick:kt,disabled:!te},w,{className:Ce(G.scrollButtons,w.className)})):null,pe.scrollButtonEnd=qe?E.jsx(m,F({slots:{EndScrollButtonIcon:S.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:B},orientation:g,direction:a?"left":"right",onClick:K,disabled:!re},w,{className:Ce(G.scrollButtons,w.className)})):null,pe},_e=ya(pe=>{const{tabsMeta:De,tabMeta:qe}=ot();if(!(!qe||!De)){if(qe[z]De[$]){const yt=De[R]+(qe[$]-De[$]);Be(yt,{animation:pe})}}}),he=ya(()=>{P&&y!==!1&&fe(!J)});O.useEffect(()=>{const pe=iv(()=>{Ge.current&&It()}),De=Da(Ge.current);De.addEventListener("resize",pe);let qe;return typeof ResizeObserver<"u"&&(qe=new ResizeObserver(pe),Array.from(at.current.children).forEach(yt=>{qe.observe(yt)})),()=>{pe.clear(),De.removeEventListener("resize",pe),qe&&qe.disconnect()}},[It]),O.useEffect(()=>{const pe=Array.from(at.current.children),De=pe.length;if(typeof IntersectionObserver<"u"&&De>0&&P&&y!==!1){const qe=pe[0],yt=pe[De-1],$r={root:Ge.current,threshold:.99},Io=qx=>{ie(!qx[0].isIntersecting)},Lv=new IntersectionObserver(Io,$r);Lv.observe(qe);const g7=qx=>{Q(!qx[0].isIntersecting)},qP=new IntersectionObserver(g7,$r);return qP.observe(yt),()=>{Lv.disconnect(),qP.disconnect()}}},[P,y,J,c==null?void 0:c.length]),O.useEffect(()=>{X(!0)},[]),O.useEffect(()=>{It()}),O.useEffect(()=>{_e(pR!==W)},[_e,W]),O.useImperativeHandle(l,()=>({updateIndicator:It,updateScrollButtons:he}),[It,he]);const Vt=E.jsx(ioe,F({},b,{className:Ce(G.indicator,b.className),ownerState:L,style:F({},W,b.style)}));let Sr=0;const Te=O.Children.map(c,pe=>{if(!O.isValidElement(pe))return null;const De=pe.props.value===void 0?Sr:pe.props.value;We.set(De,Sr);const qe=De===A;return Sr+=1,O.cloneElement(pe,F({fullWidth:T==="fullWidth",indicator:qe&&!j&&Vt,selected:qe,selectionFollowsFocus:x,onChange:v,textColor:C,value:De},Sr===1&&A===!1&&!pe.props.tabIndex?{tabIndex:0}:{}))}),ut=pe=>{const De=at.current,qe=on(De).activeElement;if(qe.getAttribute("role")!=="tab")return;let $r=g==="horizontal"?"ArrowLeft":"ArrowUp",Io=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&a&&($r="ArrowRight",Io="ArrowLeft"),pe.key){case $r:pe.preventDefault(),ng(De,qe,hR);break;case Io:pe.preventDefault(),ng(De,qe,dR);break;case"Home":pe.preventDefault(),ng(De,null,dR);break;case"End":pe.preventDefault(),ng(De,null,hR);break}},Rt=Re();return E.jsxs(toe,F({className:Ce(G.root,f),ownerState:L,ref:r,as:d},I,{children:[Rt.scrollButtonStart,Rt.scrollbarSizeListener,E.jsxs(roe,{className:G.scroller,ownerState:L,style:{overflow:de.overflow,[k?`margin${a?"Left":"Right"}`:"marginBottom"]:M?void 0:-de.scrollbarWidth},ref:Ge,children:[E.jsx(noe,{"aria-label":o,"aria-labelledby":s,"aria-orientation":g==="vertical"?"vertical":null,className:G.flexContainer,ownerState:L,onKeyDown:ut,ref:at,role:"tablist",children:Te}),j&&Vt]}),Rt.scrollButtonEnd]}))}),soe=ooe;function loe(e){return Ue("MuiTextField",e)}je("MuiTextField",["root"]);const uoe=["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"],coe={standard:C4,filled:S4,outlined:E4},foe=e=>{const{classes:t}=e;return Ze({root:["root"]},loe,t)},doe=ge(b4,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),hoe=O.forwardRef(function(t,r){const n=Ye({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:I,required:P=!1,rows:k,select:R=!1,SelectProps:z,type:$,value:N,variant:V="outlined"}=n,L=ye(n,uoe),G=F({},n,{autoFocus:a,color:l,disabled:c,error:f,fullWidth:h,multiline:w,required:P,select:R,variant:V}),U=foe(G),B={};V==="outlined"&&(g&&typeof g.shrink<"u"&&(B.notched=g.shrink),B.label=S),R&&((!z||!z.native)&&(B.id=void 0),B["aria-describedby"]=void 0);const j=TV(v),X=p&&j?`${j}-helper-text`:void 0,W=S&&j?`${j}-label`:void 0,ee=coe[V],te=E.jsx(ee,F({"aria-describedby":X,autoComplete:i,autoFocus:a,defaultValue:u,fullWidth:h,multiline:w,name:C,rows:k,maxRows:_,minRows:b,type:$,value:N,id:j,inputRef:x,onBlur:A,onChange:T,onFocus:M,placeholder:I,inputProps:m},B,y));return E.jsxs(doe,F({className:Ce(U.root,s),disabled:c,error:f,fullWidth:h,ref:r,required:P,color:l,variant:V,ownerState:G},L,{children:[S!=null&&S!==""&&E.jsx(T4,F({htmlFor:j,id:W},g,{children:S})),R?E.jsx(N4,F({"aria-describedby":X,id:j,labelId:W,value:N,input:te},z,{children:o})):te,p&&E.jsx(Nre,F({id:X},d,{children:p}))]}))}),Bl=hoe;var l2={},B4={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})(B4);var Z1=B4.exports,kS={};const poe=y7(IJ);var vR;function K1(){return vR||(vR=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=poe}(kS)),kS}var voe=Z1;Object.defineProperty(l2,"__esModule",{value:!0});var F4=l2.default=void 0,goe=voe(K1()),moe=E,yoe=(0,goe.default)((0,moe.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");F4=l2.default=yoe;function u2({open:e,onClose:t,children:r}){return E.jsx(m4,{onClose:t,open:e,children:E.jsxs(ht,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"md",display:"flex",flexDirection:"column",rowGap:2,bgcolor:"background.paper",boxShadow:24,borderRadius:2,p:4},children:[E.jsx(p4,{color:"inherit",onClick:t,sx:{position:"absolute",top:1,right:1},children:E.jsx(F4,{})}),r]})})}const Ef=fV,xoe=wV;function Qd(e){const t=xoe();return O.useCallback(r=>{t(e(r))},[e,t])}const Soe=[{name:"Carl Byström",website:"http://cgbystrom.com/",social:{handle:"@cgbystrom",link:"https://twitter.com/cgbystrom/"}},{name:"Jonatan Heyman",website:"http://heyman.info/",social:{handle:"@jonatanheyman",link:"https://twitter.com/jonatanheyman/"}},{name:"Joakim Hamrén",social:{handle:"@jahaaja",link:"https://twitter.com/Jahaaja/"}},{name:"ESN Social Software",website:"http://esn.me/",social:{handle:"@uprise_ea",link:"https://twitter.com/uprise_ea"}},{name:"Hugo Heyman",social:{handle:"@hugoheyman",link:"https://twitter.com/hugoheyman/"}}];function boe(){const[e,t]=O.useState(!1),r=Ef(({swarm:n})=>n.version);return E.jsxs(E.Fragment,{children:[E.jsx(ht,{sx:{display:"flex",justifyContent:"flex-end"},children:E.jsx(Cu,{color:"inherit",onClick:()=>t(!0),variant:"text",children:"About"})}),E.jsxs(u2,{onClose:()=>t(!1),open:e,children:[E.jsxs("div",{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"About"}),E.jsx(Xe,{component:"p",variant:"subtitle1",children:"The original idea for Locust was Carl Byström's who made a first proof of concept in June 2010. Jonatan Heyman picked up Locust in January 2011, implemented the current concept of Locust classes and made it work distributed across multiple machines."}),E.jsx(Xe,{component:"p",sx:{mt:2},variant:"subtitle1",children:"Jonatan, Carl and Joakim Hamrén has continued the development of Locust at their job, ESN Social Software, who have adopted Locust as an inhouse Open Source project."})]}),E.jsxs("div",{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"Authors and Copyright"}),E.jsx(ht,{sx:{display:"flex",flexDirection:"column",rowGap:.5},children:Soe.map(({name:n,website:i,social:{handle:a,link:o}},s)=>E.jsxs("div",{children:[i?E.jsx(si,{href:i,children:n}):n,E.jsxs(ht,{sx:{display:"inline",ml:.5},children:["(",E.jsx(si,{href:o,children:a}),")"]})]},`author-${s}`))})]}),E.jsxs("div",{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"License"}),E.jsx(Xe,{component:"p",variant:"subtitle1",children:"Open source licensed under the MIT license."})]}),E.jsxs("div",{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"Version"}),E.jsx(si,{href:`https://github.com/locustio/locust/releases/tag/${r}`,children:r})]}),E.jsxs("div",{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"Website"}),E.jsx(si,{href:"https://locust.io/",children:"https://locust.io"})]})]})]})}function _oe(){return E.jsx(ht,{component:"nav",sx:{position:"fixed",bottom:0,width:"100%"},children:E.jsx(Lf,{maxWidth:"xl",sx:{display:"flex",justifyContent:"flex-end"},children:E.jsx(boe,{})})})}var c2={},woe=Z1;Object.defineProperty(c2,"__esModule",{value:!0});var $4=c2.default=void 0,Coe=woe(K1()),Toe=E,Aoe=(0,Coe.default)((0,Toe.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");$4=c2.default=Aoe;var f2={},Moe=Z1;Object.defineProperty(f2,"__esModule",{value:!0});var V4=f2.default=void 0,Ioe=Moe(K1()),Poe=E,koe=(0,Ioe.default)((0,Poe.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");V4=f2.default=koe;const Ma={DARK:"dark",LIGHT:"light"},G4=localStorage.theme===Ma.DARK||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?Ma.DARK:Ma.LIGHT;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:Q1(e)?2:J1(e)?3:0}function gs(e,t){return As(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Pm(e,t){return As(e)===2?e.get(t):e[t]}function H4(e,t,r){var n=As(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function W4(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Q1(e){return zoe&&e instanceof Map}function J1(e){return Boe&&e instanceof Set}function Sl(e){return e.o||e.t}function d2(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=j4(e);delete t[Ft];for(var r=Uc(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=Roe),Object.freeze(e),t&&Ts(e,function(r,n){return h2(n,!0)},!0)),e}function Roe(){Rr(2)}function p2(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ia(e){var t=DC[e];return t||Rr(18,e),t}function U4(e,t){DC[e]||(DC[e]=t)}function IC(){return mp}function DS(e,t){t&&(Ia("Patches"),e.u=[],e.s=[],e.v=t)}function Ry(e){PC(e),e.p.forEach(Loe),e.p=null}function PC(e){e===mp&&(mp=e.l)}function gR(e){return mp={p:[],l:mp,h:e,m:!0,_:0}}function Loe(e){var t=e[Ft];t.i===0||t.i===1?t.j():t.g=!0}function RS(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||Ia("ES5").S(t,e,n),n?(r[Ft].P&&(Ry(t),Rr(4)),qi(e)&&(e=Ly(t,e),t.l||Ey(t,e)),t.u&&Ia("Patches").M(r[Ft].t,e,t.u,t.s)):e=Ly(t,r,[]),Ry(t),t.u&&t.v(t.u,t.s),e!==g2?e:void 0}function Ly(e,t,r){if(p2(t))return t;var n=t[Ft];if(!n)return Ts(t,function(s,l){return mR(e,n,t,s,l,r)},!0),t;if(n.A!==e)return t;if(!n.P)return Ey(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=d2(n.k):n.o,a=i,o=!1;n.i===3&&(a=new Set(i),i.clear(),o=!0),Ts(a,function(s,l){return mR(e,n,i,s,l,r,o)}),Ey(e,i,!1),r&&e.u&&Ia("Patches").N(n,r,e.u,e.s)}return n.o}function mR(e,t,r,n,i,a,o){if(Yi(i)){var s=Ly(e,i,a&&t&&t.i!==3&&!gs(t.R,n)?a.concat(n):void 0);if(H4(r,n,s),!Yi(s))return;e.m=!1}else o&&r.add(i);if(qi(i)&&!p2(i)){if(!e.h.D&&e._<1)return;Ly(e,i),t&&t.A.l||Ey(e,i)}}function Ey(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&h2(t,r)}function LS(e,t){var r=e[Ft];return(r?Sl(r):e)[t]}function yR(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 Zo(e){e.P||(e.P=!0,e.l&&Zo(e.l))}function ES(e){e.o||(e.o=d2(e.t))}function kC(e,t,r){var n=Q1(t)?Ia("MapSet").F(t,r):J1(t)?Ia("MapSet").T(t,r):e.O?function(i,a){var o=Array.isArray(i),s={i:o?1:0,A:a?a.A:IC(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},l=s,u=yp;o&&(l=[s],u=Jd);var c=Proxy.revocable(l,u),f=c.revoke,d=c.proxy;return s.k=d,s.j=f,d}(t,r):Ia("ES5").J(t,r);return(r?r.A:IC()).p.push(n),n}function Eoe(e){return Yi(e)||Rr(22,e),function t(r){if(!qi(r))return r;var n,i=r[Ft],a=As(r);if(i){if(!i.P&&(i.i<4||!Ia("ES5").K(i)))return i.t;i.I=!0,n=xR(r,a),i.I=!1}else n=xR(r,a);return Ts(n,function(o,s){i&&Pm(i.t,o)===s||H4(n,o,t(s))}),a===3?new Set(n):n}(e)}function xR(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return d2(e)}function Ooe(){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[Ft];return yp.get(l,a)},set:function(l){var u=this[Ft];yp.set(u,a,l)}},s}function t(a){for(var o=a.length-1;o>=0;o--){var s=a[o][Ft];if(!s.P)switch(s.i){case 5:n(s)&&Zo(s);break;case 4:r(s)&&Zo(s)}}}function r(a){for(var o=a.t,s=a.k,l=Uc(s),u=l.length-1;u>=0;u--){var c=l[u];if(c!==Ft){var f=o[c];if(f===void 0&&!gs(o,c))return!0;var d=s[c],h=d&&d[Ft];if(h?h.t!==f:!W4(d,f))return!0}}var p=!!o[Ft];return l.length!==Uc(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=Ia("Patches").$;return Yi(r)?o(r,n):this.produce(r,function(s){return o(s,n)})},e}(),Hn=new $oe,lv=Hn.produce,Y4=Hn.produceWithPatches.bind(Hn);Hn.setAutoFreeze.bind(Hn);Hn.setUseProxies.bind(Hn);var _R=Hn.applyPatches.bind(Hn);Hn.createDraft.bind(Hn);Hn.finishDraft.bind(Hn);function xp(e){"@babel/helpers - typeof";return xp=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},xp(e)}function Voe(e,t){if(xp(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(xp(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Goe(e){var t=Voe(e,"string");return xp(t)==="symbol"?t:String(t)}function Hoe(e,t,r){return t=Goe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wR(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 CR(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(jr(1));return r(q4)(e,t)}if(typeof e!="function")throw new Error(jr(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(jr(3));return a}function f(v){if(typeof v!="function")throw new Error(jr(4));if(l)throw new Error(jr(5));var g=!0;return u(),s.push(v),function(){if(g){if(l)throw new Error(jr(6));g=!1,u();var y=s.indexOf(v);s.splice(y,1),o=null}}}function d(v){if(!Woe(v))throw new Error(jr(7));if(typeof v.type>"u")throw new Error(jr(8));if(l)throw new Error(jr(9));try{l=!0,a=i(a,v)}finally{l=!1}for(var g=o=s,m=0;m"u")throw new Error(jr(12));if(typeof r(void 0,{type:Oy.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(jr(13))})}function m2(e){for(var t=Object.keys(e),r={},n=0;n"u")throw u&&u.type,new Error(jr(14));f[h]=g,c=c||g!==v}return c=c||a.length!==Object.keys(l).length,c?f:l}}function Ny(){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 zy}function i(s,l){n(s)===zy&&(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 Xoe=function(t,r){return t===r};function Zoe(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 uv(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function y2(){for(var e=[],t=0;t{e.isDarkMode=t}}}),Cse=tG.actions,Tse=tG.reducer;function Ase(){const e=Ef(({theme:{isDarkMode:n}})=>n),t=Qd(Cse.setIsDarkMode);O.useEffect(()=>{t(G4===Ma.DARK)},[]);const r=()=>{localStorage.theme=e?Ma.LIGHT:Ma.DARK,t(!e)};return E.jsx(p4,{color:"inherit",onClick:r,children:e?E.jsx(V4,{}):E.jsx($4,{})})}const li={READY:"ready",RUNNING:"running",STOPPED:"stopped",SPAWNING:"spawning",CLEANUP:"cleanup",STOPPING:"stopping",MISSING:"missing"};function Mse({isDistributed:e,state:t,host:r,totalRps:n,failRatio:i,userCount:a,workerCount:o}){return E.jsxs(ht,{sx:{display:"flex",columnGap:2},children:[E.jsxs(ht,{sx:{display:"flex",flexDirection:"column"},children:[E.jsx(Xe,{variant:"button",children:"Host"}),E.jsx(Xe,{children:r})]}),E.jsx(hd,{flexItem:!0,orientation:"vertical"}),E.jsxs(ht,{sx:{display:"flex",flexDirection:"column"},children:[E.jsx(Xe,{variant:"button",children:"Status"}),E.jsx(Xe,{variant:"button",children:t})]}),t===li.RUNNING&&E.jsxs(E.Fragment,{children:[E.jsx(hd,{flexItem:!0,orientation:"vertical"}),E.jsxs(ht,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[E.jsx(Xe,{variant:"button",children:"Users"}),E.jsx(Xe,{variant:"button",children:a})]})]}),e&&E.jsxs(E.Fragment,{children:[E.jsx(hd,{flexItem:!0,orientation:"vertical"}),E.jsxs(ht,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[E.jsx(Xe,{variant:"button",children:"Workers"}),E.jsx(Xe,{variant:"button",children:o})]})]}),E.jsx(hd,{flexItem:!0,orientation:"vertical"}),E.jsxs(ht,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[E.jsx(Xe,{variant:"button",children:"RPS"}),E.jsx(Xe,{variant:"button",children:n})]}),E.jsx(hd,{flexItem:!0,orientation:"vertical"}),E.jsxs(ht,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[E.jsx(Xe,{variant:"button",children:"Failures"}),E.jsx(Xe,{variant:"button",children:`${i}%`})]})]})}const Ise=({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}),Pse=qn(Ise)(Mse);function rG({children:e,onSubmit:t}){const r=O.useCallback(async n=>{n.preventDefault();const i=new FormData(n.target),a={};for(const[o,s]of i.entries())a.hasOwnProperty(o)?(Array.isArray(a[o])||(a[o]=[a[o]]),a[o].push(s)):a[o]=s;t(a)},[t]);return E.jsx("form",{onSubmit:r,children:e})}var By=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 Fse(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var OR=Ms;function aG(e,t){if(e===t||!(OR(e)&&OR(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},Vse=function(e){return/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"")};function zR(e){if(!Ms(e))return e;for(var t=ir({},e),r=0,n=Object.entries(t);r"u"&&s===NR&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),function(x,S){return Vy(t,null,function(){var _,b,w,C,A,T,M,I,P,k,R,z,$,N,V,L,G,U,B,j,X,W,ee,te,ie,re,Q,J,fe,de,ke,We,Ge,at,ot,It;return By(this,function(Be){switch(Be.label){case 0:return _=S.signal,b=S.getState,w=S.extra,C=S.endpoint,A=S.forced,T=S.type,I=typeof x=="string"?{url:x}:x,P=I.url,k=I.headers,R=k===void 0?new Headers(m.headers):k,z=I.params,$=z===void 0?void 0:z,N=I.responseHandler,V=N===void 0?v??"json":N,L=I.validateStatus,G=L===void 0?g??$se:L,U=I.timeout,B=U===void 0?p:U,j=LR(I,["url","headers","params","responseHandler","validateStatus","timeout"]),X=ir(xa(ir({},m),{signal:_}),j),R=new Headers(zR(R)),W=X,[4,a(R,{getState:b,extra:w,endpoint:C,forced:A,type:T})];case 1:W.headers=Be.sent()||R,ee=function(Pt){return typeof Pt=="object"&&(Ms(Pt)||Array.isArray(Pt)||typeof Pt.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)),$&&(te=~P.indexOf("?")?"&":"?",ie=l?l($):new URLSearchParams(zR($)),P+=te+ie),P=zse(n,P),re=new Request(P,X),Q=re.clone(),M={request:Q},fe=!1,de=B&&setTimeout(function(){fe=!0,S.abort()},B),Be.label=2;case 2:return Be.trys.push([2,4,5,6]),[4,s(re)];case 3:return J=Be.sent(),[3,6];case 4:return ke=Be.sent(),[2,{error:{status:fe?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(ke)},meta:M}];case 5:return de&&clearTimeout(de),[7];case 6:We=J.clone(),M.response=We,at="",Be.label=7;case 7:return Be.trys.push([7,9,,10]),[4,Promise.all([y(J,V).then(function(Pt){return Ge=Pt},function(Pt){return ot=Pt}),We.text().then(function(Pt){return at=Pt},function(){})])];case 8:if(Be.sent(),ot)throw ot;return[3,10];case 9:return It=Be.sent(),[2,{error:{status:"PARSING_ERROR",originalStatus:J.status,data:at,error:String(It)},meta:M}];case 10:return[2,G(J,Ge)?{data:Ge,meta:M}:{error:{status:J.status,data:Ge},meta:M}]}})})};function y(x,S){return Vy(this,null,function(){var _;return By(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 BR=function(){function e(t,r){r===void 0&&(r=void 0),this.value=t,this.meta=r}return e}(),S2=Tn("__rtkq/focused"),oG=Tn("__rtkq/unfocused"),b2=Tn("__rtkq/online"),sG=Tn("__rtkq/offline"),La;(function(e){e.query="query",e.mutation="mutation"})(La||(La={}));function lG(e){return e.type===La.query}function Hse(e){return e.type===La.mutation}function uG(e,t,r,n,i,a){return Wse(e)?e(t,r,n,i).map(OC).map(a):Array.isArray(e)?e.map(OC).map(a):[]}function Wse(e){return typeof e=="function"}function OC(e){return typeof e=="string"?{type:e}:e}function FS(e){return e!=null}var bp=Symbol("forceQueryFn"),NC=function(e){return typeof e[bp]=="function"};function Use(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 Fy(Fy([],S(o)),S(s)).filter(BS)}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(BS)}}function m(){return function(S){return Object.values(s.get(S)||{}).filter(BS)}}function y(S,_){var b=function(w,C){var A=C===void 0?{}:C,T=A.subscribe,M=T===void 0?!0:T,I=A.forceRefetch,P=A.subscriptionOptions,k=bp,R=A[k];return function(z,$){var N,V,L=t({queryArgs:w,endpointDefinition:_,endpointName:S}),G=r((N={type:"query",subscribe:M,forceRefetch:I,subscriptionOptions:P,endpointName:S,originalArgs:w,queryCacheKey:L},N[bp]=R,N)),U=i.endpoints[S].select(w),B=z(G),j=U($()),X=B.requestId,W=B.abort,ee=j.requestId!==X,te=(V=o.get(z))==null?void 0:V[L],ie=function(){return U($())},re=Object.assign(R?B.then(ie):ee&&!te?Promise.resolve(j):Promise.all([te,B]).then(ie),{arg:w,requestId:X,subscriptionOptions:P,queryCacheKey:L,abort:W,unwrap:function(){return Vy(this,null,function(){var J;return By(this,function(fe){switch(fe.label){case 0:return[4,re];case 1:if(J=fe.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:L,requestId:X}))},updateSubscriptionOptions:function(J){re.subscriptionOptions=J,z(f({endpointName:S,requestId:X,queryCacheKey:L,options:J}))}});if(!te&&!ee&&!R){var Q=o.get(z)||{};Q[L]=re,o.set(z,Q),re.then(function(){delete Q[L],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,I){var P=n({type:"mutation",endpointName:S,originalArgs:_,track:A,fixedCacheKey:T}),k=M(P),R=k.requestId,z=k.abort,$=k.unwrap,N=k.unwrap().then(function(U){return{data:U}}).catch(function(U){return{error:U}}),V=function(){M(c({requestId:R,fixedCacheKey:T}))},L=Object.assign(N,{arg:k.arg,requestId:R,abort:z,unwrap:$,unsubscribe:V,reset:V}),G=s.get(M)||{};return s.set(M,G),G[R]=L,L.then(function(){delete G[R],Object.keys(G).length||s.delete(M)}),T&&(G[T]=L,L.then(function(){G[T]===L&&(delete G[T],Object.keys(G).length||s.delete(M))})),L}}}}function FR(e){return e}function jse(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(Yi(T.data)){var I=Y4(T.data,_),P=I[1],k=I[2];(C=M.patches).push.apply(C,P),(A=M.inversePatches).push.apply(A,k)}else{var R=_(T.data);M.patches.push({op:"replace",path:[],value:R}),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[bp]=function(){return{data:_}},w)))}},c=function(x,S){return Vy(t,[x,S],function(_,b){var w,C,A,T,M,I,P,k,R,z,$,N,V,L,G,U,B,j,X=b.signal,W=b.abort,ee=b.rejectWithValue,te=b.fulfillWithValue,ie=b.dispatch,re=b.getState,Q=b.extra;return By(this,function(J){switch(J.label){case 0:w=i[_.endpointName],J.label=1;case 1:return J.trys.push([1,8,,13]),C=FR,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"?_[bp]: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(fe){return n(fe,T,w.extraOptions)})];case 5:A=J.sent(),J.label=6;case 6:if(typeof process<"u",A.error)throw new BR(A.error,A.meta);return $=te,[4,C(A.data,A.meta,_.originalArgs)];case 7:return[2,$.apply(void 0,[J.sent(),(B={fulfilledTimeStamp:Date.now(),baseQueryMeta:A.meta},B[eh]=!0,B)])];case 8:if(N=J.sent(),V=N,!(V instanceof BR))return[3,12];L=FR,w.query&&w.transformErrorResponse&&(L=w.transformErrorResponse),J.label=9;case 9:return J.trys.push([9,11,,12]),G=ee,[4,L(V.value,V.meta,_.originalArgs)];case 10:return[2,G.apply(void 0,[J.sent(),(j={baseQueryMeta:V.meta},j[eh]=!0,j)])];case 11:return U=J.sent(),V=U,[3,12];case 12:throw typeof process<"u",console.error(V),V;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,I=(C=x.forceRefetch)!=null?C:x.subscribe&&T;return I?I===!0||(Number(new Date)-Number(M))/1e3>=I:!1}var d=kR(r+"/executeQuery",c,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[eh]=!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,I=x.originalArgs,P=T==null?void 0:T.originalArgs,k=i[x.endpointName];return OC(x)?!0:(T==null?void 0:T.status)==="pending"?!1:f(x,A)||lG(k)&&((C=k==null?void 0:k.forceRefetch)!=null&&C.call(k,{currentArg:I,previousArg:P,endpointState:T,state:A}))?!0:!M},dispatchConditionRejection:!0}),h=kR(r+"/executeMutation",c,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[eh]=!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(k){return k===void 0&&(k=!0),o.endpoints[x].initiate(S,{forceRefetch:k})},M=o.endpoints[x].select(S)(w());if(C)b(T());else if(A){var I=M==null?void 0:M.fulfilledTimeStamp;if(!I){b(T());return}var P=(Number(new Date)-Number(new Date(I)))/1e3>=A;P&&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:Dh(m2(x),m(S)),matchFulfilled:Dh(Tu(x),m(S)),matchRejected:Dh(Sp(x),m(S))}}return{queryThunk:d,mutationThunk:h,prefetch:g,updateQueryData:l,upsertQueryData:u,patchQueryData:s,buildMatchThunkActions:y}}function cG(e,t,r,n){return uG(r[e.meta.arg.endpointName][t],Tu(e)?e.payload:void 0,tx(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function ig(e,t,r){var n=e[t];n&&r(n)}function _p(e){var t;return(t="arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)!=null?t:e.requestId}function $R(e,t,r){var n=e[_p(t)];n&&r(n)}var gd={};function Yse(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=Tn(t+"/resetApiState"),d=fa({name:t+"/queries",initialState:gd,reducers:{removeQueryResult:{reducer:function(_,b){var w=b.payload.queryCacheKey;delete _[w]},prepare:zS()},queryResultPatched:function(_,b){var w=b.payload,C=w.queryCacheKey,A=w.patches;ig(_,C,function(T){T.data=_R(T.data,A.concat())})}},extraReducers:function(_){_.addCase(r.pending,function(b,w){var C=w.meta,A=w.meta.arg,T,M,I=OC(A);(A.subscribe||I)&&((M=b[T=A.queryCacheKey])!=null||(b[T]={status:Ht.uninitialized,endpointName:A.endpointName})),ig(b,A.queryCacheKey,function(P){P.status=Ht.pending,P.requestId=I&&P.requestId?P.requestId:C.requestId,A.originalArgs!==void 0&&(P.originalArgs=A.originalArgs),P.startedTimeStamp=C.startedTimeStamp})}).addCase(r.fulfilled,function(b,w){var C=w.meta,A=w.payload;ig(b,C.arg.queryCacheKey,function(T){var M;if(!(T.requestId!==C.requestId&&!OC(C.arg))){var I=a[C.arg.endpointName].merge;if(T.status=Ht.fulfilled,I)if(T.data!==void 0){var P=C.fulfilledTimeStamp,k=C.arg,R=C.baseQueryMeta,z=C.requestId,$=lv(T.data,function(N){return I(N,A,{arg:k.originalArgs,baseQueryMeta:R,fulfilledTimeStamp:P,requestId:z})});T.data=$}else T.data=A;else T.data=(M=a[C.arg.endpointName].structuralSharing)==null||M?aG(ji(T.data)?Doe(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,I=w.error,P=w.payload;ig(b,T.queryCacheKey,function(k){if(!A){if(k.requestId!==M)return;k.status=Ht.rejected,k.error=P??I}})}).addMatcher(l,function(b,w){for(var C=s(w).queries,A=0,T=Object.entries(C);A!Object.keys(e).length;function Ale(e,t){return{...e,...t}}const Mle=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},rx=(e,t)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:[...r[n]||[],i]}),e);function dG(e,t,r){return t&&(Array.isArray(t)?t.map(n=>dG(e,n,r)):typeof t=="object"?b2(t,r):t)}const b2=(e,t)=>Object.entries(e).reduce((r,[n,i])=>({...r,[t(n)]:dG(e,i,t)}),{}),hG=e=>e.replace(/_([a-z0-9])/g,(t,r)=>r.toUpperCase()),Ile=e=>e[0]===e[0].toUpperCase()?e:e.replace(/([a-z0-9])([A-Z0-9])/g,"$1_$2").toLowerCase(),$l=e=>b2(e,hG),Ple=e=>b2(e,Ile),kle=e=>e.replace(/([a-z0-9])([A-Z0-9])/g,"$1 $2").replace(/^./,t=>t.toUpperCase()),Dle=e=>Object.fromEntries(new URLSearchParams(e).entries()),Rle=(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]},NC=Cle({baseQuery:Gse(),endpoints:e=>({getStats:e.query({query:()=>"stats/requests",transformResponse:$l}),getTasks:e.query({query:()=>"tasks",transformResponse:$l}),getExceptions:e.query({query:()=>"exceptions",transformResponse:$l}),getLogs:e.query({query:()=>"logs",transformResponse:$l}),startSwarm:e.mutation({query:t=>({url:"swarm",method:"POST",body:Mle(Ple(t)),headers:{"content-type":"application/x-www-form-urlencoded"}})})})}),{useGetStatsQuery:Lle,useGetTasksQuery:Ele,useGetExceptionsQuery:Ole,useGetLogsQuery:Nle,useStartSwarmMutation:pG}=NC;function zle({onSubmit:e,spawnRate:t,userCount:r}){const[n]=pG(),i=a=>{e(),n(a)};return E.jsxs(Lf,{maxWidth:"md",sx:{my:2},children:[E.jsx(Xe,{component:"h2",noWrap:!0,variant:"h6",children:"Edit running load test"}),E.jsx(rG,{onSubmit:i,children:E.jsxs(ht,{sx:{my:2,display:"flex",flexDirection:"column",rowGap:4},children:[E.jsx(Bl,{defaultValue:r||1,label:"Number of users (peak concurrency)",name:"userCount"}),E.jsx(Bl,{defaultValue:t||1,label:"Ramp Up (users started/second)",name:"spawnRate"}),E.jsx(Cu,{size:"large",type:"submit",variant:"contained",children:"Update Swarm"})]})})]})}const Ble=({swarm:{spawnRate:e,userCount:t}})=>({spawnRate:e,userCount:t}),Fle=qn(Ble)(zle);function $le(){const[e,t]=O.useState(!1);return E.jsxs(E.Fragment,{children:[E.jsx(Cu,{color:"secondary",onClick:()=>t(!0),type:"button",variant:"contained",children:"Edit"}),E.jsx(l2,{onClose:()=>t(!1),open:e,children:E.jsx(Fle,{onSubmit:()=>t(!1)})})]})}var _2={},Vle=Z1;Object.defineProperty(_2,"__esModule",{value:!0});var w2=_2.default=void 0,Gle=Vle(K1()),Hle=E,Wle=(0,Gle.default)((0,Hle.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");w2=_2.default=Wle;function zC({label:e,name:t,options:r,multiple:n=!1,defaultValue:i,sx:a}){return E.jsxs(b4,{sx:a,children:[E.jsx(T4,{htmlFor:t,shrink:!0,children:e}),E.jsx(N4,{defaultValue:i||n&&r||r[0],id:t,label:e,multiple:n,name:t,native:!0,children:r.map((o,s)=>E.jsx("option",{value:o,children:o},`option-${o}-${s}`))})]})}const ZR=e=>e.defaultValue!==null&&typeof e.defaultValue!="boolean";function Ule({label:e,defaultValue:t,choices:r,helpText:n,isSecret:i}){const a=kle(e),o=n?`${a} (${n})`:a;return r?E.jsx(zC,{defaultValue:t,label:o,name:e,options:r,sx:{width:"100%"}}):E.jsx(Bl,{defaultValue:t,label:o,name:e,sx:{width:"100%"},type:i?"password":"text"})}function jle({extraOptions:e}){const t=O.useMemo(()=>Object.entries(e).reduce((n,[i,a])=>ZR(a)?[...n,{label:i,...a}]:n,[]),[e]),r=O.useMemo(()=>Object.keys(e).reduce((n,i)=>ZR(e[i])?n:[...n,i],[]),[e]);return E.jsxs(f4,{children:[E.jsx(h4,{expandIcon:E.jsx(w2,{}),children:E.jsx(Xe,{children:"Custom parameters"})}),E.jsx(d4,{children:E.jsxs(ht,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[t.map((n,i)=>E.jsx(Ule,{...n},`valid-parameter-${i}`)),E.jsx(ht,{children:r&&E.jsxs(E.Fragment,{children:[E.jsx(Xe,{children:"The following custom parameters can't be set in the Web UI, because it is a boolean or None type:"}),E.jsx("ul",{children:r.map((n,i)=>E.jsx("li",{children:E.jsx(Xe,{children:n})},`invalid-parameter-${i}`))})]})})]})})]})}function C2(e,{payload:t}){return Ale(e,t)}const Yle=$l(window.templateArgs),vG=fa({name:"swarm",initialState:Yle,reducers:{setSwarm:C2}}),gG=vG.actions,qle=vG.reducer;function Xle({availableShapeClasses:e,availableUserClasses:t,host:r,extraOptions:n,isShape:i,numUsers:a,overrideHostWarning:o,runTime:s,setSwarm:l,showUserclassPicker:u,spawnRate:c}){const[f]=pG(),d=h=>{l({state:li.RUNNING,host:h.host||r}),f(h)};return E.jsxs(Lf,{maxWidth:"md",sx:{my:2},children:[E.jsx(Xe,{component:"h2",noWrap:!0,variant:"h6",children:"Start new load test"}),E.jsx(rG,{onSubmit:d,children:E.jsxs(ht,{sx:{my:2,display:"flex",flexDirection:"column",rowGap:4},children:[u&&E.jsxs(E.Fragment,{children:[E.jsx(zC,{label:"User Classes",multiple:!0,name:"userClasses",options:t}),E.jsx(zC,{label:"Shape Class",name:"shapeClass",options:e})]}),E.jsx(Bl,{defaultValue:i&&"-"||a||1,disabled:!!i,label:"Number of users (peak concurrency)",name:"userCount"}),E.jsx(Bl,{defaultValue:i&&"-"||c||1,disabled:!!i,label:"Ramp Up (users started/second)",name:"spawnRate",title:"Disabled for tests using LoadTestShape class"}),E.jsx(Bl,{defaultValue:r,label:`Host ${o?"(setting this will override the host for the User classes)":""}`,name:"host",title:"Disabled for tests using LoadTestShape class"}),E.jsxs(f4,{children:[E.jsx(h4,{expandIcon:E.jsx(w2,{}),children:E.jsx(Xe,{children:"Advanced options"})}),E.jsx(d4,{children:E.jsx(Bl,{defaultValue:s,label:"Run time (e.g. 20, 20s, 3m, 2h, 1h20m, 3h30m10s, etc.)",name:"runTime",sx:{width:"100%"}})})]}),!Tle(n)&&E.jsx(jle,{extraOptions:n}),E.jsx(Cu,{size:"large",type:"submit",variant:"contained",children:"Start Swarm"})]})})]})}const Zle=({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}),Kle={setSwarm:gG.setSwarm},mG=qn(Zle,Kle)(Xle);function Qle(){const[e,t]=O.useState(!1);return E.jsxs(E.Fragment,{children:[E.jsx(Cu,{color:"success",onClick:()=>t(!0),type:"button",variant:"contained",children:"New"}),E.jsx(l2,{onClose:()=>t(!1),open:e,children:E.jsx(mG,{})})]})}function Jle(){const e=()=>{fetch("stats/reset")};return E.jsx(Cu,{color:"warning",onClick:e,type:"button",variant:"contained",children:"Reset"})}function eue(){const[e,t]=O.useState(!1);O.useEffect(()=>{t(!1)},[]);const r=()=>{fetch("stop"),t(!0)};return E.jsx(Cu,{color:"error",disabled:e,onClick:r,type:"button",variant:"contained",children:e?"Loading":"Stop"})}function tue(){const e=Ef(({swarm:t})=>t.state);return e===li.READY?null:e===li.STOPPED?E.jsx(Qle,{}):E.jsxs(ht,{sx:{display:"flex",columnGap:2},children:[E.jsx($le,{}),E.jsx(eue,{}),E.jsx(Jle,{})]})}function rue(){return E.jsx(Qee,{position:"static",children:E.jsx(Lf,{maxWidth:"xl",children:E.jsxs(Pae,{sx:{display:"flex",justifyContent:"space-between"},children:[E.jsxs(si,{color:"inherit",href:"/",sx:{display:"flex",alignItems:"center",columnGap:2},underline:"none",children:[E.jsx("img",{height:"52",src:"/assets/logo.png",width:"52"}),E.jsx(Xe,{component:"h1",noWrap:!0,sx:{fontWeight:700,display:"flex",alignItems:"center"},variant:"h3",children:"Locust"})]}),E.jsxs(ht,{sx:{display:"flex",columnGap:6},children:[E.jsx(Pse,{}),E.jsx(tue,{}),E.jsx(Ase,{})]})]})})})}function nue({children:e}){return E.jsxs(E.Fragment,{children:[E.jsx(rue,{}),E.jsx("main",{children:e}),E.jsx(_oe,{})]})}function iue(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const aue=/[ \t\n\f\r]/g;function oue(e){return typeof e=="object"?e.type==="text"?KR(e.value):!1:KR(e)}function KR(e){return e.replace(aue,"")===""}class cv{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}}cv.prototype.property={};cv.prototype.normal={};cv.prototype.space=null;function yG(e,t){const r={},n={};let i=-1;for(;++i4&&r.slice(0,4)==="data"&&fue.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(JR,vue);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!JR.test(a)){let o=a.replace(due,pue);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=T2}return new i(n,t)}function pue(e){return"-"+e.toLowerCase()}function vue(e){return e.charAt(1).toUpperCase()}const gue={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"},mue=yG([bG,SG,CG,TG,uue],"html"),AG=yG([bG,SG,CG,TG,cue],"svg");function yue(e){return e.join(" ").trim()}var A2={exports:{}},eL=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,xue=/\n/g,Sue=/^\s*/,bue=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,_ue=/^:\s*/,wue=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Cue=/^[;\s]*/,Tue=/^\s+|\s+$/g,Aue=` -`,tL="/",rL="*",Pl="",Mue="comment",Iue="declaration",Pue=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(xue);v&&(r+=v.length);var g=p.lastIndexOf(Aue);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(Sue)}function c(p){var v;for(p=p||[];v=f();)v!==!1&&p.push(v);return p}function f(){var p=a();if(!(tL!=e.charAt(0)||rL!=e.charAt(1))){for(var v=2;Pl!=e.charAt(v)&&(rL!=e.charAt(v)||tL!=e.charAt(v+1));)++v;if(v+=2,Pl===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:Mue,comment:g})}}function d(){var p=a(),v=l(bue);if(v){if(f(),!l(_ue))return s("property missing ':'");var g=l(wue),m=p({type:Iue,property:nL(v[0].replace(eL,Pl)),value:g?nL(g[0].replace(eL,Pl)):Pl});return l(Cue),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 nL(e){return e?e.replace(Tue,Pl):Pl}var kue=Pue;function MG(e,t){var r=null;if(!e||typeof e!="string")return r;for(var n,i=kue(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 Lue(e){const t=M2(e),r=IG(e);if(t&&r)return{start:t,end:r}}function Rh(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?iL(e.position):"start"in e||"end"in e?iL(e):"line"in e||"column"in e?$C(e):""}function $C(e){return aL(e&&e.line)+":"+aL(e&&e.column)}function iL(e){return $C(e&&e.start)+"-"+$C(e&&e.end)}function aL(e){return e&&typeof e=="number"?e:1}class dn 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=Rh(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}}dn.prototype.file="";dn.prototype.name="";dn.prototype.reason="";dn.prototype.message="";dn.prototype.stack="";dn.prototype.column=void 0;dn.prototype.line=void 0;dn.prototype.ancestors=void 0;dn.prototype.cause=void 0;dn.prototype.fatal=void 0;dn.prototype.place=void 0;dn.prototype.ruleId=void 0;dn.prototype.source=void 0;const I2={}.hasOwnProperty,Eue=new Map,Oue=/[A-Z]/g,Nue=/-([a-z])/g,zue=new Set(["table","tbody","thead","tfoot","tr"]),Bue=new Set(["td","th"]);function Fue(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=Vue(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=$ue(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"?AG:mue,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=kG(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function kG(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=AG,e.schema=i),e.ancestors.push(t);let a=Gue(e,t);const o=Hue(e,e.ancestors);let s=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(a&&zue.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!oue(l):!0})),I2.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 $ue(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 Vue(e,t){return r;function r(n,i,a,o){const s=Array.isArray(a.children),l=M2(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 Gue(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:Eue;for(;++n-1&&e.test(String.fromCharCode(r))}}const tce={'"':"quot","&":"amp","<":"lt",">":"gt"};function rce(e){return e.replace(/["&<>]/g,t);function t(r){return"&"+tce[r]+";"}}function nce(e,t){const r=rce(Mu(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 Mu(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 ice={};function ace(e,t){const r=t||ice,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return RG(e,n,i)}function RG(e,t,r){if(oce(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 oL(e.children,t,r)}return Array.isArray(e)?oL(e,t,r):""}function oL(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?(Ea(e,e.length,0,t),e):t}const lL={}.hasOwnProperty;function sce(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 Yc(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 pce(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 cL(e){if(e===null||An(e)||ece(e))return 1;if(Jue(e))return 2}function k2(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);fL(f,-l),fL(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=ui(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=ui(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),u=ui(u,k2(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=ui(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=ui(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,Ea(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||Ve(b)?e.check(dL,v,S)(b):(e.enter("codeFlowValue"),x(b))}function x(b){return b===null||Ve(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(R){return b.enter("lineEnding"),b.consume(R),b.exit("lineEnding"),M}function M(R){return b.enter("codeFencedFence"),mt(R)?Nt(b,I,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):I(R)}function I(R){return R===s?(b.enter("codeFencedFenceSequence"),P(R)):C(R)}function P(R){return R===s?(A++,b.consume(R),P):A>=o?(b.exit("codeFencedFenceSequence"),mt(R)?Nt(b,k,"whitespace")(R):k(R)):C(R)}function k(R){return R===null||Ve(R)?(b.exit("codeFencedFence"),w(R)):C(R)}}}function Ace(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 WS={name:"codeIndented",tokenize:Ice},Mce={tokenize:Pce,partial:!0};function Ice(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):Ve(u)?e.attempt(Mce,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||Ve(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function Pce(e,t,r){const n=this;return i;function i(o){return n.parser.lazy[n.now().line]?r(o):Ve(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):Ve(o)?i(o):r(o)}}const kce={name:"codeText",tokenize:Lce,resolve:Dce,previous:Rce};function Dce(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 BG(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||VC(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||Ve(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||An(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):Ve(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||Ve(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 $G(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):Ve(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||Ve(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 Lh(e,t){let r;return n;function n(i){return Ve(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 $ce={name:"definition",tokenize:Gce},Vce={tokenize:Hce,partial:!0};function Gce(e,t,r){const n=this;let i;return a;function a(h){return e.enter("definition"),o(h)}function o(h){return FG.call(n,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=Yc(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 An(h)?Lh(e,u)(h):u(h)}function u(h){return BG(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(Vce,f,f)(h)}function f(h){return mt(h)?Nt(e,d,"whitespace")(h):d(h)}function d(h){return h===null||Ve(h)?(e.exit("definition"),n.parser.defined.push(i),t(h)):r(h)}}function Hce(e,t,r){return n;function n(s){return An(s)?Lh(e,i)(s):r(s)}function i(s){return $G(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||Ve(s)?t(s):r(s)}}const Wce={name:"hardBreakEscape",tokenize:Uce};function Uce(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Ve(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const jce={name:"headingAtx",tokenize:qce,resolve:Yce};function Yce(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"},Ea(e,n,r-n+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function qce(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||An(c)?(e.exit("atxHeadingSequence"),s(c)):r(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||Ve(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||An(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const Xce=["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"],pL=["pre","script","style","textarea"],Zce={name:"htmlFlow",tokenize:efe,resolveTo:Jce,concrete:!0},Kce={tokenize:rfe,partial:!0},Qce={tokenize:tfe,partial:!0};function Jce(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 efe(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:L):pa(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):pa(B)?(e.consume(B),i=4,n.interrupt?t:L):r(B)}function h(B){return B===45?(e.consume(B),n.interrupt?t:L):r(B)}function p(B){const j="CDATA[";return B===j.charCodeAt(s++)?(e.consume(B),s===j.length?n.interrupt?t:I:p):r(B)}function v(B){return pa(B)?(e.consume(B),o=String.fromCharCode(B),g):r(B)}function g(B){if(B===null||B===47||B===62||An(B)){const j=B===47,X=o.toLowerCase();return!j&&!a&&pL.includes(X)?(i=1,n.interrupt?t(B):I(B)):Xce.includes(o.toLowerCase())?(i=6,j?(e.consume(B),m):n.interrupt?t(B):I(B)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(B):a?y(B):x(B))}return B===45||zn(B)?(e.consume(B),o+=String.fromCharCode(B),g):r(B)}function m(B){return B===62?(e.consume(B),n.interrupt?t:I):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||pa(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||zn(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||Ve(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||An(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||Ve(B)?I(B):mt(B)?(e.consume(B),M):r(B)}function I(B){return B===45&&i===2?(e.consume(B),z):B===60&&i===1?(e.consume(B),$):B===62&&i===4?(e.consume(B),G):B===63&&i===3?(e.consume(B),L):B===93&&i===5?(e.consume(B),V):Ve(B)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Kce,U,P)(B)):B===null||Ve(B)?(e.exit("htmlFlowData"),P(B)):(e.consume(B),I)}function P(B){return e.check(Qce,k,U)(B)}function k(B){return e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),R}function R(B){return B===null||Ve(B)?P(B):(e.enter("htmlFlowData"),I(B))}function z(B){return B===45?(e.consume(B),L):I(B)}function $(B){return B===47?(e.consume(B),o="",N):I(B)}function N(B){if(B===62){const j=o.toLowerCase();return pL.includes(j)?(e.consume(B),G):I(B)}return pa(B)&&o.length<8?(e.consume(B),o+=String.fromCharCode(B),N):I(B)}function V(B){return B===93?(e.consume(B),L):I(B)}function L(B){return B===62?(e.consume(B),G):B===45&&i===2?(e.consume(B),L):I(B)}function G(B){return B===null||Ve(B)?(e.exit("htmlFlowData"),U(B)):(e.consume(B),G)}function U(B){return e.exit("htmlFlow"),t(B)}}function tfe(e,t,r){const n=this;return i;function i(o){return Ve(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 rfe(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(nx,t,r)}}const nfe={name:"htmlText",tokenize:ife};function ife(e,t,r){const n=this;let i,a,o;return s;function s(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),l}function l(L){return L===33?(e.consume(L),u):L===47?(e.consume(L),_):L===63?(e.consume(L),x):pa(L)?(e.consume(L),C):r(L)}function u(L){return L===45?(e.consume(L),c):L===91?(e.consume(L),a=0,p):pa(L)?(e.consume(L),y):r(L)}function c(L){return L===45?(e.consume(L),h):r(L)}function f(L){return L===null?r(L):L===45?(e.consume(L),d):Ve(L)?(o=f,$(L)):(e.consume(L),f)}function d(L){return L===45?(e.consume(L),h):f(L)}function h(L){return L===62?z(L):L===45?d(L):f(L)}function p(L){const G="CDATA[";return L===G.charCodeAt(a++)?(e.consume(L),a===G.length?v:p):r(L)}function v(L){return L===null?r(L):L===93?(e.consume(L),g):Ve(L)?(o=v,$(L)):(e.consume(L),v)}function g(L){return L===93?(e.consume(L),m):v(L)}function m(L){return L===62?z(L):L===93?(e.consume(L),m):v(L)}function y(L){return L===null||L===62?z(L):Ve(L)?(o=y,$(L)):(e.consume(L),y)}function x(L){return L===null?r(L):L===63?(e.consume(L),S):Ve(L)?(o=x,$(L)):(e.consume(L),x)}function S(L){return L===62?z(L):x(L)}function _(L){return pa(L)?(e.consume(L),b):r(L)}function b(L){return L===45||zn(L)?(e.consume(L),b):w(L)}function w(L){return Ve(L)?(o=w,$(L)):mt(L)?(e.consume(L),w):z(L)}function C(L){return L===45||zn(L)?(e.consume(L),C):L===47||L===62||An(L)?A(L):r(L)}function A(L){return L===47?(e.consume(L),z):L===58||L===95||pa(L)?(e.consume(L),T):Ve(L)?(o=A,$(L)):mt(L)?(e.consume(L),A):z(L)}function T(L){return L===45||L===46||L===58||L===95||zn(L)?(e.consume(L),T):M(L)}function M(L){return L===61?(e.consume(L),I):Ve(L)?(o=M,$(L)):mt(L)?(e.consume(L),M):A(L)}function I(L){return L===null||L===60||L===61||L===62||L===96?r(L):L===34||L===39?(e.consume(L),i=L,P):Ve(L)?(o=I,$(L)):mt(L)?(e.consume(L),I):(e.consume(L),k)}function P(L){return L===i?(e.consume(L),i=void 0,R):L===null?r(L):Ve(L)?(o=P,$(L)):(e.consume(L),P)}function k(L){return L===null||L===34||L===39||L===60||L===61||L===96?r(L):L===47||L===62||An(L)?A(L):(e.consume(L),k)}function R(L){return L===47||L===62||An(L)?A(L):r(L)}function z(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),t):r(L)}function $(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),N}function N(L){return mt(L)?Nt(e,V,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):V(L)}function V(L){return e.enter("htmlTextData"),o(L)}}const D2={name:"labelEnd",tokenize:cfe,resolveTo:ufe,resolveAll:lfe},afe={tokenize:ffe},ofe={tokenize:dfe},sfe={tokenize:hfe};function lfe(e){let t=-1;for(;++t=3&&(u===null||Ve(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 vn={name:"list",tokenize:_fe,continuation:{tokenize:wfe},exit:Tfe},Sfe={tokenize:Afe,partial:!0},bfe={tokenize:Cfe,partial:!0};function _fe(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:GC(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(Dm,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 GC(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(nx,n.interrupt?r:c,e.attempt(Sfe,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 wfe(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(nx,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(bfe,t,o)(s))}function o(s){return n.containerState._closeFlow=!0,n.interrupt=void 0,Nt(e,e.attempt(vn,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function Cfe(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 Tfe(e){e.exit(this.containerState.type)}function Afe(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 vL={name:"setextUnderline",tokenize:Ife,resolveTo:Mfe};function Mfe(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 Ife(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||Ve(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const Pfe={tokenize:kfe};function kfe(e){const t=this,r=e.attempt(nx,n,e.attempt(this.parser.constructs.flowInitial,i,Nt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Oce,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 Dfe={resolveAll:GG()},Rfe=VG("string"),Lfe=VG("text");function VG(e){return{tokenize:t,resolveAll:GG(e==="text"?Efe: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 zfe(e,t){let r=-1;const n=[];let i;for(;++r=I:!1}var d=kR(r+"/executeQuery",c,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[eh]=!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,I=x.originalArgs,P=T==null?void 0:T.originalArgs,k=i[x.endpointName];return NC(x)?!0:(T==null?void 0:T.status)==="pending"?!1:f(x,A)||lG(k)&&((C=k==null?void 0:k.forceRefetch)!=null&&C.call(k,{currentArg:I,previousArg:P,endpointState:T,state:A}))?!0:!M},dispatchConditionRejection:!0}),h=kR(r+"/executeMutation",c,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[eh]=!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(k){return k===void 0&&(k=!0),o.endpoints[x].initiate(S,{forceRefetch:k})},M=o.endpoints[x].select(S)(w());if(C)b(T());else if(A){var I=M==null?void 0:M.fulfilledTimeStamp;if(!I){b(T());return}var P=(Number(new Date)-Number(new Date(I)))/1e3>=A;P&&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:Dh(y2(x),m(S)),matchFulfilled:Dh(Tu(x),m(S)),matchRejected:Dh(Sp(x),m(S))}}return{queryThunk:d,mutationThunk:h,prefetch:g,updateQueryData:l,upsertQueryData:u,patchQueryData:s,buildMatchThunkActions:y}}function cG(e,t,r,n){return uG(r[e.meta.arg.endpointName][t],Tu(e)?e.payload:void 0,tx(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function ig(e,t,r){var n=e[t];n&&r(n)}function _p(e){var t;return(t="arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)!=null?t:e.requestId}function $R(e,t,r){var n=e[_p(t)];n&&r(n)}var gd={};function Yse(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=Tn(t+"/resetApiState"),d=Bi({name:t+"/queries",initialState:gd,reducers:{removeQueryResult:{reducer:function(_,b){var w=b.payload.queryCacheKey;delete _[w]},prepare:BS()},queryResultPatched:function(_,b){var w=b.payload,C=w.queryCacheKey,A=w.patches;ig(_,C,function(T){T.data=_R(T.data,A.concat())})}},extraReducers:function(_){_.addCase(r.pending,function(b,w){var C=w.meta,A=w.meta.arg,T,M,I=NC(A);(A.subscribe||I)&&((M=b[T=A.queryCacheKey])!=null||(b[T]={status:Ht.uninitialized,endpointName:A.endpointName})),ig(b,A.queryCacheKey,function(P){P.status=Ht.pending,P.requestId=I&&P.requestId?P.requestId:C.requestId,A.originalArgs!==void 0&&(P.originalArgs=A.originalArgs),P.startedTimeStamp=C.startedTimeStamp})}).addCase(r.fulfilled,function(b,w){var C=w.meta,A=w.payload;ig(b,C.arg.queryCacheKey,function(T){var M;if(!(T.requestId!==C.requestId&&!NC(C.arg))){var I=a[C.arg.endpointName].merge;if(T.status=Ht.fulfilled,I)if(T.data!==void 0){var P=C.fulfilledTimeStamp,k=C.arg,R=C.baseQueryMeta,z=C.requestId,$=lv(T.data,function(N){return I(N,A,{arg:k.originalArgs,baseQueryMeta:R,fulfilledTimeStamp:P,requestId:z})});T.data=$}else T.data=A;else T.data=(M=a[C.arg.endpointName].structuralSharing)==null||M?aG(Yi(T.data)?Doe(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,I=w.error,P=w.payload;ig(b,T.queryCacheKey,function(k){if(!A){if(k.requestId!==M)return;k.status=Ht.rejected,k.error=P??I}})}).addMatcher(l,function(b,w){for(var C=s(w).queries,A=0,T=Object.entries(C);AArray.isArray(e)?e.length:Object.keys(e).length,Ale=e=>Tle(e)===0;function Mle(e,t){return{...e,...t}}const Ile=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},rx=(e,t)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:[...r[n]||[],i]}),e);function dG(e,t,r){return t&&(Array.isArray(t)?t.map(n=>dG(e,n,r)):typeof t=="object"?_2(t,r):t)}const _2=(e,t)=>Object.entries(e).reduce((r,[n,i])=>({...r,[t(n)]:dG(e,i,t)}),{}),hG=e=>e.replace(/_([a-z0-9])/g,(t,r)=>r.toUpperCase()),Ple=e=>e[0]===e[0].toUpperCase()?e:e.replace(/([a-z0-9])([A-Z0-9])/g,"$1_$2").toLowerCase(),$l=e=>_2(e,hG),kle=e=>_2(e,Ple),Dle=e=>e.replace(/([a-z0-9])([A-Z0-9])/g,"$1 $2").replace(/^./,t=>t.toUpperCase()),Rle=e=>Object.fromEntries(new URLSearchParams(e).entries()),Lle=(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]},zC=Cle({baseQuery:Gse(),endpoints:e=>({getStats:e.query({query:()=>"stats/requests",transformResponse:$l}),getTasks:e.query({query:()=>"tasks",transformResponse:$l}),getExceptions:e.query({query:()=>"exceptions",transformResponse:$l}),getLogs:e.query({query:()=>"logs",transformResponse:$l}),startSwarm:e.mutation({query:t=>({url:"swarm",method:"POST",body:Ile(kle(t)),headers:{"content-type":"application/x-www-form-urlencoded"}})})})}),{useGetStatsQuery:Ele,useGetTasksQuery:Ole,useGetExceptionsQuery:Nle,useGetLogsQuery:zle,useStartSwarmMutation:pG}=zC;function Ble({onSubmit:e,spawnRate:t,userCount:r}){const[n]=pG(),i=a=>{e(),n(a)};return E.jsxs(Lf,{maxWidth:"md",sx:{my:2},children:[E.jsx(Xe,{component:"h2",noWrap:!0,variant:"h6",children:"Edit running load test"}),E.jsx(rG,{onSubmit:i,children:E.jsxs(ht,{sx:{my:2,display:"flex",flexDirection:"column",rowGap:4},children:[E.jsx(Bl,{defaultValue:r||1,label:"Number of users (peak concurrency)",name:"userCount"}),E.jsx(Bl,{defaultValue:t||1,label:"Ramp Up (users started/second)",name:"spawnRate"}),E.jsx(Cu,{size:"large",type:"submit",variant:"contained",children:"Update Swarm"})]})})]})}const Fle=({swarm:{spawnRate:e,userCount:t}})=>({spawnRate:e,userCount:t}),$le=qn(Fle)(Ble);function Vle(){const[e,t]=O.useState(!1);return E.jsxs(E.Fragment,{children:[E.jsx(Cu,{color:"secondary",onClick:()=>t(!0),type:"button",variant:"contained",children:"Edit"}),E.jsx(u2,{onClose:()=>t(!1),open:e,children:E.jsx($le,{onSubmit:()=>t(!1)})})]})}var w2={},Gle=Z1;Object.defineProperty(w2,"__esModule",{value:!0});var C2=w2.default=void 0,Hle=Gle(K1()),Wle=E,Ule=(0,Hle.default)((0,Wle.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");C2=w2.default=Ule;function BC({label:e,name:t,options:r,multiple:n=!1,defaultValue:i,sx:a}){return E.jsxs(b4,{sx:a,children:[E.jsx(T4,{htmlFor:t,shrink:!0,children:e}),E.jsx(N4,{defaultValue:i||n&&r||r[0],id:t,label:e,multiple:n,name:t,native:!0,children:r.map((o,s)=>E.jsx("option",{value:o,children:o},`option-${o}-${s}`))})]})}const ZR=e=>e.defaultValue!==null&&typeof e.defaultValue!="boolean";function jle({label:e,defaultValue:t,choices:r,helpText:n,isSecret:i}){const a=Dle(e),o=n?`${a} (${n})`:a;return r?E.jsx(BC,{defaultValue:t,label:o,name:e,options:r,sx:{width:"100%"}}):E.jsx(Bl,{defaultValue:t,label:o,name:e,sx:{width:"100%"},type:i?"password":"text"})}function Yle({extraOptions:e}){const t=O.useMemo(()=>Object.entries(e).reduce((n,[i,a])=>ZR(a)?[...n,{label:i,...a}]:n,[]),[e]),r=O.useMemo(()=>Object.keys(e).reduce((n,i)=>ZR(e[i])?n:[...n,i],[]),[e]);return E.jsxs(f4,{children:[E.jsx(h4,{expandIcon:E.jsx(C2,{}),children:E.jsx(Xe,{children:"Custom parameters"})}),E.jsx(d4,{children:E.jsxs(ht,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[t.map((n,i)=>E.jsx(jle,{...n},`valid-parameter-${i}`)),E.jsx(ht,{children:r&&E.jsxs(E.Fragment,{children:[E.jsx(Xe,{children:"The following custom parameters can't be set in the Web UI, because it is a boolean or None type:"}),E.jsx("ul",{children:r.map((n,i)=>E.jsx("li",{children:E.jsx(Xe,{children:n})},`invalid-parameter-${i}`))})]})})]})})]})}function nx(e,{payload:t}){return Mle(e,t)}const qle=$l(window.templateArgs),vG=Bi({name:"swarm",initialState:qle,reducers:{setSwarm:nx}}),gG=vG.actions,Xle=vG.reducer;function Zle({availableShapeClasses:e,availableUserClasses:t,host:r,extraOptions:n,isShape:i,numUsers:a,overrideHostWarning:o,runTime:s,setSwarm:l,showUserclassPicker:u,spawnRate:c}){const[f]=pG(),d=h=>{l({state:li.RUNNING,host:h.host||r}),f(h)};return E.jsxs(Lf,{maxWidth:"md",sx:{my:2},children:[E.jsx(Xe,{component:"h2",noWrap:!0,variant:"h6",children:"Start new load test"}),E.jsx(rG,{onSubmit:d,children:E.jsxs(ht,{sx:{my:2,display:"flex",flexDirection:"column",rowGap:4},children:[u&&E.jsxs(E.Fragment,{children:[E.jsx(BC,{label:"User Classes",multiple:!0,name:"userClasses",options:t}),E.jsx(BC,{label:"Shape Class",name:"shapeClass",options:e})]}),E.jsx(Bl,{defaultValue:i&&"-"||a||1,disabled:!!i,label:"Number of users (peak concurrency)",name:"userCount"}),E.jsx(Bl,{defaultValue:i&&"-"||c||1,disabled:!!i,label:"Ramp Up (users started/second)",name:"spawnRate",title:"Disabled for tests using LoadTestShape class"}),E.jsx(Bl,{defaultValue:r,label:`Host ${o?"(setting this will override the host for the User classes)":""}`,name:"host",title:"Disabled for tests using LoadTestShape class"}),E.jsxs(f4,{children:[E.jsx(h4,{expandIcon:E.jsx(C2,{}),children:E.jsx(Xe,{children:"Advanced options"})}),E.jsx(d4,{children:E.jsx(Bl,{defaultValue:s,label:"Run time (e.g. 20, 20s, 3m, 2h, 1h20m, 3h30m10s, etc.)",name:"runTime",sx:{width:"100%"}})})]}),!Ale(n)&&E.jsx(Yle,{extraOptions:n}),E.jsx(Cu,{size:"large",type:"submit",variant:"contained",children:"Start Swarm"})]})})]})}const Kle=({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}),Qle={setSwarm:gG.setSwarm},mG=qn(Kle,Qle)(Zle);function Jle(){const[e,t]=O.useState(!1);return E.jsxs(E.Fragment,{children:[E.jsx(Cu,{color:"success",onClick:()=>t(!0),type:"button",variant:"contained",children:"New"}),E.jsx(u2,{onClose:()=>t(!1),open:e,children:E.jsx(mG,{})})]})}function eue(){const e=()=>{fetch("stats/reset")};return E.jsx(Cu,{color:"warning",onClick:e,type:"button",variant:"contained",children:"Reset"})}function tue(){const[e,t]=O.useState(!1);O.useEffect(()=>{t(!1)},[]);const r=()=>{fetch("stop"),t(!0)};return E.jsx(Cu,{color:"error",disabled:e,onClick:r,type:"button",variant:"contained",children:e?"Loading":"Stop"})}function rue(){const e=Ef(({swarm:t})=>t.state);return e===li.READY?null:e===li.STOPPED?E.jsx(Jle,{}):E.jsxs(ht,{sx:{display:"flex",columnGap:2},children:[E.jsx(Vle,{}),E.jsx(tue,{}),E.jsx(eue,{})]})}function nue(){return E.jsx(Qee,{position:"static",children:E.jsx(Lf,{maxWidth:"xl",children:E.jsxs(Pae,{sx:{display:"flex",justifyContent:"space-between"},children:[E.jsxs(si,{color:"inherit",href:"/",sx:{display:"flex",alignItems:"center",columnGap:2},underline:"none",children:[E.jsx("img",{height:"52",src:"/assets/logo.png",width:"52"}),E.jsx(Xe,{component:"h1",noWrap:!0,sx:{fontWeight:700,display:"flex",alignItems:"center"},variant:"h3",children:"Locust"})]}),E.jsxs(ht,{sx:{display:"flex",columnGap:6},children:[E.jsx(Pse,{}),E.jsx(rue,{}),E.jsx(Ase,{})]})]})})})}function iue({children:e}){return E.jsxs(E.Fragment,{children:[E.jsx(nue,{}),E.jsx("main",{children:e}),E.jsx(_oe,{})]})}function aue(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const oue=/[ \t\n\f\r]/g;function sue(e){return typeof e=="object"?e.type==="text"?KR(e.value):!1:KR(e)}function KR(e){return e.replace(oue,"")===""}class cv{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}}cv.prototype.property={};cv.prototype.normal={};cv.prototype.space=null;function yG(e,t){const r={},n={};let i=-1;for(;++i4&&r.slice(0,4)==="data"&&due.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(JR,gue);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!JR.test(a)){let o=a.replace(hue,vue);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=T2}return new i(n,t)}function vue(e){return"-"+e.toLowerCase()}function gue(e){return e.charAt(1).toUpperCase()}const mue={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"},yue=yG([bG,SG,CG,TG,cue],"html"),AG=yG([bG,SG,CG,TG,fue],"svg");function xue(e){return e.join(" ").trim()}var A2={exports:{}},eL=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Sue=/\n/g,bue=/^\s*/,_ue=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,wue=/^:\s*/,Cue=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Tue=/^[;\s]*/,Aue=/^\s+|\s+$/g,Mue=` +`,tL="/",rL="*",Pl="",Iue="comment",Pue="declaration",kue=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(Sue);v&&(r+=v.length);var g=p.lastIndexOf(Mue);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(bue)}function c(p){var v;for(p=p||[];v=f();)v!==!1&&p.push(v);return p}function f(){var p=a();if(!(tL!=e.charAt(0)||rL!=e.charAt(1))){for(var v=2;Pl!=e.charAt(v)&&(rL!=e.charAt(v)||tL!=e.charAt(v+1));)++v;if(v+=2,Pl===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:Iue,comment:g})}}function d(){var p=a(),v=l(_ue);if(v){if(f(),!l(wue))return s("property missing ':'");var g=l(Cue),m=p({type:Pue,property:nL(v[0].replace(eL,Pl)),value:g?nL(g[0].replace(eL,Pl)):Pl});return l(Tue),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 nL(e){return e?e.replace(Aue,Pl):Pl}var Due=kue;function MG(e,t){var r=null;if(!e||typeof e!="string")return r;for(var n,i=Due(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 Eue(e){const t=M2(e),r=IG(e);if(t&&r)return{start:t,end:r}}function Rh(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?iL(e.position):"start"in e||"end"in e?iL(e):"line"in e||"column"in e?VC(e):""}function VC(e){return aL(e&&e.line)+":"+aL(e&&e.column)}function iL(e){return VC(e&&e.start)+"-"+VC(e&&e.end)}function aL(e){return e&&typeof e=="number"?e:1}class dn 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=Rh(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}}dn.prototype.file="";dn.prototype.name="";dn.prototype.reason="";dn.prototype.message="";dn.prototype.stack="";dn.prototype.column=void 0;dn.prototype.line=void 0;dn.prototype.ancestors=void 0;dn.prototype.cause=void 0;dn.prototype.fatal=void 0;dn.prototype.place=void 0;dn.prototype.ruleId=void 0;dn.prototype.source=void 0;const I2={}.hasOwnProperty,Oue=new Map,Nue=/[A-Z]/g,zue=/-([a-z])/g,Bue=new Set(["table","tbody","thead","tfoot","tr"]),Fue=new Set(["td","th"]);function $ue(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=Gue(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=Vue(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"?AG:yue,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=kG(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function kG(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=AG,e.schema=i),e.ancestors.push(t);let a=Hue(e,t);const o=Wue(e,e.ancestors);let s=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(a&&Bue.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!sue(l):!0})),I2.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 Vue(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 Gue(e,t){return r;function r(n,i,a,o){const s=Array.isArray(a.children),l=M2(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 Hue(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:Oue;for(;++n-1&&e.test(String.fromCharCode(r))}}const rce={'"':"quot","&":"amp","<":"lt",">":"gt"};function nce(e){return e.replace(/["&<>]/g,t);function t(r){return"&"+rce[r]+";"}}function ice(e,t){const r=nce(Mu(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 Mu(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 ace={};function oce(e,t){const r=t||ace,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return RG(e,n,i)}function RG(e,t,r){if(sce(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 oL(e.children,t,r)}return Array.isArray(e)?oL(e,t,r):""}function oL(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?(Ea(e,e.length,0,t),e):t}const lL={}.hasOwnProperty;function lce(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 Yc(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 vce(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 cL(e){if(e===null||An(e)||tce(e))return 1;if(ece(e))return 2}function k2(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);fL(f,-l),fL(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=ui(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=ui(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),u=ui(u,k2(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=ui(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=ui(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,Ea(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||Ve(b)?e.check(dL,v,S)(b):(e.enter("codeFlowValue"),x(b))}function x(b){return b===null||Ve(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(R){return b.enter("lineEnding"),b.consume(R),b.exit("lineEnding"),M}function M(R){return b.enter("codeFencedFence"),mt(R)?Nt(b,I,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):I(R)}function I(R){return R===s?(b.enter("codeFencedFenceSequence"),P(R)):C(R)}function P(R){return R===s?(A++,b.consume(R),P):A>=o?(b.exit("codeFencedFenceSequence"),mt(R)?Nt(b,k,"whitespace")(R):k(R)):C(R)}function k(R){return R===null||Ve(R)?(b.exit("codeFencedFence"),w(R)):C(R)}}}function Mce(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 US={name:"codeIndented",tokenize:Pce},Ice={tokenize:kce,partial:!0};function Pce(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):Ve(u)?e.attempt(Ice,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||Ve(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function kce(e,t,r){const n=this;return i;function i(o){return n.parser.lazy[n.now().line]?r(o):Ve(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):Ve(o)?i(o):r(o)}}const Dce={name:"codeText",tokenize:Ece,resolve:Rce,previous:Lce};function Rce(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 BG(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||GC(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||Ve(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||An(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):Ve(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||Ve(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 $G(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):Ve(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||Ve(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 Lh(e,t){let r;return n;function n(i){return Ve(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 Vce={name:"definition",tokenize:Hce},Gce={tokenize:Wce,partial:!0};function Hce(e,t,r){const n=this;let i;return a;function a(h){return e.enter("definition"),o(h)}function o(h){return FG.call(n,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=Yc(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 An(h)?Lh(e,u)(h):u(h)}function u(h){return BG(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(Gce,f,f)(h)}function f(h){return mt(h)?Nt(e,d,"whitespace")(h):d(h)}function d(h){return h===null||Ve(h)?(e.exit("definition"),n.parser.defined.push(i),t(h)):r(h)}}function Wce(e,t,r){return n;function n(s){return An(s)?Lh(e,i)(s):r(s)}function i(s){return $G(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||Ve(s)?t(s):r(s)}}const Uce={name:"hardBreakEscape",tokenize:jce};function jce(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Ve(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const Yce={name:"headingAtx",tokenize:Xce,resolve:qce};function qce(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"},Ea(e,n,r-n+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function Xce(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||An(c)?(e.exit("atxHeadingSequence"),s(c)):r(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||Ve(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||An(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const Zce=["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"],pL=["pre","script","style","textarea"],Kce={name:"htmlFlow",tokenize:tfe,resolveTo:efe,concrete:!0},Qce={tokenize:nfe,partial:!0},Jce={tokenize:rfe,partial:!0};function efe(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 tfe(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:L):pa(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):pa(B)?(e.consume(B),i=4,n.interrupt?t:L):r(B)}function h(B){return B===45?(e.consume(B),n.interrupt?t:L):r(B)}function p(B){const j="CDATA[";return B===j.charCodeAt(s++)?(e.consume(B),s===j.length?n.interrupt?t:I:p):r(B)}function v(B){return pa(B)?(e.consume(B),o=String.fromCharCode(B),g):r(B)}function g(B){if(B===null||B===47||B===62||An(B)){const j=B===47,X=o.toLowerCase();return!j&&!a&&pL.includes(X)?(i=1,n.interrupt?t(B):I(B)):Zce.includes(o.toLowerCase())?(i=6,j?(e.consume(B),m):n.interrupt?t(B):I(B)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(B):a?y(B):x(B))}return B===45||zn(B)?(e.consume(B),o+=String.fromCharCode(B),g):r(B)}function m(B){return B===62?(e.consume(B),n.interrupt?t:I):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||pa(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||zn(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||Ve(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||An(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||Ve(B)?I(B):mt(B)?(e.consume(B),M):r(B)}function I(B){return B===45&&i===2?(e.consume(B),z):B===60&&i===1?(e.consume(B),$):B===62&&i===4?(e.consume(B),G):B===63&&i===3?(e.consume(B),L):B===93&&i===5?(e.consume(B),V):Ve(B)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Qce,U,P)(B)):B===null||Ve(B)?(e.exit("htmlFlowData"),P(B)):(e.consume(B),I)}function P(B){return e.check(Jce,k,U)(B)}function k(B){return e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),R}function R(B){return B===null||Ve(B)?P(B):(e.enter("htmlFlowData"),I(B))}function z(B){return B===45?(e.consume(B),L):I(B)}function $(B){return B===47?(e.consume(B),o="",N):I(B)}function N(B){if(B===62){const j=o.toLowerCase();return pL.includes(j)?(e.consume(B),G):I(B)}return pa(B)&&o.length<8?(e.consume(B),o+=String.fromCharCode(B),N):I(B)}function V(B){return B===93?(e.consume(B),L):I(B)}function L(B){return B===62?(e.consume(B),G):B===45&&i===2?(e.consume(B),L):I(B)}function G(B){return B===null||Ve(B)?(e.exit("htmlFlowData"),U(B)):(e.consume(B),G)}function U(B){return e.exit("htmlFlow"),t(B)}}function rfe(e,t,r){const n=this;return i;function i(o){return Ve(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 nfe(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(ix,t,r)}}const ife={name:"htmlText",tokenize:afe};function afe(e,t,r){const n=this;let i,a,o;return s;function s(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),l}function l(L){return L===33?(e.consume(L),u):L===47?(e.consume(L),_):L===63?(e.consume(L),x):pa(L)?(e.consume(L),C):r(L)}function u(L){return L===45?(e.consume(L),c):L===91?(e.consume(L),a=0,p):pa(L)?(e.consume(L),y):r(L)}function c(L){return L===45?(e.consume(L),h):r(L)}function f(L){return L===null?r(L):L===45?(e.consume(L),d):Ve(L)?(o=f,$(L)):(e.consume(L),f)}function d(L){return L===45?(e.consume(L),h):f(L)}function h(L){return L===62?z(L):L===45?d(L):f(L)}function p(L){const G="CDATA[";return L===G.charCodeAt(a++)?(e.consume(L),a===G.length?v:p):r(L)}function v(L){return L===null?r(L):L===93?(e.consume(L),g):Ve(L)?(o=v,$(L)):(e.consume(L),v)}function g(L){return L===93?(e.consume(L),m):v(L)}function m(L){return L===62?z(L):L===93?(e.consume(L),m):v(L)}function y(L){return L===null||L===62?z(L):Ve(L)?(o=y,$(L)):(e.consume(L),y)}function x(L){return L===null?r(L):L===63?(e.consume(L),S):Ve(L)?(o=x,$(L)):(e.consume(L),x)}function S(L){return L===62?z(L):x(L)}function _(L){return pa(L)?(e.consume(L),b):r(L)}function b(L){return L===45||zn(L)?(e.consume(L),b):w(L)}function w(L){return Ve(L)?(o=w,$(L)):mt(L)?(e.consume(L),w):z(L)}function C(L){return L===45||zn(L)?(e.consume(L),C):L===47||L===62||An(L)?A(L):r(L)}function A(L){return L===47?(e.consume(L),z):L===58||L===95||pa(L)?(e.consume(L),T):Ve(L)?(o=A,$(L)):mt(L)?(e.consume(L),A):z(L)}function T(L){return L===45||L===46||L===58||L===95||zn(L)?(e.consume(L),T):M(L)}function M(L){return L===61?(e.consume(L),I):Ve(L)?(o=M,$(L)):mt(L)?(e.consume(L),M):A(L)}function I(L){return L===null||L===60||L===61||L===62||L===96?r(L):L===34||L===39?(e.consume(L),i=L,P):Ve(L)?(o=I,$(L)):mt(L)?(e.consume(L),I):(e.consume(L),k)}function P(L){return L===i?(e.consume(L),i=void 0,R):L===null?r(L):Ve(L)?(o=P,$(L)):(e.consume(L),P)}function k(L){return L===null||L===34||L===39||L===60||L===61||L===96?r(L):L===47||L===62||An(L)?A(L):(e.consume(L),k)}function R(L){return L===47||L===62||An(L)?A(L):r(L)}function z(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),t):r(L)}function $(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),N}function N(L){return mt(L)?Nt(e,V,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):V(L)}function V(L){return e.enter("htmlTextData"),o(L)}}const D2={name:"labelEnd",tokenize:ffe,resolveTo:cfe,resolveAll:ufe},ofe={tokenize:dfe},sfe={tokenize:hfe},lfe={tokenize:pfe};function ufe(e){let t=-1;for(;++t=3&&(u===null||Ve(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 vn={name:"list",tokenize:wfe,continuation:{tokenize:Cfe},exit:Afe},bfe={tokenize:Mfe,partial:!0},_fe={tokenize:Tfe,partial:!0};function wfe(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:HC(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(Dm,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 HC(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(ix,n.interrupt?r:c,e.attempt(bfe,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 Cfe(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(ix,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(_fe,t,o)(s))}function o(s){return n.containerState._closeFlow=!0,n.interrupt=void 0,Nt(e,e.attempt(vn,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function Tfe(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 Afe(e){e.exit(this.containerState.type)}function Mfe(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 vL={name:"setextUnderline",tokenize:Pfe,resolveTo:Ife};function Ife(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 Pfe(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||Ve(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const kfe={tokenize:Dfe};function Dfe(e){const t=this,r=e.attempt(ix,n,e.attempt(this.parser.constructs.flowInitial,i,Nt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Nce,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 Rfe={resolveAll:GG()},Lfe=VG("string"),Efe=VG("text");function VG(e){return{tokenize:t,resolveAll:GG(e==="text"?Ofe: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 Bfe(e,t){let r=-1;const n=[];let i;for(;++r0){const Vt=Re.tokenStack[Re.tokenStack.length-1];(Vt[1]||mL).call(Re,void 0,Vt[0])}for(le.position={start:Ro(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:Ro(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},he=-1;++he1?"-"+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 cde(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 fde(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function UG(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 dde(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return UG(e,t);const i={src:Mu(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 hde(e,t){const r={src:Mu(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 pde(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 vde(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return UG(e,t);const i={href:Mu(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 gde(e,t){const r={href:Mu(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 mde(e,t,r){const n=e.all(t),i=r?yde(r):jG(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]||mL).call(Re,void 0,Vt[0])}for(le.position={start:Ro(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:Ro(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},he=-1;++he1?"-"+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 fde(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 dde(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function UG(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 hde(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return UG(e,t);const i={src:Mu(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 pde(e,t){const r={src:Mu(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 vde(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 gde(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return UG(e,t);const i={href:Mu(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 mde(e,t){const r={href:Mu(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 yde(e,t,r){const n=e.all(t),i=r?xde(r):jG(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 xde(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=M2(t.children[1]),l=IG(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 Cde(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(SL(t.slice(i),i>0,!1)),a.join("")}function SL(e,t,r){let n=0,i=e.length;if(t){let a=e.codePointAt(n);for(;a===yL||a===xL;)n++,a=e.codePointAt(n)}if(r){let a=e.codePointAt(i-1);for(;a===yL||a===xL;)i--,a=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}function Mde(e,t){const r={type:"text",value:Ade(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function Ide(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const Pde={blockquote:ide,break:ade,code:ode,delete:sde,emphasis:lde,footnoteReference:ude,heading:cde,html:fde,imageReference:dde,image:hde,inlineCode:pde,linkReference:vde,link:gde,listItem:mde,list:xde,paragraph:Sde,root:bde,strong:_de,table:wde,tableCell:Tde,tableRow:Cde,text:Mde,thematicBreak:Ide,toml:lg,yaml:lg,definition:lg,footnoteDefinition:lg};function lg(){}const YG=-1,ix=0,Hy=1,Wy=2,R2=3,L2=4,E2=5,O2=6,qG=7,XG=8,bL=typeof self=="object"?self:globalThis,kde=(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 ix:case YG:return r(o,i);case Hy:{const s=r([],i);for(const l of o)s.push(n(l));return s}case Wy:{const s=r({},i);for(const[l,u]of o)s[n(l)]=n(u);return s}case R2:return r(new Date(o),i);case L2:{const{source:s,flags:l}=o;return r(new RegExp(s,l),i)}case E2:{const s=r(new Map,i);for(const[l,u]of o)s.set(n(l),n(u));return s}case O2:{const s=r(new Set,i);for(const l of o)s.add(n(l));return s}case qG:{const{name:s,message:l}=o;return r(new bL[s](l),i)}case XG:return r(BigInt(o),i);case"BigInt":return r(Object(BigInt(o)),i)}return r(new bL[a](o),i)};return n},_L=e=>kde(new Map,e)(0),Uu="",{toString:Dde}={},{keys:Rde}=Object,md=e=>{const t=typeof e;if(t!=="object"||!e)return[ix,t];const r=Dde.call(e).slice(8,-1);switch(r){case"Array":return[Hy,Uu];case"Object":return[Wy,Uu];case"Date":return[R2,Uu];case"RegExp":return[L2,Uu];case"Map":return[E2,Uu];case"Set":return[O2,Uu]}return r.includes("Array")?[Hy,r]:r.includes("Error")?[qG,r]:[Wy,r]},ug=([e,t])=>e===ix&&(t==="function"||t==="symbol"),Lde=(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 ix:{let c=o;switch(l){case"bigint":s=XG,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([YG],o)}return i([s,c],o)}case Hy:{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 Wy:{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 Rde(o))(e||!ug(md(o[d])))&&c.push([a(d),a(o[d])]);return f}case R2:return i([s,o.toISOString()],o);case L2:{const{source:c,flags:f}=o;return i([s,{source:c,flags:f}],o)}case E2:{const c=[],f=i([s,c],o);for(const[d,h]of o)(e||!(ug(md(d))||ug(md(h))))&&c.push([a(d),a(h)]);return f}case O2:{const c=[],f=i([s,c],o);for(const d of o)(e||!ug(md(d)))&&c.push(a(d));return f}}const{message:u}=o;return i([s,{name:l,message:u}],o)};return a},wL=(e,{json:t,lossy:r}={})=>{const n=[];return Lde(!(t||r),!!t,new Map,n)(e),n},Uy=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?_L(wL(e,t)):structuredClone(e):(e,t)=>_L(wL(e,t));function Ede(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 Ode(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Nde(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||Ede,n=e.options.footnoteBackLabel||Ode,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:{...Uy(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 xde(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let n=-1;for(;!t&&++n1}function Sde(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=M2(t.children[1]),l=IG(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 Tde(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(SL(t.slice(i),i>0,!1)),a.join("")}function SL(e,t,r){let n=0,i=e.length;if(t){let a=e.codePointAt(n);for(;a===yL||a===xL;)n++,a=e.codePointAt(n)}if(r){let a=e.codePointAt(i-1);for(;a===yL||a===xL;)i--,a=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}function Ide(e,t){const r={type:"text",value:Mde(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function Pde(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const kde={blockquote:ade,break:ode,code:sde,delete:lde,emphasis:ude,footnoteReference:cde,heading:fde,html:dde,imageReference:hde,image:pde,inlineCode:vde,linkReference:gde,link:mde,listItem:yde,list:Sde,paragraph:bde,root:_de,strong:wde,table:Cde,tableCell:Ade,tableRow:Tde,text:Ide,thematicBreak:Pde,toml:lg,yaml:lg,definition:lg,footnoteDefinition:lg};function lg(){}const YG=-1,ax=0,Hy=1,Wy=2,R2=3,L2=4,E2=5,O2=6,qG=7,XG=8,bL=typeof self=="object"?self:globalThis,Dde=(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 ax:case YG:return r(o,i);case Hy:{const s=r([],i);for(const l of o)s.push(n(l));return s}case Wy:{const s=r({},i);for(const[l,u]of o)s[n(l)]=n(u);return s}case R2:return r(new Date(o),i);case L2:{const{source:s,flags:l}=o;return r(new RegExp(s,l),i)}case E2:{const s=r(new Map,i);for(const[l,u]of o)s.set(n(l),n(u));return s}case O2:{const s=r(new Set,i);for(const l of o)s.add(n(l));return s}case qG:{const{name:s,message:l}=o;return r(new bL[s](l),i)}case XG:return r(BigInt(o),i);case"BigInt":return r(Object(BigInt(o)),i)}return r(new bL[a](o),i)};return n},_L=e=>Dde(new Map,e)(0),Uu="",{toString:Rde}={},{keys:Lde}=Object,md=e=>{const t=typeof e;if(t!=="object"||!e)return[ax,t];const r=Rde.call(e).slice(8,-1);switch(r){case"Array":return[Hy,Uu];case"Object":return[Wy,Uu];case"Date":return[R2,Uu];case"RegExp":return[L2,Uu];case"Map":return[E2,Uu];case"Set":return[O2,Uu]}return r.includes("Array")?[Hy,r]:r.includes("Error")?[qG,r]:[Wy,r]},ug=([e,t])=>e===ax&&(t==="function"||t==="symbol"),Ede=(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 ax:{let c=o;switch(l){case"bigint":s=XG,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([YG],o)}return i([s,c],o)}case Hy:{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 Wy:{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 Lde(o))(e||!ug(md(o[d])))&&c.push([a(d),a(o[d])]);return f}case R2:return i([s,o.toISOString()],o);case L2:{const{source:c,flags:f}=o;return i([s,{source:c,flags:f}],o)}case E2:{const c=[],f=i([s,c],o);for(const[d,h]of o)(e||!(ug(md(d))||ug(md(h))))&&c.push([a(d),a(h)]);return f}case O2:{const c=[],f=i([s,c],o);for(const d of o)(e||!ug(md(d)))&&c.push(a(d));return f}}const{message:u}=o;return i([s,{name:l,message:u}],o)};return a},wL=(e,{json:t,lossy:r}={})=>{const n=[];return Ede(!(t||r),!!t,new Map,n)(e),n},Uy=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?_L(wL(e,t)):structuredClone(e):(e,t)=>_L(wL(e,t));function Ode(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 Nde(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function zde(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||Ode,n=e.options.footnoteBackLabel||Nde,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:{...Uy(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 ZG=function(e){if(e==null)return $de;if(typeof e=="function")return ax(e);if(typeof e=="object")return Array.isArray(e)?zde(e):Bde(e);if(typeof e=="string")return Fde(e);throw new Error("Expected function, string, or object as test")};function zde(e){const t=[];let r=-1;for(;++r":""))+")"})}return d;function d(){let h=KG,p,v,g;if((!t||a(l,u,c[c.length-1]||void 0))&&(h=Ude(r(l,c)),h[0]===CL))return h;if("children"in l&&l.children){const m=l;if(m.children&&h[0]!==Hde)for(v=(n?m.children.length:-1)+o,g=c.concat(m);v>-1&&v":""))+")"})}return d;function d(){let h=KG,p,v,g;if((!t||a(l,u,c[c.length-1]||void 0))&&(h=jde(r(l,c)),h[0]===CL))return h;if("children"in l&&l.children){const m=l;if(m.children&&h[0]!==Wde)for(v=(n?m.children.length:-1)+o,g=c.concat(m);v>-1&&v0&&r.push({type:"text",value:` -`}),r}function TL(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function AL(e,t){const r=Yde(e,t),n=r.one(e,void 0),i=Nde(r),a=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` -`},i),a}function Qde(e,t){return e&&"run"in e?async function(r,n){const i=AL(r,t);await e.run(i,n)}:function(r){return AL(r,t||e)}}function ML(e){if(e)throw e}var Rm=Object.prototype.hasOwnProperty,JG=Object.prototype.toString,IL=Object.defineProperty,PL=Object.getOwnPropertyDescriptor,kL=function(t){return typeof Array.isArray=="function"?Array.isArray(t):JG.call(t)==="[object Array]"},DL=function(t){if(!t||JG.call(t)!=="[object Object]")return!1;var r=Rm.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&Rm.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;var i;for(i in t);return typeof i>"u"||Rm.call(t,i)},RL=function(t,r){IL&&r.name==="__proto__"?IL(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},LL=function(t,r){if(r==="__proto__")if(Rm.call(t,r)){if(PL)return PL(t,r).value}else return;return t[r]},Jde=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 sa={basename:rhe,dirname:nhe,extname:ihe,join:ahe,sep:"/"};function rhe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');fv(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 nhe(e){if(fv(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 ihe(e){fv(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 ahe(...e){let t=-1,r;for(;++t0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function she(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 fv(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const lhe={cwd:uhe};function uhe(){return"/"}function jC(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function che(e){if(typeof e=="string")e=new URL(e);else if(!jC(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 fhe(e)}function fhe(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];UC(v)&&UC(h)&&(h=jS(!0,v,h)),n[d]=[u,h,...p]}}}}const vhe=new N2().freeze();function ZS(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function KS(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function QS(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 OL(e){if(!UC(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function NL(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function cg(e){return ghe(e)?e:new eH(e)}function ghe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function mhe(e){return typeof e=="string"||yhe(e)}function yhe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const zL={}.hasOwnProperty,xhe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",BL=[],FL={allowDangerousHtml:!0},She=/^(https?|ircs?|mailto|xmpp)$/i,bhe=[{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 _he(e){const t=e.allowedElements,r=e.allowElement,n=e.children||"",i=e.className,a=e.components,o=e.disallowedElements,s=e.rehypePlugins||BL,l=e.remarkPlugins||BL,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...FL}:FL,c=e.skipHtml,f=e.unwrapDisallowed,d=e.urlTransform||whe,h=vhe().use(nde).use(l).use(Qde,u).use(s),p=new eH;typeof n=="string"&&(p.value=n);for(const y of bhe)Object.hasOwn(e,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+xhe+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]}),QG(g,m),Fue(g,{Fragment:E.Fragment,components:a,ignoreInvalidStyle:!0,jsx:E.jsx,jsxs:E.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 HS)if(zL.call(HS,_)&&zL.call(y.properties,_)){const b=y.properties[_],w=HS[_];(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 whe(e){return nce(e,She)}const Lm=(e,t=0)=>{const r=Math.pow(10,t);return Math.round(e*r)/r};function Che({content:e,formatter:t,round:r,markdown:n}){return t?t(e):r?Lm(e,r):n?E.jsx(_he,{skipHtml:!1,children:e}):e}function zf({rows:e,structure:t,onTableHeadClick:r,currentSortField:n}){return E.jsx(gae,{component:H1,children:E.jsxs(Xie,{children:[E.jsx(wae,{children:E.jsx(fR,{children:t.map(({title:i,key:a})=>E.jsx(sR,{"data-sortkey":a,onClick:r,sx:{cursor:r?"pointer":"default",color:n===a?"primary.main":"text.primary"},children:i},`table-head-${a}`))})}),E.jsx(nae,{children:e.map((i,a)=>E.jsx(fR,{children:t.map(({key:o,...s},l)=>E.jsx(sR,{children:E.jsx(Che,{content:i[o],...s})},`table-row=${l}`))},`${i.name}-${a}`))})]})})}function The({rows:e,tableStructure:t}){return t?E.jsx(zf,{rows:e,structure:t}):null}const Ahe=({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:hG(a),...o})):null,rows:i?i.data:[]}},Mhe=qn(Ahe)(The),Ihe=[{key:"count",title:"# occurrences"},{key:"traceback",title:"Traceback"}];function tH({exceptions:e}){return E.jsx(zf,{rows:e,structure:Ihe})}const Phe=({ui:{exceptions:e}})=>({exceptions:e}),khe=qn(Phe)(tH);function Dhe(e,t){const r=t?-1:1;return function(n,i){const a=n[e],o=i[e];return ao?r*1:0}}function z2(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(Dhe(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,i(e);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,sortedStats:n,currentSortField:s.current}}const Rhe=[{key:"occurrences",title:"# Failures"},{key:"method",title:"Method"},{key:"name",title:"Name"},{key:"error",title:"Message",markdown:!0}];function rH({errors:e}){const{onTableHeadClick:t,sortedStats:r,currentSortField:n}=z2(e);return E.jsx(zf,{currentSortField:n,onTableHeadClick:t,rows:r,structure:Rhe})}const Lhe=({ui:{errors:e}})=>({errors:e}),Ehe=qn(Lhe)(rH);function th(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])}function Ohe(){const e=Ef(({swarm:n})=>n),{data:t,refetch:r}=Nle();return th(r,5e3,{shouldRunInterval:e.state!==li.STOPPED}),E.jsxs(ht,{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"Logs"}),E.jsx("ul",{children:t&&t.logs.map((n,i)=>E.jsx("li",{children:n},`log-${i}`))})]})}function Nhe({extendedCsvFiles:e,statsHistoryEnabled:t}){const r=Ef(({theme:{isDarkMode:n}})=>n);return E.jsxs(M4,{sx:{display:"flex",flexDirection:"column"},children:[E.jsx(Wu,{children:E.jsx(si,{href:"/stats/requests/csv",children:"Download requests CSV"})}),t&&E.jsx(Wu,{children:E.jsx(si,{href:"/stats/requests_full_history/csv",children:"Download full request statistics history CSV"})}),E.jsx(Wu,{children:E.jsx(si,{href:"/stats/failures/csv",children:"Download failures CSV"})}),E.jsx(Wu,{children:E.jsx(si,{href:"/exceptions/csv",children:"Download exceptions CSV"})}),E.jsx(Wu,{children:E.jsx(si,{href:`/stats/report?theme=${r?Ma.DARK:Ma.LIGHT}`,target:"_blank",children:"Download Report"})}),e&&e.map(({href:n,title:i},a)=>E.jsx(Wu,{children:E.jsx(si,{href:n,children:i})},`extended-csv-${a}`))]})}const zhe=({swarm:{extendedCsvFiles:e,statsHistoryEnabled:t}})=>({extendedCsvFiles:e,statsHistoryEnabled:t}),Bhe=qn(zhe)(Nhe),Fhe=[{key:"method",title:"Type"},{key:"name",title:"Name"},{key:"numRequests",title:"# Requests"},{key:"numFailures",title:"# Fails"},{key:"medianResponseTime",title:"Median (ms)",round:2},{key:"ninetiethResponseTime",title:"90%ile (ms)"},{key:"ninetyNinthResponseTime",title:"99%ile (ms)"},{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 nH({stats:e}){const{onTableHeadClick:t,sortedStats:r,currentSortField:n}=z2(e,{hasTotalRow:!0});return E.jsx(zf,{currentSortField:n,onTableHeadClick:t,rows:r,structure:Fhe})}const $he=({ui:{stats:e}})=>({stats:e}),Vhe=qn($he)(nH);/*! ***************************************************************************** +`}),r}function TL(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function AL(e,t){const r=qde(e,t),n=r.one(e,void 0),i=zde(r),a=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` +`},i),a}function Jde(e,t){return e&&"run"in e?async function(r,n){const i=AL(r,t);await e.run(i,n)}:function(r){return AL(r,t||e)}}function ML(e){if(e)throw e}var Rm=Object.prototype.hasOwnProperty,JG=Object.prototype.toString,IL=Object.defineProperty,PL=Object.getOwnPropertyDescriptor,kL=function(t){return typeof Array.isArray=="function"?Array.isArray(t):JG.call(t)==="[object Array]"},DL=function(t){if(!t||JG.call(t)!=="[object Object]")return!1;var r=Rm.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&Rm.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;var i;for(i in t);return typeof i>"u"||Rm.call(t,i)},RL=function(t,r){IL&&r.name==="__proto__"?IL(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},LL=function(t,r){if(r==="__proto__")if(Rm.call(t,r)){if(PL)return PL(t,r).value}else return;return t[r]},ehe=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 la={basename:nhe,dirname:ihe,extname:ahe,join:ohe,sep:"/"};function nhe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');fv(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 ihe(e){if(fv(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 ahe(e){fv(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 ohe(...e){let t=-1,r;for(;++t0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function lhe(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 fv(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const uhe={cwd:che};function che(){return"/"}function YC(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function fhe(e){if(typeof e=="string")e=new URL(e);else if(!YC(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 dhe(e)}function dhe(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];jC(v)&&jC(h)&&(h=YS(!0,v,h)),n[d]=[u,h,...p]}}}}const ghe=new N2().freeze();function KS(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function QS(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function JS(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 OL(e){if(!jC(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function NL(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function cg(e){return mhe(e)?e:new eH(e)}function mhe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function yhe(e){return typeof e=="string"||xhe(e)}function xhe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const zL={}.hasOwnProperty,She="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",BL=[],FL={allowDangerousHtml:!0},bhe=/^(https?|ircs?|mailto|xmpp)$/i,_he=[{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 whe(e){const t=e.allowedElements,r=e.allowElement,n=e.children||"",i=e.className,a=e.components,o=e.disallowedElements,s=e.rehypePlugins||BL,l=e.remarkPlugins||BL,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...FL}:FL,c=e.skipHtml,f=e.unwrapDisallowed,d=e.urlTransform||Che,h=ghe().use(ide).use(l).use(Jde,u).use(s),p=new eH;typeof n=="string"&&(p.value=n);for(const y of _he)Object.hasOwn(e,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+She+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]}),QG(g,m),$ue(g,{Fragment:E.Fragment,components:a,ignoreInvalidStyle:!0,jsx:E.jsx,jsxs:E.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 WS)if(zL.call(WS,_)&&zL.call(y.properties,_)){const b=y.properties[_],w=WS[_];(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 Che(e){return ice(e,bhe)}const Lm=(e,t=0)=>{const r=Math.pow(10,t);return Math.round(e*r)/r};function The({content:e,formatter:t,round:r,markdown:n}){return t?t(e):r?Lm(e,r):n?E.jsx(whe,{skipHtml:!1,children:e}):e}function zf({rows:e,structure:t,onTableHeadClick:r,currentSortField:n}){return E.jsx(gae,{component:H1,children:E.jsxs(Xie,{children:[E.jsx(wae,{children:E.jsx(fR,{children:t.map(({title:i,key:a})=>E.jsx(sR,{"data-sortkey":a,onClick:r,sx:{cursor:r?"pointer":"default",color:n===a?"primary.main":"text.primary"},children:i},`table-head-${a}`))})}),E.jsx(nae,{children:e.map((i,a)=>E.jsx(fR,{children:t.map(({key:o,...s},l)=>E.jsx(sR,{children:E.jsx(The,{content:i[o],...s})},`table-row=${l}`))},`${i.name}-${a}`))})]})})}function Ahe({rows:e,tableStructure:t}){return t?E.jsx(zf,{rows:e,structure:t}):null}const Mhe=({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:hG(a),...o})):null,rows:i?i.data:[]}},Ihe=qn(Mhe)(Ahe),Phe=[{key:"count",title:"# occurrences"},{key:"traceback",title:"Traceback"}];function tH({exceptions:e}){return E.jsx(zf,{rows:e,structure:Phe})}const khe=({ui:{exceptions:e}})=>({exceptions:e}),Dhe=qn(khe)(tH);function Rhe(e,t){const r=t?-1:1;return function(n,i){const a=n[e],o=i[e];return ao?r*1:0}}function z2(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(Rhe(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,i(e);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,sortedStats:n,currentSortField:s.current}}const Lhe=[{key:"occurrences",title:"# Failures"},{key:"method",title:"Method"},{key:"name",title:"Name"},{key:"error",title:"Message",markdown:!0}];function rH({errors:e}){const{onTableHeadClick:t,sortedStats:r,currentSortField:n}=z2(e);return E.jsx(zf,{currentSortField:n,onTableHeadClick:t,rows:r,structure:Lhe})}const Ehe=({ui:{errors:e}})=>({errors:e}),Ohe=qn(Ehe)(rH);function th(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])}function Nhe(){const e=Ef(({swarm:n})=>n),{data:t,refetch:r}=zle();return th(r,5e3,{shouldRunInterval:e.state!==li.STOPPED}),E.jsxs(ht,{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"Logs"}),E.jsx("ul",{children:t&&t.logs.map((n,i)=>E.jsx("li",{children:n},`log-${i}`))})]})}function zhe({extendedCsvFiles:e,statsHistoryEnabled:t}){const r=Ef(({theme:{isDarkMode:n}})=>n);return E.jsxs(M4,{sx:{display:"flex",flexDirection:"column"},children:[E.jsx(Wu,{children:E.jsx(si,{href:"/stats/requests/csv",children:"Download requests CSV"})}),t&&E.jsx(Wu,{children:E.jsx(si,{href:"/stats/requests_full_history/csv",children:"Download full request statistics history CSV"})}),E.jsx(Wu,{children:E.jsx(si,{href:"/stats/failures/csv",children:"Download failures CSV"})}),E.jsx(Wu,{children:E.jsx(si,{href:"/exceptions/csv",children:"Download exceptions CSV"})}),E.jsx(Wu,{children:E.jsx(si,{href:`/stats/report?theme=${r?Ma.DARK:Ma.LIGHT}`,target:"_blank",children:"Download Report"})}),e&&e.map(({href:n,title:i},a)=>E.jsx(Wu,{children:E.jsx(si,{href:n,children:i})},`extended-csv-${a}`))]})}const Bhe=({swarm:{extendedCsvFiles:e,statsHistoryEnabled:t}})=>({extendedCsvFiles:e,statsHistoryEnabled:t}),Fhe=qn(Bhe)(zhe),$he=[{key:"method",title:"Type"},{key:"name",title:"Name"},{key:"numRequests",title:"# Requests"},{key:"numFailures",title:"# Fails"},{key:"medianResponseTime",title:"Median (ms)",round:2},{key:"ninetiethResponseTime",title:"90%ile (ms)"},{key:"ninetyNinthResponseTime",title:"99%ile (ms)"},{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 nH({stats:e}){const{onTableHeadClick:t,sortedStats:r,currentSortField:n}=z2(e,{hasTotalRow:!0});return E.jsx(zf,{currentSortField:n,onTableHeadClick:t,rows:r,structure:$he})}const Vhe=({ui:{stats:e}})=>({stats:e}),Ghe=qn(Vhe)(nH);/*! ***************************************************************************** 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 YC=function(e,t){return YC=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])},YC(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");YC(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Ghe=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),Hhe=function(){function e(){this.browser=new Ghe,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}(),bl=new Hhe;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(bl.wxa=!0,bl.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?bl.worker=!0:typeof navigator>"u"?(bl.node=!0,bl.svgSupported=!0):Whe(navigator.userAgent,bl);function Whe(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=bl;var B2=12,iH="sans-serif",Is=B2+"px "+iH,Uhe=20,jhe=100,Yhe="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function qhe(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"?bl.worker=!0:typeof navigator>"u"?(bl.node=!0,bl.svgSupported=!0):Uhe(navigator.userAgent,bl);function Uhe(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=bl;var B2=12,iH="sans-serif",Is=B2+"px "+iH,jhe=20,Yhe=100,qhe="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Xhe(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 mpe(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?HL(s,o):HL(o,s))}function fH(e){return e.nodeName.toUpperCase()==="CANVAS"}var ype=/([&<>"'])/g,xpe={"&":"&","<":"<",">":">",'"':""","'":"'"};function mn(e){return e==null?"":(e+"").replace(ype,function(t,r){return xpe[r]})}var Spe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,eb=[],bpe=tt.browser.firefox&&+tt.browser.version.split(".")[0]<39;function tT(e,t,r,n){return r=r||{},n?UL(e,t,r):bpe&&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):UL(e,t,r),r}function UL(e,t,r){if(tt.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(fH(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(eT(eb,e,n,i)){r.zrX=eb[0],r.zrY=eb[1];return}}r.zrX=r.zrY=0}function U2(e){return e||window.event}function ei(e,t,r){if(t=U2(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&&tT(e,o,t,r)}else{tT(e,t,t,r);var a=_pe(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Spe.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function _pe(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 rT(e,t,r,n){e.addEventListener(t,r,n)}function wpe(e,t,r,n){e.removeEventListener(t,r,n)}var vo=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function jL(e){return e.which===2||e.which===3}var Cpe=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=YL(n)/YL(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Tpe(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function bi(){return[1,0,0,1,0,0]}function ux(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function j2(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 no(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 Na(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 Pu(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 Y2(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 $f(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 Ape(e){var t=bi();return j2(t,e),t}var Mpe=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=Mpe;var dg=Math.min,hg=Math.max,js=new Le,Ys=new Le,qs=new Le,Xs=new Le,yd=new Le,xd=new Le,Ipe=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=dg(t.x,this.x),n=dg(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=hg(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=hg(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=bi();return Na(a,a,[-r.x,-r.y]),Y2(a,a,[n,i]),Na(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}js.x=qs.x=r.x,js.y=Xs.y=r.y,Ys.x=Xs.x=r.x+r.width,Ys.y=qs.y=r.y+r.height,js.transform(n),Xs.transform(n),Ys.transform(n),qs.transform(n),t.x=dg(js.x,Ys.x,qs.x,Xs.x),t.y=dg(js.y,Ys.y,qs.y,Xs.y);var l=hg(js.x,Ys.x,qs.x,Xs.x),u=hg(js.y,Ys.y,qs.y,Xs.y);t.width=l-t.x,t.height=u-t.y},e}();const Ne=Ipe;var dH="silent";function Ppe(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:kpe}}function kpe(){vo(this.event)}var Dpe=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}(Ti),Sd=function(){function e(t,r){this.x=t,this.y=r}return e}(),Rpe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],rb=new Ne(0,0,0,0),hH=function(e){Dt(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new Sd(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new Dpe,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new dpe(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(D(Rpe,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=pH(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 Sd(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 Sd(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=Ppe(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 Sd(r,n);if(qL(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)&&(rb.copy(d.getBoundingRect()),d.transform&&rb.applyTransform(d.transform),rb.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 Lpe(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?dH:!0}return!1}function qL(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=Lpe(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==dH)){t.target=o;break}}}function pH(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const Epe=hH;var vH=32,bd=7;function Ope(e){for(var t=0;e>=vH;)t|=e&1,e>>=1;return e+t}function XL(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 Npe(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 nb(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 ib(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 zpe(e,t){var r=bd,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]=bd||w>=bd);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-nb(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=bd||A>=bd);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),ZL(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 On=1,rh=2,vc=4,KL=!1;function ab(){KL||(KL=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function QL(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Bpe=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=QL}return e.prototype.traverse=function(t,r){for(var n=0;n0&&(c.__clipPaths=[]),isNaN(c.z)&&(ab(),c.z=0),isNaN(c.z2)&&(ab(),c.z2=0),isNaN(c.zlevel)&&(ab(),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 Fpe=Bpe;var gH;gH=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 nT=gH;var Bm={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-Bm.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?Bm.bounceIn(e*2)*.5:Bm.bounceOut(e*2-1)*.5+.5}};const mH=Bm;var pg=Math.pow,ys=Math.sqrt,qy=1e-8,yH=1e-4,JL=ys(3),vg=1/3,va=Iu(),ci=Iu(),qc=Iu();function rs(e){return e>-qy&&eqy||e<-qy}function vr(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 eE(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function Xy(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(rs(c)&&rs(f))if(rs(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(rs(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=ys(v),x=c*s+1.5*o*(-f+y),S=c*s+1.5*o*(-f-y);x<0?x=-pg(-x,vg):x=pg(x,vg),S<0?S=-pg(-S,vg):S=pg(S,vg);var p=(-s-(x+S))/(3*o);p>=0&&p<=1&&(a[h++]=p)}else{var _=(2*c*s-3*o*f)/(2*ys(c*c*c)),b=Math.acos(_)/3,w=ys(c),C=Math.cos(b),p=(-s-2*w*C)/(3*o),m=(-s+w*(C+JL*Math.sin(b)))/(3*o),A=(-s+w*(C-JL*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 SH(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(rs(o)){if(xH(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(rs(c))i[0]=-a/(2*o);else if(c>0){var f=ys(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 ks(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 bH(e,t,r,n,i,a,o,s,l,u,c){var f,d=.005,h=1/0,p,v,g,m;va[0]=l,va[1]=u;for(var y=0;y<1;y+=.05)ci[0]=vr(e,r,i,o,y),ci[1]=vr(t,n,a,s,y),g=Ql(va,ci),g=0&&g=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(rs(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=ys(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 _H(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function Tp(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 wH(e,t,r,n,i,a,o,s,l){var u,c=.005,f=1/0;va[0]=o,va[1]=s;for(var d=0;d<1;d+=.05){ci[0]=_r(e,r,i,d),ci[1]=_r(t,n,a,d);var h=Ql(va,ci);h=0&&h=1?1:Xy(0,n,a,1,l,s)&&vr(0,i,o,1,s[0])}}}var Wpe=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=me(t)?t:mH[t]||q2(t)},e}();const Upe=Wpe;var CH=function(){function e(t){this.value=t}return e}(),jpe=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new CH(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}(),Ype=function(){function e(t){this._list=new jpe,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 CH(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 dv=Ype;var tE={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 Hi(e){return e=Math.round(e),e<0?0:e>255?255:e}function qpe(e){return e=Math.round(e),e<0?0:e>360?360:e}function Ap(e){return e<0?0:e>1?1:e}function ob(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Hi(parseFloat(t)/100*255):Hi(parseInt(t,10))}function Jl(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Ap(parseFloat(t)/100):Ap(parseFloat(t))}function sb(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 ns(e,t,r){return e+(t-e)*r}function Jn(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function aT(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var TH=new dv(20),gg=null;function Yu(e,t){gg&&aT(gg,t),gg=TH.put(e,gg||t.slice())}function $n(e,t){if(e){t=t||[];var r=TH.get(e);if(r)return aT(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in tE)return aT(t,tE[n]),Yu(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)){Jn(t,0,0,0,1);return}return Jn(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),Yu(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Jn(t,0,0,0,1);return}return Jn(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Yu(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?Jn(t,+u[0],+u[1],+u[2],1):Jn(t,0,0,0,1);c=Jl(u.pop());case"rgb":if(u.length>=3)return Jn(t,ob(u[0]),ob(u[1]),ob(u[2]),u.length===3?c:Jl(u[3])),Yu(e,t),t;Jn(t,0,0,0,1);return;case"hsla":if(u.length!==4){Jn(t,0,0,0,1);return}return u[3]=Jl(u[3]),oT(u,t),Yu(e,t),t;case"hsl":if(u.length!==3){Jn(t,0,0,0,1);return}return oT(u,t),Yu(e,t),t;default:return}}Jn(t,0,0,0,1)}}function oT(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Jl(e[1]),i=Jl(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],Jn(t,Hi(sb(o,a,r+1/3)*255),Hi(sb(o,a,r)*255),Hi(sb(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Xpe(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 sT(e,t){var r=$n(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 io(r,r.length===4?"rgba":"rgb")}}function lb(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]=Hi(ns(o[0],s[0],l)),r[1]=Hi(ns(o[1],s[1],l)),r[2]=Hi(ns(o[2],s[2],l)),r[3]=Ap(ns(o[3],s[3],l)),r}}function Zpe(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=$n(t[i]),s=$n(t[a]),l=n-i,u=io([Hi(ns(o[0],s[0],l)),Hi(ns(o[1],s[1],l)),Hi(ns(o[2],s[2],l)),Ap(ns(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function Oh(e,t,r,n){var i=$n(e);if(e)return i=Xpe(i),t!=null&&(i[0]=qpe(t)),r!=null&&(i[1]=Jl(r)),n!=null&&(i[2]=Jl(n)),io(oT(i),"rgba")}function Zy(e,t){var r=$n(e);if(r&&t!=null)return r[3]=Ap(t),io(r,"rgba")}function io(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 Ky(e,t){var r=$n(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var Qy=Math.round;function Mp(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=$n(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var rE=1e-4;function is(e){return e-rE}function mg(e){return Qy(e*1e3)/1e3}function lT(e){return Qy(e*1e4)/1e4}function Kpe(e){return"matrix("+mg(e[0])+","+mg(e[1])+","+mg(e[2])+","+mg(e[3])+","+lT(e[4])+","+lT(e[5])+")"}var Qpe={left:"start",right:"end",center:"middle",middle:"middle"};function Jpe(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function eve(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function tve(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 AH(e){return e&&!!e.image}function rve(e){return e&&!!e.svgElement}function X2(e){return AH(e)||rve(e)}function MH(e){return e.type==="linear"}function IH(e){return e.type==="radial"}function PH(e){return e&&(e.type==="linear"||e.type==="radial")}function cx(e){return"url(#"+e+")"}function kH(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 DH(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*Em,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("+Qy(o*Em)+"deg, "+Qy(s*Em)+"deg)"),l.join(" ")}var nve=function(){return tt.hasGlobalWindow&&me(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}}(),uT=Array.prototype.slice;function qa(e,t,r){return(t-e)*r+e}function ub(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=iE,l=r;if(Zr(r)){var u=sve(r);s=u,(u===1&&!nt(r[0])||u===2&&!nt(r[0][0]))&&(o=!0)}else if(nt(r)&&!Cp(r))s=xg;else if(oe(r))if(!isNaN(+r))s=xg;else{var c=$n(r);c&&(l=c,s=nh)}else if(sx(r)){var f=Y({},l);f.colorStops=Z(r.colorStops,function(h){return{offset:h.offset,color:$n(h.color)}}),MH(r)?s=cT:IH(r)&&(s=fT),l=f}a===0?this.valType=s:(s!==this.valType||s===iE)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=me(n)?n:mH[n]||q2(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=Sg(i),u=aE(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?_d:t[l];if((Sg(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?h.rawValue:p.rawValue;else if(Sg(a))a===$m?ub(y,h[i],p[i],m):ive(y,h[i],p[i],m);else if(aE(a)){var x=h[i],S=p[i],_=a===cT;t[l]={type:_?"linear":"radial",x:qa(x.x,S.x,m),y:qa(x.y,S.y,m),colorStops:Z(x.colorStops,function(w,C){var A=S.colorStops[C];return{offset:qa(w.offset,A.offset,m),color:Fm(ub([],w.color,A.color,m))}}),global:S.global},_?(t[l].x2=qa(x.x2,S.x2,m),t[l].y2=qa(x.y2,S.y2,m)):t[l].r=qa(x.r,S.r,m)}else if(u)ub(y,h[i],p[i],m),n||(t[l]=Fm(y));else{var b=qa(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===xg?t[n]=t[n]+i:r===nh?($n(t[n],_d),yg(_d,_d,i,1),t[n]=Fm(_d)):r===$m?yg(t[n],t[n],i,1):r===RH&&nE(t[n],t[n],i,1)},e}(),Z2=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){V2("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,He(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o0&&l.addKeyframe(0,Nh(u),i),this._trackKeys.push(s)}l.addKeyframe(t,Nh(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 Lc(){return new Date().getTime()}var uve=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=Lc()-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&&(nT(n),!r._paused&&r.update())}nT(n)},t.prototype.start=function(){this._running||(this._time=Lc(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Lc(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Lc()-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 Z2(r,n.loop);return this.addAnimator(i),i},t}(Ti);const cve=uve;var fve=300,cb=tt.domSupported,fb=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}}(),oE={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},sE=!1;function dT(e){var t=e.pointerType;return t==="pen"||t==="touch"}function dve(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 db(e){e&&(e.zrByTouch=!0)}function hve(e,t){return ei(e.dom,new pve(e,t),!0)}function LH(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 pve=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}(),Ri={mousedown:function(e){e=ei(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=ei(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=ei(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=ei(this.dom,e);var t=e.toElement||e.relatedTarget;LH(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){sE=!0,e=ei(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){sE||(e=ei(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=ei(this.dom,e),db(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Ri.mousemove.call(this,e),Ri.mousedown.call(this,e)},touchmove:function(e){e=ei(this.dom,e),db(e),this.handler.processGesture(e,"change"),Ri.mousemove.call(this,e)},touchend:function(e){e=ei(this.dom,e),db(e),this.handler.processGesture(e,"end"),Ri.mouseup.call(this,e),+new Date-+this.__lastTouchMomentcE||e<-cE}var Ks=[],qu=[],pb=bi(),vb=Math.abs,Sve=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 Zs(this.rotation)||Zs(this.x)||Zs(this.y)||Zs(this.scaleX-1)||Zs(this.scaleY-1)||Zs(this.skewX)||Zs(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(uE(n),this.invTransform=null);return}n=n||bi(),r?this.getLocalTransform(n):uE(n),t&&(r?no(n,t,n):j2(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Ks);var n=Ks[0]<0?-1:1,i=Ks[1]<0?-1:1,a=((Ks[0]-n)*r+n)/Ks[0]||0,o=((Ks[1]-i)*r+i)/Ks[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||bi(),$f(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&&(no(qu,t.invTransform,r),r=qu);var n=this.originX,i=this.originY;(n||i)&&(pb[4]=n,pb[5]=i,no(qu,r,pb),qu[4]-=n,qu[5]-=i,r=qu),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&&vb(t[0]-1)>1e-10&&vb(t[3]-1)>1e-10?Math.sqrt(vb(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){OH(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&&Pu(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}(),za=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function OH(e,t){for(var r=0;r=0?parseFloat(e)/100*t:parseFloat(e):e}function e0(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+=qi(n[0],r.width),u+=qi(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 gb="__zr_normal__",mb=za.concat(["ignore"]),bve=Oa(za,function(e,t){return e[t]=!0,e},{ignore:!1}),Xu={},_ve=new Ne(0,0,0,0),K2=function(){function e(t){this.id=sH(),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=_ve;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Xu,n,c):e0(Xu,n,c),a.x=Xu.x,a.y=Xu.y,o=Xu.align,s=Xu.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=qi(f[0],c.width),h=qi(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|=On,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()?gT:vT},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&$n(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,io(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||{},Y(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(Se(t))for(var n=t,i=He(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(gb,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===gb,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){V2("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&=~On),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&=~On)}},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 ype(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?HL(s,o):HL(o,s))}function fH(e){return e.nodeName.toUpperCase()==="CANVAS"}var xpe=/([&<>"'])/g,Spe={"&":"&","<":"<",">":">",'"':""","'":"'"};function mn(e){return e==null?"":(e+"").replace(xpe,function(t,r){return Spe[r]})}var bpe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,tb=[],_pe=tt.browser.firefox&&+tt.browser.version.split(".")[0]<39;function rT(e,t,r,n){return r=r||{},n?UL(e,t,r):_pe&&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):UL(e,t,r),r}function UL(e,t,r){if(tt.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(fH(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(tT(tb,e,n,i)){r.zrX=tb[0],r.zrY=tb[1];return}}r.zrX=r.zrY=0}function U2(e){return e||window.event}function ei(e,t,r){if(t=U2(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&&rT(e,o,t,r)}else{rT(e,t,t,r);var a=wpe(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&bpe.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function wpe(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 nT(e,t,r,n){e.addEventListener(t,r,n)}function Cpe(e,t,r,n){e.removeEventListener(t,r,n)}var vo=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function jL(e){return e.which===2||e.which===3}var Tpe=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=YL(n)/YL(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Ape(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function bi(){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 j2(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 no(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 Na(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 Pu(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 Y2(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 $f(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 Mpe(e){var t=bi();return j2(t,e),t}var Ipe=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=Ipe;var dg=Math.min,hg=Math.max,js=new Le,Ys=new Le,qs=new Le,Xs=new Le,yd=new Le,xd=new Le,Ppe=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=dg(t.x,this.x),n=dg(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=hg(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=hg(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=bi();return Na(a,a,[-r.x,-r.y]),Y2(a,a,[n,i]),Na(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}js.x=qs.x=r.x,js.y=Xs.y=r.y,Ys.x=Xs.x=r.x+r.width,Ys.y=qs.y=r.y+r.height,js.transform(n),Xs.transform(n),Ys.transform(n),qs.transform(n),t.x=dg(js.x,Ys.x,qs.x,Xs.x),t.y=dg(js.y,Ys.y,qs.y,Xs.y);var l=hg(js.x,Ys.x,qs.x,Xs.x),u=hg(js.y,Ys.y,qs.y,Xs.y);t.width=l-t.x,t.height=u-t.y},e}();const Ne=Ppe;var dH="silent";function kpe(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:Dpe}}function Dpe(){vo(this.event)}var Rpe=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}(Ti),Sd=function(){function e(t,r){this.x=t,this.y=r}return e}(),Lpe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],nb=new Ne(0,0,0,0),hH=function(e){Dt(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new Sd(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new Rpe,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new hpe(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(D(Lpe,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=pH(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 Sd(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 Sd(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=kpe(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 Sd(r,n);if(qL(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)&&(nb.copy(d.getBoundingRect()),d.transform&&nb.applyTransform(d.transform),nb.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 Epe(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?dH:!0}return!1}function qL(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=Epe(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==dH)){t.target=o;break}}}function pH(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const Ope=hH;var vH=32,bd=7;function Npe(e){for(var t=0;e>=vH;)t|=e&1,e>>=1;return e+t}function XL(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 zpe(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 ib(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 ab(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 Bpe(e,t){var r=bd,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]=bd||w>=bd);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-ib(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=bd||A>=bd);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),ZL(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 On=1,rh=2,vc=4,KL=!1;function ob(){KL||(KL=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function QL(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Fpe=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=QL}return e.prototype.traverse=function(t,r){for(var n=0;n0&&(c.__clipPaths=[]),isNaN(c.z)&&(ob(),c.z=0),isNaN(c.z2)&&(ob(),c.z2=0),isNaN(c.zlevel)&&(ob(),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 $pe=Fpe;var gH;gH=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 iT=gH;var Bm={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-Bm.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?Bm.bounceIn(e*2)*.5:Bm.bounceOut(e*2-1)*.5+.5}};const mH=Bm;var pg=Math.pow,ys=Math.sqrt,qy=1e-8,yH=1e-4,JL=ys(3),vg=1/3,va=Iu(),ci=Iu(),qc=Iu();function rs(e){return e>-qy&&eqy||e<-qy}function vr(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 eE(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function Xy(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(rs(c)&&rs(f))if(rs(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(rs(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=ys(v),x=c*s+1.5*o*(-f+y),S=c*s+1.5*o*(-f-y);x<0?x=-pg(-x,vg):x=pg(x,vg),S<0?S=-pg(-S,vg):S=pg(S,vg);var p=(-s-(x+S))/(3*o);p>=0&&p<=1&&(a[h++]=p)}else{var _=(2*c*s-3*o*f)/(2*ys(c*c*c)),b=Math.acos(_)/3,w=ys(c),C=Math.cos(b),p=(-s-2*w*C)/(3*o),m=(-s+w*(C+JL*Math.sin(b)))/(3*o),A=(-s+w*(C-JL*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 SH(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(rs(o)){if(xH(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(rs(c))i[0]=-a/(2*o);else if(c>0){var f=ys(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 ks(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 bH(e,t,r,n,i,a,o,s,l,u,c){var f,d=.005,h=1/0,p,v,g,m;va[0]=l,va[1]=u;for(var y=0;y<1;y+=.05)ci[0]=vr(e,r,i,o,y),ci[1]=vr(t,n,a,s,y),g=Ql(va,ci),g=0&&g=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(rs(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=ys(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 _H(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function Tp(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 wH(e,t,r,n,i,a,o,s,l){var u,c=.005,f=1/0;va[0]=o,va[1]=s;for(var d=0;d<1;d+=.05){ci[0]=_r(e,r,i,d),ci[1]=_r(t,n,a,d);var h=Ql(va,ci);h=0&&h=1?1:Xy(0,n,a,1,l,s)&&vr(0,i,o,1,s[0])}}}var Upe=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=me(t)?t:mH[t]||q2(t)},e}();const jpe=Upe;var CH=function(){function e(t){this.value=t}return e}(),Ype=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new CH(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}(),qpe=function(){function e(t){this._list=new Ype,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 CH(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 dv=qpe;var tE={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 Wi(e){return e=Math.round(e),e<0?0:e>255?255:e}function Xpe(e){return e=Math.round(e),e<0?0:e>360?360:e}function Ap(e){return e<0?0:e>1?1:e}function sb(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Wi(parseFloat(t)/100*255):Wi(parseInt(t,10))}function Jl(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Ap(parseFloat(t)/100):Ap(parseFloat(t))}function lb(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 ns(e,t,r){return e+(t-e)*r}function Jn(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function oT(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var TH=new dv(20),gg=null;function Yu(e,t){gg&&oT(gg,t),gg=TH.put(e,gg||t.slice())}function $n(e,t){if(e){t=t||[];var r=TH.get(e);if(r)return oT(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in tE)return oT(t,tE[n]),Yu(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)){Jn(t,0,0,0,1);return}return Jn(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),Yu(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Jn(t,0,0,0,1);return}return Jn(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Yu(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?Jn(t,+u[0],+u[1],+u[2],1):Jn(t,0,0,0,1);c=Jl(u.pop());case"rgb":if(u.length>=3)return Jn(t,sb(u[0]),sb(u[1]),sb(u[2]),u.length===3?c:Jl(u[3])),Yu(e,t),t;Jn(t,0,0,0,1);return;case"hsla":if(u.length!==4){Jn(t,0,0,0,1);return}return u[3]=Jl(u[3]),sT(u,t),Yu(e,t),t;case"hsl":if(u.length!==3){Jn(t,0,0,0,1);return}return sT(u,t),Yu(e,t),t;default:return}}Jn(t,0,0,0,1)}}function sT(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Jl(e[1]),i=Jl(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],Jn(t,Wi(lb(o,a,r+1/3)*255),Wi(lb(o,a,r)*255),Wi(lb(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Zpe(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 lT(e,t){var r=$n(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 io(r,r.length===4?"rgba":"rgb")}}function ub(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]=Wi(ns(o[0],s[0],l)),r[1]=Wi(ns(o[1],s[1],l)),r[2]=Wi(ns(o[2],s[2],l)),r[3]=Ap(ns(o[3],s[3],l)),r}}function Kpe(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=$n(t[i]),s=$n(t[a]),l=n-i,u=io([Wi(ns(o[0],s[0],l)),Wi(ns(o[1],s[1],l)),Wi(ns(o[2],s[2],l)),Ap(ns(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function Oh(e,t,r,n){var i=$n(e);if(e)return i=Zpe(i),t!=null&&(i[0]=Xpe(t)),r!=null&&(i[1]=Jl(r)),n!=null&&(i[2]=Jl(n)),io(sT(i),"rgba")}function Zy(e,t){var r=$n(e);if(r&&t!=null)return r[3]=Ap(t),io(r,"rgba")}function io(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 Ky(e,t){var r=$n(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var Qy=Math.round;function Mp(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=$n(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var rE=1e-4;function is(e){return e-rE}function mg(e){return Qy(e*1e3)/1e3}function uT(e){return Qy(e*1e4)/1e4}function Qpe(e){return"matrix("+mg(e[0])+","+mg(e[1])+","+mg(e[2])+","+mg(e[3])+","+uT(e[4])+","+uT(e[5])+")"}var Jpe={left:"start",right:"end",center:"middle",middle:"middle"};function eve(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function tve(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function rve(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 AH(e){return e&&!!e.image}function nve(e){return e&&!!e.svgElement}function X2(e){return AH(e)||nve(e)}function MH(e){return e.type==="linear"}function IH(e){return e.type==="radial"}function PH(e){return e&&(e.type==="linear"||e.type==="radial")}function fx(e){return"url(#"+e+")"}function kH(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 DH(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*Em,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("+Qy(o*Em)+"deg, "+Qy(s*Em)+"deg)"),l.join(" ")}var ive=function(){return tt.hasGlobalWindow&&me(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 qa(e,t,r){return(t-e)*r+e}function cb(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=iE,l=r;if(Zr(r)){var u=lve(r);s=u,(u===1&&!nt(r[0])||u===2&&!nt(r[0][0]))&&(o=!0)}else if(nt(r)&&!Cp(r))s=xg;else if(oe(r))if(!isNaN(+r))s=xg;else{var c=$n(r);c&&(l=c,s=nh)}else if(lx(r)){var f=Y({},l);f.colorStops=Z(r.colorStops,function(h){return{offset:h.offset,color:$n(h.color)}}),MH(r)?s=fT:IH(r)&&(s=dT),l=f}a===0?this.valType=s:(s!==this.valType||s===iE)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=me(n)?n:mH[n]||q2(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=Sg(i),u=aE(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?_d:t[l];if((Sg(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?h.rawValue:p.rawValue;else if(Sg(a))a===$m?cb(y,h[i],p[i],m):ave(y,h[i],p[i],m);else if(aE(a)){var x=h[i],S=p[i],_=a===fT;t[l]={type:_?"linear":"radial",x:qa(x.x,S.x,m),y:qa(x.y,S.y,m),colorStops:Z(x.colorStops,function(w,C){var A=S.colorStops[C];return{offset:qa(w.offset,A.offset,m),color:Fm(cb([],w.color,A.color,m))}}),global:S.global},_?(t[l].x2=qa(x.x2,S.x2,m),t[l].y2=qa(x.y2,S.y2,m)):t[l].r=qa(x.r,S.r,m)}else if(u)cb(y,h[i],p[i],m),n||(t[l]=Fm(y));else{var b=qa(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===xg?t[n]=t[n]+i:r===nh?($n(t[n],_d),yg(_d,_d,i,1),t[n]=Fm(_d)):r===$m?yg(t[n],t[n],i,1):r===RH&&nE(t[n],t[n],i,1)},e}(),Z2=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){V2("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,He(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o0&&l.addKeyframe(0,Nh(u),i),this._trackKeys.push(s)}l.addKeyframe(t,Nh(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 Lc(){return new Date().getTime()}var cve=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=Lc()-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&&(iT(n),!r._paused&&r.update())}iT(n)},t.prototype.start=function(){this._running||(this._time=Lc(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Lc(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Lc()-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 Z2(r,n.loop);return this.addAnimator(i),i},t}(Ti);const fve=cve;var dve=300,fb=tt.domSupported,db=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}}(),oE={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},sE=!1;function hT(e){var t=e.pointerType;return t==="pen"||t==="touch"}function hve(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 hb(e){e&&(e.zrByTouch=!0)}function pve(e,t){return ei(e.dom,new vve(e,t),!0)}function LH(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 vve=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}(),Ri={mousedown:function(e){e=ei(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=ei(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=ei(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=ei(this.dom,e);var t=e.toElement||e.relatedTarget;LH(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){sE=!0,e=ei(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){sE||(e=ei(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=ei(this.dom,e),hb(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Ri.mousemove.call(this,e),Ri.mousedown.call(this,e)},touchmove:function(e){e=ei(this.dom,e),hb(e),this.handler.processGesture(e,"change"),Ri.mousemove.call(this,e)},touchend:function(e){e=ei(this.dom,e),hb(e),this.handler.processGesture(e,"end"),Ri.mouseup.call(this,e),+new Date-+this.__lastTouchMomentcE||e<-cE}var Ks=[],qu=[],vb=bi(),gb=Math.abs,bve=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 Zs(this.rotation)||Zs(this.x)||Zs(this.y)||Zs(this.scaleX-1)||Zs(this.scaleY-1)||Zs(this.skewX)||Zs(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(uE(n),this.invTransform=null);return}n=n||bi(),r?this.getLocalTransform(n):uE(n),t&&(r?no(n,t,n):j2(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Ks);var n=Ks[0]<0?-1:1,i=Ks[1]<0?-1:1,a=((Ks[0]-n)*r+n)/Ks[0]||0,o=((Ks[1]-i)*r+i)/Ks[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||bi(),$f(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&&(no(qu,t.invTransform,r),r=qu);var n=this.originX,i=this.originY;(n||i)&&(vb[4]=n,vb[5]=i,no(qu,r,vb),qu[4]-=n,qu[5]-=i,r=qu),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&&gb(t[0]-1)>1e-10&&gb(t[3]-1)>1e-10?Math.sqrt(gb(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){OH(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&&Pu(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}(),za=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function OH(e,t){for(var r=0;r=0?parseFloat(e)/100*t:parseFloat(e):e}function e0(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+=Xi(n[0],r.width),u+=Xi(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 mb="__zr_normal__",yb=za.concat(["ignore"]),_ve=Oa(za,function(e,t){return e[t]=!0,e},{ignore:!1}),Xu={},wve=new Ne(0,0,0,0),K2=function(){function e(t){this.id=sH(),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=wve;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Xu,n,c):e0(Xu,n,c),a.x=Xu.x,a.y=Xu.y,o=Xu.align,s=Xu.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=Xi(f[0],c.width),h=Xi(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|=On,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()?mT:gT},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&$n(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,io(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||{},Y(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(Se(t))for(var n=t,i=He(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(mb,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===mb,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){V2("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&=~On),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&=~On)}},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)?Dve(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),$H),e=(+e).toFixed(t),r?e:+e}function vi(e){return e.sort(function(t,r){return t-r}),e}function Sa(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 Rve(e)}function Rve(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 VH(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 Lve(e,t){var r=Oa(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=Oa(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 Eve(e,t){var r=Math.max(Sa(e),Sa(t)),n=e+t;return r>$H?n:Xt(n,r)}var vE=9007199254740991;function GH(e){var t=Math.PI*2;return(e%t+t)%t}function t0(e){return e>-pE&&e=10&&t++,t}function HH(e,t){var r=Q2(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 Sb(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 gE(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 oge=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],sge=mu(oge),lge=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return sge(this,t,r)},e}(),yT=new dv(50);function uge(e){if(typeof e=="string"){var t=yT.get(e);return t&&t.image}else return e}function rI(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=yT.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!hx(t)&&a.pending.push(o)):(t=Ps.loadImage(e,SE,SE),t.__zrImageSrc=e,yT.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function SE(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t0&&(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)?Rve(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),$H),e=(+e).toFixed(t),r?e:+e}function vi(e){return e.sort(function(t,r){return t-r}),e}function Sa(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 Lve(e)}function Lve(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 VH(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 Eve(e,t){var r=Oa(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=Oa(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 Ove(e,t){var r=Math.max(Sa(e),Sa(t)),n=e+t;return r>$H?n:Xt(n,r)}var vE=9007199254740991;function GH(e){var t=Math.PI*2;return(e%t+t)%t}function t0(e){return e>-pE&&e=10&&t++,t}function HH(e,t){var r=Q2(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 bb(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 gE(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 sge=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],lge=mu(sge),uge=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return lge(this,t,r)},e}(),xT=new dv(50);function cge(e){if(typeof e=="string"){var t=xT.get(e);return t&&t.image}else return e}function rI(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=xT.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!px(t)&&a.pending.push(o)):(t=Ps.loadImage(e,SE,SE),t.__zrImageSrc=e,xT.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function SE(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;l++)s-=o;var u=Vn(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 r6(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=Vn(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?fge(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=Vn(e,n)}return e===""&&(e=t.placeholder),e}function fge(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=t6(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 I=w.width,P=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")b.percentWidth=I,c.push(b),b.contentWidth=Vn(b.text,T);else{if(P){var k=w.backgroundColor,R=k&&k.image;R&&(R=uge(R),hx(R)&&(b.width=Math.max(b.width,R.width*M/R.height)))}var z=p&&n!=null?n-S:null;z!=null&&z0&&p+n.accumWidth>n.width&&(c=t.split(` +`)}function t6(e,t,r,n){n=n||{};var i=Y({},n);i.font=t,r=Ee(r,"..."),i.maxIterations=Ee(n.maxIterations,2);var a=i.minChar=Ee(n.minChar,0);i.cnCharWidth=Vn("国",t);var o=i.ascCharWidth=Vn("a",t);i.placeholder=Ee(n.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l=o;l++)s-=o;var u=Vn(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 r6(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=Vn(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?dge(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=Vn(e,n)}return e===""&&(e=t.placeholder),e}function dge(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=t6(c,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;gs&&wb(r,e.substring(s,u),t,o),wb(r,l[2],t,o,l[1]),s=_b.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 I=w.width,P=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")b.percentWidth=I,c.push(b),b.contentWidth=Vn(b.text,T);else{if(P){var k=w.backgroundColor,R=k&&k.image;R&&(R=cge(R),px(R)&&(b.width=Math.max(b.width,R.width*M/R.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=n6(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 mge=Oa(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function yge(e){return gge(e)?!!mge[e]:!0}function n6(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 xT="__zr_style_"+Math.round(Math.random()*10),eu={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},px={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};eu[xT]=!0;var _E=["z","z2","invisible"],xge=["invisible"],Sge=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=He(r),i=0;i1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(bg[0]=Ab(i)*r+e,bg[1]=Tb(i)*n+t,_g[0]=Ab(a)*r+e,_g[1]=Tb(a)*n+t,u(s,bg,_g),c(l,bg,_g),i=i%Js,i<0&&(i=i+Js),a=a%Js,a<0&&(a=a+Js),i>a&&!o?a+=Js:ii&&(wg[0]=Ab(h)*r+e,wg[1]=Tb(h)*n+t,u(s,wg,s),c(l,wg,l))}var xt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},el=[],tl=[],Ji=[],Lo=[],ea=[],ta=[],Mb=Math.min,Ib=Math.max,rl=Math.cos,nl=Math.sin,Ha=Math.abs,ST=Math.PI,Go=ST*2,Pb=typeof Float32Array<"u",wd=[];function kb(e){var t=Math.round(e/ST*1e8)/1e8;return t%2*ST}function i6(e,t){var r=kb(e[0]);r<0&&(r+=Go);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=Go?i=r+Go:t&&r-i>=Go?i=r-Go:!t&&r>i?i=r+(Go-kb(r-i)):t&&r0&&(this._ux=Ha(n/Jy/t)||0,this._uy=Ha(n/Jy/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=Ha(t-this._xi),i=Ha(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(),wd[0]=i,wd[1]=a,i6(wd,o),i=wd[0],a=wd[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=rl(a)*n+t,this._yi=nl(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)&&Pb&&(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(){Ji[0]=Ji[1]=ea[0]=ea[1]=Number.MAX_VALUE,Lo[0]=Lo[1]=ta[0]=ta[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;on||Ha(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=$pe(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=Gpe(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++],I=t[d++],P=t[d++],k=P+I;d+=1,t[d++],p&&(s=rl(I)*T+C,l=nl(I)*M+A),v=Ib(T,M)*Mb(Go,Math.abs(P)),a=rl(k)*T+C,o=nl(k)*M+A;break;case xt.R:{s=a=t[d++],l=o=t[d++];var R=t[d++],z=t[d++];v=R*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=Ha(f-u),T=Ha(d-c);if(A>i||T>a){if(h){var M=p[m++];if(g+M>y){var I=(y-g)/M;t.lineTo(u*(1-I)+f*I,c*(1-I)+d*I);break e}g+=M}t.lineTo(f,d),u=f,c=d,x=0}else{var P=A*A+T*T;P>x&&(S=f,_=d,x=P)}break}case xt.C:{var k=n[b++],R=n[b++],z=n[b++],$=n[b++],N=n[b++],V=n[b++];if(h){var M=p[m++];if(g+M>y){var I=(y-g)/M;ks(u,k,z,N,I,el),ks(c,R,$,V,I,tl),t.bezierCurveTo(el[1],tl[1],el[2],tl[2],el[3],tl[3]);break e}g+=M}t.bezierCurveTo(k,R,z,$,N,V),u=N,c=V;break}case xt.Q:{var k=n[b++],R=n[b++],z=n[b++],$=n[b++];if(h){var M=p[m++];if(g+M>y){var I=(y-g)/M;Tp(u,k,z,I,el),Tp(c,R,$,I,tl),t.quadraticCurveTo(el[1],tl[1],el[2],tl[2]);break e}g+=M}t.quadraticCurveTo(k,R,z,$),u=z,c=$;break}case xt.A:var L=n[b++],G=n[b++],U=n[b++],B=n[b++],j=n[b++],X=n[b++],W=n[b++],ee=!n[b++],te=U>B?U:B,ie=Ha(U-B)>.001,re=j+X,Q=!1;if(h){var M=p[m++];g+M>y&&(re=j+X*(y-g)/M,Q=!0),g+=M}if(ie&&t.ellipse?t.ellipse(L,G,U,B,W,j,re,ee):t.arc(L,G,te,j,re,ee),Q)break e;C&&(s=rl(j)*U+L,l=nl(j)*B+G),u=rl(re)*U+L,c=nl(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++],fe=n[b++];if(h){var M=p[m++];if(g+M>y){var de=y-g;t.moveTo(f,d),t.lineTo(f+Mb(de,J),d),de-=J,de>0&&t.lineTo(f+J,d+Mb(de,fe)),de-=fe,de>0&&t.lineTo(f+Ib(J-de,0),d+fe),de-=J,de>0&&t.lineTo(f,d+Ib(fe-de,0));break e}g+=M}t.rect(f,d,J,fe);break;case xt.Z:if(h){var M=p[m++];if(g+M>y){var I=(y-g)/M;t.lineTo(u*(1-I)+s*I,c*(1-I)+l*I);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 Fa=Tge;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+=Cd);var d=Math.atan2(l,s);return d<0&&(d+=Cd),d>=n&&d<=i||d+Cd>=n&&d+Cd<=i}function Xa(e,t,r,n,i,a){if(a>t&&a>n||ai?s:0}var Eo=Fa.CMD,il=Math.PI*2,Ige=1e-4;function Pge(e,t){return Math.abs(e-t)t&&u>n&&u>a&&u>s||u1&&kge(),h=vr(t,n,a,s,ri[0]),d>1&&(p=vr(t,n,a,s,ri[1]))),d===2?gt&&s>n&&s>a||s=0&&u<=1){for(var c=0,f=_r(t,n,a,u),d=0;dr||s<-r)return 0;var l=Math.sqrt(r*r-s*s);rn[0]=-l,rn[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=il-1e-4){n=0,i=il;var c=a?1:-1;return o>=rn[0]+e&&o<=rn[1]+e?c:0}if(n>i){var f=n;n=i,i=f}n<0&&(n+=il,i+=il);for(var d=0,h=0;h<2;h++){var p=rn[h];if(p+e>o){var v=Math.atan2(s,p),c=a?1:-1;v<0&&(v=il+v),(v>=n&&v<=i||v+il>=n&&v+il<=i)&&(v>Math.PI/2&&v1&&(r||(s+=Xa(l,u,c,f,n,i))),g&&(l=a[p],u=a[p+1],c=l,f=u),v){case Eo.M:c=a[p++],f=a[p++],l=c,u=f;break;case Eo.L:if(r){if(jo(l,u,a[p],a[p+1],t,n,i))return!0}else s+=Xa(l,u,a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case Eo.C:if(r){if(Age(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],t,n,i))return!0}else s+=Dge(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 Eo.Q:if(r){if(a6(l,u,a[p++],a[p++],a[p],a[p+1],t,n,i))return!0}else s+=Rge(l,u,a[p++],a[p++],a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case Eo.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+=Xa(l,u,d,h,n,i);var C=(n-m)*S/x+m;if(r){if(Mge(m,y,S,_,_+b,w,t,C,i))return!0}else s+=Lge(m,y,S,_,_+b,w,C,i);l=Math.cos(_+b)*x+m,u=Math.sin(_+b)*S+y;break;case Eo.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+=Xa(d,f,d,h,n,i),s+=Xa(c,h,c,f,n,i);break;case Eo.Z:if(r){if(jo(l,u,c,f,t,n,i))return!0}else s+=Xa(l,u,c,f,n,i);l=c,u=f;break}}return!r&&!Pge(u,f)&&(s+=Xa(l,u,c,f,n,i)||0),s!==0}function Ege(e,t,r){return o6(e,0,!1,t,r)}function Oge(e,t,r,n){return o6(e,t,!0,r,n)}var r0=xe({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},eu),Nge={style:xe({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},px.style)},Db=za.concat(["invisible","culling","z","z2","zlevel","parent"]),zge=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?vT:n>.2?xve:gT}else if(r)return gT}return vT},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(oe(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Ky(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&vc)&&(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)),Oge(s,l/u,r,n)))return!0}if(this.hasFill())return Ege(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=vc,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:Y(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&vc)},t.prototype.createStyle=function(r){return lx(r0,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=Y({},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=Y({},i.shape),Y(u,n.shape)):(u=Y({},a?this.shape:i.shape),Y(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=Y({},this.shape);for(var c={},f=He(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 lx(Bge,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=hv(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}(_i);s6.prototype.type="tspan";const Pp=s6;var Fge=xe({x:0,y:0},eu),$ge={style:xe({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},px.style)};function Vge(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var l6=function(e){Dt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return lx(Fge,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=Vge(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 $ge},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}(_i);l6.prototype.type="image";const Fr=l6;function Gge(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 Ec=Math.round;function u6(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&&(Ec(n*2)===Ec(i*2)&&(e.x1=e.x2=Gl(n,s,!0)),Ec(a*2)===Ec(o*2)&&(e.y1=e.y2=Gl(a,s,!0))),e}}function c6(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=Gl(n,s,!0),e.y=Gl(i,s,!0),e.width=Math.max(Gl(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Gl(i+o,s,!1)-e.y,o===0?0:1)),e}}function Gl(e,t,r){if(!t)return e;var n=Ec(e*2);return(n+Ec(t))%2===0?n/2:(n+(r?1:-1))/2}var Hge=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Wge={},f6=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Hge},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=c6(Wge,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?Gge(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}($e);f6.prototype.type="rect";const Qe=f6;var ME={fill:"#000"},IE=2,Uge={style:xe({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},px.style)},d6=function(e){Dt(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=ME,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,I=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),P=o.calculatedLineHeight,k=0;k=0&&(k=b[P],k.align==="right");)this._placeToken(k,r,C,m,I,"right",x),A-=k.width,I-=k.width,P--;for(M+=(a-(M-g)-(y-I)-A)/2;T<=P;)k=b[T],this._placeToken(k,r,C,m,M+k.width/2,"center",x),M+=k.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&&Rb(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=EE(o,s,p),f-=r.height/2-p[0]-r.innerHeight/2);var v=this._getOrCreateChild(Pp),g=v.createStyle();v.useStyle(g);var m=this._defaultStyle,y=!1,x=0,S=LE("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),_=RE("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!m.autoStroke||y)?(x=IE,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||Is,g.opacity=Pa(u.opacity,n.opacity,1),kE(g,u),_&&(g.lineWidth=Pa(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(ih(g.x,w,g.textAlign),gc(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(Fr),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=Pa(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return p6(r)&&(n=[r.fontStyle,r.fontWeight,h6(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Bi(n)||r.textFont||r.font},t}(_i),jge={left:!0,right:1,center:1},Yge={top:1,bottom:1,middle:1},PE=["fontStyle","fontWeight","fontSize","fontFamily"];function h6(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?B2+"px":e+"px"}function kE(e,t){for(var r=0;r=0,a=!1;if(e instanceof $e){var o=v6(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Zu(s)||Zu(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=Y({},n),u=Y({},u),u.fill=s):!Zu(u.fill)&&Zu(s)?(a=!0,n=Y({},n),u=Y({},u),u.fill=FE(s)):!Zu(u.stroke)&&Zu(l)&&(a||(n=Y({},n),u=Y({},u)),u.stroke=FE(l)),n.style=u}}if(n&&n.z2==null){a||(n=Y({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??Gf)}return n}function eme(e,t,r){if(r&&r.z2==null){r=Y({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??Xge)}return r}function tme(e,t,r){var n=ze(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:Qge(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=Y({},r),o=Y({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Lb(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return Jge(this,e,t,r);if(e==="blur")return tme(this,e,r);if(e==="select")return eme(this,e,r)}return r}function yu(e){e.stateProxy=Lb;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Lb),r&&(r.stateProxy=Lb)}function VE(e,t){!_6(e,t)&&!e.__highByOuter&&To(e,g6)}function GE(e,t){!_6(e,t)&&!e.__highByOuter&&To(e,m6)}function mo(e,t){e.__highByOuter|=1<<(t||0),To(e,g6)}function yo(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&To(e,m6)}function x6(e){To(e,aI)}function oI(e){To(e,y6)}function S6(e){To(e,Zge)}function b6(e){To(e,Kge)}function _6(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function w6(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=nI(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){y6(u)}),s&&r.push(a)),o.isBlured=!1}),D(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function _T(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 ru(e,t,r){Hl(e,!0),To(e,yu),CT(e,t,r)}function sme(e){Hl(e,!1)}function Ut(e,t,r,n){n?sme(e):ru(e,t,r)}function CT(e,t,r){var n=Ie(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var WE=["emphasis","blur","select"],lme={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function zr(e,t,r,n){r=r||"itemStyle";for(var i=0;i1&&(o*=Eb(p),s*=Eb(p));var v=(i===a?-1:1)*Eb((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+Tg(f)*g-Cg(f)*m,x=(t+n)/2+Cg(f)*g+Tg(f)*m,S=qE([1,0],[(d-g)/o,(h-m)/s]),_=[(d-g)/o,(h-m)/s],b=[(-1*d-g)/o,(-1*h-m)/s],w=qE(_,b);if(AT(_,b)<=-1&&(w=Td),AT(_,b)>=1&&(w=0),w<0){var C=Math.round(w/Td*1e6)/1e6;w=Td*2+C%2*Td}c.addData(u,y,x,o,s,S,w,f,a)}var pme=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,vme=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function gme(e){var t=new Fa;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=Fa.CMD,l=e.match(pme);if(!l)return t;for(var u=0;uk*k+R*R&&(C=T,A=M),{cx:C,cy:A,x0:-c,y0:-f,x1:C*(i/_-1),y1:A*(i/_-1)}}function wme(e){var t;if(q(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 Cme(e,t){var r,n=ah(t.r,0),i=ah(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=ZE(u-l),p=h>Ob&&h%Ob;if(p>Di&&(h=p),!(n>Di))e.moveTo(c,f);else if(h>Ob-Di)e.moveTo(c+n*Qu(l),f+n*al(l)),e.arc(c,f,n,l,u,!d),i>Di&&(e.moveTo(c+i*Qu(u),f+i*al(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,I=void 0,P=void 0,k=void 0,R=n*Qu(l),z=n*al(l),$=i*Qu(u),N=i*al(u),V=h>Di;if(V){var L=t.cornerRadius;L&&(r=wme(L),v=r[0],g=r[1],m=r[2],y=r[3]);var G=ZE(n-i)/2;if(x=ra(G,m),S=ra(G,y),_=ra(G,v),b=ra(G,g),A=w=ah(x,S),T=C=ah(_,b),(w>Di||C>Di)&&(M=n*Qu(u),I=n*al(u),P=i*Qu(l),k=i*al(l),hDi){var ie=ra(m,A),re=ra(y,A),Q=Ag(P,k,R,z,n,ie,d),J=Ag(M,I,$,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+R,f+z),e.arc(c,f,n,l,u,!d);if(!(i>Di)||!V)e.lineTo(c+$,f+N);else if(T>Di){var ie=ra(v,T),re=ra(g,T),Q=Ag($,N,M,I,i,-re,d),J=Ag(R,z,P,k,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+$,f+N),e.arc(c,f,i,u,l,d)}e.closePath()}}}var Tme=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}(),R6=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Tme},t.prototype.buildPath=function(r,n){Cme(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}($e);R6.prototype.type="sector";const In=R6;var Ame=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),L6=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Ame},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}($e);L6.prototype.type="ring";const yx=L6;function Mme(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=Mme(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;ssl[1]){if(s=!1,a)return s;var c=Math.abs(sl[0]-ol[1]),f=Math.abs(ol[0]-sl[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 it(e,t,r,n,i,a){dI("update",e,t,r,n,i,a)}function Lt(e,t,r,n,i,a){dI("enter",e,t,r,n,i,a)}function Xc(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 JE(e){return!e.isGroup}function Yme(e){return e.shape!=null}function mv(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){JE(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Yme(o)&&(s.shape=Y({},o.shape)),s}var a=n(e);t.traverse(function(o){if(JE(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),it(o,l,r,Ie(o).dataIndex)}}})}function j6(e,t){return Z(e,function(r){var n=r[0];n=a0(n,t.x),n=o0(n,t.x+t.width);var i=r[1];return i=a0(i,t.y),i=o0(i,t.y+t.height),[n,i]})}function qme(e,t){var r=a0(e.x,t.x),n=o0(e.x+e.width,t.x+t.width),i=a0(e.y,t.y),a=o0(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 yv(e,t,r){var n=Y({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),xe(i,r),new Fr(n)):Sx(e.replace("path://",""),n,r,"center")}function oh(e,t,r,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var g=Nb(h,p,c,f)/d;return!(g<0||g>1)}function Nb(e,t,r,n){return e*n-r*t}function Xme(e){return e<=1e-6&&e>=-1e-6}function Wf(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&&D(He(l),function(c){ce(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Ie(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:xe({content:n,formatterParams:s},i)}}function eO(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Gs(e,t){if(e)if(q(e))for(var r=0;r=0&&s.push(l)}),s}}function Hs(e,t){return Oe(Oe({},e,!0),t,!0)}const lye={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:". "}}}},uye={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 l0="ZH",pI="EN",Lp=pI,jm={},vI={},eW=tt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(l0)>-1?l0:Lp}():Lp;function tW(e,t){e=e.toUpperCase(),vI[e]=new wt(t),jm[e]=t}function cye(e){if(oe(e)){var t=jm[e.toUpperCase()]||{};return e===l0||e===pI?we(t):Oe(we(t),we(jm[Lp]),!1)}else return Oe(we(e),we(jm[Lp]),!1)}function PT(e){return vI[e]}function fye(){return vI[Lp]}tW(pI,lye);tW(l0,uye);var gI=1e3,mI=gI*60,Gh=mI*60,hi=Gh*24,aO=hi*365,sh={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}"},Pg="{yyyy}-{MM}-{dd}",oO={year:"{yyyy}",month:"{yyyy}-{MM}",day:Pg,hour:Pg+" "+sh.hour,minute:Pg+" "+sh.minute,second:Pg+" "+sh.second,millisecond:sh.none},Fb=["year","month","day","hour","minute","second","millisecond"],rW=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Oo(e,t){return e+="","0000".substr(0,t-e.length)+e}function Zc(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 dye(e){return e===Zc(e)}function hye(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Cx(e,t,r,n){var i=Ba(e),a=i[yI(r)](),o=i[Kc(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[Tx(r)](),u=i["get"+(r?"UTC":"")+"Day"](),c=i[Ep(r)](),f=(c-1)%12+1,d=i[Ax(r)](),h=i[Mx(r)](),p=i[Ix(r)](),v=n instanceof wt?n:PT(n||eW)||fye(),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,Oo(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Oo(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Oo(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Oo(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Oo(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Oo(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Oo(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Oo(p,3)).replace(/{S}/g,p+"")}function pye(e,t,r,n,i){var a=null;if(oe(r))a=r;else if(me(r))a=r(e.value,t,{level:e.level});else{var o=Y({},sh);if(e.level>0)for(var s=0;s=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(q(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 Cx(new Date(e.value),a,i,n)}function nW(e,t){var r=Ba(e),n=r[Kc(t)]()+1,i=r[Tx(t)](),a=r[Ep(t)](),o=r[Ax(t)](),s=r[Mx(t)](),l=r[Ix(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 sO(e,t,r){var n=nt(e)?Ba(e):e;switch(t=t||nW(e,r),t){case"year":return n[yI(r)]();case"half-year":return n[Kc(r)]()>=6?1:0;case"quarter":return Math.floor((n[Kc(r)]()+1)/4);case"month":return n[Kc(r)]();case"day":return n[Tx(r)]();case"half-day":return n[Ep(r)]()/24;case"hour":return n[Ep(r)]();case"minute":return n[Ax(r)]();case"second":return n[Mx(r)]();case"millisecond":return n[Ix(r)]()}}function yI(e){return e?"getUTCFullYear":"getFullYear"}function Kc(e){return e?"getUTCMonth":"getMonth"}function Tx(e){return e?"getUTCDate":"getDate"}function Ep(e){return e?"getUTCHours":"getHours"}function Ax(e){return e?"getUTCMinutes":"getMinutes"}function Mx(e){return e?"getUTCSeconds":"getSeconds"}function Ix(e){return e?"getUTCMilliseconds":"getMilliseconds"}function vye(e){return e?"setUTCFullYear":"setFullYear"}function iW(e){return e?"setUTCMonth":"setMonth"}function aW(e){return e?"setUTCDate":"setDate"}function oW(e){return e?"setUTCHours":"setHours"}function sW(e){return e?"setUTCMinutes":"setMinutes"}function lW(e){return e?"setUTCSeconds":"setSeconds"}function uW(e){return e?"setUTCMilliseconds":"setMilliseconds"}function cW(e){if(!WH(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 fW(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 Yf=W2;function kT(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Bi(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?Ba(e):e;if(isNaN(+l)){if(s)return"-"}else return Cx(l,n,r)}if(t==="ordinal")return qC(e)?i(e):nt(e)&&a(e)?e+"":"-";var u=go(e);return a(u)?cW(u):qC(e)?i(e):typeof e=="boolean"?e+"":"-"}var lO=["a","b","c","d","e","f","g"],$b=function(e,t){return"{"+e+(t??"")+"}"};function dW(e,t,r){q(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 xu(e,t){return t=t||"transparent",oe(e)?e:Se(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function u0(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var Ym=D,hW=["left","right","top","bottom","width","height"],Wl=[["width","left","right"],["height","top","bottom"]];function xI(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 iu=xI;Pe(xI,"vertical");Pe(xI,"horizontal");function yye(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=Yf(r||0),{width:Math.max(s-a-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function hr(e,t,r){r=Yf(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 Px(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=hr(xe({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 xye(e,t){return e[Wl[t][0]]!=null||e[Wl[t][1]]!=null&&e[Wl[t][2]]!=null}function Op(e){var t=e.layoutMode||e.constructor.layoutMode;return Se(t)?t:t?{type:t}:null}function Rs(e,t,r){var n=r&&r.ignoreSize;!q(n)&&(n=[n,n]);var i=o(Wl[0],0),a=o(Wl[1],1);u(Wl[0],e,i),u(Wl[1],e,a);function o(c,f){var d={},h=0,p={},v=0,g=2;if(Ym(c,function(x){p[x]=e[x]}),Ym(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);e6(Xf,wt);dx(Xf);oye(Xf);sye(Xf,bye);function bye(e){var t=[];return D(Xf.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=Z(t,function(r){return ba(r).main}),e!=="dataset"&&ze(t,"dataset")<=0&&t.unshift("dataset"),t}const et=Xf;var vW="";typeof navigator<"u"&&(vW=navigator.platform||"");var Ju="rgba(0, 0, 0, 0.2)";const _ye={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Ju,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ju,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ju,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ju,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ju,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ju,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:vW.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 gW=ve(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Ai="original",Kr="arrayRows",Mi="objectRows",Va="keyedColumns",xs="typedArray",mW="unknown",ka="column",Zf="row",kr={Must:1,Might:2,Not:3},yW=Je();function wye(e){yW(e).datasetMap=ve()}function xW(e,t,r){var n={},i=bI(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=yW(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),D(e,function(v,g){var m=Se(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});D(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 _W(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:Iye(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 Pye(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var kg,Ad,cO,fO="\0_ec_inner",kye=1,wW=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=pO(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,pO(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"?cO(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&&D(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=ve(),u=n&&n.replaceMergeMainTypeMap;wye(this),D(r,function(f,d){f!=null&&(et.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?we(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=Aye(this,f,pt(r[f])),h=a.get(f),p=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",v=XH(h,d,p);Uve(v,f,et),i[f]=null,a.set(f,null),o.set(f,0);var g=[],m=[],y=0,x;D(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=Y({componentIndex:_},S.keyInfo);b=new A(w,this,this,T),Y(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"&&kg(this)}this._seriesIndices||kg(this)},t.prototype.getOption=function(){var r=we(this.option);return D(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]&&!Ip(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[fO],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 Vye(e,t){return e.join(",")===t.join(",")}const Gye=zye;var Pi=D,Np=Se,vO=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Gb(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=vO.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=Eve(d,y),v=y;break}}}return n[0]=d,n[1]=v,n})})}var kx=function(){function e(t){this.data=t.data||(t.sourceFormat===Va?{}:[]),this.sourceFormat=t.sourceFormat||mW,this.seriesLayoutBy=t.seriesLayoutBy||ka,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};_O=(t={},t[Kr+"_"+ka]={pure:!0,appendData:a},t[Kr+"_"+Zf]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Mi]={pure:!0,appendData:a},t[Va]={pure:!0,appendData:function(o){var s=this._data;D(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[Ai]={appendData:a},t[xs]={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 gf(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function AO(e){var t,r;return Se(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Hh(e){return new a0e(e)}var a0e=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}},s0e=function(){function e(t,r){if(!nt(r)){var n="";st(n)}this._opFn=OW[t],this._rvalFloat=go(r)}return e.prototype.evaluate=function(t){return nt(t)?this._opFn(t,this._rvalFloat):this._opFn(go(t),this._rvalFloat)},e}(),NW=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:go(t),i=nt(r)?r:go(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}(),l0e=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=go(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=go(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function u0e(e,t){return e==="eq"||e==="ne"?new l0e(e==="eq",t):ce(OW,e)?new s0e(e,t):null}var c0e=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 Ss(t,r)},e}();function f0e(e,t){var r=new c0e,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==ka&&st(o);var s=[],l={},u=e.dimensionsDefine;if(u)D(u,function(v,g){var m=v.name,y={index:g,name:m,displayName:v.displayName};if(s.push(y),m!=null){var x="";ce(l,m)&&st(x),l[m]=y}});else for(var c=0;c65535?x0e:S0e}function ec(){return[1/0,-1/0]}function b0e(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function PO(e,t,r,n,i){var a=FW[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(Id(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 Ss(r[a],this._dimensions[a])}Ub={arrayRows:t,objectRows:function(r,n,i,a){return Ss(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Ss(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),$W=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(Dg(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=Wn(s)?xs:Ai,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?[LT(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=[LT(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&&DO(a)}var o,s=[],l=[];return D(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&DO(f),s.push(c),l.push(u._getVersionSign())}),n?o=m0e(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[Qye(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var yge=Oa(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function xge(e){return mge(e)?!!yge[e]:!0}function n6(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 ST="__zr_style_"+Math.round(Math.random()*10),eu={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},vx={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};eu[ST]=!0;var _E=["z","z2","invisible"],Sge=["invisible"],bge=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=He(r),i=0;i1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(bg[0]=Mb(i)*r+e,bg[1]=Ab(i)*n+t,_g[0]=Mb(a)*r+e,_g[1]=Ab(a)*n+t,u(s,bg,_g),c(l,bg,_g),i=i%Js,i<0&&(i=i+Js),a=a%Js,a<0&&(a=a+Js),i>a&&!o?a+=Js:ii&&(wg[0]=Mb(h)*r+e,wg[1]=Ab(h)*n+t,u(s,wg,s),c(l,wg,l))}var xt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},el=[],tl=[],ea=[],Lo=[],ta=[],ra=[],Ib=Math.min,Pb=Math.max,rl=Math.cos,nl=Math.sin,Ha=Math.abs,bT=Math.PI,Go=bT*2,kb=typeof Float32Array<"u",wd=[];function Db(e){var t=Math.round(e/bT*1e8)/1e8;return t%2*bT}function i6(e,t){var r=Db(e[0]);r<0&&(r+=Go);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=Go?i=r+Go:t&&r-i>=Go?i=r-Go:!t&&r>i?i=r+(Go-Db(r-i)):t&&r0&&(this._ux=Ha(n/Jy/t)||0,this._uy=Ha(n/Jy/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=Ha(t-this._xi),i=Ha(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(),wd[0]=i,wd[1]=a,i6(wd,o),i=wd[0],a=wd[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=rl(a)*n+t,this._yi=nl(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)&&kb&&(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(){ea[0]=ea[1]=ta[0]=ta[1]=Number.MAX_VALUE,Lo[0]=Lo[1]=ra[0]=ra[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;on||Ha(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=Vpe(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=Hpe(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++],I=t[d++],P=t[d++],k=P+I;d+=1,t[d++],p&&(s=rl(I)*T+C,l=nl(I)*M+A),v=Pb(T,M)*Ib(Go,Math.abs(P)),a=rl(k)*T+C,o=nl(k)*M+A;break;case xt.R:{s=a=t[d++],l=o=t[d++];var R=t[d++],z=t[d++];v=R*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=Ha(f-u),T=Ha(d-c);if(A>i||T>a){if(h){var M=p[m++];if(g+M>y){var I=(y-g)/M;t.lineTo(u*(1-I)+f*I,c*(1-I)+d*I);break e}g+=M}t.lineTo(f,d),u=f,c=d,x=0}else{var P=A*A+T*T;P>x&&(S=f,_=d,x=P)}break}case xt.C:{var k=n[b++],R=n[b++],z=n[b++],$=n[b++],N=n[b++],V=n[b++];if(h){var M=p[m++];if(g+M>y){var I=(y-g)/M;ks(u,k,z,N,I,el),ks(c,R,$,V,I,tl),t.bezierCurveTo(el[1],tl[1],el[2],tl[2],el[3],tl[3]);break e}g+=M}t.bezierCurveTo(k,R,z,$,N,V),u=N,c=V;break}case xt.Q:{var k=n[b++],R=n[b++],z=n[b++],$=n[b++];if(h){var M=p[m++];if(g+M>y){var I=(y-g)/M;Tp(u,k,z,I,el),Tp(c,R,$,I,tl),t.quadraticCurveTo(el[1],tl[1],el[2],tl[2]);break e}g+=M}t.quadraticCurveTo(k,R,z,$),u=z,c=$;break}case xt.A:var L=n[b++],G=n[b++],U=n[b++],B=n[b++],j=n[b++],X=n[b++],W=n[b++],ee=!n[b++],te=U>B?U:B,ie=Ha(U-B)>.001,re=j+X,Q=!1;if(h){var M=p[m++];g+M>y&&(re=j+X*(y-g)/M,Q=!0),g+=M}if(ie&&t.ellipse?t.ellipse(L,G,U,B,W,j,re,ee):t.arc(L,G,te,j,re,ee),Q)break e;C&&(s=rl(j)*U+L,l=nl(j)*B+G),u=rl(re)*U+L,c=nl(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++],fe=n[b++];if(h){var M=p[m++];if(g+M>y){var de=y-g;t.moveTo(f,d),t.lineTo(f+Ib(de,J),d),de-=J,de>0&&t.lineTo(f+J,d+Ib(de,fe)),de-=fe,de>0&&t.lineTo(f+Pb(J-de,0),d+fe),de-=J,de>0&&t.lineTo(f,d+Pb(fe-de,0));break e}g+=M}t.rect(f,d,J,fe);break;case xt.Z:if(h){var M=p[m++];if(g+M>y){var I=(y-g)/M;t.lineTo(u*(1-I)+s*I,c*(1-I)+l*I);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 Fa=Age;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+=Cd);var d=Math.atan2(l,s);return d<0&&(d+=Cd),d>=n&&d<=i||d+Cd>=n&&d+Cd<=i}function Xa(e,t,r,n,i,a){if(a>t&&a>n||ai?s:0}var Eo=Fa.CMD,il=Math.PI*2,Pge=1e-4;function kge(e,t){return Math.abs(e-t)t&&u>n&&u>a&&u>s||u1&&Dge(),h=vr(t,n,a,s,ri[0]),d>1&&(p=vr(t,n,a,s,ri[1]))),d===2?gt&&s>n&&s>a||s=0&&u<=1){for(var c=0,f=_r(t,n,a,u),d=0;dr||s<-r)return 0;var l=Math.sqrt(r*r-s*s);rn[0]=-l,rn[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=il-1e-4){n=0,i=il;var c=a?1:-1;return o>=rn[0]+e&&o<=rn[1]+e?c:0}if(n>i){var f=n;n=i,i=f}n<0&&(n+=il,i+=il);for(var d=0,h=0;h<2;h++){var p=rn[h];if(p+e>o){var v=Math.atan2(s,p),c=a?1:-1;v<0&&(v=il+v),(v>=n&&v<=i||v+il>=n&&v+il<=i)&&(v>Math.PI/2&&v1&&(r||(s+=Xa(l,u,c,f,n,i))),g&&(l=a[p],u=a[p+1],c=l,f=u),v){case Eo.M:c=a[p++],f=a[p++],l=c,u=f;break;case Eo.L:if(r){if(jo(l,u,a[p],a[p+1],t,n,i))return!0}else s+=Xa(l,u,a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case Eo.C:if(r){if(Mge(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],t,n,i))return!0}else s+=Rge(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 Eo.Q:if(r){if(a6(l,u,a[p++],a[p++],a[p],a[p+1],t,n,i))return!0}else s+=Lge(l,u,a[p++],a[p++],a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case Eo.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+=Xa(l,u,d,h,n,i);var C=(n-m)*S/x+m;if(r){if(Ige(m,y,S,_,_+b,w,t,C,i))return!0}else s+=Ege(m,y,S,_,_+b,w,C,i);l=Math.cos(_+b)*x+m,u=Math.sin(_+b)*S+y;break;case Eo.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+=Xa(d,f,d,h,n,i),s+=Xa(c,h,c,f,n,i);break;case Eo.Z:if(r){if(jo(l,u,c,f,t,n,i))return!0}else s+=Xa(l,u,c,f,n,i);l=c,u=f;break}}return!r&&!kge(u,f)&&(s+=Xa(l,u,c,f,n,i)||0),s!==0}function Oge(e,t,r){return o6(e,0,!1,t,r)}function Nge(e,t,r,n){return o6(e,t,!0,r,n)}var r0=xe({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},eu),zge={style:xe({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},vx.style)},Rb=za.concat(["invisible","culling","z","z2","zlevel","parent"]),Bge=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?gT:n>.2?Sve:mT}else if(r)return mT}return gT},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(oe(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Ky(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&vc)&&(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)),Nge(s,l/u,r,n)))return!0}if(this.hasFill())return Oge(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=vc,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:Y(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&vc)},t.prototype.createStyle=function(r){return ux(r0,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=Y({},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=Y({},i.shape),Y(u,n.shape)):(u=Y({},a?this.shape:i.shape),Y(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=Y({},this.shape);for(var c={},f=He(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 ux(Fge,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=hv(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}(_i);s6.prototype.type="tspan";const Pp=s6;var $ge=xe({x:0,y:0},eu),Vge={style:xe({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},vx.style)};function Gge(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var l6=function(e){Dt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return ux($ge,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=Gge(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 Vge},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}(_i);l6.prototype.type="image";const Fr=l6;function Hge(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 Ec=Math.round;function u6(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&&(Ec(n*2)===Ec(i*2)&&(e.x1=e.x2=Gl(n,s,!0)),Ec(a*2)===Ec(o*2)&&(e.y1=e.y2=Gl(a,s,!0))),e}}function c6(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=Gl(n,s,!0),e.y=Gl(i,s,!0),e.width=Math.max(Gl(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Gl(i+o,s,!1)-e.y,o===0?0:1)),e}}function Gl(e,t,r){if(!t)return e;var n=Ec(e*2);return(n+Ec(t))%2===0?n/2:(n+(r?1:-1))/2}var Wge=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Uge={},f6=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Wge},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=c6(Uge,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?Hge(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}($e);f6.prototype.type="rect";const Qe=f6;var ME={fill:"#000"},IE=2,jge={style:xe({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},vx.style)},d6=function(e){Dt(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=ME,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,I=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),P=o.calculatedLineHeight,k=0;k=0&&(k=b[P],k.align==="right");)this._placeToken(k,r,C,m,I,"right",x),A-=k.width,I-=k.width,P--;for(M+=(a-(M-g)-(y-I)-A)/2;T<=P;)k=b[T],this._placeToken(k,r,C,m,M+k.width/2,"center",x),M+=k.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&&Lb(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=EE(o,s,p),f-=r.height/2-p[0]-r.innerHeight/2);var v=this._getOrCreateChild(Pp),g=v.createStyle();v.useStyle(g);var m=this._defaultStyle,y=!1,x=0,S=LE("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),_=RE("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!m.autoStroke||y)?(x=IE,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||Is,g.opacity=Pa(u.opacity,n.opacity,1),kE(g,u),_&&(g.lineWidth=Pa(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(ih(g.x,w,g.textAlign),gc(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(Fr),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=Pa(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return p6(r)&&(n=[r.fontStyle,r.fontWeight,h6(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Fi(n)||r.textFont||r.font},t}(_i),Yge={left:!0,right:1,center:1},qge={top:1,bottom:1,middle:1},PE=["fontStyle","fontWeight","fontSize","fontFamily"];function h6(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?B2+"px":e+"px"}function kE(e,t){for(var r=0;r=0,a=!1;if(e instanceof $e){var o=v6(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Zu(s)||Zu(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=Y({},n),u=Y({},u),u.fill=s):!Zu(u.fill)&&Zu(s)?(a=!0,n=Y({},n),u=Y({},u),u.fill=FE(s)):!Zu(u.stroke)&&Zu(l)&&(a||(n=Y({},n),u=Y({},u)),u.stroke=FE(l)),n.style=u}}if(n&&n.z2==null){a||(n=Y({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??Gf)}return n}function tme(e,t,r){if(r&&r.z2==null){r=Y({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??Zge)}return r}function rme(e,t,r){var n=ze(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:Jge(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=Y({},r),o=Y({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Eb(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return eme(this,e,t,r);if(e==="blur")return rme(this,e,r);if(e==="select")return tme(this,e,r)}return r}function yu(e){e.stateProxy=Eb;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Eb),r&&(r.stateProxy=Eb)}function VE(e,t){!_6(e,t)&&!e.__highByOuter&&To(e,g6)}function GE(e,t){!_6(e,t)&&!e.__highByOuter&&To(e,m6)}function mo(e,t){e.__highByOuter|=1<<(t||0),To(e,g6)}function yo(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&To(e,m6)}function x6(e){To(e,aI)}function oI(e){To(e,y6)}function S6(e){To(e,Kge)}function b6(e){To(e,Qge)}function _6(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function w6(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=nI(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){y6(u)}),s&&r.push(a)),o.isBlured=!1}),D(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function wT(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 ru(e,t,r){Hl(e,!0),To(e,yu),TT(e,t,r)}function lme(e){Hl(e,!1)}function Ut(e,t,r,n){n?lme(e):ru(e,t,r)}function TT(e,t,r){var n=Ie(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var WE=["emphasis","blur","select"],ume={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function zr(e,t,r,n){r=r||"itemStyle";for(var i=0;i1&&(o*=Ob(p),s*=Ob(p));var v=(i===a?-1:1)*Ob((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+Tg(f)*g-Cg(f)*m,x=(t+n)/2+Cg(f)*g+Tg(f)*m,S=qE([1,0],[(d-g)/o,(h-m)/s]),_=[(d-g)/o,(h-m)/s],b=[(-1*d-g)/o,(-1*h-m)/s],w=qE(_,b);if(MT(_,b)<=-1&&(w=Td),MT(_,b)>=1&&(w=0),w<0){var C=Math.round(w/Td*1e6)/1e6;w=Td*2+C%2*Td}c.addData(u,y,x,o,s,S,w,f,a)}var vme=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,gme=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function mme(e){var t=new Fa;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=Fa.CMD,l=e.match(vme);if(!l)return t;for(var u=0;uk*k+R*R&&(C=T,A=M),{cx:C,cy:A,x0:-c,y0:-f,x1:C*(i/_-1),y1:A*(i/_-1)}}function Cme(e){var t;if(q(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 Tme(e,t){var r,n=ah(t.r,0),i=ah(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=ZE(u-l),p=h>Nb&&h%Nb;if(p>Di&&(h=p),!(n>Di))e.moveTo(c,f);else if(h>Nb-Di)e.moveTo(c+n*Qu(l),f+n*al(l)),e.arc(c,f,n,l,u,!d),i>Di&&(e.moveTo(c+i*Qu(u),f+i*al(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,I=void 0,P=void 0,k=void 0,R=n*Qu(l),z=n*al(l),$=i*Qu(u),N=i*al(u),V=h>Di;if(V){var L=t.cornerRadius;L&&(r=Cme(L),v=r[0],g=r[1],m=r[2],y=r[3]);var G=ZE(n-i)/2;if(x=na(G,m),S=na(G,y),_=na(G,v),b=na(G,g),A=w=ah(x,S),T=C=ah(_,b),(w>Di||C>Di)&&(M=n*Qu(u),I=n*al(u),P=i*Qu(l),k=i*al(l),hDi){var ie=na(m,A),re=na(y,A),Q=Ag(P,k,R,z,n,ie,d),J=Ag(M,I,$,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+R,f+z),e.arc(c,f,n,l,u,!d);if(!(i>Di)||!V)e.lineTo(c+$,f+N);else if(T>Di){var ie=na(v,T),re=na(g,T),Q=Ag($,N,M,I,i,-re,d),J=Ag(R,z,P,k,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+$,f+N),e.arc(c,f,i,u,l,d)}e.closePath()}}}var Ame=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}(),R6=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Ame},t.prototype.buildPath=function(r,n){Tme(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}($e);R6.prototype.type="sector";const In=R6;var Mme=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),L6=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Mme},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}($e);L6.prototype.type="ring";const xx=L6;function Ime(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=Ime(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;ssl[1]){if(s=!1,a)return s;var c=Math.abs(sl[0]-ol[1]),f=Math.abs(ol[0]-sl[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 it(e,t,r,n,i,a){dI("update",e,t,r,n,i,a)}function Lt(e,t,r,n,i,a){dI("enter",e,t,r,n,i,a)}function Xc(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 JE(e){return!e.isGroup}function qme(e){return e.shape!=null}function mv(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){JE(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return qme(o)&&(s.shape=Y({},o.shape)),s}var a=n(e);t.traverse(function(o){if(JE(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),it(o,l,r,Ie(o).dataIndex)}}})}function j6(e,t){return Z(e,function(r){var n=r[0];n=a0(n,t.x),n=o0(n,t.x+t.width);var i=r[1];return i=a0(i,t.y),i=o0(i,t.y+t.height),[n,i]})}function Xme(e,t){var r=a0(e.x,t.x),n=o0(e.x+e.width,t.x+t.width),i=a0(e.y,t.y),a=o0(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 yv(e,t,r){var n=Y({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),xe(i,r),new Fr(n)):bx(e.replace("path://",""),n,r,"center")}function oh(e,t,r,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var g=zb(h,p,c,f)/d;return!(g<0||g>1)}function zb(e,t,r,n){return e*n-r*t}function Zme(e){return e<=1e-6&&e>=-1e-6}function Wf(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&&D(He(l),function(c){ce(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Ie(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:xe({content:n,formatterParams:s},i)}}function eO(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Gs(e,t){if(e)if(q(e))for(var r=0;r=0&&s.push(l)}),s}}function Hs(e,t){return Oe(Oe({},e,!0),t,!0)}const uye={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:". "}}}},cye={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 l0="ZH",pI="EN",Lp=pI,jm={},vI={},eW=tt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(l0)>-1?l0:Lp}():Lp;function tW(e,t){e=e.toUpperCase(),vI[e]=new wt(t),jm[e]=t}function fye(e){if(oe(e)){var t=jm[e.toUpperCase()]||{};return e===l0||e===pI?we(t):Oe(we(t),we(jm[Lp]),!1)}else return Oe(we(e),we(jm[Lp]),!1)}function kT(e){return vI[e]}function dye(){return vI[Lp]}tW(pI,uye);tW(l0,cye);var gI=1e3,mI=gI*60,Gh=mI*60,hi=Gh*24,aO=hi*365,sh={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}"},Pg="{yyyy}-{MM}-{dd}",oO={year:"{yyyy}",month:"{yyyy}-{MM}",day:Pg,hour:Pg+" "+sh.hour,minute:Pg+" "+sh.minute,second:Pg+" "+sh.second,millisecond:sh.none},$b=["year","month","day","hour","minute","second","millisecond"],rW=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Oo(e,t){return e+="","0000".substr(0,t-e.length)+e}function Zc(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 hye(e){return e===Zc(e)}function pye(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Tx(e,t,r,n){var i=Ba(e),a=i[yI(r)](),o=i[Kc(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[Ax(r)](),u=i["get"+(r?"UTC":"")+"Day"](),c=i[Ep(r)](),f=(c-1)%12+1,d=i[Mx(r)](),h=i[Ix(r)](),p=i[Px(r)](),v=n instanceof wt?n:kT(n||eW)||dye(),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,Oo(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Oo(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Oo(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Oo(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Oo(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Oo(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Oo(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Oo(p,3)).replace(/{S}/g,p+"")}function vye(e,t,r,n,i){var a=null;if(oe(r))a=r;else if(me(r))a=r(e.value,t,{level:e.level});else{var o=Y({},sh);if(e.level>0)for(var s=0;s<$b.length;++s)o[$b[s]]="{primary|"+o[$b[s]]+"}";var l=r?r.inherit===!1?r:xe(r,o):o,u=nW(e.value,i);if(l[u])a=l[u];else if(l.inherit){for(var c=rW.indexOf(u),s=c-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(q(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 Tx(new Date(e.value),a,i,n)}function nW(e,t){var r=Ba(e),n=r[Kc(t)]()+1,i=r[Ax(t)](),a=r[Ep(t)](),o=r[Mx(t)](),s=r[Ix(t)](),l=r[Px(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 sO(e,t,r){var n=nt(e)?Ba(e):e;switch(t=t||nW(e,r),t){case"year":return n[yI(r)]();case"half-year":return n[Kc(r)]()>=6?1:0;case"quarter":return Math.floor((n[Kc(r)]()+1)/4);case"month":return n[Kc(r)]();case"day":return n[Ax(r)]();case"half-day":return n[Ep(r)]()/24;case"hour":return n[Ep(r)]();case"minute":return n[Mx(r)]();case"second":return n[Ix(r)]();case"millisecond":return n[Px(r)]()}}function yI(e){return e?"getUTCFullYear":"getFullYear"}function Kc(e){return e?"getUTCMonth":"getMonth"}function Ax(e){return e?"getUTCDate":"getDate"}function Ep(e){return e?"getUTCHours":"getHours"}function Mx(e){return e?"getUTCMinutes":"getMinutes"}function Ix(e){return e?"getUTCSeconds":"getSeconds"}function Px(e){return e?"getUTCMilliseconds":"getMilliseconds"}function gye(e){return e?"setUTCFullYear":"setFullYear"}function iW(e){return e?"setUTCMonth":"setMonth"}function aW(e){return e?"setUTCDate":"setDate"}function oW(e){return e?"setUTCHours":"setHours"}function sW(e){return e?"setUTCMinutes":"setMinutes"}function lW(e){return e?"setUTCSeconds":"setSeconds"}function uW(e){return e?"setUTCMilliseconds":"setMilliseconds"}function cW(e){if(!WH(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 fW(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 Yf=W2;function DT(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Fi(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?Ba(e):e;if(isNaN(+l)){if(s)return"-"}else return Tx(l,n,r)}if(t==="ordinal")return XC(e)?i(e):nt(e)&&a(e)?e+"":"-";var u=go(e);return a(u)?cW(u):XC(e)?i(e):typeof e=="boolean"?e+"":"-"}var lO=["a","b","c","d","e","f","g"],Vb=function(e,t){return"{"+e+(t??"")+"}"};function dW(e,t,r){q(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 xu(e,t){return t=t||"transparent",oe(e)?e:Se(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function u0(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var Ym=D,hW=["left","right","top","bottom","width","height"],Wl=[["width","left","right"],["height","top","bottom"]];function xI(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 iu=xI;Pe(xI,"vertical");Pe(xI,"horizontal");function xye(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=Yf(r||0),{width:Math.max(s-a-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function hr(e,t,r){r=Yf(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 kx(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=hr(xe({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 Sye(e,t){return e[Wl[t][0]]!=null||e[Wl[t][1]]!=null&&e[Wl[t][2]]!=null}function Op(e){var t=e.layoutMode||e.constructor.layoutMode;return Se(t)?t:t?{type:t}:null}function Rs(e,t,r){var n=r&&r.ignoreSize;!q(n)&&(n=[n,n]);var i=o(Wl[0],0),a=o(Wl[1],1);u(Wl[0],e,i),u(Wl[1],e,a);function o(c,f){var d={},h=0,p={},v=0,g=2;if(Ym(c,function(x){p[x]=e[x]}),Ym(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);e6(Xf,wt);hx(Xf);sye(Xf);lye(Xf,_ye);function _ye(e){var t=[];return D(Xf.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=Z(t,function(r){return ba(r).main}),e!=="dataset"&&ze(t,"dataset")<=0&&t.unshift("dataset"),t}const et=Xf;var vW="";typeof navigator<"u"&&(vW=navigator.platform||"");var Ju="rgba(0, 0, 0, 0.2)";const wye={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Ju,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ju,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ju,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ju,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ju,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ju,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:vW.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 gW=ve(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Ai="original",Kr="arrayRows",Mi="objectRows",Va="keyedColumns",xs="typedArray",mW="unknown",ka="column",Zf="row",kr={Must:1,Might:2,Not:3},yW=Je();function Cye(e){yW(e).datasetMap=ve()}function xW(e,t,r){var n={},i=bI(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=yW(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),D(e,function(v,g){var m=Se(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});D(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 _W(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:Pye(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 kye(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var kg,Ad,cO,fO="\0_ec_inner",Dye=1,wW=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=pO(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,pO(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"?cO(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&&D(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=ve(),u=n&&n.replaceMergeMainTypeMap;Cye(this),D(r,function(f,d){f!=null&&(et.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?we(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=Mye(this,f,pt(r[f])),h=a.get(f),p=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",v=XH(h,d,p);jve(v,f,et),i[f]=null,a.set(f,null),o.set(f,0);var g=[],m=[],y=0,x;D(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=Y({componentIndex:_},S.keyInfo);b=new A(w,this,this,T),Y(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"&&kg(this)}this._seriesIndices||kg(this)},t.prototype.getOption=function(){var r=we(this.option);return D(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]&&!Ip(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[fO],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 Gye(e,t){return e.join(",")===t.join(",")}const Hye=Bye;var Pi=D,Np=Se,vO=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Hb(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=vO.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=Ove(d,y),v=y;break}}}return n[0]=d,n[1]=v,n})})}var Dx=function(){function e(t){this.data=t.data||(t.sourceFormat===Va?{}:[]),this.sourceFormat=t.sourceFormat||mW,this.seriesLayoutBy=t.seriesLayoutBy||ka,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};_O=(t={},t[Kr+"_"+ka]={pure:!0,appendData:a},t[Kr+"_"+Zf]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Mi]={pure:!0,appendData:a},t[Va]={pure:!0,appendData:function(o){var s=this._data;D(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[Ai]={appendData:a},t[xs]={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 gf(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function AO(e){var t,r;return Se(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Hh(e){return new o0e(e)}var o0e=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}},l0e=function(){function e(t,r){if(!nt(r)){var n="";st(n)}this._opFn=OW[t],this._rvalFloat=go(r)}return e.prototype.evaluate=function(t){return nt(t)?this._opFn(t,this._rvalFloat):this._opFn(go(t),this._rvalFloat)},e}(),NW=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:go(t),i=nt(r)?r:go(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}(),u0e=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=go(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=go(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function c0e(e,t){return e==="eq"||e==="ne"?new u0e(e==="eq",t):ce(OW,e)?new l0e(e,t):null}var f0e=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 Ss(t,r)},e}();function d0e(e,t){var r=new f0e,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==ka&&st(o);var s=[],l={},u=e.dimensionsDefine;if(u)D(u,function(v,g){var m=v.name,y={index:g,name:m,displayName:v.displayName};if(s.push(y),m!=null){var x="";ce(l,m)&&st(x),l[m]=y}});else for(var c=0;c65535?S0e:b0e}function ec(){return[1/0,-1/0]}function _0e(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function PO(e,t,r,n,i){var a=FW[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(Id(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 Ss(r[a],this._dimensions[a])}jb={arrayRows:t,objectRows:function(r,n,i,a){return Ss(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Ss(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),$W=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(Dg(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=Wn(s)?xs:Ai,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?[ET(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=[ET(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&&DO(a)}var o,s=[],l=[];return D(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&DO(f),s.push(c),l.push(u._getVersionSign())}),n?o=y0e(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[Jye(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 D(e.blocks,function(i){var a=WW(i);a>=t&&(t=a+ +(n&&(!a||OT(i)&&!i.noHeader)))}),t}return 0}function C0e(e,t,r,n){var i=t.noHeader,a=A0e(WW(t)),o=[],s=t.blocks||[];ln(!s||q(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ce(u,l)){var c=new NW(u[l],null);s.sort(function(p,v){return c.evaluate(p.sortParam,v.sortParam)})}else l==="seriesDesc"&&s.reverse()}D(s,function(p,v){var g=t.valueFormatter,m=HW(p)(g?Y(Y({},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):NT(o.join(""),i?r:a.html);if(i)return f;var d=kT(t.header,"ordinal",e.useUTC),h=GW(n,e.renderMode).nameStyle;return e.renderMode==="richText"?UW(e,d,h)+a.richText+f:NT('
'+mn(d)+"
"+f,r)}function T0e(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=q(S)?S:[S],Z(S,function(_,b){return kT(_,q(h)?h[b]:h,u)})};if(!(a&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),d=a?"":kT(l,"ordinal",u),h=t.valueType,p=o?[]:c(t.value),v=!s||!a,g=!s&&a,m=GW(n,i),y=m.nameStyle,x=m.valueStyle;return i==="richText"?(s?"":f)+(a?"":UW(e,d,y))+(o?"":P0e(e,p,v,g,x)):NT((s?"":f)+(a?"":M0e(d,!s,y))+(o?"":I0e(p,v,g,x)),r)}}function RO(e,t,r,n,i,a){if(e){var o=HW(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function A0e(e){return{html:_0e[e],richText:w0e[e]}}function NT(e,t){var r='
',n="margin: "+t+"px 0 0";return'
'+e+r+"
"}function M0e(e,t,r){var n=t?"margin-left:2px":"";return''+mn(e)+""}function I0e(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=q(e)?e:[e],''+Z(e,function(o){return mn(o)}).join("  ")+""}function UW(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function P0e(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(q(t)?t.join(" "):t,a)}function jW(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return xu(n)}function YW(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var jb=function(){function e(){this.richTextStyles={},this._nextStyleNameId=UH()}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=mye({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={};q(r)?D(r,function(a){return Y(n,a)}):Y(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function qW(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=q(s),u=jW(t,r),c,f,d,h;if(o>1||l&&!o){var p=k0e(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=gf(i,r,a[0]),f=v.type}else h=c=l?s[0]:s;var g=J2(t),m=g&&t.name||"",y=i.getName(r),x=n?m:y;return xr("section",{header:m,noHeader:n||!g,sortParam:h,blocks:[xr("nameValue",{markerType:"item",markerColor:u,name:x,noName:!Bi(x),value:c,valueType:f})].concat(d||[])})}function k0e(e,t,r,n,i){var a=t.getData(),o=Oa(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?D(n,function(f){c(gf(a,r,f),f)}):D(e,c);function c(f,d){var h=a.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(xr("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 No=Je();function Rg(e,t){return e.getName(t)||e.getId(t)}var qm="__universalTransitionEnabled",Rx=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=Hh({count:R0e,reset:L0e}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=No(this).sourceManager=new $W(this);a.prepareSource();var o=this.getInitialData(r,i);EO(o,this),this.dataTask.context.data=o,No(this).dataBeforeProcessed=o,LO(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Op(this),a=i?qf(r):{},o=this.subType;et.hasClass(o)&&(o+="Series"),Oe(r,n.getTheme().get(this.subType)),Oe(r,this.getDefaultOption()),vu(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Rs(r,a,i)},t.prototype.mergeOption=function(r,n){r=Oe(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Op(this);i&&Rs(this.option,r,i);var a=No(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);EO(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,No(this).dataBeforeProcessed=o,LO(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!Wn(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=_I.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[Rg(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[qm])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"){Se(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);lr(Rx,AI);lr(Rx,_I);e6(Rx,et);function LO(e){var t=e.name;J2(e)||(e.name=D0e(e)||t)}function D0e(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return D(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function R0e(e){return e.model.getRawData().count()}function L0e(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),E0e}function E0e(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function EO(e,t){D(Yy(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Pe(O0e,t))})}function O0e(e,t){var r=zT(e);return r&&r.setOutputEnd((t||this).count()),t}function zT(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=Rx;var II=function(){function e(){this.group=new Ae,this.uid=jf("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}();tI(II);dx(II);const jt=II;function Kf(){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 XW=Je(),N0e=Kf(),PI=function(){function e(){this.group=new Ae,this.uid=jf("viewChart"),this.renderTask=Hh({plan:z0e,reset:B0e}),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&&NO(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&NO(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){Gs(this.group,t)},e.markUpdateMethod=function(t,r){XW(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function OO(e,t,r){e&&Dp(e)&&(t==="emphasis"?mo:yo)(e,r)}function NO(e,t,r){var n=gu(e,t),i=t&&t.highlightKey!=null?cme(t.highlightKey):null;n!=null?D(pt(n),function(a){OO(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){OO(a,r,i)})}tI(PI);dx(PI);function z0e(e){return N0e(e.model)}function B0e(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&XW(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),F0e[l]}var F0e={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=PI;var c0="\0__throttleOriginMethod",zO="\0__throttleRate",BO="\0__throttleType";function kI(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 Qf(e,t,r,n){var i=e[t];if(i){var a=i[c0]||i,o=i[BO],s=i[zO];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=kI(a,r,n==="debounce"),i[c0]=a,i[BO]=n,i[zO]=r}return i}}function zp(e,t){var r=e[t];r&&r[c0]&&(r.clear&&r.clear(),e[t]=r[c0])}var FO=Je(),$O={itemStyle:mu(J6,!0),lineStyle:mu(Q6,!0)},$0e={lineStyle:"stroke",itemStyle:"fill"};function ZW(e,t){var r=e.visualStyleMapper||$O[t];return r||(console.warn("Unknown style type '"+t+"'."),$O.itemStyle)}function KW(e,t){var r=e.visualDrawType||$0e[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var V0e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=ZW(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=KW(e,n),u=o[l],c=me(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"||me(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||me(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=Y({},o);g[l]=c(v),h.setItemVisual(p,"style",g)}}}},Pd=new wt,G0e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=ZW(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Pd.option=l[n];var u=i(Pd),c=o.ensureUniqueItemVisual(s,"style");Y(c,u),Pd.option.decal&&(o.setItemVisual(s,"decal",Pd.option.decal),Pd.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},H0e={performRawSeries:!0,overallReset:function(e){var t=ve();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)),FO(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=FO(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=KW(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)}})}})}},Lg=Math.PI;function W0e(e,t){t=t||{},xe(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 Ae,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 cI({shape:{startAngle:-Lg/2,endAngle:-Lg/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:Lg*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Lg*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 U0e=function(){function e(t,r,n,i){this._stageTaskMap=ve(),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=ve();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;D(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";ln(!(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;D(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=ve(),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)||Hh({plan:Z0e,reset:K0e,count:J0e}));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||Hh({reset:j0e});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=ve(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,h="";ln(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,p):c?c(n,i).each(p):(f=!1,D(n.getSeries(),p));function p(v){var g=v.uid,m=l.set(g,s&&s.get(g)||(d=!0,Hh({reset:Y0e,onDirty:X0e})));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 me(t)&&(t={overallReset:t,seriesType:e1e(t)}),t.uid=jf("stageHandler"),r&&(t.visualType=r),t},e}();function j0e(e){e.overallReset(e.ecModel,e.api,e.payload)}function Y0e(e){return e.overallProgress&&q0e}function q0e(){this.agent.dirty(),this.getDownstream().dirty()}function X0e(){this.agent&&this.agent.dirty()}function Z0e(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function K0e(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 QW(n)}):Q0e}var Q0e=QW(0);function QW(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}(),BT=["symbol","symbolSize","symbolRotate","symbolOffset"],WO=BT.concat(["symbolKeepAspect"]),i1e={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&&jl(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function FT(e,t,r){for(var n=t.type==="radial"?S1e(e,t,r):x1e(e,t,r),i=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:nt(e)?[e]:q(e)?e:null}function RI(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&_1e(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 w1e=new Fa(!0);function h0(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function UO(e){return typeof e=="string"&&e!=="none"}function p0(e){var t=e.fill;return t!=null&&t!=="none"}function jO(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 YO(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 $T(e,t,r){var n=rI(t.image,t.__image,r);if(hx(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)*Em),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function C1e(e,t,r,n){var i,a=h0(r),o=p0(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||w1e,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?FT(e,d,b):t.__canvasFillGradient,t.__canvasFillGradient=y),v&&(x=f?FT(e,h,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=x),g&&(S=f||!t.__canvasFillPattern?$T(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=S),m&&(_=f||!t.__canvasStrokePattern?$T(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=RI(t),C=i[0],A=i[1]);var T=!0;(u||f&vc)&&(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&&YO(e,r),o&&jO(e,r)):(o&&jO(e,r),a&&YO(e,r))),C&&e.setLineDash([])}function T1e(e,t,r){var n=t.__image=rI(r.image,t.__image,t,t.onload);if(!(!n||!hx(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 A1e(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||Is,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=RI(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(h0(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),h0(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var qO=["shadowBlur","shadowOffsetX","shadowOffsetY"],XO=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function aU(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){Sn(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?eu.opacity:o}(n||t.blend!==r.blend)&&(a||(Sn(e,i),a=!0),e.globalCompositeOperation=t.blend||eu.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(Se(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 Gye(this._api),u=this._theme,c=this._model=new CW;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},GT);var f={seriesTransition:s,optionChanged:!0};if(i)this[pn]={silent:a,updateParams:f},this[Wr]=!1,this.getZr().wakeUp();else{try{rc(this),zo.update.call(this,null,f)}catch(d){throw this[pn]=null,this[Wr]=!1,d}this._ssr||this._zr.flush(),this[pn]=null,this[Wr]=!1,kd.call(this,a),Dd.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 D(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;D(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 D(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(WT[i]){var l=s,u=s,c=-s,f=-s,d=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();D(Qc,function(x,S){if(x.group===i){var _=n?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(we(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=Ps.createCanvas(),m=hE(g,{renderer:n?"svg":"canvas"});if(m.resize({width:p,height:v}),n){var y="";return D(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}})),D(d,function(x){var S=new Fr({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 Kb(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return Kb(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Bh(i,r);return D(o,function(s,l){l.indexOf("Models")>=0&&D(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=Bh(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?DI(s,l,n):bv(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;D(Q1e,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Ul(s,function(p){var v=Ie(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=Y({},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)}),D(Wh,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),D(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),o1e(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&&KH(this.getDom(),OI,"");var n=this,i=n._api,a=n._model;D(n._componentsViews,function(o){o.dispose(a,i)}),D(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 Qc[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[pn]&&(a==null&&(a=this[pn].silent),i=!0,this[pn]=null),this[Wr]=!0;try{i&&rc(this),zo.update.call(this,{type:"resize",animation:Y({duration:0},r&&r.animation)})}catch(o){throw this[Wr]=!1,o}this[Wr]=!1,kd.call(this,a),Dd.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(Se(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!HT[r]){var i=HT[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=Y({},r);return n.type=Wh[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(Se(n)||(n={silent:!!n}),!!g0[r.type]&&this._model){if(this[Wr]){this._pendingActions.push(r);return}var i=n.silent;Jb.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&tt.browser.weChat&&this._throttledZrFlush(),kd.call(this,i),Dd.call(this,i)}},t.prototype.updateLabelLayout=function(){Li.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(){rc=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),Zb(f,!0),Zb(f,!1),d.plan()},Zb=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(Xc(m))return;if(m instanceof $e&&fme(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)}})}lN=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){mo(p,v),Xn(f)},h.prototype.leaveEmphasis=function(p,v){yo(p,v),Xn(f)},h.prototype.enterBlur=function(p){x6(p),Xn(f)},h.prototype.leaveBlur=function(p){oI(p),Xn(f)},h.prototype.enterSelect=function(p){S6(p),Xn(f)},h.prototype.leaveSelect=function(p){b6(p),Xn(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}(TW))(f)},SU=function(f){function d(h,p){for(var v=0;v=0)){cN.push(r);var a=tU.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function TU(e,t){HT[e]=t}function lxe(e,t,r){var n=z1e("registerMap");n&&n(e,t,r)}var uxe=g0e;Ru(LI,V0e);Ru(Lx,G0e);Ru(Lx,H0e);Ru(LI,i1e);Ru(Lx,a1e);Ru(pU,E1e);wU(MW);CU($1e,Zye);TU("default",W0e);Ga({type:tu,event:tu,update:tu},rr);Ga({type:Hm,event:Hm,update:Hm},rr);Ga({type:Fh,event:Fh,update:Fh},rr);Ga({type:Wm,event:Wm,update:Wm},rr);Ga({type:$h,event:$h,update:$h},rr);NI("light",t1e);NI("dark",r1e);var fN=[],cxe={registerPreprocessor:wU,registerProcessor:CU,registerPostInit:ixe,registerPostUpdate:axe,registerUpdateLifecycle:zI,registerAction:Ga,registerCoordinateSystem:oxe,registerLayout:sxe,registerVisual:Ru,registerTransform:uxe,registerLoading:TU,registerMap:lxe,registerImpl:N1e,PRIORITY:X1e,ComponentModel:et,ComponentView:jt,SeriesModel:zt,ChartView:Tt,registerComponentModel:function(e){et.registerClass(e)},registerComponentView:function(e){jt.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){kve(e,t)}};function Fe(e){if(q(e)){D(e,function(t){Fe(t)});return}ze(fN,e)>=0||(fN.push(e),me(e)&&(e={install:e}),e.install(cxe))}function Rd(e){return e==null?0:e.length||1}function dN(e){return e}var fxe=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||dN,this._newKeyGetter=i||dN,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 Ld=Se,Bo=Z,yxe=typeof Int32Array>"u"?Array:Int32Array,xxe="e\0\0",hN=-1,Sxe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],bxe=["_approximateExtent"],pN,Bg,Ed,Od,r_,Fg,n_,_xe=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;MU(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===Ai;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),q(a)?a=a.slice():Ld(a)&&(a=Y({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Ld(r)?Y(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Ld(t)?Y(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?Y(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;bT(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){D(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Bo(this.dimensions,this._getDimInfo,this),this.hostModel)),r_(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];me(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(H2(arguments)))})},e.internalField=function(){pN=function(t){var r=t._invertedIndicesMap;D(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new yxe(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),i[r]=l}}}(),e}();const sn=_xe;function _v(e,t){wI(e)||(e=CI(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=ve(),a=[],o=Cxe(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&kU(o),l=n===e.dimensionsDefine,u=l?PU(e):IU(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=ve(c),d=new BW(o),h=0;h0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function Cxe(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return D(t,function(a){var o;Se(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function Txe(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 Axe=function(){function e(t){this.coordSysDims=[],this.axisMap=ve(),this.categoryAxisMap=ve(),this.coordSysName=t}return e}();function Mxe(e){var t=e.get("coordinateSystem"),r=new Axe(t),n=Ixe[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var Ixe={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",or).models[0],a=e.getReferringComponents("yAxis",or).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),nc(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),nc(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",or).models[0];t.coordSysDims=["single"],r.set("single",i),nc(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",or).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),nc(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),nc(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();D(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];r.set(c,u),nc(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function nc(e){return e.get("type")==="category"}function Pxe(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;kxe(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(D(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;D(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 kxe(e){return!MU(e.schema)}function Ls(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function DU(e,t){return Ls(e,t)?e.getCalculationInfo("stackResultDimension"):t}function Dxe(e,t){var r=e.get("coordinateSystem"),n=Sv.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=y0(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function Rxe(e,t,r){var n,i;return r&&D(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 Ao(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=CI(e)):(i=n.getSource(),a=i.sourceFormat===Ai);var o=Mxe(t),s=Dxe(t,o),l=r.useEncodeDefaulter,u=me(l)?l:l?Pe(xW,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=_v(i,c),d=Rxe(f.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(f),p=Pxe(t,{schema:f,store:h}),v=new sn(f,t);v.setCalculationInfo(p);var g=d!=null&&Lxe(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 Lxe(e){if(e.sourceFormat===Ai){var t=Exe(e.data||[]);return!q(Vf(t))}}function Exe(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}();dx(RU);const Mo=RU;var Oxe=0,Nxe=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Oxe}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&Z(n,zxe);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=ve(this.categories))},e}();function zxe(e){return Se(e)&&e.value!=null?e.value:e+""}const UT=Nxe;function jT(e){return e.type==="interval"||e.type==="log"}function Bxe(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=HH(a/t,!0);r!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=LU(o),l=i.niceTickExtent=[Xt(Math.ceil(e[0]/o)*o,s),Xt(Math.floor(e[1]/o)*o,s)];return Fxe(l,e),i}function i_(e){var t=Math.pow(10,Q2(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Xt(r*t)}function LU(e){return Sa(e)+2}function vN(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function Fxe(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),vN(e,0,t),vN(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function Ex(e,t){return e>=t[0]&&e<=t[1]}function Ox(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Nx(e,t){return e*(t[1]-t[0])+t[0]}var EU=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 UT({})),q(i)&&(i=new UT({categories:Z(i,function(a){return Se(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),Ex(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),Ox(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(Nx(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}(Mo);Mo.registerClass(EU);const FI=EU;var fl=Xt,OU=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 Ex(r,this._extent)},t.prototype.normalize=function(r){return Ox(r,this._extent)},t.prototype.scale=function(r){return Nx(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=LU(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:fl(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 BU(e){var t=Gxe(e),r=[];return D(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")||(HU(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:VI(a),stackId:$I(n)})}),FU(r)}function FU(e){var t={};D(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 D(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=He(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),D(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;D(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;D(a,function(m,y){r[i][y]=r[i][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+c)})}),r}function Hxe(e,t,r){if(e&&t){var n=e[VI(t)];return n!=null&&r!=null?n[$I(r)]:n}}function $U(e,t){var r=zU(e,t),n=BU(r);D(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=$I(i),u=n[VI(s)][l],c=u.offset,f=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function VU(e){return{seriesType:e,plan:Kf(),reset:function(t){if(GU(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=Ls(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=a.isHorizontal(),h=Wxe(i,a),p=HU(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&&_a(_*3),w=p&&l&&_a(_*3),C=p&&_a(_),A=n.master.getRect(),T=d?A.width:A.height,M,I=S.getStore(),P=0;(M=x.next())!=null;){var k=I.get(f?g:o,M),R=I.get(s,M),z=h,$=void 0;f&&($=+k-I.get(o,M));var N=void 0,V=void 0,L=void 0,G=void 0;if(d){var U=n.dataToPoint([k,R]);if(f){var B=n.dataToPoint([$,R]);z=B[0]}N=z,V=U[1]+y,L=U[0]-z,G=m,Math.abs(L)>>1;e[i][1]i&&(this._approxInterval=i);var s=$g.length,l=Math.min(Uxe($g,this._approxInterval,0,s),s-1);this._interval=$g[l][1],this._minLevelUnit=$g[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return nt(r)?r:+Ba(r)},t.prototype.contain=function(r){return Ex(this.parse(r),this._extent)},t.prototype.normalize=function(r){return Ox(this.parse(r),this._extent)},t.prototype.scale=function(r){return Nx(r,this._extent)},t.type="time",t}(Es),$g=[["second",gI],["minute",mI],["hour",Gh],["quarter-day",Gh*6],["half-day",Gh*12],["day",hi*1.2],["half-week",hi*3.5],["week",hi*7],["month",hi*31],["quarter",hi*95],["half-year",aO/2],["year",aO]];function jxe(e,t,r,n){var i=Ba(t),a=Ba(r),o=function(p){return sO(i,p,n)===sO(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 Yxe(e,t){return e/=hi,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function qxe(e){var t=30*hi;return e/=t,e>6?6:e>3?3:e>2?2:1}function Xxe(e){return e/=Gh,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function gN(e,t){return e/=t?mI:gI,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Zxe(e){return HH(e,!0)}function Kxe(e,t,r){var n=new Date(e);switch(Zc(t)){case"year":case"month":n[iW(r)](0);case"day":n[aW(r)](1);case"hour":n[oW(r)](0);case"minute":n[sW(r)](0);case"second":n[lW(r)](0),n[uW(r)](0)}return n.getTime()}function Qxe(e,t,r,n){var i=1e4,a=rW,o=0;function s(T,M,I,P,k,R,z){for(var $=new Date(M),N=M,V=$[P]();N1&&R===0&&I.unshift({value:I[0].value-N})}}for(var R=0;R=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=ft(Z(u,function(T){return ft(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(tSe(n[0]/a)*a),Xt(eSe(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){Uh.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=ki(r)/ki(this.base),Ex(r,this._extent)},t.prototype.normalize=function(r){return r=ki(r)/ki(this.base),Ox(r,this._extent)},t.prototype.scale=function(r){return r=Nx(r,this._extent),Vg(this.base,r)},t.type="log",t}(Mo),jU=GI.prototype;jU.getMinorTicks=Uh.getMinorTicks;jU.getLabel=Uh.getLabel;function Gg(e,t){return Jxe(e,Sa(t))}Mo.registerClass(GI);const rSe=GI;var nSe=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[aSe[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=iSe[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),iSe={min:"_determinedMin",max:"_determinedMax"},aSe={min:"_dataMin",max:"_dataMax"};function YU(e,t,r){var n=e.rawExtentInfo;return n||(n=new nSe(e,t,r),e.rawExtentInfo=n,n)}function Hg(e,t){return t==null?null:Cp(t)?NaN:e.parse(t)}function qU(e,t){var r=e.type,n=YU(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=zU("bar",o),l=!1;if(D(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=BU(s),c=oSe(i,a,t,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function oSe(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=Hxe(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;D(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;D(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 yf(e,t){var r=t,n=qU(e,r),i=n.extent,a=r.get("splitNumber");e instanceof rSe&&(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 UU({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Mo.getClass(t)||Es)}}function sSe(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function wv(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):me(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(HI(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function HI(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function lSe(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=wv(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;ce[1]&&(e[1]=i[1])})}var Cv=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),fSe=1e-8;function yN(e,t){return Math.abs(e-t)i&&(n=o,i=l)}if(n)return hSe(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 D(o,function(s){s.type==="polygon"?xN(s.exterior,i,a,r):D(s.points,function(l){xN(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 gSe(e,t){return e=vSe(e),Z(ft(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 SN(o[0],o.slice(1)));break;case"MultiPolygon":D(i.coordinates,function(l){l[0]&&a.push(new SN(l[0],l.slice(1)))});break;case"LineString":a.push(new bN([i.coordinates]));break;case"MultiLineString":a.push(new bN(i.coordinates))}var s=new KU(n[t||"name"],a,n.cp);return s.properties=n,s})}var $p=Je();function mSe(e){return e.type==="category"?xSe(e):bSe(e)}function ySe(e,t){return e.type==="category"?SSe(e,t):{ticks:Z(e.scale.getTicks(),function(r){return r.value})}}function xSe(e){var t=e.getLabelModel(),r=JU(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function JU(e,t){var r=ej(e,"labels"),n=WI(t),i=tj(r,n);if(i)return i;var a,o;return me(n)?a=ij(e,n):(o=n==="auto"?_Se(e):n,a=nj(e,o)),rj(r,n,{labels:a,labelCategoryInterval:o})}function SSe(e,t){var r=ej(e,"ticks"),n=WI(t),i=tj(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),me(n))a=ij(e,n,!0);else if(n==="auto"){var s=JU(e,e.getLabelModel());o=s.labelCategoryInterval,a=Z(s.labels,function(l){return l.tickValue})}else o=n,a=nj(e,o,!0);return rj(r,n,{ticks:a,tickCategoryInterval:o})}function bSe(e){var t=e.scale.getTicks(),r=wv(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 ej(e,t){return $p(e)[t]||($p(e)[t]=[])}function tj(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=hv(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=$p(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 CSe(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 nj(e,t,r){var n=wv(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=XU(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 ij(e,t,r){var n=e.scale,i=wv(e),a=[];return D(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 _N=[0,1],TSe=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 VH(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(),wN(n,i.count())),ct(t,_N,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),wN(n,i.count()));var a=ct(t,n,_N,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=ySe(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 ASe(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 mSe(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 wSe(this)},e}();function wN(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function ASe(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;D(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+=Nd);var h=Math.atan2(s,o);if(h<0&&(h+=Nd),h>=n&&h<=i||h+Nd>=n&&h+Nd<=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,$i.fromArray(e[0]),bt.fromArray(e[1]),tr.fromArray(e[2]),Le.sub(wa,$i,bt),Le.sub(ga,tr,bt);var r=wa.len(),n=ga.len();if(!(r<.001||n<.001)){wa.scale(1/r),ga.scale(1/n);var i=wa.dot(ga),a=Math.cos(t);if(a1&&Le.copy(nn,tr),nn.toArray(e[1])}}}}function RSe(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,$i.fromArray(e[0]),bt.fromArray(e[1]),tr.fromArray(e[2]),Le.sub(wa,bt,$i),Le.sub(ga,tr,bt);var n=wa.len(),i=ga.len();if(!(n<.001||i<.001)){wa.scale(1/n),ga.scale(1/i);var a=wa.dot(t),o=Math.cos(r);if(a=l)Le.copy(nn,tr);else{nn.scaleAndAdd(ga,s/Math.tan(Math.PI/2-c));var f=tr.x!==bt.x?(nn.x-bt.x)/(tr.x-bt.x):(nn.y-bt.y)/(tr.y-bt.y);if(isNaN(f))return;f<0?Le.copy(nn,bt):f>1&&Le.copy(nn,tr)}nn.toArray(e[1])}}}}function TN(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 LSe(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=Jo(n[0],n[1]),a=Jo(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=Nm([],n[1],n[0],o/i),l=Nm([],n[1],n[2],o/a),u=Nm([],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 I=M+C;I<0&&b(-I*T,1)}else b(-C*T,1)}}function _(C,A,T){C!==0&&(u=!0);for(var M=A;M0)for(var I=0;I0;I--){var z=T[I-1]*R;_(-z,I,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 ESe(e,t,r,n){return lj(e,"x","width",t,r,n)}function uj(e,t,r,n){return lj(e,"y","height",t,r,n)}function cj(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)),it(n,u,r,l)}else if(n.attr(u),!Uf(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={};Wg(h,u,Ug),Wg(h,n.states.select,Ug)}if(n.states.emphasis){var p=a.oldLayoutEmphasis={};Wg(p,u,Ug),Wg(p,n.states.emphasis,Ug)}K6(n,l,c,r,r)}if(i&&!i.ignore&&!i.invisible){var a=zSe(i),o=a.oldLayout,v={points:i.shape.points};o?(i.attr({shape:o}),it(i,{shape:v},r)):(i.setShape(v),i.style.strokePercent=0,Lt(i,{style:{strokePercent:1}},r)),a.oldLayout=v}},e}();const FSe=BSe;var l_=Je();function $Se(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=l_(r).labelManager;i||(i=l_(r).labelManager=new FSe),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var i=l_(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}var u_=Math.sin,c_=Math.cos,fj=Math.PI,hl=Math.PI*2,VSe=180/fj,GSe=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=is(f-hl)||(c?u>=hl:-u>=hl),h=u>0?u%hl:u%hl+hl,p=!1;d?p=!0:is(f)?p=!1:p=h>=fj==!!c;var v=t+n*c_(o),g=r+i*u_(o);this._start&&this._add("M",v,g);var m=Math.round(a*VSe);if(d){var y=1/this._p,x=(c?1:-1)*(hl-y);this._add("A",n,i,m,1,+c,t+n*c_(o+x),r+i*u_(o+x)),y>.01&&this._add("A",n,i,m,0,+c,v,g)}else{var S=t+n*c_(s),_=r+i*u_(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 KSe(e){return""}function YI(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 ZSe(o,s)+(o!=="style"?mn(l):l||"")+(a?""+r+Z(a,function(u){return n(u)}).join(r)+r:"")+KSe(o)}return n(e)}function QSe(e,t,r){r=r||{};var n=r.newline?` -`:"",i=" {"+n,a=n+"}",o=Z(He(e),function(l){return l+i+Z(He(e[l]),function(u){return u+":"+e[l][u]+";"}).join(n)+a}).join(n),s=Z(He(t),function(l){return"@keyframes "+l+i+Z(He(t[l]),function(u){return u+i+Z(He(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 XT(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function MN(e,t,r,n){return mr("svg","root",{width:e,height:t,xmlns:hj,"xmlns:xlink":pj,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+e+" "+t:!1},r)}var IN={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"},_l="transform-origin";function JSe(e,t,r){var n=Y({},e.shape);Y(n,t),e.buildPath(r,n);var i=new dj;return i.reset(kH(e)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function ebe(e,t){var r=t.originX,n=t.originY;(r||n)&&(e[_l]=r+"px "+n+"px")}var tbe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function gj(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function rbe(e,t,r){var n=e.shape.paths,i={},a,o;if(D(n,function(l){var u=XT(r.zrId);u.animation=!0,Bx(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=He(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=gj(i,r);return a.replace(o,s)}}function PN(e){return oe(e)?IN[e]?"cubic-bezier("+IN[e]+")":q2(e)?e:"":""}function Bx(e,t,r,n){var i=e.animators,a=i.length,o=[];if(e instanceof fI){var s=rbe(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=gj(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 Vp=Math.round;function mj(e){return e&&oe(e.src)}function yj(e){return e&&me(e.toDataURL)}function qI(e,t,r,n){YSe(function(i,a){var o=i==="fill"||i==="stroke";o&&PH(a)?Sj(t,e,i,n):o&&X2(a)?bj(r,e,i,n):e[i]=a},t,r,!1),ube(r,e,n)}function kN(e){return is(e[0]-1)&&is(e[1])&&is(e[2])&&is(e[3]-1)}function nbe(e){return is(e[4])&&is(e[5])}function XI(e,t,r){if(t&&!(nbe(t)&&kN(t))){var n=r?10:1e4;e.transform=kN(t)?"translate("+Vp(t[4]*n)/n+" "+Vp(t[5]*n)/n+")":Kpe(t)}}function DN(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.";ln(d,g),ln(h,g)}else if(d==null||h==null){var m=function(T,M){if(T){var I=T.elm,P=d||M.width,k=h||M.height;T.tag==="pattern"&&(u?(k=1,P/=a.width):c&&(P=1,k/=a.height)),T.attrs.width=P,T.attrs.height=k,I&&(I.setAttribute("width",P),I.setAttribute("height",k))}},y=rI(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=mr("image","img",{href:p,width:d,height:h}),o.width=d,o.height=h}else i.svgElement&&(f=we(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 _=DH(i);_&&(o.patternTransform=_);var b=mr("pattern","",o,[f]),w=YI(b),C=n.patternCache,A=C[w];A||(A=n.zrId+"-p"+n.patternIdx++,C[w]=A,o.id=A,b=n.defs[A]=mr("pattern",A,o,[f])),t[r]=cx(A)}}function cbe(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]=mr("clipPath",a,o,[xj(e,r)])}t["clip-path"]=cx(a)}function EN(e){return document.createTextNode(e)}function Dl(e,t,r){e.insertBefore(t,r)}function ON(e,t){e.removeChild(t)}function NN(e,t){e.appendChild(t)}function _j(e){return e.parentNode}function wj(e){return e.nextSibling}function f_(e,t){e.textContent=t}var zN=58,fbe=120,dbe=mr("","");function ZT(e){return e===void 0}function la(e){return e!==void 0}function hbe(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 uh(e,t){var r=e.key===t.key,n=e.tag===t.tag;return n&&r}function Gp(e){var t,r=e.children,n=e.tag;if(la(n)){var i=e.elm=vj(n);if(ZI(dbe,e),q(r))for(t=0;ta?(p=r[l+1]==null?null:r[l+1].elm,Cj(e,p,r,i,l)):_0(e,t,n,a))}function mc(e,t){var r=t.elm=e.elm,n=e.children,i=t.children;e!==t&&(ZI(e,t),ZT(t.text)?la(n)&&la(i)?n!==i&&pbe(r,n,i):la(i)?(la(e.text)&&f_(r,""),Cj(r,null,i,0,i.length-1)):la(n)?_0(r,n,0,n.length-1):la(e.text)&&f_(r,""):e.text!==t.text&&(la(n)&&_0(r,n,0,n.length-1),f_(r,t.text)))}function vbe(e,t){if(uh(e,t))mc(e,t);else{var r=e.elm,n=_j(r);Gp(t),n!==null&&(Dl(n,t.elm,wj(r)),_0(n,[e],0,0))}return t}var gbe=0,mbe=function(){function e(t,r,n){if(this.type="svg",this.refreshHover=BN(),this.configLayer=BN(),this.storage=r,this._opts=n=Y({},n),this.root=t,this._id="zr"+gbe++,this._oldVNode=MN(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=vj("svg");ZI(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",vbe(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return LN(t,XT(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=XT(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress;var o=[],s=this._bgVNode=ybe(n,i,this._backgroundColor,a);s&&o.push(s);var l=t.compress?null:this._mainVNode=mr("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=Z(He(a.defs),function(d){return a.defs[d]});if(u.length&&o.push(mr("defs","defs",{},u)),t.animation){var c=QSe(a.cssNodes,a.cssAnims,{newline:!0});if(c){var f=mr("style","stl",{},[],c);o.push(f)}}return MN(n,i,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},YI(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}}k.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?jg:0),this._needsManuallyCompositing),c.__builtin__||V2("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&On&&!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,D(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 Pbe=Ibe;function xf(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=gf(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 kbe=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=sr(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=Dbe,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(){mo(this.childAt(0))},t.prototype.downplay=function(){yo(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):it(d,h,s,n),Xi(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=yr(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 _=Du(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 Fr){var C=s.style;s.useStyle(Y({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},b))}else s.__isEmptyBrush?s.useStyle(Y({},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:I,inheritColor:w,defaultOpacity:b.opacity});function I(R){return M?r.getName(R):xf(r,R)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var P=s.ensureState("emphasis");P.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var k=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;P.scaleX=this._sizeX*k,P.scaleY=this._sizeY*k,this.setSymbolScale(1),Ut(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=Ie(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&Ds(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Ds(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return Jf(r.getItemVisual(n,"symbolSize"))},t}(Ae);function Dbe(e,t){this.parent.drift(e,t)}const Tv=kbe;function h_(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 VN(e){return e!=null&&!Se(e)&&(e={isIgnore:e}),e||{}}function GN(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:yr(t),cursorStyle:t.get("cursor")}}var Rbe=function(){function e(t){this.group=new Ae,this._SymbolCtor=t||Tv}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=VN(r);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=GN(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(h_(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(!h_(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):it(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=GN(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=VN(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 Mj(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 Ebe(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 Obe(e,t,r,n,i,a,o,s){for(var l=Ebe(e,t),u=[],c=[],f=[],d=[],h=[],p=[],v=[],g=Aj(i,t,o),m=e.getLayout("points")||[],y=t.getLayout("points")||[],x=0;x=i||v<0)break;if(au(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||au(b,w))h=m,p=y;else{T=b-u,M=w-c;var k=m-u,R=b-m,z=y-c,$=w-y,N=void 0,V=void 0;if(s==="x"){N=Math.abs(k),V=Math.abs(R);var L=T>0?1:-1;h=m-L*N*o,p=y,I=m+L*V*o,P=y}else if(s==="y"){N=Math.abs(z),V=Math.abs($);var G=M>0?1:-1;h=m,p=y-G*N*o,I=m,P=y+G*V*o}else N=Math.sqrt(k*k+z*z),V=Math.sqrt(R*R+$*$),A=V/(V+N),h=m-T*o*(1-A),p=y-M*o*(1-A),I=m+T*o*A,P=y+M*o*A,I=Fo(I,$o(b,m)),P=Fo(P,$o(w,y)),I=$o(I,Fo(b,m)),P=$o(P,Fo(w,y)),T=I-m,M=P-y,h=m-T*N/V,p=y-M*N/V,h=Fo(h,$o(u,m)),p=Fo(p,$o(c,y)),h=$o(h,Fo(u,m)),p=$o(p,Fo(c,y)),T=m-h,M=y-p,I=m+T*V/N,P=y+M*V/N}e.bezierCurveTo(f,d,h,p,m,y),f=I,d=P}else e.lineTo(m,y)}u=m,c=y,v+=a}return g}var Ij=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),Nbe=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 Ij},t.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&au(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?Xy(s,h,v,m,r,c):Xy(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?vr(l,p,g,y,w):vr(s,h,v,m,w);return u?[r,S]:[S,r]}}s=m,l=y;break}}},t}($e),zbe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Ij),Pj=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 zbe},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&&au(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 $be(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=Fbe(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";D(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 gv(0,0,0,0,d,!0);return y[i]=v,y[i+"2"]=g,y}}}function Vbe(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&Gbe(a,t))){var o=t.mapDimension(a.dim),s={};return D(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function Gbe(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 Hbe(e,t){return isNaN(e)||isNaN(t)}function Wbe(e){for(var t=e.length/2;t>0&&Hbe(e[t*2-2],e[t*2-1]);t--);return t-1}function YN(e,t){return[e[t*2],e[t*2+1]]}function Ube(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 Rj(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var L=v.getState("emphasis").style;L.lineWidth=+v.style.lineWidth+1}Ie(v).seriesIndex=r.seriesIndex,Ut(v,$,N,V);var G=jN(r.get("smooth")),U=r.get("smoothMonotone");if(v.setShape({smooth:G,smoothMonotone:U,connectNulls:C}),g){var B=l.getCalculationInfo("stackedOnSeries"),j=0;g.useStyle(xe(c.getAreaStyle(),{fill:P,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),B&&(j=jN(B.get("smooth"))),g.setShape({smooth:G,stackedOnSmooth:j,smoothMonotone:U,connectNulls:C}),zr(g,r,"areaStyle"),Ie(g).seriesIndex=r.seriesIndex,Ut(g,$,N,V)}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){Ie(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=gu(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 Tv(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=gu(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;n0(this._polyline,r),n&&n0(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new Nbe({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 Pj({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");me(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=me(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=me(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(Rj(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=Wbe(l);c>=0&&(Br(s,yr(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?Tj(o,h):xf(o,f)},enableTextSetter:!0},jbe(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=Ube(f,S,w),A=C.range,T=A[1]-A[0],M=void 0;if(T>=1){if(T>1&&!h){var I=YN(f,A[0]);u.attr({x:I[0]+_,y:I[1]+b}),o&&(M=d.getRawValue(A[0]))}else{var I=c.getPointOn(S,w);I&&u.attr({x:I[0]+_,y:I[1]+b});var P=d.getRawValue(A[0]),k=d.getRawValue(A[1]);o&&(M=QH(i,p,P,k,C.t))}a.lastFrameIndex=A[0]}else{var R=r===1||a.lastFrameIndex>0?A[0]:0,I=YN(f,R);o&&(M=d.getRawValue(R)),u.attr({x:I[0]+_,y:I[1]+b})}if(o){var z=Uf(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=Obe(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=Vo(d.current,i,o,l),p=Vo(d.stackedOnCurrent,i,o,l),v=Vo(d.next,i,o,l),g=Vo(d.stackedOnNext,i,o,l)),UN(h,v)>3e3||c&&UN(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(),it(u,m,f),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),it(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=Xbe[a]:me(a)&&(p=a),p&&t.setData(i.downSample(i.mapDimension(u.dim),1/h,p,Zbe))}}}}}function Kbe(e){e.registerChartView(qbe),e.registerSeriesModel(Pbe),e.registerLayout(Mv("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,Lj("line"))}var Ej=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 Ao(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)D(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(Ej);const w0=Ej;var Qbe=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 Ao(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=Hs(w0.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}(w0);const Jbe=Qbe;var e_e=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),t_e=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 e_e},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,f=n.endAngle,d=n.clockwise,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){Rp(a,r,Ie(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),qN={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=v_(t.x,e.x),s=g_(t.x+t.width,i),l=v_(t.y,e.y),u=g_(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=g_(t.r,e.r),a=v_(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}},XN={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new Qe({shape:Y({},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?C0:In,c=new u({shape:n,z2:1});c.name="item";var f=Oj(i);if(c.calculateTextPosition=r_e(f,{isRoundCap:u===C0}),a){var d=c.shape,h=i?"r":"endAngle",p={};d[h]=i?n.r0:n.startAngle,p[h]=n[h],(s?it:Lt)(c,{shape:p},a)}return c}};function o_e(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function ZN(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?it:Lt)(r,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(o?it:Lt)(r,{shape:u},c,i)}function KN(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 u_e(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function Oj(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 JN(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=ql(n.getModel("itemStyle"),c,!0);Y(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=yr(n);Br(e,p,{labelFetcher:a,labelDataIndex:r,defaultText:xf(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,n_e(e,g==="outside"?h:g,Oj(o),n.get(["label","rotate"]))}Z6(v,p,a.getRawValue(r),function(y){return Tj(t,y)});var m=n.getModel(["emphasis"]);Ut(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),zr(e,n),u_e(i)&&(e.style.fill="none",e.style.stroke="none",D(e.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function c_e(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var f_e=function(){function e(){}return e}(),ez=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 f_e},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?r:null},30,!1);function d_e(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=a.length/3;c=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function Nj(e,t,r){if(Lu(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 h_e(e,t,r){var n=e.type==="polar"?In:Qe;return new n({shape:Nj(t,r,e),silent:!0,z2:0})}const p_e=a_e;function v_e(e){e.registerChartView(p_e),e.registerSeriesModel(Jbe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Pe($U,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,VU("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Lj("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 Zg=Math.PI*2,nz=Math.PI/180;function zj(e,t){return hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Bj(e,t){var r=zj(e,t),n=e.get("center"),i=e.get("radius");q(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 q(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 g_e(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=zj(n,r),s=Bj(n,r),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-n.get("startAngle")*nz,h=n.get("minAngle")*nz,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 _=Zg,b=0,w=d,C=m?1:-1;if(i.setLayout({viewRect:o,r:c}),i.each(a,function(T,M){var I;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"?I=v===0&&x?g:T*g:I=Zg/p,Ir?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 m_(e){return e.position==="center"}function x_e(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*m_e,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),I=M.getModel("label"),P=I.get("position")||M.get(["emphasis","label","position"]),k=I.get("distanceToLabelLine"),R=I.get("alignTo"),z=ne(I.get("edgeDistance"),u),$=I.get("bleedMargin"),N=M.getModel("labelLine"),V=N.get("length");V=ne(V,u);var L=N.get("length2");if(L=ne(L,u),Math.abs(C.endAngle-C.startAngle)0?"right":"left":U>0?"left":"right"}var ke=Math.PI,We=0,Ge=I.get("rotate");if(nt(Ge))We=Ge*(ke/180);else if(P==="center")We=0;else if(Ge==="radial"||Ge===!0){var at=U<0?-G+ke:-G;We=at}else if(Ge==="tangential"&&P!=="outside"&&P!=="outer"){var ot=Math.atan2(U,B);ot<0&&(ot=ke*2+ot);var It=B>0;It&&(ot=ke+ot),We=ot-ke}if(a=!!We,A.x=j,A.y=X,A.rotation=We,A.setStyle({verticalAlign:"middle"}),te){A.setStyle({align:ee});var Yt=A.states.select;Yt&&(Yt.x+=A.x,Yt.y+=A.y)}else{var Be=A.getBoundingRect().clone();Be.applyTransform(A.getComputedTransform());var Pt=(A.style.margin||0)+2.1;Be.y-=Pt/2,Be.height+=Pt,r.push({label:A,labelLine:T,position:P,len:V,len2:L,minTurnAngle:N.get("minTurnAngle"),maxSurfaceAngle:N.get("maxSurfaceAngle"),surfaceNormal:new Le(U,B),linePoints:W,textAlign:ee,labelDistance:k,labelAlignTo:R,edgeDistance:z,bleedMargin:$,rect:Be,unconstrainedWidth:Be.width,labelStyleWidth:A.style.width})}w.setTextConfig({inside:te})}}),!a&&e.get("avoidLabelOverlap")&&y_e(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 __e=b_e;function ed(e,t,r){t=q(t)&&{coordDimensions:t}||Y({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=_v(n,t).dimensions,a=new sn(i,e);return a.initData(n,r),a}var w_e=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 Pv=w_e;var C_e=Je(),T_e=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 Pv(ue(this.getData,this),ue(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return ed(this,{coordDimensions:["value"],encodeDefaulter:Pe(SI,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=C_e(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=Lve(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){vu(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 A_e=T_e;function M_e(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(nt(o)&&!isNaN(o)&&o<0)})}}}function I_e(e){e.registerChartView(__e),e.registerSeriesModel(A_e),iU("pie",e.registerAction),e.registerLayout(Pe(g_e,"pie")),e.registerProcessor(Iv("pie")),e.registerProcessor(M_e("pie"))}var P_e=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 Ao(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 k_e=P_e;var $j=4,D_e=function(){function e(){}return e}(),R_e=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 D_e},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(r,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&a[0]<$j,c=this.softClipShape,f;if(u){this._ctx=l;return}for(this._ctx=null,f=this._off;f=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 E_e=L_e;var O_e=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=Mv("").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 E_e:new Av,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 N_e=O_e;var z_e=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 B_e=z_e;var QT=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",or).models[0]},t.type="cartesian2dAxis",t}(et);lr(QT,Cv);var Vj={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)"]}}},F_e=Oe({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Vj),KI=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}}},Vj),$_e=Oe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},KI),V_e=xe({logBase:10},KI);const Gj={category:F_e,value:KI,time:$_e,log:V_e};var G_e={value:1,category:1,time:1,log:1};function Sf(e,t,r,n){D(G_e,function(i,a){var o=Oe(Oe({},Gj[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=Op(this),h=d?qf(c):{},p=f.getTheme();Oe(c,p.get(a+"Axis")),Oe(c,this.getDefaultOption()),c.type=az(c),d&&Rs(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=UT.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",az)}function az(e){return e.type||(e.data?"category":"value")}var H_e=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return Z(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),ft(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 W_e=H_e;var JT=["x","y"];function oz(e){return e.type==="interval"||e.type==="time"}var U_e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=JT,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!oz(r)||!oz(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=$f([],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}(W_e),j_e=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}(Ki);const Y_e=j_e;function eA(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 sz(e){return e.get("coordinateSystem")==="cartesian2d"}function lz(e){var t={xAxisModel:null,yAxisModel:null};return D(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,or).models[0];t[n]=a}),t}var y_=Math.log;function Hj(e,t,r){var n=Es.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=qU(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=y_(e.base);u=[y_(u[0])/d,y_(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=i_(p),v=u[1]-p*o;else{var m=e.getTicks().length-1;m>o&&(p=i_(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 q_e=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=JT,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=He(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;jT(v)&&p.get("alignTicks")&&p.get("interval")==null?c.push(h):(yf(v,p),jT(v)&&(s=h))}c.length&&(s||(s=c.pop(),yf(s.scale,s.model)),D(c,function(g){Hj(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};D(n.x,function(o){uz(n,"y",o,a)}),D(n.y,function(o){uz(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=hr(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(D(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=lSe(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()),D(this._coordsList,function(u){u.calcAffineTransform()});function l(){D(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]),X_e(u,c?o.x:o.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}Se(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):t0(i-as)?(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}(),fz={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=Y({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});vf(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=Du(t.get(["axisLine","symbolOffset"])||0,h),v=h[0],g=h[1];D([{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=sr(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=J_e(r,n,t,e),a=twe(r,n,t,e);if(Q_e(t,a,i),ewe(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=sj(Z(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));cj(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,hz(a)?e.labelOffset+o*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*as/180);var p;hz(a)?d=ou.innerTextLayout(e.rotation,h??e.rotation,o):(d=K_e(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:ou.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(Wf({el:x,componentModel:t,itemName:i}),x.__fullText=i,x.anid="name",t.get("triggerEvent")){var S=ou.makeAxisEventDataBase(t);S.targetType="axisName",S.name=i,Ie(x).eventData=S}n.add(x),x.updateTransform(),r.add(x),x.decomposeTransform()}}};function K_e(e,t,r,n){var i=GH(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return t0(i-as/2)?(o=l?"bottom":"top",a="center"):t0(i-as*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",ias/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function Q_e(e,t,r){if(!XU(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?(Zn(a),Zn(u)):dz(a,o)&&(n?(Zn(o),Zn(c)):(Zn(a),Zn(u))),i===!1?(Zn(s),Zn(f)):dz(l,s)&&(i?(Zn(l),Zn(d)):(Zn(s),Zn(f)))}}function Zn(e){e&&(e.ignore=!0)}function dz(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=ux([]);return Pu(i,i,-e.rotation),r.applyTransform(no([],i,e.getLocalTransform())),n.applyTransform(no([],i,t.getLocalTransform())),r.intersect(n)}}function hz(e){return e==="middle"||e==="center"}function Wj(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l=0||e===t}function swe(e){var t=QI(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=tA(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=xe({color:p.color},l));var g=Oe(we(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 me(c)&&(g.name=c(g.name,g));var y=new wt(g,null,this.ecModel);return lr(y,Cv.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"}},zd.axisLine),axisLabel:Kg(zd.axisLabel,!1),axisTick:Kg(zd.axisTick,!1),splitLine:Kg(zd.splitLine,!0),splitArea:Kg(zd.splitArea,!0),indicator:[]},t}(et);const wwe=_we;var Cwe=["axisLine","axisTickLabel","axisName"],Twe=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 So(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});D(a,function(o){D(Cwe,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=q(d)?d:[d],v=q(h)?h:[h],g=[],m=[];function y(R,z,$){var N=$%z.length;return R[N]=R[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(!xz(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}(Ti);function b_(e,t,r,n,i){e.pointerChecker&&e.pointerChecker(n,i.originX,i.originY)&&(vo(n.event),Zj(e,t,r,n,i))}function Zj(e,t,r,n,i){i.isAvailableBehavior=ue(Zm,null,r,n),e.trigger(t,i)}function Zm(e,t,r){var n=r[e];return!e||n&&(!oe(n)||t.event[n+"Key"])}const kv=Owe;function eP(e,t,r){var n=e.target;n.x+=t,n.y+=r,n.dirty()}function tP(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 Nwe={axisPointer:1,tooltip:1,brush:1};function $x(e,t,r){var n=t.getComponentByElement(e.topTarget),i=n&&n.coordinateSystem;return n&&n!==r&&!Nwe.hasOwnProperty(n.mainType)&&i&&i.model!==r}function Kj(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 __,T0={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"},Sz=He(T0),A0={"alignment-baseline":"textBaseline","stop-color":"stopColor"},bz=He(A0),zwe=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,r){r=r||{};var n=Kj(t);this._defsUsePending=[];var i=new Ae;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),Dn(n,i,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;$we(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var d=Vx(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=Jj(c,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var h=i;i=new Ae,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=__[s];if(c&&ce(__,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=_z[s];if(h&&ce(_z,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 Pp({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Kn(r,n),Dn(t,n,this._defsUsePending,!1,!1),Bwe(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 Ae;return Kn(r,n),Dn(t,n,this._defsUsePending,!1,!1),n},rect:function(t,r){var n=new Qe;return Kn(r,n),Dn(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 $a;return Kn(r,n),Dn(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 Kn(r,n),Dn(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 uI;return Kn(r,n),Dn(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=Tz(n));var a=new Pn({shape:{points:i||[]},silent:!0});return Kn(r,a),Dn(t,a,this._defsUsePending,!1,!1),a},polyline:function(t,r){var n=t.getAttribute("points"),i;n&&(i=Tz(n));var a=new kn({shape:{points:i||[]},silent:!0});return Kn(r,a),Dn(t,a,this._defsUsePending,!1,!1),a},image:function(t,r){var n=new Fr;return Kn(r,n),Dn(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 Ae;return Kn(r,s),Dn(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 Ae;return Kn(r,s),Dn(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=I6(n);return Kn(r,i),Dn(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),e}(),_z={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 gv(t,r,n,i);return wz(e,a),Cz(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 V6(t,r,n);return wz(e,i),Cz(e,i),i}};function wz(e,t){var r=e.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(t.global=!0)}function Cz(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={};Qj(r,a,a);var o=a.stopColor||r.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}r=r.nextSibling}}function Kn(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),xe(t.__inheritedStyle,e.__inheritedStyle))}function Tz(e){for(var t=Vx(e),r=[],n=0;n0;a-=2){var o=n[a],s=n[a-1],l=Vx(o);switch(i=i||bi(),s){case"translate":Na(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Y2(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Pu(i,i,-parseFloat(l[0])*w_);break;case"skewX":var u=Math.tan(parseFloat(l[0])*w_);no(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*w_);no(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 Mz=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Qj(e,t,r){var n=e.getAttribute("style");if(n){Mz.lastIndex=0;for(var i;(i=Mz.exec(n))!=null;){var a=i[1],o=ce(T0,a)?T0[a]:null;o&&(t[o]=i[2]);var s=ce(A0,a)?A0[a]:null;s&&(r[s]=i[2])}}}function Wwe(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=ve(),n=ve(),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,yr(n),{labelFetcher:d,labelDataIndex:f,defaultText:r},h);var p=t.getTextContent();if(p&&(e8(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 Rz(e,t,r,n,i,a){e.data?e.data.setItemGraphicEl(a,t):Ie(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:r,region:n&&n.option||{}}}function Lz(e,t,r,n,i){e.data||Wf({el:t,componentModel:i,itemName:r,itemTooltipOption:n.get("tooltip")})}function Ez(e,t,r,n,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var a=n.getModel("emphasis"),o=a.get("focus");return Ut(t,o,a.get("blurScope"),a.get("disabled")),e.isGeo&&ume(t,i,r),o}function Oz(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(),D(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 dCe=fCe;function hCe(e,t){var r={};return D(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=hr(_,{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 yCe(e,t){D(t.get("geoCoord"),function(r,n){e.addGeoCoord(n,r)})}var xCe=function(){function e(){this.dimensions=r8}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 Fz(l+s,l,Y({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=$z,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)}}),D(a,function(o,s){var l=Z(o,function(c){return c.get("nameMap")}),u=new Fz(s,s,Y({nameMap:G2(l)},i(o[0])));u.zoomLimit=Cr.apply(null,Z(o,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=$z,u.resize(o[0],r),D(o,function(c){c.coordinateSystem=u,yCe(u,c)})}),n},e.prototype.getFilledRegions=function(t,r,n,i){for(var a=(t||[]).slice(),o=ve(),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 ICe(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){DCe(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=RCe(e,i,e.parentNode.hierNode.defaultAncestor||n[0],t)}function PCe(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function Gz(e){return arguments.length?e:OCe}function ch(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function kCe(e,t){return hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function DCe(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 RCe(e,t,r,n){if(t){for(var i=e,a=e,o=a.parentNode.children[0],s=t,l=i.hierNode.modifier,u=a.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=C_(s),a=T_(a),s&&a;){i=C_(i),o=T_(o),i.hierNode.ancestor=e;var d=s.hierNode.prelim+f-a.hierNode.prelim-u+n(s,a);d>0&&(ECe(LCe(s,e,r),e,d),u+=d,l+=d),f+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=i.hierNode.modifier,c+=o.hierNode.modifier}s&&!C_(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=f-l),a&&!T_(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,r=e)}return r}function C_(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function T_(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function LCe(e,t,r){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:r}function ECe(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 OCe(e,t){return e.parentNode===t.parentNode?1:2}var NCe=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),zCe=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 NCe},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 I=s.get(["emphasis","focus"]),P=I==="relative"?Yy(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;P&&(Ie(r).focus=P),FCe(i,o,c,r,p,h,v,n),r.__edge&&(r.onHoverStateChange=function(k){if(k!=="blur"){var R=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===vv||n0(r.__edge,k)}})}function FCe(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 xx({shape:iA(c,f,d,i,i)})),it(v,{shape:iA(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 u8(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function oP(e,t){var r=u8(e);return ze(r,t)>=0}function Gx(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 ZCe=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=aP.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 xr("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=Gx(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 KCe=ZCe;function QCe(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 JCe(e,t){e.eachSeriesByType("tree",function(r){eTe(r,t)})}function eTe(e,t){var r=kCe(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=Gz(function(x,S){return(x.parentNode===S.parentNode?1:2)/x.depth})):(i=r.width,a=r.height,o=Gz());var s=e.getData().tree.root,l=s.children[0];if(l){MCe(s),QCe(l,ICe,o),s.hierNode.modifier=-l.hierNode.prelim,Fd(l,PCe);var u=l,c=l,f=l;Fd(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),Fd(l,function(x){g=(x.getLayout().x+h)*p,m=(x.depth-1)*v;var S=ch(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),Fd(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),Fd(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 tTe(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");Y(s,o)})})}function rTe(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=nP(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function nTe(e){e.registerChartView($Ce),e.registerSeriesModel(KCe),e.registerLayout(JCe),e.registerVisual(tTe),rTe(e)}var Yz=["treemapZoomToNode","treemapRender","treemapMove"];function iTe(e){for(var t=0;t1;)a=a.parentNode;var o=RT(e.ecModel,a.name||a.dataIndex+"",n);i.setVisual("decal",o)})}var aTe=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};f8(i);var a=r.levels||[],o=this.designatedVisualItemStyle={},s=new wt({itemStyle:o},this,n);a=r.levels=oTe(a,n);var l=Z(a||[],function(f){return new wt(f,s,n)},this),u=aP.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 xr("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=Gx(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},Y(this.layoutInfo,r)},t.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=ve(),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(){c8(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 f8(e){var t=0;D(e.children,function(n){f8(n);var i=n.value;q(i)&&(i=i[0]),t+=i});var r=e.value;q(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),q(e.value)?e.value[0]=r:e.value=r}function oTe(e,t){var r=pt(t.get("color")),n=pt(t.get(["aria","decal","decals"]));if(r){e=e||[];var i,a;D(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 sTe=aTe;var lTe=8,qz=8,A_=5,uTe=function(){function e(t){this.group=new Ae,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),Px(o,f.pos,f.box)}},e.prototype._prepare=function(t,r,n){for(var i=t;i;i=i.parentNode){var a=dr(i.getModel().get("name"),""),o=n.getTextRect(a),s=Math.max(o.width+lTe*2,r.emptyItemWidth);r.totalWidth+=s+qz,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=yye(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 Pn({shape:{points:cTe(l,0,y,c,v===h.length-1,v===0)},style:xe(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new rt({style:_t(a,{text:x})}),textConfig:{position:"inside"},z2:Gf*1e4,onclick:Pe(s,m)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=_t(o,{text:x}),S.ensureState("emphasis").style=p,Ut(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),fTe(S,t,m),l+=y+qz}},e.prototype.remove=function(){this.group.removeAll()},e}();function cTe(e,t,r,n,i,a){var o=[[i?e:e-A_,t],[e+r,t],[e+r,t+n],[i?e:e-A_,t+n]];return!a&&o.splice(2,0,[e+r+A_,t+n/2]),!i&&o.push([e,t+n/2]),o}function fTe(e,t,r){Ie(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&&Gx(r,t)}}const dTe=uTe;var hTe=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;iZz||Math.abs(r.dy)>Zz)){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=bi();Na(u,u,[-n,-i]),Y2(u,u,[r.scale,r.scale]),Na(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&&u0(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 dTe(this.group))).render(r,n,i.node,function(o){a._state!=="animating"&&(oP(r.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=$d(),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 $d(){return{nodeGroup:[],background:[],content:[]}}function xTe(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=j("nodeGroup",aA);if(!M)return;if(l.add(M),M.x=c.x||0,M.y=c.y||0,M.markRedraw(),M0(M).nodeWidth=h,M0(M).nodeHeight=p,c.isAboveViewRoot)return M;var I=j("background",Xz,u,gTe);I&&V(M,I,_&&c.upperLabelHeight);var P=d.getModel("emphasis"),k=P.get("focus"),R=P.get("blurScope"),z=P.get("disabled"),$=k==="ancestor"?o.getAncestorsIndices():k==="descendant"?o.getDescendantIndices():k;if(_)Dp(M)&&Hl(M,!1),I&&(Hl(I,!z),f.setItemGraphicEl(o.dataIndex,I),CT(I,$,R));else{var N=j("content",Xz,u,mTe);N&&L(M,N),I.disableMorphing=!0,I&&Dp(I)&&Hl(I,!1),Hl(M,!z),f.setItemGraphicEl(o.dataIndex,M),CT(M,$,R)}return M;function V(ee,te,ie){var re=Ie(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,fe=Jz(b);fe.fill=J;var de=Cl(w);de.fill=w.get("borderColor");var ke=Cl(C);ke.fill=C.get("borderColor");var We=Cl(A);if(We.fill=A.get("borderColor"),ie){var Ge=h-2*v;U(te,J,Q.opacity,{x:v,y:0,width:Ge,height:S})}else te.removeTextContent();te.setStyle(fe),te.ensureState("emphasis").style=de,te.ensureState("blur").style=ke,te.ensureState("select").style=We,yu(te)}ee.add(te)}function L(ee,te){var ie=Ie(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"),fe=J.fill,de=Jz(b);de.fill=fe,de.decal=J.decal;var ke=Cl(w),We=Cl(C),Ge=Cl(A);U(te,fe,J.opacity,null),te.setStyle(de),te.ensureState("emphasis").style=ke,te.ensureState("blur").style=We,te.ensureState("select").style=Ge,yu(te)}ee.add(te)}function G(ee){!ee.invisible&&a.push(ee)}function U(ee,te,ie,re){var Q=d.getModel(re?Qz:Kz),J=dr(d.get("name"),null),fe=Q.getShallow("show");Br(ee,yr(d,re?Qz:Kz),{defaultText:fe?J:null,inheritColor:te,defaultOpacity:ie,labelFetcher:e,labelDataIndex:o.dataIndex});var de=ee.getTextContent();if(de){var ke=de.style,We=W2(ke.padding||0);re&&(ee.setTextConfig({layoutRect:re}),de.disableLabelLayout=!0),de.beforeUpdate=function(){var at=Math.max((re?re.width:ee.shape.width)-We[1]-We[3],0),ot=Math.max((re?re.height:ee.shape.height)-We[0]-We[2],0);(ke.width!==at||ke.height!==ot)&&de.setStyle({width:at,height:ot})},ke.truncateMinChar=2,ke.lineOverflow="truncate",B(ke,re,c);var Ge=de.getState("emphasis");B(Ge?Ge.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 j(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 _i&&(Q.z2=STe(ie,re)),W(J,Q)),t[ee][m]=Q}function X(ee,te){var ie=ee[m]={};te instanceof aA?(ie.oldX=te.x,ie.oldY=te.y):ie.oldShape=Y({},te.shape)}function W(ee,te){var ie=ee[m]={},re=o.parentNode,Q=te instanceof Ae;if(re&&(!n||n.direction==="drillDown")){var J=0,fe=0,de=i.background[re.getRawIndex()];!n&&de&&de.oldShape&&(J=de.oldShape.width,fe=de.oldShape.height),Q?(ie.oldX=0,ie.oldY=fe):ie.oldShape={x:J,y:fe,width:0,height:0}}ie.fadein=!Q}}function STe(e,t){return e*vTe+t}const bTe=yTe;var Up=D,_Te=Se,I0=-1,sP=function(){function e(t){var r=t.mappingMethod,n=t.type,i=this.option=we(t);this.type=n,this.mappingMethod=r,this._normalizeData=TTe[r];var a=e.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[r],r==="piecewise"?(M_(i),wTe(i)):r==="category"?i.categories?CTe(i):M_(i,!0):(ln(r!=="linear"||i.dataExtent),M_(i))}return e.prototype.mapValueToVisual=function(t){var r=this._normalizeData(t);return this._normalizedToVisual(r,t)},e.prototype.getNormalizer=function(){return ue(this._normalizeData,this)},e.listVisualTypes=function(){return He(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,r,n){Se(t)?D(t,r,n):r.call(n,t)},e.mapVisual=function(t,r,n){var i,a=q(t)?[]:Se(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&&Up(e.visualHandlers,function(i,a){t.hasOwnProperty(a)&&(r[a]=t[a],n=!0)}),n?r:null},e.prepareVisualTypes=function(t){if(q(t))t=t.slice();else if(_Te(t)){var r=[];Up(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 M_(e,t){var r=e.visual,n=[];Se(r)?Up(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]),d8(e,n)}function Jg(e){return{applyVisual:function(t,r,n){var i=this.mapValueToVisual(t);n("color",e(r("color"),i))},_normalizedToVisual:oA([0,1])}}function eB(e){var t=this.option.visual;return t[Math.round(ct(e,[0,1],[0,t.length-1],!0))]||{}}function Vd(e){return function(t,r,n){n(e,this.mapValueToVisual(t))}}function fh(e){var t=this.option.visual;return t[this.option.loop&&e!==I0?e%t.length:e]}function Tl(){return this.option.visual[0]}function oA(e){return{linear:function(t){return ct(t,e,this.option.visual,!0)},category:fh,piecewise:function(t,r){var n=sA.call(this,r);return n==null&&(n=ct(t,e,this.option.visual,!0)),n},fixed:Tl}}function sA(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var n=sP.findPieceIndex(e,r),i=r[n];if(i&&i.visual)return i.visual[this.type]}}function d8(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=Z(t,function(r){var n=$n(r);return n||[0,0,0,1]})),t}var TTe={linear:function(e){return ct(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,r=sP.findPieceIndex(e,t,!0);if(r!=null)return ct(r,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??I0},fixed:rr};function em(e,t,r){return e?t<=r:t=r.length||v===r[v.depth]){var m=DTe(i,l,v,g,p,n);p8(v,m,r,n)}})}}}function ITe(e,t,r){var n=Y({},t),i=r.designatedVisualItemStyle;return D(["color","colorAlpha","colorSaturation"],function(a){i[a]=t[a];var o=e.get(a);i[a]=null,o!=null&&(n[a]=o)}),n}function tB(e){var t=I_(e,"color");if(t){var r=I_(e,"colorAlpha"),n=I_(e,"colorSaturation");return n&&(t=Oh(t,null,null,n)),r&&(t=Zy(t,r)),t}}function PTe(e,t){return t!=null?Oh(t,null,null,e):null}function I_(e,t){var r=e[t];if(r!=null&&r!=="none")return r}function kTe(e,t,r,n,i,a){if(!(!a||!a.length)){var o=P_(t,"color")||i.color!=null&&i.color!=="none"&&(P_(t,"colorAlpha")||P_(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 h8(d).drColorMappingBy=c,d}}}function P_(e,t){var r=e.get(t);return q(r)&&r.length?{name:t,range:r}:null}function DTe(e,t,r,n,i,a){var o=Y({},t);if(i){var s=i.type,l=s==="color"&&h8(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 jp=Math.max,P0=Math.min,rB=Cr,lP=D,v8=["itemStyle","borderWidth"],RTe=["itemStyle","gapWidth"],LTe=["upperLabel","show"],ETe=["upperLabel","height"];const OTe={seriesType:"treemap",reset:function(e,t,r,n){var i=r.getWidth(),a=r.getHeight(),o=e.option,s=hr(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],u=ne(rB(s.width,l[0]),i),c=ne(rB(s.height,l[1]),a),f=n&&n.type,d=["treemapZoomToNode","treemapRootToNode"],h=Wp(n,d,e),p=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,v=e.getViewRoot(),g=u8(v);if(f!=="treemapMove"){var m=f==="treemapZoomToNode"?VTe(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),g8(v,x,!1,0),S=v.getLayout(),lP(g,function(b,w){var C=(g[w+1]||v).getValue();b.setLayout(Y({dataExtent:[C,C],borderWidth:0,upperHeight:0},S))})}var _=e.getData().tree.root;_.setLayout(GTe(s,p,h),!0),e.setLayoutInfo(s),m8(_,new Ne(-s.x,-s.y,i,a),g,v,0)}};function g8(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(v8),u=s.get(RTe)/2,c=y8(s),f=Math.max(l,c),d=l-u,h=f-u;e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),i=jp(i-2*d,0),a=jp(a-d-h,0);var p=i*a,v=NTe(e,s,p,t,r,n);if(v.length){var g={x:d,y:h,width:i,height:a},m=P0(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=$Te(x,m,t.squareRatio);w<=y?(S++,y=w):(x.area-=x.pop().getLayout().area,nB(x,m,g,u,!1),m=P0(g.width,g.height),x.length=x.area=0,y=1/0)}if(x.length&&nB(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 $Te(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?jp(u*n/l,l/(u*i)):1/0}function nB(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;fvE&&(u=vE),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}(Ae);const dP=sAe;var lAe=function(){function e(t){this.group=new Ae,this._LineCtor=t||dP}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=uB(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=uB(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!uAe(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0}function uB(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:yr(t)}}function cB(e){return isNaN(e[0])||isNaN(e[1])}function E_(e){return e&&!cB(e[0])&&!cB(e[1])}const hP=lAe;var O_=[],N_=[],z_=[],oc=_r,B_=Ql,fB=Math.abs;function dB(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){O_[0]=oc(n[0],i[0],a[0],c),O_[1]=oc(n[1],i[1],a[1],c);var f=fB(B_(O_,t)-l);f=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function F_(e,t){var r=[],n=Tp,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=[ro(u[0]),ro(u[1])],u[2]&&u.__original.push(ro(u[2])));var d=u.__original;if(u[2]!=null){if(en(i[0],d[0]),en(i[1],d[2]),en(i[2],d[1]),c&&c!=="none"){var h=hh(s.node1),p=dB(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=hh(s.node2),p=dB(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]}en(u[0],i[0]),en(u[1],i[2]),en(u[2],i[1])}else{if(en(a[0],d[0]),en(a[1],d[1]),Vl(o,a[1],a[0]),Ff(o,o),c&&c!=="none"){var h=hh(s.node1);ZC(a[0],a[0],o,h*t)}if(f&&f!=="none"){var h=hh(s.node2);ZC(a[1],a[1],o,-h*t)}en(u[0],a[0]),en(u[1],a[1])}})}function hB(e){return e.type==="view"}var cAe=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 Av,a=new hP,o=this.group;this._controller=new kv(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(hB(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):it(u,c,r)}F_(r.getGraph(),dh(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),fP(r,"symbolSize",x,[A.offsetX,A.offsetY]),a.updateLayout(r);break;case"none":default:f.setItemLayout(S,[_.x,_.y]),cP(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"&&(Ie(_).focus=x.getAdjacentDataIndices())}}),f.graph.eachEdge(function(x){var S=x.getGraphicEl(),_=x.getModel().get(["emphasis","focus"]);S&&_==="adjacency"&&(Ie(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){_8(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)&&!$x(u,i,r)}),!hB(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){eP(s,u.dx,u.dy),i.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){tP(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(),F_(r.getGraph(),dh(r)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),i=dh(r);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},t.prototype.updateLayout=function(r){F_(r.getGraph(),dh(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 fAe=cAe;function sc(e){return"_EC_"+e}var dAe=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 Al(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(nt(t)&&(t=this.nodes[t]),nt(r)&&(r=this.nodes[r]),t instanceof Al||(t=i[sc(t)]),r instanceof Al||(r=i[sc(r)]),!(!t||!r)){var o=t.id+"-"+r.id,s=new C8(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 Al&&(t=t.id),r instanceof Al&&(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 Al||(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)}}}lr(Al,T8("hostGraph","data"));lr(C8,T8("hostGraph","edgeData"));const hAe=dAe;function A8(e,t,r,n,i){for(var a=new hAe(n),o=0;o "+d)),u++)}var h=r.get("coordinateSystem"),p;if(h==="cartesian2d"||h==="polar")p=Ao(e,r);else{var v=Sv.get(h),g=v?v.dimensions||[]:[];ze(g,"value")<0&&g.concat(["value"]);var m=_v(e,{coordDimensions:g,encodeDefine:r.getEncode()}).dimensions;p=new sn(m,r),p.initData(e)}var y=new sn(["value"],r);return y.initData(l,s),i&&i(p,y),s8({mainData:p,struct:a,structAttr:"graph",datas:{node:p,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var pAe=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 Pv(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),vu(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){XTe(this);var s=A8(a,i,this,!0,l);return D(s.edges,function(u){ZTe(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),xr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=qW({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:Y({value:0},i)}),n=new sn(["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 vAe=pAe;var gAe={type:"graphRoam",event:"graphRoam",update:"none"};function mAe(e){e.registerChartView(fAe),e.registerSeriesModel(vAe),e.registerProcessor(WTe),e.registerVisual(UTe),e.registerVisual(jTe),e.registerLayout(KTe),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,JTe),e.registerLayout(tAe),e.registerCoordinateSystem("graphView",{dimensions:Dv.dimensions,create:nAe}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},rr),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},rr),e.registerAction(gAe,function(t,r,n){r.eachComponent({mainType:"series",query:t},function(i){var a=i.coordinateSystem,o=nP(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var yAe=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),xAe=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 yAe},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}($e);const SAe=xAe;function bAe(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 rm(e,t){var r=e==null?"":e+"";return t&&(oe(t)?r=t.replace("{value}",r):me(t)&&(r=t(e))),r}var _Ae=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=bAe(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?C0:In,p=f.get("show"),v=f.getModel("lineStyle"),g=v.get("width"),m=[u,c];i6(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&&(j+=Math.PI)):B==="tangential"?j=-C-Math.PI/2:nt(B)&&(j=B*Math.PI/180),j===0?f.add(new rt({style:_t(x,{text:V,x:G,y:U,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:k<-.4?"left":k>.4?"right":"center"},{inheritColor:L}),silent:!0})):f.add(new rt({style:_t(x,{text:V,x:G,y:U,verticalAlign:"middle",align:"center"},{inheritColor:L}),silent:!0,originX:G,originY:U,rotation:j}))}if(y.get("show")&&z!==S){var $=y.get("distance");$=$?$+c:c;for(var X=0;X<=_;X++){k=Math.cos(C),R=Math.sin(C);var W=new Tr({shape:{x1:k*(p-$)+d,y1:R*(p-$)+h,x2:k*(p-w-$)+d,y2:R*(p-w-$)+h},silent:!0,style:I});I.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 I=y.getItemModel(T),P=I.getModel("pointer"),k=ne(P.get("width"),o.r),R=ne(P.get("length"),o.r),z=r.get(["pointer","icon"]),$=P.get("offsetCenter"),N=ne($[0],o.r),V=ne($[1],o.r),L=P.get("keepAspect"),G;return z?G=sr(z,N-k/2,V-R,k,R,null,L):G=new SAe({shape:{angle:-Math.PI/2,width:k,r:R,x:N,y:V}}),G.rotation=-(M+Math.PI/2),G.x=o.cx,G.y=o.cy,G}function A(T,M){var I=g.get("roundCap"),P=I?C0:In,k=g.get("overlap"),R=k?g.get("width"):c/y.count(),z=k?o.r-R:o.r-(T+1)*R,$=k?o.r:o.r-T*R,N=new P({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:z,r:$}});return k&&(N.z2=_-y.get(x,T)%_),N}(m||v)&&(y.diff(d).add(function(T){var M=y.get(x,T);if(v){var I=C(T,s);Lt(I,{rotation:-((isNaN(+M)?w[0]:ct(M,b,w,!0))+Math.PI/2)},r),f.add(I),y.setItemGraphicEl(T,I)}if(m){var P=A(T,s),k=g.get("clip");Lt(P,{shape:{endAngle:ct(M,b,w,k)}},r),f.add(P),bT(r.seriesIndex,y.dataType,T,P),p[T]=P}}).update(function(T,M){var I=y.get(x,T);if(v){var P=d.getItemGraphicEl(M),k=P?P.rotation:s,R=C(T,k);R.rotation=k,it(R,{rotation:-((isNaN(+I)?w[0]:ct(I,b,w,!0))+Math.PI/2)},r),f.add(R),y.setItemGraphicEl(T,R)}if(m){var z=h[M],$=z?z.shape.endAngle:s,N=A(T,$),V=g.get("clip");it(N,{shape:{endAngle:ct(I,b,w,V)}},r),f.add(N),bT(r.seriesIndex,y.dataType,T,N),p[T]=N}}).execute(),y.each(function(T){var M=y.getItemModel(T),I=M.getModel("emphasis"),P=I.get("focus"),k=I.get("blurScope"),R=I.get("disabled");if(v){var z=y.getItemGraphicEl(T),$=y.getItemVisual(T,"style"),N=$.fill;if(z instanceof Fr){var V=z.style;z.useStyle(Y({image:V.image,x:V.x,y:V.y,width:V.width,height:V.height},$))}else z.useStyle($),z.type!=="pointer"&&z.setColor(N);z.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),z.style.fill==="auto"&&z.setStyle("fill",a(ct(y.get(x,T),b,[0,1],!0))),z.z2EmphasisLift=0,zr(z,M),Ut(z,P,k,R)}if(m){var L=p[T];L.useStyle(y.getItemVisual(T,"style")),L.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),L.z2EmphasisLift=0,zr(L,M),Ut(L,P,k,R)}}),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=sr(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 Ae,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 Ae,_=a(ct(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 I=M.get("offsetCenter"),P=o.cx+ne(I[0],o.r),k=o.cy+ne(I[1],o.r),R=ne(M.get("width"),o.r),z=ne(M.get("height"),o.r),$=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:P,y:k,text:rm(x,N),width:isNaN(R)?null:R,height:isNaN(z)?null:z,align:"center",verticalAlign:"middle"},{inheritColor:$})}),Z6(T,{normal:M},x,function(L){return rm(L,N)}),v&&K6(T,m,l,r,{getFormattedLabel:function(L,G,U,B,j,X){return rm(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 wAe=_Ae;var CAe=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 ed(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 TAe=CAe;function AAe(e){e.registerChartView(wAe),e.registerSeriesModel(TAe)}var MAe=["itemStyle","opacity"],IAe=function(e){H(t,e);function t(r,n){var i=e.call(this)||this,a=i,o=new kn,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(MAe);c=c??1,i||Xi(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)):it(a,{style:{opacity:c},shape:{points:l.points}},o,n),zr(a,s),this._updateLabel(r,n),Ut(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,yr(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},it(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),UI(i,jI(l),{stroke:d})},t}(Pn),PAe=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 IAe(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);Rp(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 kAe=PAe;var DAe=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 Pv(ue(this.getData,this),ue(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.getInitialData=function(r,n){return ed(this,{coordDimensions:["value"],encodeDefaulter:Pe(SI,this)})},t.prototype._defaultLabelLine=function(r){vu(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 RAe=DAe;function LAe(e,t){return hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function EAe(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();oJAe)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||!V_(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 V_(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}const rMe=eMe;var nMe=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){D(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){r.hasOwnProperty(n)&&(this.option[n]=r[n])},this)},t.prototype._initDimensions=function(){var r=this.dimensions=[],n=this.parallelAxisIndex=[],i=ft(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);D(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 iMe=nMe;var aMe=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}(Ki);const oMe=aMe;function Ou(e,t,r,n,i,a){e=e||0;var o=r[1]-r[0];if(i!=null&&(i=lc(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=lc(s,[0,o]),i=a=lc(s,[i,a]),n=0}t[0]=lc(t[0],r),t[1]=lc(t[1],r);var l=G_(t,n);t[n]+=e;var u=i||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=lc(t[n],c);var f;return f=G_(t,n),i!=null&&(f.sign!==l.sign||f.spana&&(t[1-n]=t[n]+f.sign*a),t}function G_(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 lc(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var H_=D,I8=Math.min,P8=Math.max,gB=Math.floor,sMe=Math.ceil,mB=Xt,lMe=Math.PI,uMe=function(){function e(t,r,n){this.type="parallel",this._axesMap=ve(),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;H_(i,function(o,s){var l=a[s],u=r.getComponent("parallelAxis",l),c=this._axesMap.set(o,new oMe(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();H_(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),yf(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,r){this._rect=hr(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=nm(t.get("axisExpandWidth"),l),f=nm(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=nm(h[1]-h[0],l),h[1]=h[0]+p;else{p=nm(c*(f-1),l);var v=t.get("axisExpandCenter")||gB(u/2);h=[c*v-p/2],h[1]=h[0]+p}var g=(s-p)/(u-f);g<3&&(g=0);var m=[gB(mB(h[0]/c,1))+1,sMe(mB(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])}),H_(n,function(o,s){var l=(i.axisExpandable?fMe:cMe)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:lMe/2,vertical:0},f=[u[a].x+t.x,u[a].y+t.y],d=c[a],h=bi();Pu(h,h,d),Na(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=[];D(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?Ou(l,i,o,"all"):u="none";else{var h=i[1]-i[0],p=o[1]*s/h;i=[P8(0,p-h/2)],i[1]=I8(o[1],i[0]+h),i[0]=i[1]-h}return{axisExpandWindow:i,behavior:u}},e}();function nm(e,t){return I8(P8(e,t[0]),t[1])}function cMe(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function fMe(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--)vi(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;ayMe}function N8(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function z8(e,t,r,n){var i=new Ae;return i.add(new Qe({name:"main",style:mP(r),silent:!0,draggable:!0,cursor:"move",drift:Pe(bB,e,t,i,["n","s","w","e"]),ondragend:Pe(bu,t,{isEnd:!0})})),D(n,function(a){i.add(new Qe({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Pe(bB,e,t,i,a),ondragend:Pe(bu,t,{isEnd:!0})}))}),i}function B8(e,t,r,n){var i=n.brushStyle.lineWidth||0,a=bf(i,xMe),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;Ua(e,t,"main",o,s,p,v),n.transformable&&(Ua(e,t,"w",l,u,a,m),Ua(e,t,"e",d,u,a,m),Ua(e,t,"n",l,u,g,a),Ua(e,t,"s",l,h,g,a),Ua(e,t,"nw",l,u,a,a),Ua(e,t,"ne",d,u,a,a),Ua(e,t,"sw",l,h,a,a),Ua(e,t,"se",d,h,a,a))}function dA(e,t){var r=t.__brushOption,n=r.transformable,i=t.childAt(0);i.useStyle(mP(r)),i.attr({silent:!n,cursor:n?"move":"default"}),D([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?hA(e,a[0]):AMe(e,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?bMe[s]+"-resize":null})})}function Ua(e,t,r,n,i,a,o){var s=t.childOfName(r);s&&s.setShape(IMe(yP(e,t,[[n,i],[n+a,i+o]])))}function mP(e){return xe({strokeNoScale:!0},e.brushStyle)}function F8(e,t,r,n){var i=[qp(e,r),qp(t,n)],a=[bf(e,r),bf(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function TMe(e){return nu(e.group)}function hA(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=bx(r[t],TMe(e));return n[i]}function AMe(e,t){var r=[hA(e,t[0]),hA(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function bB(e,t,r,n,i,a){var o=r.__brushOption,s=e.toRectRange(o.range),l=$8(t,i,a);D(n,function(u){var c=SMe[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(F8(s[0][0],s[1][0],s[0][1],s[1][1])),pP(t,r),bu(t,{isEnd:!1})}function MMe(e,t,r,n){var i=t.__brushOption.range,a=$8(e,r,n);D(i,function(o){o[0]+=a[0],o[1]+=a[1]}),pP(e,t),bu(e,{isEnd:!1})}function $8(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 yP(e,t,r){var n=O8(e,t);return n&&n!==Su?n.clipPath(r,e._transform):we(r)}function IMe(e){var t=qp(e[0][0],e[1][0]),r=qp(e[0][1],e[1][1]),n=bf(e[0][0],e[1][0]),i=bf(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:i-r}}function PMe(e,t,r){if(!(!e._brushType||DMe(e,t.offsetX,t.offsetY))){var n=e._zr,i=e._covers,a=gP(e,t,r);if(!e._dragging)for(var o=0;on.getWidth()||r<0||r>n.getHeight()}var Wx={lineX:CB(0),lineY:CB(1),rect:{createCover:function(e,t){function r(n){return n}return z8({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=N8(e);return F8(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){B8(e,t,r,n)},updateCommon:dA,contain:vA},polygon:{createCover:function(e,t){var r=new Ae;return r.add(new kn({name:"main",style:mP(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Pn({name:"main",draggable:!0,drift:Pe(MMe,e,t),ondragend:Pe(bu,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:yP(e,t,r)})},updateCommon:dA,contain:vA}};function CB(e){return{createCover:function(t,r){return z8({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=N8(t),n=qp(r[0][e],r[1][e]),i=bf(r[0][e],r[1][e]);return[n,i]},updateCoverShape:function(t,r,n,i){var a,o=O8(t,r);if(o!==Su&&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(),B8(t,r,l,i)},updateCommon:dA,contain:vA}}const xP=wMe;function G8(e){return e=SP(e),function(t){return j6(t,e)}}function H8(e,t){return e=SP(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 W8(e,t,r){var n=SP(e);return function(i,a){return n.contain(a[0],a[1])&&!$x(i,t,r)}}function SP(e){return Ne.create(e)}var RMe=["axisLine","axisTickLabel","axisName"],LMe=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 xP(n.getZr())).on("brush",ue(this._onBrush,this))},t.prototype.render=function(r,n,i,a){if(!EMe(r,n,a)){this.axisModel=r,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ae,this.group.add(this._axisGroup),!!r.get("show")){var s=NMe(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),c=u.width,f=r.axis.dim,d=l.getAxisLayout(f),h=Y({strokeContainThreshold:c},d),p=new So(r,h);D(RMe,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(h,u,r,s,c,i),mv(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:G8(f),isTargetByCursor:W8(f,s,a),getLinearBrushOtherExtent:H8(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(OMe(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}(jt);function EMe(e,t,r){return r&&r.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function OMe(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 NMe(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}const zMe=LMe;var BMe={type:"axisAreaSelect",event:"axisAreaSelected"};function FMe(e){e.registerAction(BMe,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 $Me={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function U8(e){e.registerComponentView(rMe),e.registerComponentModel(iMe),e.registerCoordinateSystem("parallel",vMe),e.registerPreprocessor(ZAe),e.registerComponentModel(yB),e.registerComponentView(zMe),Sf(e,"parallel",yB,$Me),FMe(e)}function VMe(e){Fe(U8),e.registerChartView(GAe),e.registerSeriesModel(jAe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,XAe)}var GMe=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}(),HMe=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new GMe},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(){mo(this)},t.prototype.downplay=function(){yo(this)},t}($e),WMe=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 HMe,g=Ie(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"),I=p.getLayout(),P,k,R,z,$,N,V,L;v.shape.extent=Math.max(1,I.dy),v.shape.orient=h,h==="vertical"?(P=(b!=null?b*u:S.x)+I.sy,k=(w!=null?w*c:S.y)+S.dy,R=(T!=null?T*u:C.x)+I.ty,z=M!=null?M*c:C.y,$=P,N=k*(1-x)+z*x,V=R,L=k*x+z*(1-x)):(P=(b!=null?b*u:S.x)+S.dx,k=(w!=null?w*c:S.y)+I.sy,R=T!=null?T*u:C.x,z=(M!=null?M*c:C.y)+I.ty,$=P*(1-x)+R*x,N=k,V=P*x+R*(1-x),L=z),v.setShape({x1:P,y1:k,x2:R,y2:z,cpx1:$,cpy1:N,cpx2:V,cpy2:L}),v.useStyle(y.getItemStyle()),TB(v.style,h,p);var G=""+m.get("value"),U=yr(m,"edgeLabel");Br(v,U,{labelFetcher:{getFormattedLabel:function(X,W,ee,te,ie,re){return r.getFormattedLabel(X,W,"edge",te,Pa(ie,U.normal&&U.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 TB(W,h,p),W}),s.add(v),d.setItemGraphicEl(p.dataIndex,v);var j=B.get("focus");Ut(v,j==="adjacency"?p.getAdjacentDataIndices():j==="trajectory"?p.getTrajectoryDataIndices():j,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,yr(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),Ie(S).dataType="node";var _=x.get("focus");Ut(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(UMe(s.getBoundingRect(),r,function(){s.removeClipPath()})),this._data=r.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(Tt);function TB(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 gv(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:i,offset:1}]))}}function UMe(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 jMe=WMe;var YMe=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=A8(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 xr("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 xr("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 qMe=YMe;function XMe(e,t){e.eachSeriesByType("sankey",function(r){var n=r.get("nodeWidth"),i=r.get("nodeGap"),a=ZMe(r,t);r.layoutInfo=a;var o=a.width,s=a.height,l=r.getGraph(),u=l.nodes,c=l.edges;QMe(u);var f=ft(u,function(v){return v.getLayout().value===0}),d=f.length!==0?0:r.get("layoutIterations"),h=r.get("orient"),p=r.get("nodeAlign");KMe(u,c,n,i,o,s,d,h,p)})}function ZMe(e,t){return hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function KMe(e,t,r,n,i,a,o,s,l){JMe(e,t,r,i,a,s,l),n2e(e,t,a,i,n,o,s),d2e(e,s)}function QMe(e){D(e,function(t){var r=bs(t.outEdges,k0),n=bs(t.inEdges,k0),i=t.getValue()||0,a=Math.max(r,n,i);t.setLayout({value:a},!0)})}function JMe(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"&&e2e(e,o,a,w);var C=a==="vertical"?(i-r)/w:(n-r)/w;r2e(e,C,a)}function j8(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function e2e(e,t,r,n){if(t==="right"){for(var i=[],a=e,o=0;a.length;){for(var s=0;s0;a--)l*=.99,o2e(s,l,o),W_(s,i,r,n,o),f2e(s,l,o),W_(s,i,r,n,o)}function i2e(e,t){var r=[],n=t==="vertical"?"y":"x",i=mT(e,function(a){return a.getLayout()[n]});return i.keys.sort(function(a,o){return a-o}),D(i.keys,function(a){r.push(i.buckets.get(a))}),r}function a2e(e,t,r,n,i,a){var o=1/0;D(e,function(s){var l=s.length,u=0;D(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 o2e(e,t,r){D(e.slice().reverse(),function(n){D(n,function(i){if(i.outEdges.length){var a=bs(i.outEdges,s2e,r)/bs(i.outEdges,k0);if(isNaN(a)){var o=i.outEdges.length;a=o?bs(i.outEdges,l2e,r)/o:0}if(r==="vertical"){var s=i.getLayout().x+(a-Os(i,r))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-Os(i,r))*t;i.setLayout({y:l},!0)}}})})}function s2e(e,t){return Os(e.node2,t)*e.getValue()}function l2e(e,t){return Os(e.node2,t)}function u2e(e,t){return Os(e.node1,t)*e.getValue()}function c2e(e,t){return Os(e.node1,t)}function Os(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function k0(e){return e.getValue()}function bs(e,t,r){for(var n=0,i=e.length,a=-1;++ao&&(o=l)}),D(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&&D(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function p2e(e){e.registerChartView(jMe),e.registerSeriesModel(qMe),e.registerLayout(XMe),e.registerVisual(h2e),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 Y8=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=[];D(g,function(S,_){var b;q(S)?(b=S.slice(),S.unshift(_)):q(S.value)?(b=Y({},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:y0(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:y0(v),dimsDef:y.slice()}];return ed(this,{coordDimensions:x,dimensionsCount:y.length+1,encodeDefaulter:Pe(xW,x,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),q8=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);lr(q8,Y8,!0);const v2e=q8;var g2e=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=AB(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?(Xi(f),X8(d,f,a,u)):f=AB(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),m2e=function(){function e(){}return e}(),y2e=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 m2e},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 A2e={type:"echarts:boxplot",transform:function(t){var r=t.upstream;if(r.sourceFormat!==Kr){var n="";st(n)}var i=T2e(r.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function M2e(e){e.registerSeriesModel(v2e),e.registerChartView(S2e),e.registerLayout(b2e),e.registerTransform(A2e)}var I2e=["color","borderColor"],P2e=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){Gs(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&&MB(u,f))return;var d=U_(f,c,!0);Lt(d,{shape:{points:f.ends}},r,c),j_(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&&MB(u,h)){a.remove(d);return}d?(it(d,{shape:{points:h.ends}},r,c),Xi(d)):d=U_(h),j_(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(),IB(r,this.group);var n=r.get("clip",!0)?Fx(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=U_(s);j_(l,i,o,a),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(r,n){IB(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),k2e=function(){function e(){}return e}(),D2e=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 k2e},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}($e);function U_(e,t,r){var n=e.ends;return new D2e({shape:{points:r?R2e(n,e):n},z2:100})}function MB(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(I2e);t.useStyle(a),t.style.fill=null,t.style.stroke=i}const E2e=P2e;var Z8=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);lr(Z8,Y8,!0);const O2e=Z8;function N2e(e){!e||!q(e.series)||D(e.series,function(t){Se(t)&&t.type==="k"&&(t.type="candlestick")})}var z2e=["itemStyle","borderColor"],B2e=["itemStyle","borderColor0"],F2e=["itemStyle","borderColorDoji"],$2e=["itemStyle","color"],V2e=["itemStyle","color0"],G2e={seriesType:"candlestick",plan:Kf(),performRawSeries:!0,reset:function(e,t){function r(a,o){return o.get(a>0?$2e:V2e)}function n(a,o){return o.get(a===0?F2e:a>0?z2e:B2e)}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");Y(f,c)}}}}}};const H2e=G2e;var W2e={seriesType:"candlestick",plan:Kf(),reset:function(e){var t=e.coordinateSystem,r=e.getData(),n=U2e(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=$(C,x),M=$(A,x),I=$(b,x),P=$(w,x),k=[];N(k,M,0),N(k,T,1),k.push(L(P),L(M),L(I),L(T));var R=g.getItemModel(m),z=!!R.get(["itemStyle","borderColorDoji"]);g.setItemLayout(m,{sign:PB(y,m,S,_,c,z),initBaseline:S>_?M[a]:T[a],ends:k,brushRect:V(b,w,x)})}function $(G,U){var B=[];return B[i]=U,B[a]=G,isNaN(U)||isNaN(G)?[NaN,NaN]:t.dataToPoint(B)}function N(G,U,B){var j=U.slice(),X=U.slice();j[i]=Um(j[i]+n/2,1,!1),X[i]=Um(X[i]-n/2,1,!0),B?G.push(j,X):G.push(X,j)}function V(G,U,B){var j=$(G,B),X=$(U,B);return j[i]-=n/2,X[i]-=n/2,{x:j[0],y:j[1],width:n,height:X[1]-j[1]}}function L(G){return G[i]=Um(G[i],1),G}}function p(v,g){for(var m=_a(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),I=w.get(f,b),P=w.get(d,b);if(isNaN(A)||isNaN(I)||isNaN(P)){m[y++]=NaN,y+=3;continue}m[y++]=PB(w,b,T,M,c,C),S[i]=A,S[a]=I,x=t.dataToPoint(S,null,_),m[y++]=x?x[0]:NaN,m[y++]=x?x[1]:NaN,S[a]=P,x=t.dataToPoint(S,null,_),m[y++]=x?x[1]:NaN}g.setLayout("largePoints",m)}}};function PB(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 U2e(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 j2e=W2e;function Y2e(e){e.registerChartView(E2e),e.registerSeriesModel(O2e),e.registerPreprocessor(N2e),e.registerVisual(H2e),e.registerLayout(j2e)}function kB(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 q2e=function(e){H(t,e);function t(r,n){var i=e.call(this)||this,a=new Tv(r,n),o=new Ae;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;me(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 Jo(r.__p1,r.__cp1)+Jo(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=_r,c=iT;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}(K8);const iIe=nIe;var aIe=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),oIe=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 aIe},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(a6(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 lIe=sIe;var uIe={seriesType:"lines",plan:Kf(),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)&&Fx(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=J8.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 lIe:new hP(o?a?iIe:Q8:a?K8:dP),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 fIe=cIe;var dIe=typeof Uint32Array>"u"?Array:Uint32Array,hIe=typeof Float64Array>"u"?Array:Float64Array;function DB(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),G2([i,r[0],r[1]])}))}var pIe=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||[],DB(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(DB(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=Yy(this._flatCoords,n.flatCoords),this._flatCoordsOffset=Yy(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 vIe=pIe;function im(e){return e instanceof Array||(e=[e,e]),e}var gIe={seriesType:"lines",reset:function(e){var t=im(e.get("symbol")),r=im(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=im(s.getShallow("symbol",!0)),u=im(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 mIe=gIe;function yIe(e){e.registerChartView(fIe),e.registerSeriesModel(vIe),e.registerLayout(J8),e.registerVisual(mIe)}var xIe=256,SIe=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Ps.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 I=o(x)?l:u;x>0&&(x=x*T+C),_[b++]=I[M],_[b++]=I[M+1],_[b++]=I[M+2],_[b++]=I[M+3]*x*256}else b+=4}return d.putImageData(S,0,0),f},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Ps.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 bIe=SIe;function _Ie(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 RB(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var CIe=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()):RB(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&&(RB(o)?this.render(n,i,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,a,r.start,r.end,!0)))},t.prototype.eachRendered=function(r){Gs(this._progressiveEls||this.group,r)},t.prototype._renderOnCartesianAndCalendar=function(r,n,i,a,o){var s=r.coordinateSystem,l=Lu(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"]),_=yr(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]||Rd[1])continue;var z=s.dataToPoint([k,R]);I=new Qe({shape:{x:z[0]-u/2,y:z[1]-c/2,width:u,height:c},style:P})}else{if(isNaN(g.get(T[1],M)))continue;I=new Qe({z2:1,shape:s.dataToRect([g.get(T[0],M)]).contentShape,style:P})}if(g.hasItemOption){var $=g.getItemModel(M),N=$.getModel("emphasis");m=N.getModel("itemStyle").getItemStyle(),y=$.getModel(["blur","itemStyle"]).getItemStyle(),x=$.getModel(["select","itemStyle"]).getItemStyle(),S=$.get(["itemStyle","borderRadius"]),w=N.get("focus"),C=N.get("blurScope"),A=N.get("disabled"),_=yr($)}I.shape.r=S;var V=r.getRawValue(M),L="-";V&&V[2]!=null&&(L=V[2]+""),Br(I,_,{labelFetcher:r,labelDataIndex:M,defaultOpacity:P.opacity,defaultText:L}),I.ensureState("emphasis").style=m,I.ensureState("blur").style=y,I.ensureState("select").style=x,Ut(I,w,C,A),I.incremental=o,o&&(I.states.emphasis.hoverLayer=!0),v.add(I),g.setItemGraphicEl(M,I),this._progressiveEls&&this._progressiveEls.push(I)}},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 bIe;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"?wIe(S,i.option.range):_Ie(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 Fr({style:{width:g,height:m,x:d,y:h,image:u.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t}(Tt);const TIe=CIe;var AIe=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 Ao(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var r=Sv.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 MIe=AIe;function IIe(e){e.registerChartView(TIe),e.registerSeriesModel(MIe)}var PIe=["itemStyle","borderWidth"],LB=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],X_=new $a,kIe=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:LB[+c],categoryDim:LB[1-+c]};return o.diff(s).add(function(h){if(o.hasValue(h)){var p=OB(o,h),v=EB(o,h,p,d),g=NB(o,d,v);o.setItemGraphicEl(h,g),a.add(g),BB(g,d,v)}}).update(function(h,p){var v=s.getItemGraphicEl(p);if(!o.hasValue(h)){a.remove(v);return}var g=OB(o,h),m=EB(o,h,g,d),y=a9(o,m);v&&y!==v.__pictorialShapeStr&&(a.remove(v),o.setItemGraphicEl(h,null),v=null),v?zIe(v,d,m):v=NB(o,d,m,!0),o.setItemGraphicEl(h,v),v.__pictorialSymbolMeta=m,a.add(v),BB(v,d,m)}).remove(function(h){var p=s.getItemGraphicEl(h);p&&zB(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){zB(a,Ie(o).dataIndex,r,o)}):i.removeAll()},t.type="pictorialBar",t}(Tt);function EB(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};DIe(r,a,i,n,d),RIe(e,t,i,a,o,d.boundingLength,d.pxSign,c,n,d),LIe(r,d.symbolScale,u,n,d);var h=d.symbolSize,p=Du(r.get("symbolOffset"),h);return EIe(r,h,i,a,o,p,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,n,d),d}function DIe(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(q(o)){var f=[Z_(s,o[0])-l,Z_(s,o[1])-l];f[1]0?1:-1}function Z_(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function RIe(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;q(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 LIe(e,t,r,n,i){var a=e.get(PIe)||0;a&&(X_.attr({scaleX:t[0],scaleY:t[1],rotation:r}),X_.updateTransform(),a/=X_.getLineScale(),a*=t[n.valueDim.index]),i.valueLineWidth=a||0}function EIe(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=WH(n),C=w?n:FB((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?FB((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 I=f.bundlePosition=[];I[d.index]=r[d.xy],I[h.index]=r[h.xy];var P=f.barRectShape=Y({},r);P[h.wh]=p*Math.max(Math.abs(r[h.wh]),Math.abs(M[h.index]+T)),P[d.wh]=r[d.wh];var k=f.clipShape={};k[d.xy]=-r[d.xy],k[d.wh]=c.ecSize[d.wh],k[h.xy]=0,k[h.wh]=r[h.wh]}function e9(e){var t=e.symbolPatternSize,r=sr(e.symbolType,-t/2,-t/2,t,t);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function t9(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(bP(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 r9(e,t,r,n){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?Jc(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=e9(r),i.add(a),Jc(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 n9(e,t,r){var n=Y({},t.barRectShape),i=e.__pictorialBarRect;i?Jc(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 i9(e,t,r,n){if(r.symbolClip){var i=e.__pictorialClipPath,a=Y({},r.clipShape),o=t.valueDim,s=r.animationModel,l=r.dataIndex;if(i)it(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],xv[n?"updateProps":"initProps"](i,{shape:u},s,l)}}}function OB(e,t){var r=e.getItemModel(t);return r.getAnimationDelayParams=OIe,r.isAnimationEnabled=NIe,r}function OIe(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function NIe(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function NB(e,t,r,n){var i=new Ae,a=new Ae;return i.add(a),i.__pictorialBundle=a,a.x=r.bundlePosition[0],a.y=r.bundlePosition[1],r.symbolRepeat?t9(i,t,r):r9(i,t,r),n9(i,r,n),i9(i,t,r,n),i.__pictorialShapeStr=a9(e,r),i.__pictorialSymbolMeta=r,i}function zIe(e,t,r){var n=r.animationModel,i=r.dataIndex,a=e.__pictorialBundle;it(a,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,i),r.symbolRepeat?t9(e,t,r,!0):r9(e,t,r,!0),n9(e,r,!0),i9(e,t,r,!0)}function zB(e,t,r,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var a=[];bP(n,function(o){a.push(o)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),D(a,function(o){Ds(o,{scaleX:0,scaleY:0},r,t,function(){n.parent&&n.parent.remove(n)})}),e.setItemGraphicEl(t,null)}function a9(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function bP(e,t,r){D(e.__pictorialBundle.children(),function(n){n!==e.__pictorialBarRect&&t.call(r,n)})}function Jc(e,t,r,n,i,a){t&&e.attr(t),n.symbolClip&&!i?r&&e.attr(r):r&&xv[i?"updateProps":"initProps"](e,r,n.animationModel,n.dataIndex,a)}function BB(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");bP(e,function(v){if(v instanceof Fr){var g=v.style;v.useStyle(Y({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,yr(i),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:xf(t.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:h}),Ut(e,c,f,a.get("disabled"))}function FB(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}const BIe=kIe;var FIe=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=Hs(w0.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}(w0);const $Ie=FIe;function VIe(e){e.registerChartView(BIe),e.registerSeriesModel($Ie),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Pe($U,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,VU("pictorialBar"))}var GIe=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 xo(this._layersSeries||[],l,d,d),p=[];h.add(ue(v,this,"add")).update(ue(v,this,"update")).remove(ue(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 XIe(e){e.registerChartView(WIe),e.registerSeriesModel(jIe),e.registerLayout(YIe),e.registerProcessor(Iv("themeRiver"))}var ZIe=2,KIe=4,QIe=function(e){H(t,e);function t(r,n,i,a){var o=e.call(this)||this;o.z2=ZIe,o.textConfig={inside:!0},Ie(o).seriesIndex=n.seriesIndex;var s=new rt({z2:KIe,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;Ie(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),f=Y({},c);f.label=null;var d=n.getVisual("style");d.lineJoin="bevel";var h=n.getVisual("decal");h&&(d.decal=mf(h,o));var p=ql(l.getModel("itemStyle"),f,!0);Y(f,p),D(un,function(y){var x=s.ensureState(y),S=l.getModel([y,"itemStyle"]);x.style=S.getItemStyle();var _=ql(S,f);_&&(x.shape=_)}),r?(s.setShape(f),s.shape.r=c.r0,Lt(s,{shape:{r:c.r}},i,n.dataIndex)):(it(s,{shape:f},i),Xi(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;Ut(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"):!I||I==="center"?(s===2*Math.PI&&o.r0===0?T=0:T=(o.r+o.r0)/2,I="center"):I==="left"?(T=o.r0+M,l>Math.PI/2&&(I="right")):I==="right"&&(T=o.r-M,l>Math.PI/2&&(I="left")),S.style.align=I,S.style.verticalAlign=g(y,"verticalAlign")||"middle",S.x=T*u+o.cx,S.y=T*c+o.cy;var P=g(y,"rotate"),k=0;P==="radial"?(k=Fi(-l),k>Math.PI/2&&kMath.PI/2?k-=Math.PI:k<-Math.PI/2&&(k+=Math.PI)):nt(P)&&(k=P*Math.PI/180),S.rotation=Fi(k)});function g(m,y){var x=m.get(y);return x??a.get(y)}d.dirtyStyle()},t}(In);const VB=QIe;var gA="sunburstRootToNode",GB="sunburstHighlight",JIe="sunburstUnhighlight";function ePe(e){e.registerAction({type:gA,update:"updateView"},function(t,r){r.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(i,a){var o=Wp(t,[gA],i);if(o){var s=i.getViewRoot();s&&(t.direction=oP(s,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}}),e.registerAction({type:GB,update:"none"},function(t,r,n){t=Y({},t),r.eachComponent({mainType:"series",subType:"sunburst",query:t},i);function i(a){var o=Wp(t,[GB],a);o&&(t.dataIndex=o.node.dataIndex)}n.dispatchAction(Y(t,{type:"highlight"}))}),e.registerAction({type:JIe,update:"updateView"},function(t,r,n){t=Y({},t),n.dispatchAction(Y(t,{type:"downplay"}))})}var tPe=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 xo(x,y,S,S).add(_).update(_).remove(Pe(_,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 VB(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 VB(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";u0(u,c)}}i=!0}})})},t.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:gA,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 rPe=tPe;var nPe=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};o9(i);var a=this._levelModels=Z(r.levels||[],function(l){return new wt(l,this,n)},this),o=aP.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=Gx(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(){c8(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 o9(e){var t=0;D(e.children,function(n){o9(n);var i=n.value;q(i)&&(i=i[0]),t+=i});var r=e.value;q(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),q(e.value)?e.value[0]=r:e.value=r}const iPe=nPe;var HB=Math.PI/180;function aPe(e,t,r){t.eachSeriesByType(e,function(n){var i=n.get("center"),a=n.get("radius");q(a)||(a=[0,a]),q(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")*HB,p=n.get("minAngle")*HB,v=n.getData().tree.root,g=n.getViewRoot(),m=g.depth,y=n.get("sort");y!=null&&s9(g,y);var x=0;D(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,I=function(z,$){if(z){var N=$;if(z!==v){var V=z.getValue(),L=S===0&&T?_:V*_;L1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&oe(s)&&(s=sT(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");Y(u,l)})})}function lPe(e){e.registerChartView(rPe),e.registerSeriesModel(iPe),e.registerLayout(Pe(aPe,"sunburst")),e.registerProcessor(Pe(Iv,"sunburst")),e.registerVisual(sPe),ePe(e)}var WB={color:"fill",borderColor:"stroke"},uPe={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},ao=Je(),cPe=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 Ao(null,this)},t.prototype.getDataParams=function(r,n,i){var a=e.prototype.getDataParams.call(this,r,n);return i&&(a.info=ao(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 fPe=cPe;function dPe(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 hPe(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:ue(dPe,e)}}}function pPe(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 vPe(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:ue(pPe,e)}}}function gPe(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 mPe(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:ue(gPe,e)}}}function yPe(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 xPe(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:ue(yPe,e)}}}function SPe(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 l9(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||ce(e,"text")))}function u9(e,t,r){var n=e,i,a,o;if(t==="text")o=n;else{o={},ce(n,"text")&&(o.text=n.text),ce(n,"rich")&&(o.rich=n.rich),ce(n,"textFill")&&(o.fill=n.textFill),ce(n,"textStroke")&&(o.stroke=n.textStroke),ce(n,"fontFamily")&&(o.fontFamily=n.fontFamily),ce(n,"fontSize")&&(o.fontSize=n.fontSize),ce(n,"fontStyle")&&(o.fontStyle=n.fontStyle),ce(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=ce(n,"textPosition");r?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),ce(n,"textPosition")&&(i.position=n.textPosition),ce(n,"textOffset")&&(i.offset=n.textOffset),ce(n,"textRotation")&&(i.rotation=n.textRotation),ce(n,"textDistance")&&(i.distance=n.textDistance)}return UB(o,e),D(o.rich,function(l){UB(l,l)}),{textConfig:i,textContent:a}}function UB(e,t){t&&(t.font=t.textFont||t.font,ce(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),ce(t,"textAlign")&&(e.align=t.textAlign),ce(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),ce(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),ce(t,"textWidth")&&(e.width=t.textWidth),ce(t,"textHeight")&&(e.height=t.textHeight),ce(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),ce(t,"textPadding")&&(e.padding=t.textPadding),ce(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),ce(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),ce(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),ce(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),ce(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),ce(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),ce(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function jB(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";YB(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,D(t.rich,function(s){YB(s,s)}),n}function YB(e,t){t&&(ce(t,"fill")&&(e.textFill=t.fill),ce(t,"stroke")&&(e.textStroke=t.fill),ce(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),ce(t,"font")&&(e.font=t.font),ce(t,"fontStyle")&&(e.fontStyle=t.fontStyle),ce(t,"fontWeight")&&(e.fontWeight=t.fontWeight),ce(t,"fontSize")&&(e.fontSize=t.fontSize),ce(t,"fontFamily")&&(e.fontFamily=t.fontFamily),ce(t,"align")&&(e.textAlign=t.align),ce(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),ce(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),ce(t,"width")&&(e.textWidth=t.width),ce(t,"height")&&(e.textHeight=t.height),ce(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),ce(t,"padding")&&(e.textPadding=t.padding),ce(t,"borderColor")&&(e.textBorderColor=t.borderColor),ce(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),ce(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),ce(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),ce(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),ce(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),ce(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),ce(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),ce(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),ce(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),ce(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var c9={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},qB=He(c9);Oa(za,function(e,t){return e[t]=1,e},{});za.join(", ");var D0=["","style","shape","extra"],_f=Je();function _P(e,t,r,n,i){var a=e+"Animation",o=Hf(e,n,i)||{},s=_f(t).userDuring;return o.duration>0&&(o.during=s?ue(TPe,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),Y(o,r[a]),o}function Km(e,t,r,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=_f(e),u=t.style;l.userDuring=t.during;var c={},f={};if(MPe(e,t,f),ZB("shape",t,f),ZB("extra",t,f),!a&&s&&(APe(e,t,c),XB("shape",e,t,c),XB("extra",e,t,c),IPe(e,t,u,c)),f.style=u,bPe(e,f,o),wPe(e,t),s)if(a){var d={};D(D0,function(p){var v=p?t[p]:t;v&&v.enterFrom&&(p&&(d[p]=d[p]||{}),Y(p?d[p]:d,v.enterFrom))});var h=_P("enter",e,t,r,i);h.duration>0&&e.animateFrom(d,h)}else _Pe(e,t,i||0,r,c);f9(e,t),u?e.dirty():e.markRedraw()}function f9(e,t){for(var r=_f(e).leaveToProps,n=0;n0&&e.animateFrom(i,a)}}function wPe(e,t){ce(t,"silent")&&(e.silent=t.silent),ce(t,"ignore")&&(e.ignore=t.ignore),e instanceof _i&&ce(t,"invisible")&&(e.invisible=t.invisible),e instanceof $e&&ce(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var ia={},CPe={setTransform:function(e,t){return ia.el[e]=t,this},getTransform:function(e){return ia.el[e]},setShape:function(e,t){var r=ia.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){var t=ia.el.shape;if(t)return t[e]},setStyle:function(e,t){var r=ia.el,n=r.style;return n&&(n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){var t=ia.el.style;if(t)return t[e]},setExtra:function(e,t){var r=ia.el.extra||(ia.el.extra={});return r[e]=t,this},getExtra:function(e){var t=ia.el.extra;if(t)return t[e]}};function TPe(){var e=this,t=e.el;if(t){var r=_f(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}ia.el=t,n(CPe)}}function XB(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]={}),su(l))Y(o,a);else for(var u=pt(l),c=0;c=0){!o&&(o=n[e]={});for(var h=He(a),c=0;c=0)){var d=e.getAnimationStyleProps(),h=d?d.style:null;if(h){!a&&(a=n.style={});for(var p=He(r),u=0;u=0?t.getStore().get($,R):void 0}var N=t.get(z.name,R),V=z&&z.ordinalMeta;return V?V.categories[N]:N}function b(k,R){R==null&&(R=u);var z=t.getItemVisual(R,"style"),$=z&&z.fill,N=z&&z.opacity,V=y(R,os).getItemStyle();$!=null&&(V.fill=$),N!=null&&(V.opacity=N);var L={inheritColor:oe($)?$:"#000"},G=x(R,os),U=_t(G,null,L,!1,!0);U.text=G.getShallow("show")?Ee(e.getFormattedLabel(R,os),xf(t,R)):null;var B=s0(G,L,!1);return A(k,V),V=jB(V,U,B),k&&C(V,k),V.legacy=!0,V}function w(k,R){R==null&&(R=u);var z=y(R,oo).getItemStyle(),$=x(R,oo),N=_t($,null,null,!0,!0);N.text=$.getShallow("show")?Pa(e.getFormattedLabel(R,oo),e.getFormattedLabel(R,os),xf(t,R)):null;var V=s0($,null,!0);return A(k,z),z=jB(z,N,V),k&&C(z,k),z.legacy=!0,z}function C(k,R){for(var z in R)ce(R,z)&&(k[z]=R[z])}function A(k,R){k&&(k.textFill&&(R.textFill=k.textFill),k.textPosition&&(R.textPosition=k.textPosition))}function T(k,R){if(R==null&&(R=u),ce(WB,k)){var z=t.getItemVisual(R,"style");return z?z[WB[k]]:null}if(ce(uPe,k))return t.getItemVisual(R,k)}function M(k){if(a.type==="cartesian2d"){var R=a.getBaseAxis();return Vxe(xe({axis:R},k))}}function I(){return r.getCurrentSeriesIndices()}function P(k){return X6(k,r)}}function FPe(e){var t={};return D(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 ew(e,t,r,n,i,a,o){if(!n){a.remove(t);return}var s=MP(e,t,r,n,i,a);return s&&o.setItemGraphicEl(r,s),s&&Ut(s,n.focus,n.blurScope,n.emphasisDisabled),s}function MP(e,t,r,n,i,a){var o=-1,s=t;t&&v9(t,n,i)&&(o=ze(a.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=TP(n),s&&EPe(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Qn.normal.cfg=Qn.normal.conOpt=Qn.emphasis.cfg=Qn.emphasis.conOpt=Qn.blur.cfg=Qn.blur.conOpt=Qn.select.cfg=Qn.select.conOpt=null,Qn.isLegacy=!1,VPe(u,r,n,i,l,Qn),$Pe(u,r,n,i,l),AP(e,u,r,n,Qn,i,l),ce(n,"info")&&(ao(u).info=n.info);for(var c=0;c=0?a.replaceAt(u,o):a.add(u),u}function v9(e,t,r){var n=ao(e),i=t.type,a=t.shape,o=t.style;return r.isUniversalTransitionEnabled()||i!=null&&i!==n.customGraphicType||i==="path"&&jPe(a)&&g9(a)!==n.customPathData||i==="image"&&ce(o,"image")&&o.image!==n.customImagePath}function $Pe(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&&v9(o,a,n)&&(o=null),o||(o=TP(a),e.setClipPath(o)),AP(null,o,t,a,null,n,i)}}function VPe(e,t,r,n,i,a){if(!e.isGroup){QB(r,null,a),QB(r,oo,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=TP(o),e.setTextContent(c)),AP(null,c,t,o,null,n,i);for(var f=o&&o.style,d=0;d=c;h--){var p=t.childAt(h);HPe(t,p,i)}}}function HPe(e,t,r){t&&Ux(t,ao(e).option,r)}function WPe(e){new xo(e.oldChildren,e.newChildren,JB,JB,e).add(e5).update(e5).remove(UPe).execute()}function JB(e,t){var r=e&&e.name;return r??RPe+t}function e5(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,i=t!=null?r.oldChildren[t]:null;MP(r.api,i,r.dataIndex,n,r.seriesModel,r.group)}function UPe(e){var t=this.context,r=t.oldChildren[e];r&&Ux(r,ao(r).option,t.seriesModel)}function g9(e){return e&&(e.pathData||e.d)}function jPe(e){return e&&(ce(e,"pathData")||ce(e,"d"))}function YPe(e){e.registerChartView(NPe),e.registerSeriesModel(fPe)}var Rl=Je(),t5=we,tw=ue,qPe=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 Ae,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var d=Pe(r5,r,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,r)}i5(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=QI(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=Rl(t).pointerEl=new xv[a.type](t5(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=Rl(t).labelEl=new rt(t5(r.label));t.add(a),n5(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=Rl(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=Rl(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),n5(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=yv(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){vo(u.event)},onmousedown:tw(this._onHandleDragMove,this,0,0),drift:tw(this._onHandleDragMove,this),ondragend:tw(this._onHandleDragEnd,this)}),n.add(i)),i5(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");q(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,Qf(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){r5(this._axisPointerModel,!r&&this._moveAnimation,this._handle,rw(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(rw(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(rw(i)),Rl(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),zp(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 r5(e,t,r,n){m9(Rl(r).lastProp,n)||(Rl(r).lastProp=n,t?it(r,n,e):(r.stopAnimation(),r.attr(n)))}function m9(e,t){if(Se(e)&&Se(t)){var r=!0;return D(t,function(n,i){r=r&&m9(e[i],n)}),!!r}else return e===t}function n5(e,t){e[t.get(["label","show"])?"show":"hide"]()}function rw(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function i5(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 PP=qPe;function kP(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 y9(e,t,r,n,i){var a=r.get("value"),o=x9(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Yf(s.get("padding")||0),u=s.getFont(),c=hv(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),XPe(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 XPe(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 x9(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:HI(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};D(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):me(o)&&(a=o(s))}return a}function DP(e,t,r){var n=bi();return Pu(n,n,r.rotation),Na(n,n,r.position),Wi([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function S9(e,t,r,n,i,a){var o=So.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),y9(t,n,i,a,{position:DP(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function RP(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function b9(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function a5(e,t,r,n,i,a){return{cx:e,cy:t,r0:r,r:n,startAngle:i,endAngle:a,clockwise:!0}}var ZPe=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=o5(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var d=kP(a),h=KPe[u](s,f,c);h.style=d,r.graphicKey=h.type,r.pointer=h}var p=eA(l.model,i);S9(n,r,p,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=eA(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=DP(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=o5(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}(PP);function o5(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var KPe={line:function(e,t,r){var n=RP([t,r[0]],[t,r[1]],s5(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:b9([t-n/2,r[0]],[n,i],s5(e))}}};function s5(e){return e.dim==="x"?0:1}const QPe=ZPe;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.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 eke=JPe;var eo=Je(),tke=D;function _9(e,t,r){if(!tt.node){var n=t.getZr();eo(n).records||(eo(n).records={}),rke(n,t);var i=eo(n).records[e]||(eo(n).records[e]={});i.handler=r}}function rke(e,t){if(eo(e).initialized)return;eo(e).initialized=!0,r("click",Pe(l5,"click")),r("mousemove",Pe(l5,"mousemove")),r("globalout",ike);function r(n,i){e.on(n,function(a){var o=ake(t);tke(eo(e).records,function(s){s&&i(s,a,o.dispatchAction)}),nke(o.pendings,t)})}}function nke(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 ike(e,t,r){e.handler("leave",null,r)}function l5(e,t,r,n){t.handler(e,r,n)}function ake(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 xA(e,t){if(!tt.node){var r=t.getZr(),n=(eo(r).records||{})[e];n&&(eo(r).records[e]=null)}}var oke=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";_9("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){xA("axisPointer",n)},t.prototype.dispose=function(r,n){xA("axisPointer",n)},t.type="axisPointer",t}(jt);const ske=oke;function w9(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=gu(a,e);if(o==null||o<0||q(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 u5=Je();function lke(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||ue(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Qm(i)&&(i=w9({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=Qm(i),u=a.axesInfo,c=s.axesInfo,f=n==="leave"||Qm(i),d={},h={},p={list:[],map:{}},v={showPointer:Pe(cke,h),showTooltip:Pe(fke,p)};D(s.coordSysMap,function(m,y){var x=l||m.containPoint(i);D(s.coordSysAxesInfo[y],function(S,_){var b=S.axis,w=vke(u,S);if(!f&&x&&(!u||w)){var C=w&&w.value;C==null&&!l&&(C=b.pointToData(i)),C!=null&&c5(S,C,v,!1,d)}})});var g={};return D(c,function(m,y){var x=m.linkGroup;x&&!h[y]&&D(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,f5(S),f5(m)))),g[m.key]=w}})}),D(g,function(m,y){c5(c[y],m,v,!0,d)}),dke(h,c,d),hke(p,i,e,o),pke(c,o,r),d}}function c5(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=uke(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&Y(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function uke(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return D(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),D(d,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function cke(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function fke(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=Hp(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 dke(e,t,r){var n=r.axesInfo=[];D(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 hke(e,t,r,n){if(Qm(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 pke(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=u5(n)[i]||{},o=u5(n)[i]={};D(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&D(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];D(a,function(u,c){!o[c]&&l.push(u)}),D(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 vke(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 f5(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 Qm(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Rv(e){Eu.registerAxisPointerClass("CartesianAxisPointer",QPe),e.registerComponentModel(eke),e.registerComponentView(ske),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!q(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=rwe(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},lke)}function gke(e){Fe(Xj),Fe(Rv)}var mke=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=kP(a),p=xke[d](s,l,f,c);p.style=h,r.graphicKey=p.type,r.pointer=p}var v=a.get(["label","margin"]),g=yke(n,i,a,l,v);y9(r,i,a,o,g)},t}(PP);function yke(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=bi();Pu(d,d,s),Na(d,d,[n.cx,n.cy]),u=Wi([o,-i],d);var h=t.getModel("axisLabel").get("rotate")||0,p=So.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 xke={line:function(e,t,r,n){return e.dim==="angle"?{type:"Line",shape:RP(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:a5(t.cx,t.cy,n[0],n[1],(-r-i/2)*a,(-r+i/2)*a)}:{type:"Sector",shape:a5(t.cx,t.cy,r-i/2,r+i/2,0,Math.PI*2)}}};const Ske=mke;var bke=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 _ke=bke;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",or).models[0]},t.type="polarAxis",t}(et);lr(LP,Cv);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.type="angleAxis",t}(LP),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.type="radiusAxis",t}(LP),EP=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}(Ki);EP.prototype.dataToRadius=Ki.prototype.dataToCoord;EP.prototype.radiusToData=Ki.prototype.coordToData;const Tke=EP;var Ake=Je(),OP=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=hv(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=Ake(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}(Ki);OP.prototype.dataToAngle=Ki.prototype.dataToCoord;OP.prototype.angleToData=Ki.prototype.coordToData;const Mke=OP;var C9=["radius","angle"],Ike=function(){function e(t){this.dimensions=C9,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Tke,this._angleAxis=new Mke,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=d5(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=d5(r);return i===this?this.pointToData(n):null},e}();function d5(e){var t=e.seriesModel,r=e.polarModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}const Pke=Ike;function kke(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%"]:q(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 Dke(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();D(x0(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),D(x0(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),yf(n.scale,n.model),yf(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 Rke(e){return e.mainType==="angleAxis"}function h5(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"),Rke(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 Lke={dimensions:C9,create:function(e,t){var r=[];return e.eachComponent("polar",function(n,i){var a=new Pke(i+"");a.update=Dke;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");h5(o,l),h5(s,u),kke(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",or).models[0];n.coordinateSystem=i.coordinateSystem}}),r}};const Eke=Lke;var Oke=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function am(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 om(e){var t=e.getRadiusAxis();return t.inverse?0:1}function p5(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 Nke=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=we(c);var f=i.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(d),c});p5(u),p5(s),D(Oke,function(c){r.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&zke[c](this.group,r,a,s,l,o,u)},this)}},t.type="angleAxis",t}(Eu),zke={axisLine:function(e,t,r,n,i,a){var o=t.getModel(["axisLine","lineStyle"]),s=om(r),l=s?0:1,u;a[l]===0?u=new $a({shape:{cx:r.cx,cy:r.cy,r:a[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new yx({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[om(r)],u=Z(n,function(c){return new Tr({shape:am(r,[l,l+s],c.coord)})});e.add(di(u,{style:xe(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[om(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];Se(_)&&_.textStyle&&(h=new wt(_.textStyle,l,l.ecModel))}var b=new rt({silent:So.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=So.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=f.rawLabel,Ie(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",P=w;_&&(n[c][M]||(n[c][M]={p:w,n:w}),P=n[c][M][I]);var k=void 0,R=void 0,z=void 0,$=void 0;if(p.dim==="radius"){var N=p.dataToCoord(T)-w,V=l.dataToCoord(M);Math.abs(N)=$})}}})}function jke(e){var t={};D(e,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=A9(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=T9(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 D(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),D(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=v5(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=v5(r);return i===this?this.pointToData(n):null},e}();function v5(e){var t=e.seriesModel,r=e.singleAxisModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function aDe(e,t){var r=[];return e.eachComponent("singleAxis",function(n,i){var a=new iDe(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",or).models[0];n.coordinateSystem=i&&i.coordinateSystem}}),r}var oDe={create:aDe,dimensions:I9};const sDe=oDe;var g5=["x","y"],lDe=["width","height"],uDe=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=iw(l,1-E0(s)),c=l.dataToPoint(n)[0],f=a.get("type");if(f&&f!=="none"){var d=kP(a),h=cDe[f](s,c,u);h.style=d,r.graphicKey=h.type,r.pointer=h}var p=SA(i);S9(n,r,p,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=SA(n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=DP(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=E0(o),u=iw(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=iw(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}(PP),cDe={line:function(e,t,r){var n=RP([t,r[0]],[t,r[1]],E0(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:b9([t-n/2,r[0]],[n,i],E0(e))}}};function E0(e){return e.isHorizontal()?0:1}function iw(e,t){var r=e.getRect();return[r[g5[t]],r[g5[t]]+r[lDe[t]]]}const fDe=uDe;var 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.type="single",t}(jt);function hDe(e){Fe(Rv),Eu.registerAxisPointerClass("SingleAxisPointer",fDe),e.registerComponentView(dDe),e.registerComponentView(tDe),e.registerComponentModel(nw),Sf(e,"single",nw,nw.defaultOption),e.registerCoordinateSystem("single",sDe)}var 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.init=function(r,n,i){var a=qf(r);e.prototype.init.apply(this,arguments),m5(r,a)},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),m5(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 m5(e,t){var r=e.cellSize,n;q(r)?n=r:n=e.cellSize=[r,r],n.length===1&&(n[1]=n[0]);var i=Z([0,1],function(a){return xye(t,a)&&(n[a]="auto"),n[a]!=null&&n[a]!=="auto"});Rs(e,t,{type:"box",ignoreSize:i})}const vDe=pDe;var gDe=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 kn({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?gye(r,n):me(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=PT(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/aw)-Math.floor(r[0].time/aw)+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 y5(e){var t=e.calendarModel,r=e.seriesModel,n=t?t.coordinateSystem:r?r.coordinateSystem:null;return n}const xDe=yDe;function SDe(e){e.registerComponentModel(vDe),e.registerComponentView(mDe),e.registerCoordinateSystem("calendar",xDe)}function bDe(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 x5(e,t){var r;return D(t,function(n){e[n]!=null&&e[n]!=="auto"&&(r=!0)}),r}function _De(e,t,r){var n=Y({},r),i=e[t],a=r.$action||"merge";a==="merge"?i?(Oe(i,n,!0),Rs(i,n,{ignoreSize:!0}),pW(r,i),sm(r,i),sm(r,i,"shape"),sm(r,i,"style"),sm(r,i,"extra"),r.clipPath=i.clipPath):e[t]=n:a==="replace"?e[t]=n:a==="remove"&&i&&(e[t]=null)}var P9=["transition","enterFrom","leaveTo"],wDe=P9.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function sm(e,t,r){if(r&&(!e[r]&&t[r]&&(e[r]={}),e=e[r],t=t[r]),!(!e||!t))for(var n=r?P9:wDe,i=0;i=0;c--){var f=i[c],d=dr(f.id,null),h=d!=null?o.get(d):null;if(h){var p=h.parent,m=ni(p),y=p===a?{width:s,height:l}:{width:m.width,height:m.height},x={},S=Px(h,f,y,null,{hv:f.hv,boundingMode:f.bounding},x);if(!ni(h).isNew&&S){for(var _=f.transition,b={},w=0;w=0)?b[C]=A:h[C]=A}it(h,b,r,0)}else h.attr(x)}}},t.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(i){Jm(i,ni(i).option,n,r._lastGraphicModel)}),this._elMap=ve()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(jt);function bA(e){var t=ce(S5,e)?S5[e]:hI(e),r=new t({});return ni(r).type=e,r}function b5(e,t,r,n){var i=bA(r);return t.add(i),n.set(e,i),ni(i).id=e,ni(i).isNew=!0,i}function Jm(e,t,r,n){var i=e&&e.parent;i&&(e.type==="group"&&e.traverse(function(a){Jm(a,t,r,n)}),Ux(e,t,n),r.removeKey(ni(e).id))}function _5(e,t,r,n){e.isGroup||D([["cursor",_i.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(i){var a=i[0];ce(t,a)?e[a]=Ee(t[a],i[1]):e[a]==null&&(e[a]=i[1])}),D(He(t),function(i){if(i.indexOf("on")===0){var a=t[i];e[i]=me(a)?a:null}}),ce(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function MDe(e){return e=Y({},e),D(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(hW),function(t){delete e[t]}),e}function IDe(e,t,r){var n=Ie(e).eventData;!e.silent&&!e.ignore&&!n&&(n=Ie(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=r.info)}function PDe(e){e.registerComponentModel(TDe),e.registerComponentView(ADe),e.registerPreprocessor(function(t){var r=t.graphic;q(r)?!r[0]||!r[0].elements?t.graphic=[{elements:r}]:t.graphic=[t.graphic[0]]:r&&!r.elements&&(t.graphic=[{elements:[r]}])})}var w5=["x","y","radius","angle","single"],kDe=["cartesian2d","polar","singleAxis"];function DDe(e){var t=e.get("coordinateSystem");return ze(kDe,t)>=0}function ss(e){return e+"Axis"}function RDe(e,t){var r=ve(),n=[],i=ve();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 k9(e){var t=e.ecModel,r={infoList:[],infoMap:ve()};return e.eachTargetAxis(function(n,i){var a=t.getComponent(ss(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 ow=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}(),LDe=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=C5(r);this.settledOption=a,this.mergeDefaultAndTheme(r,i),this._doInit(a)},t.prototype.mergeOption=function(r){var n=C5(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;D([["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=ve(),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 D(w5,function(i){var a=this.getReferringComponents(ss(i),Xve);if(a.specified){n=!0;var o=new ow;D(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 ow;if(d.add(f.componentIndex),r.set(c,d),a=!1,c==="x"||c==="y"){var h=f.getReferringComponents("grid",or).models[0];h&&D(u,function(p){f.componentIndex!==p.componentIndex&&h===p.getReferringComponents("grid",or).models[0]&&d.add(p.componentIndex)})}}}a&&D(w5,function(u){if(a){var c=i.findComponents({mainType:ss(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new ow;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");D([["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(ss(n),i))},this),r},t.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(i,a){D(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(ss(r),n)},t.prototype.setRawRange=function(r){var n=this.option,i=this.settledOption;D([["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;D(["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 yc(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)}});yc(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;yc(["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=ct(n[0]+o,n,[0,100],!0):a!=null&&(o=ct(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=VH(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 $De(e,t,r){var n=[1/0,-1/0];yc(r,function(o){cSe(n,o.getData(),t)});var i=e.getAxisModel(),a=YU(i.axis.scale,i,n).calculate();return[a.min,a.max]}const VDe=FDe;var GDe={getTargetSeries:function(e){function t(i){e.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=e.getComponent(ss(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 VDe(i,a,s,e),r.push(o.__dzAxisProxy))});var n=ve();return D(r,function(i){D(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 HDe=GDe;function WDe(e){e.registerAction("dataZoom",function(t,r){var n=RDe(r,t);D(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var A5=!1;function zP(e){A5||(A5=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,HDe),WDe(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function UDe(e){e.registerComponentModel(ODe),e.registerComponentView(BDe),zP(e)}var fi=function(){function e(){}return e}(),D9={};function xc(e,t){D9[e]=t}function R9(e){return D9[e]}var jDe=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;D(this.option.feature,function(n,i){var a=R9(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 YDe=jDe;function qDe(e,t,r){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:r.getWidth(),height:r.getHeight()},o=hr(n,a,i);iu(t.get("orient"),e,t.get("itemGap"),o.width,o.height),Px(e,n,a,i)}function L9(e,t){var r=Yf(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 XDe=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=[];D(u,function(p,v){f.push(v)}),new xo(this._featureNames||[],f).add(d).update(d).remove(Pe(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(ZDe(g))S={onclick:x.option.onclick,featureName:g};else{var _=R9(g);if(!_)return;S=new _}c[g]=S}else if(S=c[m],!S)return;S.uid=jf("toolbox-feature"),S.model=x,S.ecModel=n,S.api=i;var b=S instanceof fi;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"?mo:yo)(T[w])},S instanceof fi&&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 fi&&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={};D(_,function(C,A){var T=yv(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 I=new rt({style:{text:b[A],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null},ignore:!0});T.setTextContent(I),Wf({el:T,componentModel:r,itemName:A,formatterParamsExtra:{title:b[A]}}),T.__title=b[A],T.on("mouseover",function(){var P=y.getItemStyle(),k=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:y.get("textFill")||P.fill||P.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),T.setTextConfig({position:y.get("textPosition")||k}),I.ignore=!r.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",A])!=="emphasis"&&i.leaveEmphasis(this),I.hide()}),(p.get(["iconStatus",A])==="emphasis"?mo:yo)(T),o.add(T),T.on("click",ue(v.onclick,v,n,i,A)),w[A]=T})}qDe(o,r,i),o.add(L9(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&&!me(x)&&v){var S=x.style||(x.style={}),_=hv(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){D(this._features,function(o){o instanceof fi&&o.updateView&&o.updateView(o.model,n,i,a)})},t.prototype.remove=function(r,n){D(this._features,function(i){i instanceof fi&&i.remove&&i.remove(r,n)}),this.group.removeAll()},t.prototype.dispose=function(r,n){D(this._features,function(i){i instanceof fi&&i.dispose&&i.dispose(r,n)})},t.type="toolbox",t}(jt);function ZDe(e){return e.indexOf("my")===0}const KDe=XDe;var QDe=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(me(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}(fi);const JDe=QDe;var M5="__ec_magicType_stack__",eRe=[["line","bar"],["stack"]],tRe=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 D(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(I5[i]){var s={series:[]},l=function(f){var d=f.subType,h=f.id,p=I5[i](d,h,f,a);p&&(xe(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,or).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"}}};D(eRe,function(f){ze(f,i)>=0&&D(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}(fi),I5={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")===M5;if(e==="line"||e==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),Oe({id:t,stack:i?"":M5},n.get(["option","stack"])||{},!0)}};Ga({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});const rRe=tRe;var jx=new Array(60).join("-"),wf=" ";function nRe(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 iRe(e){var t=[];return D(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()];D(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(wf)],c=0;c1||r>0&&!e.noHeader;return D(e.blocks,function(i){var a=WW(i);a>=t&&(t=a+ +(n&&(!a||NT(i)&&!i.noHeader)))}),t}return 0}function T0e(e,t,r,n){var i=t.noHeader,a=M0e(WW(t)),o=[],s=t.blocks||[];ln(!s||q(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ce(u,l)){var c=new NW(u[l],null);s.sort(function(p,v){return c.evaluate(p.sortParam,v.sortParam)})}else l==="seriesDesc"&&s.reverse()}D(s,function(p,v){var g=t.valueFormatter,m=HW(p)(g?Y(Y({},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):zT(o.join(""),i?r:a.html);if(i)return f;var d=DT(t.header,"ordinal",e.useUTC),h=GW(n,e.renderMode).nameStyle;return e.renderMode==="richText"?UW(e,d,h)+a.richText+f:zT('
'+mn(d)+"
"+f,r)}function A0e(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=q(S)?S:[S],Z(S,function(_,b){return DT(_,q(h)?h[b]:h,u)})};if(!(a&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),d=a?"":DT(l,"ordinal",u),h=t.valueType,p=o?[]:c(t.value),v=!s||!a,g=!s&&a,m=GW(n,i),y=m.nameStyle,x=m.valueStyle;return i==="richText"?(s?"":f)+(a?"":UW(e,d,y))+(o?"":k0e(e,p,v,g,x)):zT((s?"":f)+(a?"":I0e(d,!s,y))+(o?"":P0e(p,v,g,x)),r)}}function RO(e,t,r,n,i,a){if(e){var o=HW(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function M0e(e){return{html:w0e[e],richText:C0e[e]}}function zT(e,t){var r='
',n="margin: "+t+"px 0 0";return'
'+e+r+"
"}function I0e(e,t,r){var n=t?"margin-left:2px":"";return''+mn(e)+""}function P0e(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=q(e)?e:[e],''+Z(e,function(o){return mn(o)}).join("  ")+""}function UW(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function k0e(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(q(t)?t.join(" "):t,a)}function jW(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return xu(n)}function YW(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var Yb=function(){function e(){this.richTextStyles={},this._nextStyleNameId=UH()}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=yye({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={};q(r)?D(r,function(a){return Y(n,a)}):Y(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function qW(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=q(s),u=jW(t,r),c,f,d,h;if(o>1||l&&!o){var p=D0e(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=gf(i,r,a[0]),f=v.type}else h=c=l?s[0]:s;var g=J2(t),m=g&&t.name||"",y=i.getName(r),x=n?m:y;return xr("section",{header:m,noHeader:n||!g,sortParam:h,blocks:[xr("nameValue",{markerType:"item",markerColor:u,name:x,noName:!Fi(x),value:c,valueType:f})].concat(d||[])})}function D0e(e,t,r,n,i){var a=t.getData(),o=Oa(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?D(n,function(f){c(gf(a,r,f),f)}):D(e,c);function c(f,d){var h=a.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(xr("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 No=Je();function Rg(e,t){return e.getName(t)||e.getId(t)}var qm="__universalTransitionEnabled",Lx=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=Hh({count:L0e,reset:E0e}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=No(this).sourceManager=new $W(this);a.prepareSource();var o=this.getInitialData(r,i);EO(o,this),this.dataTask.context.data=o,No(this).dataBeforeProcessed=o,LO(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Op(this),a=i?qf(r):{},o=this.subType;et.hasClass(o)&&(o+="Series"),Oe(r,n.getTheme().get(this.subType)),Oe(r,this.getDefaultOption()),vu(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Rs(r,a,i)},t.prototype.mergeOption=function(r,n){r=Oe(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Op(this);i&&Rs(this.option,r,i);var a=No(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);EO(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,No(this).dataBeforeProcessed=o,LO(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!Wn(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=_I.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[Rg(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[qm])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"){Se(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);lr(Lx,AI);lr(Lx,_I);e6(Lx,et);function LO(e){var t=e.name;J2(e)||(e.name=R0e(e)||t)}function R0e(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return D(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function L0e(e){return e.model.getRawData().count()}function E0e(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),O0e}function O0e(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function EO(e,t){D(Yy(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Pe(N0e,t))})}function N0e(e,t){var r=BT(e);return r&&r.setOutputEnd((t||this).count()),t}function BT(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=Lx;var II=function(){function e(){this.group=new Ae,this.uid=jf("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}();tI(II);hx(II);const jt=II;function Kf(){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 XW=Je(),z0e=Kf(),PI=function(){function e(){this.group=new Ae,this.uid=jf("viewChart"),this.renderTask=Hh({plan:B0e,reset:F0e}),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&&NO(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&NO(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){Gs(this.group,t)},e.markUpdateMethod=function(t,r){XW(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function OO(e,t,r){e&&Dp(e)&&(t==="emphasis"?mo:yo)(e,r)}function NO(e,t,r){var n=gu(e,t),i=t&&t.highlightKey!=null?fme(t.highlightKey):null;n!=null?D(pt(n),function(a){OO(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){OO(a,r,i)})}tI(PI);hx(PI);function B0e(e){return z0e(e.model)}function F0e(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&XW(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),$0e[l]}var $0e={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=PI;var c0="\0__throttleOriginMethod",zO="\0__throttleRate",BO="\0__throttleType";function kI(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 Qf(e,t,r,n){var i=e[t];if(i){var a=i[c0]||i,o=i[BO],s=i[zO];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=kI(a,r,n==="debounce"),i[c0]=a,i[BO]=n,i[zO]=r}return i}}function zp(e,t){var r=e[t];r&&r[c0]&&(r.clear&&r.clear(),e[t]=r[c0])}var FO=Je(),$O={itemStyle:mu(J6,!0),lineStyle:mu(Q6,!0)},V0e={lineStyle:"stroke",itemStyle:"fill"};function ZW(e,t){var r=e.visualStyleMapper||$O[t];return r||(console.warn("Unknown style type '"+t+"'."),$O.itemStyle)}function KW(e,t){var r=e.visualDrawType||V0e[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var G0e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=ZW(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=KW(e,n),u=o[l],c=me(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"||me(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||me(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=Y({},o);g[l]=c(v),h.setItemVisual(p,"style",g)}}}},Pd=new wt,H0e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=ZW(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Pd.option=l[n];var u=i(Pd),c=o.ensureUniqueItemVisual(s,"style");Y(c,u),Pd.option.decal&&(o.setItemVisual(s,"decal",Pd.option.decal),Pd.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},W0e={performRawSeries:!0,overallReset:function(e){var t=ve();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)),FO(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=FO(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=KW(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)}})}})}},Lg=Math.PI;function U0e(e,t){t=t||{},xe(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 Ae,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 cI({shape:{startAngle:-Lg/2,endAngle:-Lg/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:Lg*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Lg*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 j0e=function(){function e(t,r,n,i){this._stageTaskMap=ve(),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=ve();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;D(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";ln(!(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;D(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=ve(),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)||Hh({plan:K0e,reset:Q0e,count:e1e}));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||Hh({reset:Y0e});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=ve(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,h="";ln(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,p):c?c(n,i).each(p):(f=!1,D(n.getSeries(),p));function p(v){var g=v.uid,m=l.set(g,s&&s.get(g)||(d=!0,Hh({reset:q0e,onDirty:Z0e})));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 me(t)&&(t={overallReset:t,seriesType:t1e(t)}),t.uid=jf("stageHandler"),r&&(t.visualType=r),t},e}();function Y0e(e){e.overallReset(e.ecModel,e.api,e.payload)}function q0e(e){return e.overallProgress&&X0e}function X0e(){this.agent.dirty(),this.getDownstream().dirty()}function Z0e(){this.agent&&this.agent.dirty()}function K0e(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Q0e(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 QW(n)}):J0e}var J0e=QW(0);function QW(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}(),FT=["symbol","symbolSize","symbolRotate","symbolOffset"],WO=FT.concat(["symbolKeepAspect"]),a1e={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&&jl(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function $T(e,t,r){for(var n=t.type==="radial"?b1e(e,t,r):S1e(e,t,r),i=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:nt(e)?[e]:q(e)?e:null}function RI(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&w1e(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 C1e=new Fa(!0);function h0(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function UO(e){return typeof e=="string"&&e!=="none"}function p0(e){var t=e.fill;return t!=null&&t!=="none"}function jO(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 YO(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 VT(e,t,r){var n=rI(t.image,t.__image,r);if(px(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)*Em),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function T1e(e,t,r,n){var i,a=h0(r),o=p0(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||C1e,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?$T(e,d,b):t.__canvasFillGradient,t.__canvasFillGradient=y),v&&(x=f?$T(e,h,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=x),g&&(S=f||!t.__canvasFillPattern?VT(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=S),m&&(_=f||!t.__canvasStrokePattern?VT(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=RI(t),C=i[0],A=i[1]);var T=!0;(u||f&vc)&&(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&&YO(e,r),o&&jO(e,r)):(o&&jO(e,r),a&&YO(e,r))),C&&e.setLineDash([])}function A1e(e,t,r){var n=t.__image=rI(r.image,t.__image,t,t.onload);if(!(!n||!px(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 M1e(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||Is,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=RI(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(h0(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),h0(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var qO=["shadowBlur","shadowOffsetX","shadowOffsetY"],XO=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function aU(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){Sn(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?eu.opacity:o}(n||t.blend!==r.blend)&&(a||(Sn(e,i),a=!0),e.globalCompositeOperation=t.blend||eu.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(Se(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 Hye(this._api),u=this._theme,c=this._model=new CW;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},HT);var f={seriesTransition:s,optionChanged:!0};if(i)this[pn]={silent:a,updateParams:f},this[Wr]=!1,this.getZr().wakeUp();else{try{rc(this),zo.update.call(this,null,f)}catch(d){throw this[pn]=null,this[Wr]=!1,d}this._ssr||this._zr.flush(),this[pn]=null,this[Wr]=!1,kd.call(this,a),Dd.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 D(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;D(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 D(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(UT[i]){var l=s,u=s,c=-s,f=-s,d=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();D(Qc,function(x,S){if(x.group===i){var _=n?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(we(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=Ps.createCanvas(),m=hE(g,{renderer:n?"svg":"canvas"});if(m.resize({width:p,height:v}),n){var y="";return D(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}})),D(d,function(x){var S=new Fr({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 Qb(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return Qb(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Bh(i,r);return D(o,function(s,l){l.indexOf("Models")>=0&&D(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=Bh(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?DI(s,l,n):bv(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;D(J1e,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Ul(s,function(p){var v=Ie(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=Y({},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)}),D(Wh,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),D(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),s1e(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&&KH(this.getDom(),OI,"");var n=this,i=n._api,a=n._model;D(n._componentsViews,function(o){o.dispose(a,i)}),D(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 Qc[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[pn]&&(a==null&&(a=this[pn].silent),i=!0,this[pn]=null),this[Wr]=!0;try{i&&rc(this),zo.update.call(this,{type:"resize",animation:Y({duration:0},r&&r.animation)})}catch(o){throw this[Wr]=!1,o}this[Wr]=!1,kd.call(this,a),Dd.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(Se(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!WT[r]){var i=WT[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=Y({},r);return n.type=Wh[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(Se(n)||(n={silent:!!n}),!!g0[r.type]&&this._model){if(this[Wr]){this._pendingActions.push(r);return}var i=n.silent;e_.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&tt.browser.weChat&&this._throttledZrFlush(),kd.call(this,i),Dd.call(this,i)}},t.prototype.updateLabelLayout=function(){Li.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(){rc=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),Kb(f,!0),Kb(f,!1),d.plan()},Kb=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(Xc(m))return;if(m instanceof $e&&dme(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)}})}lN=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){mo(p,v),Xn(f)},h.prototype.leaveEmphasis=function(p,v){yo(p,v),Xn(f)},h.prototype.enterBlur=function(p){x6(p),Xn(f)},h.prototype.leaveBlur=function(p){oI(p),Xn(f)},h.prototype.enterSelect=function(p){S6(p),Xn(f)},h.prototype.leaveSelect=function(p){b6(p),Xn(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}(TW))(f)},SU=function(f){function d(h,p){for(var v=0;v=0)){cN.push(r);var a=tU.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function TU(e,t){WT[e]=t}function uxe(e,t,r){var n=B1e("registerMap");n&&n(e,t,r)}var cxe=m0e;Ru(LI,G0e);Ru(Ex,H0e);Ru(Ex,W0e);Ru(LI,a1e);Ru(Ex,o1e);Ru(pU,O1e);wU(MW);CU(V1e,Kye);TU("default",U0e);Ga({type:tu,event:tu,update:tu},rr);Ga({type:Hm,event:Hm,update:Hm},rr);Ga({type:Fh,event:Fh,update:Fh},rr);Ga({type:Wm,event:Wm,update:Wm},rr);Ga({type:$h,event:$h,update:$h},rr);NI("light",r1e);NI("dark",n1e);var fN=[],fxe={registerPreprocessor:wU,registerProcessor:CU,registerPostInit:axe,registerPostUpdate:oxe,registerUpdateLifecycle:zI,registerAction:Ga,registerCoordinateSystem:sxe,registerLayout:lxe,registerVisual:Ru,registerTransform:cxe,registerLoading:TU,registerMap:uxe,registerImpl:z1e,PRIORITY:Z1e,ComponentModel:et,ComponentView:jt,SeriesModel:zt,ChartView:Tt,registerComponentModel:function(e){et.registerClass(e)},registerComponentView:function(e){jt.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){Dve(e,t)}};function Fe(e){if(q(e)){D(e,function(t){Fe(t)});return}ze(fN,e)>=0||(fN.push(e),me(e)&&(e={install:e}),e.install(fxe))}function Rd(e){return e==null?0:e.length||1}function dN(e){return e}var dxe=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||dN,this._newKeyGetter=i||dN,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 Ld=Se,Bo=Z,xxe=typeof Int32Array>"u"?Array:Int32Array,Sxe="e\0\0",hN=-1,bxe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],_xe=["_approximateExtent"],pN,Bg,Ed,Od,n_,Fg,i_,wxe=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;MU(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===Ai;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),q(a)?a=a.slice():Ld(a)&&(a=Y({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Ld(r)?Y(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Ld(t)?Y(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?Y(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;_T(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){D(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Bo(this.dimensions,this._getDimInfo,this),this.hostModel)),n_(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];me(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(H2(arguments)))})},e.internalField=function(){pN=function(t){var r=t._invertedIndicesMap;D(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new xxe(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),i[r]=l}}}(),e}();const sn=wxe;function _v(e,t){wI(e)||(e=CI(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=ve(),a=[],o=Txe(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&kU(o),l=n===e.dimensionsDefine,u=l?PU(e):IU(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=ve(c),d=new BW(o),h=0;h0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function Txe(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return D(t,function(a){var o;Se(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function Axe(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 Mxe=function(){function e(t){this.coordSysDims=[],this.axisMap=ve(),this.categoryAxisMap=ve(),this.coordSysName=t}return e}();function Ixe(e){var t=e.get("coordinateSystem"),r=new Mxe(t),n=Pxe[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var Pxe={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",or).models[0],a=e.getReferringComponents("yAxis",or).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),nc(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),nc(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",or).models[0];t.coordSysDims=["single"],r.set("single",i),nc(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",or).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),nc(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),nc(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();D(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];r.set(c,u),nc(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function nc(e){return e.get("type")==="category"}function kxe(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;Dxe(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(D(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;D(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 Dxe(e){return!MU(e.schema)}function Ls(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function DU(e,t){return Ls(e,t)?e.getCalculationInfo("stackResultDimension"):t}function Rxe(e,t){var r=e.get("coordinateSystem"),n=Sv.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=y0(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function Lxe(e,t,r){var n,i;return r&&D(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 Ao(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=CI(e)):(i=n.getSource(),a=i.sourceFormat===Ai);var o=Ixe(t),s=Rxe(t,o),l=r.useEncodeDefaulter,u=me(l)?l:l?Pe(xW,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=_v(i,c),d=Lxe(f.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(f),p=kxe(t,{schema:f,store:h}),v=new sn(f,t);v.setCalculationInfo(p);var g=d!=null&&Exe(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 Exe(e){if(e.sourceFormat===Ai){var t=Oxe(e.data||[]);return!q(Vf(t))}}function Oxe(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}();hx(RU);const Mo=RU;var Nxe=0,zxe=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Nxe}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&Z(n,Bxe);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=ve(this.categories))},e}();function Bxe(e){return Se(e)&&e.value!=null?e.value:e+""}const jT=zxe;function YT(e){return e.type==="interval"||e.type==="log"}function Fxe(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=HH(a/t,!0);r!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=LU(o),l=i.niceTickExtent=[Xt(Math.ceil(e[0]/o)*o,s),Xt(Math.floor(e[1]/o)*o,s)];return $xe(l,e),i}function a_(e){var t=Math.pow(10,Q2(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Xt(r*t)}function LU(e){return Sa(e)+2}function vN(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function $xe(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),vN(e,0,t),vN(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function Ox(e,t){return e>=t[0]&&e<=t[1]}function Nx(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 EU=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 jT({})),q(i)&&(i=new jT({categories:Z(i,function(a){return Se(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),Ox(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),Nx(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}(Mo);Mo.registerClass(EU);const FI=EU;var fl=Xt,OU=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 Ox(r,this._extent)},t.prototype.normalize=function(r){return Nx(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=LU(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:fl(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 BU(e){var t=Hxe(e),r=[];return D(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")||(HU(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:VI(a),stackId:$I(n)})}),FU(r)}function FU(e){var t={};D(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 D(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=He(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),D(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;D(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;D(a,function(m,y){r[i][y]=r[i][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+c)})}),r}function Wxe(e,t,r){if(e&&t){var n=e[VI(t)];return n!=null&&r!=null?n[$I(r)]:n}}function $U(e,t){var r=zU(e,t),n=BU(r);D(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=$I(i),u=n[VI(s)][l],c=u.offset,f=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function VU(e){return{seriesType:e,plan:Kf(),reset:function(t){if(GU(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=Ls(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=a.isHorizontal(),h=Uxe(i,a),p=HU(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&&_a(_*3),w=p&&l&&_a(_*3),C=p&&_a(_),A=n.master.getRect(),T=d?A.width:A.height,M,I=S.getStore(),P=0;(M=x.next())!=null;){var k=I.get(f?g:o,M),R=I.get(s,M),z=h,$=void 0;f&&($=+k-I.get(o,M));var N=void 0,V=void 0,L=void 0,G=void 0;if(d){var U=n.dataToPoint([k,R]);if(f){var B=n.dataToPoint([$,R]);z=B[0]}N=z,V=U[1]+y,L=U[0]-z,G=m,Math.abs(L)>>1;e[i][1]i&&(this._approxInterval=i);var s=$g.length,l=Math.min(jxe($g,this._approxInterval,0,s),s-1);this._interval=$g[l][1],this._minLevelUnit=$g[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return nt(r)?r:+Ba(r)},t.prototype.contain=function(r){return Ox(this.parse(r),this._extent)},t.prototype.normalize=function(r){return Nx(this.parse(r),this._extent)},t.prototype.scale=function(r){return zx(r,this._extent)},t.type="time",t}(Es),$g=[["second",gI],["minute",mI],["hour",Gh],["quarter-day",Gh*6],["half-day",Gh*12],["day",hi*1.2],["half-week",hi*3.5],["week",hi*7],["month",hi*31],["quarter",hi*95],["half-year",aO/2],["year",aO]];function Yxe(e,t,r,n){var i=Ba(t),a=Ba(r),o=function(p){return sO(i,p,n)===sO(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 qxe(e,t){return e/=hi,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Xxe(e){var t=30*hi;return e/=t,e>6?6:e>3?3:e>2?2:1}function Zxe(e){return e/=Gh,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function gN(e,t){return e/=t?mI:gI,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Kxe(e){return HH(e,!0)}function Qxe(e,t,r){var n=new Date(e);switch(Zc(t)){case"year":case"month":n[iW(r)](0);case"day":n[aW(r)](1);case"hour":n[oW(r)](0);case"minute":n[sW(r)](0);case"second":n[lW(r)](0),n[uW(r)](0)}return n.getTime()}function Jxe(e,t,r,n){var i=1e4,a=rW,o=0;function s(T,M,I,P,k,R,z){for(var $=new Date(M),N=M,V=$[P]();N1&&R===0&&I.unshift({value:I[0].value-N})}}for(var R=0;R=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=ft(Z(u,function(T){return ft(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(rSe(n[0]/a)*a),Xt(tSe(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){Uh.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=ki(r)/ki(this.base),Ox(r,this._extent)},t.prototype.normalize=function(r){return r=ki(r)/ki(this.base),Nx(r,this._extent)},t.prototype.scale=function(r){return r=zx(r,this._extent),Vg(this.base,r)},t.type="log",t}(Mo),jU=GI.prototype;jU.getMinorTicks=Uh.getMinorTicks;jU.getLabel=Uh.getLabel;function Gg(e,t){return eSe(e,Sa(t))}Mo.registerClass(GI);const nSe=GI;var iSe=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[oSe[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=aSe[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),aSe={min:"_determinedMin",max:"_determinedMax"},oSe={min:"_dataMin",max:"_dataMax"};function YU(e,t,r){var n=e.rawExtentInfo;return n||(n=new iSe(e,t,r),e.rawExtentInfo=n,n)}function Hg(e,t){return t==null?null:Cp(t)?NaN:e.parse(t)}function qU(e,t){var r=e.type,n=YU(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=zU("bar",o),l=!1;if(D(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=BU(s),c=sSe(i,a,t,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function sSe(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=Wxe(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;D(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;D(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 yf(e,t){var r=t,n=qU(e,r),i=n.extent,a=r.get("splitNumber");e instanceof nSe&&(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 Bx(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 UU({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Mo.getClass(t)||Es)}}function lSe(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function wv(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):me(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(HI(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function HI(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function uSe(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=wv(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;ce[1]&&(e[1]=i[1])})}var Cv=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),dSe=1e-8;function yN(e,t){return Math.abs(e-t)i&&(n=o,i=l)}if(n)return pSe(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 D(o,function(s){s.type==="polygon"?xN(s.exterior,i,a,r):D(s.points,function(l){xN(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 mSe(e,t){return e=gSe(e),Z(ft(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 SN(o[0],o.slice(1)));break;case"MultiPolygon":D(i.coordinates,function(l){l[0]&&a.push(new SN(l[0],l.slice(1)))});break;case"LineString":a.push(new bN([i.coordinates]));break;case"MultiLineString":a.push(new bN(i.coordinates))}var s=new KU(n[t||"name"],a,n.cp);return s.properties=n,s})}var $p=Je();function ySe(e){return e.type==="category"?SSe(e):_Se(e)}function xSe(e,t){return e.type==="category"?bSe(e,t):{ticks:Z(e.scale.getTicks(),function(r){return r.value})}}function SSe(e){var t=e.getLabelModel(),r=JU(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function JU(e,t){var r=ej(e,"labels"),n=WI(t),i=tj(r,n);if(i)return i;var a,o;return me(n)?a=ij(e,n):(o=n==="auto"?wSe(e):n,a=nj(e,o)),rj(r,n,{labels:a,labelCategoryInterval:o})}function bSe(e,t){var r=ej(e,"ticks"),n=WI(t),i=tj(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),me(n))a=ij(e,n,!0);else if(n==="auto"){var s=JU(e,e.getLabelModel());o=s.labelCategoryInterval,a=Z(s.labels,function(l){return l.tickValue})}else o=n,a=nj(e,o,!0);return rj(r,n,{ticks:a,tickCategoryInterval:o})}function _Se(e){var t=e.scale.getTicks(),r=wv(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 ej(e,t){return $p(e)[t]||($p(e)[t]=[])}function tj(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=hv(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=$p(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 TSe(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 nj(e,t,r){var n=wv(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=XU(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 ij(e,t,r){var n=e.scale,i=wv(e),a=[];return D(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 _N=[0,1],ASe=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 VH(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(),wN(n,i.count())),ct(t,_N,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),wN(n,i.count()));var a=ct(t,n,_N,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=xSe(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 MSe(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 ySe(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 CSe(this)},e}();function wN(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function MSe(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;D(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+=Nd);var h=Math.atan2(s,o);if(h<0&&(h+=Nd),h>=n&&h<=i||h+Nd>=n&&h+Nd<=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,Vi.fromArray(e[0]),bt.fromArray(e[1]),tr.fromArray(e[2]),Le.sub(wa,Vi,bt),Le.sub(ga,tr,bt);var r=wa.len(),n=ga.len();if(!(r<.001||n<.001)){wa.scale(1/r),ga.scale(1/n);var i=wa.dot(ga),a=Math.cos(t);if(a1&&Le.copy(nn,tr),nn.toArray(e[1])}}}}function LSe(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,Vi.fromArray(e[0]),bt.fromArray(e[1]),tr.fromArray(e[2]),Le.sub(wa,bt,Vi),Le.sub(ga,tr,bt);var n=wa.len(),i=ga.len();if(!(n<.001||i<.001)){wa.scale(1/n),ga.scale(1/i);var a=wa.dot(t),o=Math.cos(r);if(a=l)Le.copy(nn,tr);else{nn.scaleAndAdd(ga,s/Math.tan(Math.PI/2-c));var f=tr.x!==bt.x?(nn.x-bt.x)/(tr.x-bt.x):(nn.y-bt.y)/(tr.y-bt.y);if(isNaN(f))return;f<0?Le.copy(nn,bt):f>1&&Le.copy(nn,tr)}nn.toArray(e[1])}}}}function TN(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 ESe(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=Jo(n[0],n[1]),a=Jo(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=Nm([],n[1],n[0],o/i),l=Nm([],n[1],n[2],o/a),u=Nm([],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 I=M+C;I<0&&b(-I*T,1)}else b(-C*T,1)}}function _(C,A,T){C!==0&&(u=!0);for(var M=A;M0)for(var I=0;I0;I--){var z=T[I-1]*R;_(-z,I,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 OSe(e,t,r,n){return lj(e,"x","width",t,r,n)}function uj(e,t,r,n){return lj(e,"y","height",t,r,n)}function cj(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)),it(n,u,r,l)}else if(n.attr(u),!Uf(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={};Wg(h,u,Ug),Wg(h,n.states.select,Ug)}if(n.states.emphasis){var p=a.oldLayoutEmphasis={};Wg(p,u,Ug),Wg(p,n.states.emphasis,Ug)}K6(n,l,c,r,r)}if(i&&!i.ignore&&!i.invisible){var a=BSe(i),o=a.oldLayout,v={points:i.shape.points};o?(i.attr({shape:o}),it(i,{shape:v},r)):(i.setShape(v),i.style.strokePercent=0,Lt(i,{style:{strokePercent:1}},r)),a.oldLayout=v}},e}();const $Se=FSe;var u_=Je();function VSe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=u_(r).labelManager;i||(i=u_(r).labelManager=new $Se),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var i=u_(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}var c_=Math.sin,f_=Math.cos,fj=Math.PI,hl=Math.PI*2,GSe=180/fj,HSe=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=is(f-hl)||(c?u>=hl:-u>=hl),h=u>0?u%hl:u%hl+hl,p=!1;d?p=!0:is(f)?p=!1:p=h>=fj==!!c;var v=t+n*f_(o),g=r+i*c_(o);this._start&&this._add("M",v,g);var m=Math.round(a*GSe);if(d){var y=1/this._p,x=(c?1:-1)*(hl-y);this._add("A",n,i,m,1,+c,t+n*f_(o+x),r+i*c_(o+x)),y>.01&&this._add("A",n,i,m,0,+c,v,g)}else{var S=t+n*f_(s),_=r+i*c_(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 QSe(e){return""}function YI(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 KSe(o,s)+(o!=="style"?mn(l):l||"")+(a?""+r+Z(a,function(u){return n(u)}).join(r)+r:"")+QSe(o)}return n(e)}function JSe(e,t,r){r=r||{};var n=r.newline?` +`:"",i=" {"+n,a=n+"}",o=Z(He(e),function(l){return l+i+Z(He(e[l]),function(u){return u+":"+e[l][u]+";"}).join(n)+a}).join(n),s=Z(He(t),function(l){return"@keyframes "+l+i+Z(He(t[l]),function(u){return u+i+Z(He(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 ZT(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function MN(e,t,r,n){return mr("svg","root",{width:e,height:t,xmlns:hj,"xmlns:xlink":pj,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+e+" "+t:!1},r)}var IN={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"},_l="transform-origin";function ebe(e,t,r){var n=Y({},e.shape);Y(n,t),e.buildPath(r,n);var i=new dj;return i.reset(kH(e)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function tbe(e,t){var r=t.originX,n=t.originY;(r||n)&&(e[_l]=r+"px "+n+"px")}var rbe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function gj(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function nbe(e,t,r){var n=e.shape.paths,i={},a,o;if(D(n,function(l){var u=ZT(r.zrId);u.animation=!0,Fx(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=He(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=gj(i,r);return a.replace(o,s)}}function PN(e){return oe(e)?IN[e]?"cubic-bezier("+IN[e]+")":q2(e)?e:"":""}function Fx(e,t,r,n){var i=e.animators,a=i.length,o=[];if(e instanceof fI){var s=nbe(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=gj(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 Vp=Math.round;function mj(e){return e&&oe(e.src)}function yj(e){return e&&me(e.toDataURL)}function qI(e,t,r,n){qSe(function(i,a){var o=i==="fill"||i==="stroke";o&&PH(a)?Sj(t,e,i,n):o&&X2(a)?bj(r,e,i,n):e[i]=a},t,r,!1),cbe(r,e,n)}function kN(e){return is(e[0]-1)&&is(e[1])&&is(e[2])&&is(e[3]-1)}function ibe(e){return is(e[4])&&is(e[5])}function XI(e,t,r){if(t&&!(ibe(t)&&kN(t))){var n=r?10:1e4;e.transform=kN(t)?"translate("+Vp(t[4]*n)/n+" "+Vp(t[5]*n)/n+")":Qpe(t)}}function DN(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.";ln(d,g),ln(h,g)}else if(d==null||h==null){var m=function(T,M){if(T){var I=T.elm,P=d||M.width,k=h||M.height;T.tag==="pattern"&&(u?(k=1,P/=a.width):c&&(P=1,k/=a.height)),T.attrs.width=P,T.attrs.height=k,I&&(I.setAttribute("width",P),I.setAttribute("height",k))}},y=rI(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=mr("image","img",{href:p,width:d,height:h}),o.width=d,o.height=h}else i.svgElement&&(f=we(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 _=DH(i);_&&(o.patternTransform=_);var b=mr("pattern","",o,[f]),w=YI(b),C=n.patternCache,A=C[w];A||(A=n.zrId+"-p"+n.patternIdx++,C[w]=A,o.id=A,b=n.defs[A]=mr("pattern",A,o,[f])),t[r]=fx(A)}}function fbe(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]=mr("clipPath",a,o,[xj(e,r)])}t["clip-path"]=fx(a)}function EN(e){return document.createTextNode(e)}function Dl(e,t,r){e.insertBefore(t,r)}function ON(e,t){e.removeChild(t)}function NN(e,t){e.appendChild(t)}function _j(e){return e.parentNode}function wj(e){return e.nextSibling}function d_(e,t){e.textContent=t}var zN=58,dbe=120,hbe=mr("","");function KT(e){return e===void 0}function ua(e){return e!==void 0}function pbe(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 uh(e,t){var r=e.key===t.key,n=e.tag===t.tag;return n&&r}function Gp(e){var t,r=e.children,n=e.tag;if(ua(n)){var i=e.elm=vj(n);if(ZI(hbe,e),q(r))for(t=0;ta?(p=r[l+1]==null?null:r[l+1].elm,Cj(e,p,r,i,l)):_0(e,t,n,a))}function mc(e,t){var r=t.elm=e.elm,n=e.children,i=t.children;e!==t&&(ZI(e,t),KT(t.text)?ua(n)&&ua(i)?n!==i&&vbe(r,n,i):ua(i)?(ua(e.text)&&d_(r,""),Cj(r,null,i,0,i.length-1)):ua(n)?_0(r,n,0,n.length-1):ua(e.text)&&d_(r,""):e.text!==t.text&&(ua(n)&&_0(r,n,0,n.length-1),d_(r,t.text)))}function gbe(e,t){if(uh(e,t))mc(e,t);else{var r=e.elm,n=_j(r);Gp(t),n!==null&&(Dl(n,t.elm,wj(r)),_0(n,[e],0,0))}return t}var mbe=0,ybe=function(){function e(t,r,n){if(this.type="svg",this.refreshHover=BN(),this.configLayer=BN(),this.storage=r,this._opts=n=Y({},n),this.root=t,this._id="zr"+mbe++,this._oldVNode=MN(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=vj("svg");ZI(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",gbe(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return LN(t,ZT(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=ZT(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress;var o=[],s=this._bgVNode=xbe(n,i,this._backgroundColor,a);s&&o.push(s);var l=t.compress?null:this._mainVNode=mr("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=Z(He(a.defs),function(d){return a.defs[d]});if(u.length&&o.push(mr("defs","defs",{},u)),t.animation){var c=JSe(a.cssNodes,a.cssAnims,{newline:!0});if(c){var f=mr("style","stl",{},[],c);o.push(f)}}return MN(n,i,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},YI(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}}k.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?jg:0),this._needsManuallyCompositing),c.__builtin__||V2("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&On&&!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,D(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 kbe=Pbe;function xf(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=gf(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 Dbe=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=sr(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=Rbe,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(){mo(this.childAt(0))},t.prototype.downplay=function(){yo(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):it(d,h,s,n),Zi(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=yr(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 _=Du(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 Fr){var C=s.style;s.useStyle(Y({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},b))}else s.__isEmptyBrush?s.useStyle(Y({},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:I,inheritColor:w,defaultOpacity:b.opacity});function I(R){return M?r.getName(R):xf(r,R)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var P=s.ensureState("emphasis");P.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var k=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;P.scaleX=this._sizeX*k,P.scaleY=this._sizeY*k,this.setSymbolScale(1),Ut(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=Ie(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&Ds(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Ds(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return Jf(r.getItemVisual(n,"symbolSize"))},t}(Ae);function Rbe(e,t){this.parent.drift(e,t)}const Tv=Dbe;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 VN(e){return e!=null&&!Se(e)&&(e={isIgnore:e}),e||{}}function GN(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:yr(t),cursorStyle:t.get("cursor")}}var Lbe=function(){function e(t){this.group=new Ae,this._SymbolCtor=t||Tv}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=VN(r);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=GN(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):it(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=GN(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=VN(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 Mj(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 Obe(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 Nbe(e,t,r,n,i,a,o,s){for(var l=Obe(e,t),u=[],c=[],f=[],d=[],h=[],p=[],v=[],g=Aj(i,t,o),m=e.getLayout("points")||[],y=t.getLayout("points")||[],x=0;x=i||v<0)break;if(au(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||au(b,w))h=m,p=y;else{T=b-u,M=w-c;var k=m-u,R=b-m,z=y-c,$=w-y,N=void 0,V=void 0;if(s==="x"){N=Math.abs(k),V=Math.abs(R);var L=T>0?1:-1;h=m-L*N*o,p=y,I=m+L*V*o,P=y}else if(s==="y"){N=Math.abs(z),V=Math.abs($);var G=M>0?1:-1;h=m,p=y-G*N*o,I=m,P=y+G*V*o}else N=Math.sqrt(k*k+z*z),V=Math.sqrt(R*R+$*$),A=V/(V+N),h=m-T*o*(1-A),p=y-M*o*(1-A),I=m+T*o*A,P=y+M*o*A,I=Fo(I,$o(b,m)),P=Fo(P,$o(w,y)),I=$o(I,Fo(b,m)),P=$o(P,Fo(w,y)),T=I-m,M=P-y,h=m-T*N/V,p=y-M*N/V,h=Fo(h,$o(u,m)),p=Fo(p,$o(c,y)),h=$o(h,Fo(u,m)),p=$o(p,Fo(c,y)),T=m-h,M=y-p,I=m+T*V/N,P=y+M*V/N}e.bezierCurveTo(f,d,h,p,m,y),f=I,d=P}else e.lineTo(m,y)}u=m,c=y,v+=a}return g}var Ij=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),zbe=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 Ij},t.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&au(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?Xy(s,h,v,m,r,c):Xy(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?vr(l,p,g,y,w):vr(s,h,v,m,w);return u?[r,S]:[S,r]}}s=m,l=y;break}}},t}($e),Bbe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Ij),Pj=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 Bbe},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&&au(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 Vbe(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=$be(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";D(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 gv(0,0,0,0,d,!0);return y[i]=v,y[i+"2"]=g,y}}}function Gbe(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&Hbe(a,t))){var o=t.mapDimension(a.dim),s={};return D(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function Hbe(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 Wbe(e,t){return isNaN(e)||isNaN(t)}function Ube(e){for(var t=e.length/2;t>0&&Wbe(e[t*2-2],e[t*2-1]);t--);return t-1}function YN(e,t){return[e[t*2],e[t*2+1]]}function jbe(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 Rj(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var L=v.getState("emphasis").style;L.lineWidth=+v.style.lineWidth+1}Ie(v).seriesIndex=r.seriesIndex,Ut(v,$,N,V);var G=jN(r.get("smooth")),U=r.get("smoothMonotone");if(v.setShape({smooth:G,smoothMonotone:U,connectNulls:C}),g){var B=l.getCalculationInfo("stackedOnSeries"),j=0;g.useStyle(xe(c.getAreaStyle(),{fill:P,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),B&&(j=jN(B.get("smooth"))),g.setShape({smooth:G,stackedOnSmooth:j,smoothMonotone:U,connectNulls:C}),zr(g,r,"areaStyle"),Ie(g).seriesIndex=r.seriesIndex,Ut(g,$,N,V)}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){Ie(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=gu(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 Tv(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=gu(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;n0(this._polyline,r),n&&n0(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new zbe({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 Pj({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");me(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=me(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=me(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(Rj(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=Ube(l);c>=0&&(Br(s,yr(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?Tj(o,h):xf(o,f)},enableTextSetter:!0},Ybe(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=jbe(f,S,w),A=C.range,T=A[1]-A[0],M=void 0;if(T>=1){if(T>1&&!h){var I=YN(f,A[0]);u.attr({x:I[0]+_,y:I[1]+b}),o&&(M=d.getRawValue(A[0]))}else{var I=c.getPointOn(S,w);I&&u.attr({x:I[0]+_,y:I[1]+b});var P=d.getRawValue(A[0]),k=d.getRawValue(A[1]);o&&(M=QH(i,p,P,k,C.t))}a.lastFrameIndex=A[0]}else{var R=r===1||a.lastFrameIndex>0?A[0]:0,I=YN(f,R);o&&(M=d.getRawValue(R)),u.attr({x:I[0]+_,y:I[1]+b})}if(o){var z=Uf(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=Nbe(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=Vo(d.current,i,o,l),p=Vo(d.stackedOnCurrent,i,o,l),v=Vo(d.next,i,o,l),g=Vo(d.stackedOnNext,i,o,l)),UN(h,v)>3e3||c&&UN(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(),it(u,m,f),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),it(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=Zbe[a]:me(a)&&(p=a),p&&t.setData(i.downSample(i.mapDimension(u.dim),1/h,p,Kbe))}}}}}function Qbe(e){e.registerChartView(Xbe),e.registerSeriesModel(kbe),e.registerLayout(Mv("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,Lj("line"))}var Ej=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 Ao(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)D(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(Ej);const w0=Ej;var Jbe=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 Ao(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=Hs(w0.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}(w0);const e_e=Jbe;var t_e=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),r_e=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 t_e},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,f=n.endAngle,d=n.clockwise,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){Rp(a,r,Ie(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),qN={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=g_(t.x,e.x),s=m_(t.x+t.width,i),l=g_(t.y,e.y),u=m_(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=m_(t.r,e.r),a=g_(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}},XN={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new Qe({shape:Y({},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?C0:In,c=new u({shape:n,z2:1});c.name="item";var f=Oj(i);if(c.calculateTextPosition=n_e(f,{isRoundCap:u===C0}),a){var d=c.shape,h=i?"r":"endAngle",p={};d[h]=i?n.r0:n.startAngle,p[h]=n[h],(s?it:Lt)(c,{shape:p},a)}return c}};function s_e(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function ZN(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?it:Lt)(r,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(o?it:Lt)(r,{shape:u},c,i)}function KN(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 c_e(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function Oj(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 JN(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=ql(n.getModel("itemStyle"),c,!0);Y(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=yr(n);Br(e,p,{labelFetcher:a,labelDataIndex:r,defaultText:xf(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,i_e(e,g==="outside"?h:g,Oj(o),n.get(["label","rotate"]))}Z6(v,p,a.getRawValue(r),function(y){return Tj(t,y)});var m=n.getModel(["emphasis"]);Ut(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),zr(e,n),c_e(i)&&(e.style.fill="none",e.style.stroke="none",D(e.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function f_e(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var d_e=function(){function e(){}return e}(),ez=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 d_e},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?r:null},30,!1);function h_e(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=a.length/3;c=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function Nj(e,t,r){if(Lu(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 p_e(e,t,r){var n=e.type==="polar"?In:Qe;return new n({shape:Nj(t,r,e),silent:!0,z2:0})}const v_e=o_e;function g_e(e){e.registerChartView(v_e),e.registerSeriesModel(e_e),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Pe($U,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,VU("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Lj("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 Zg=Math.PI*2,nz=Math.PI/180;function zj(e,t){return hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Bj(e,t){var r=zj(e,t),n=e.get("center"),i=e.get("radius");q(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 q(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 m_e(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=zj(n,r),s=Bj(n,r),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-n.get("startAngle")*nz,h=n.get("minAngle")*nz,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 _=Zg,b=0,w=d,C=m?1:-1;if(i.setLayout({viewRect:o,r:c}),i.each(a,function(T,M){var I;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"?I=v===0&&x?g:T*g:I=Zg/p,Ir?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 y_(e){return e.position==="center"}function S_e(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*y_e,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),I=M.getModel("label"),P=I.get("position")||M.get(["emphasis","label","position"]),k=I.get("distanceToLabelLine"),R=I.get("alignTo"),z=ne(I.get("edgeDistance"),u),$=I.get("bleedMargin"),N=M.getModel("labelLine"),V=N.get("length");V=ne(V,u);var L=N.get("length2");if(L=ne(L,u),Math.abs(C.endAngle-C.startAngle)0?"right":"left":U>0?"left":"right"}var ke=Math.PI,We=0,Ge=I.get("rotate");if(nt(Ge))We=Ge*(ke/180);else if(P==="center")We=0;else if(Ge==="radial"||Ge===!0){var at=U<0?-G+ke:-G;We=at}else if(Ge==="tangential"&&P!=="outside"&&P!=="outer"){var ot=Math.atan2(U,B);ot<0&&(ot=ke*2+ot);var It=B>0;It&&(ot=ke+ot),We=ot-ke}if(a=!!We,A.x=j,A.y=X,A.rotation=We,A.setStyle({verticalAlign:"middle"}),te){A.setStyle({align:ee});var Yt=A.states.select;Yt&&(Yt.x+=A.x,Yt.y+=A.y)}else{var Be=A.getBoundingRect().clone();Be.applyTransform(A.getComputedTransform());var Pt=(A.style.margin||0)+2.1;Be.y-=Pt/2,Be.height+=Pt,r.push({label:A,labelLine:T,position:P,len:V,len2:L,minTurnAngle:N.get("minTurnAngle"),maxSurfaceAngle:N.get("maxSurfaceAngle"),surfaceNormal:new Le(U,B),linePoints:W,textAlign:ee,labelDistance:k,labelAlignTo:R,edgeDistance:z,bleedMargin:$,rect:Be,unconstrainedWidth:Be.width,labelStyleWidth:A.style.width})}w.setTextConfig({inside:te})}}),!a&&e.get("avoidLabelOverlap")&&x_e(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 w_e=__e;function ed(e,t,r){t=q(t)&&{coordDimensions:t}||Y({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=_v(n,t).dimensions,a=new sn(i,e);return a.initData(n,r),a}var C_e=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 Pv=C_e;var T_e=Je(),A_e=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 Pv(ue(this.getData,this),ue(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return ed(this,{coordDimensions:["value"],encodeDefaulter:Pe(SI,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=T_e(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=Eve(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){vu(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 M_e=A_e;function I_e(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(nt(o)&&!isNaN(o)&&o<0)})}}}function P_e(e){e.registerChartView(w_e),e.registerSeriesModel(M_e),iU("pie",e.registerAction),e.registerLayout(Pe(m_e,"pie")),e.registerProcessor(Iv("pie")),e.registerProcessor(I_e("pie"))}var k_e=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 Ao(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 D_e=k_e;var $j=4,R_e=function(){function e(){}return e}(),L_e=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 R_e},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(r,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&a[0]<$j,c=this.softClipShape,f;if(u){this._ctx=l;return}for(this._ctx=null,f=this._off;f=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 O_e=E_e;var N_e=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=Mv("").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 O_e:new Av,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 z_e=N_e;var B_e=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 F_e=B_e;var JT=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",or).models[0]},t.type="cartesian2dAxis",t}(et);lr(JT,Cv);var Vj={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)"]}}},$_e=Oe({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Vj),KI=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}}},Vj),V_e=Oe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},KI),G_e=xe({logBase:10},KI);const Gj={category:$_e,value:KI,time:V_e,log:G_e};var H_e={value:1,category:1,time:1,log:1};function Sf(e,t,r,n){D(H_e,function(i,a){var o=Oe(Oe({},Gj[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=Op(this),h=d?qf(c):{},p=f.getTheme();Oe(c,p.get(a+"Axis")),Oe(c,this.getDefaultOption()),c.type=az(c),d&&Rs(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=jT.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",az)}function az(e){return e.type||(e.data?"category":"value")}var W_e=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return Z(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),ft(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 U_e=W_e;var eA=["x","y"];function oz(e){return e.type==="interval"||e.type==="time"}var j_e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=eA,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!oz(r)||!oz(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=$f([],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}(U_e),Y_e=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}(Qi);const q_e=Y_e;function tA(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 sz(e){return e.get("coordinateSystem")==="cartesian2d"}function lz(e){var t={xAxisModel:null,yAxisModel:null};return D(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,or).models[0];t[n]=a}),t}var x_=Math.log;function Hj(e,t,r){var n=Es.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=qU(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=x_(e.base);u=[x_(u[0])/d,x_(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=a_(p),v=u[1]-p*o;else{var m=e.getTicks().length-1;m>o&&(p=a_(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 X_e=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=eA,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=He(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;YT(v)&&p.get("alignTicks")&&p.get("interval")==null?c.push(h):(yf(v,p),YT(v)&&(s=h))}c.length&&(s||(s=c.pop(),yf(s.scale,s.model)),D(c,function(g){Hj(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};D(n.x,function(o){uz(n,"y",o,a)}),D(n.y,function(o){uz(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=hr(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(D(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=uSe(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()),D(this._coordsList,function(u){u.calcAffineTransform()});function l(){D(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]),Z_e(u,c?o.x:o.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}Se(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):t0(i-as)?(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}(),fz={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=Y({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});vf(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=Du(t.get(["axisLine","symbolOffset"])||0,h),v=h[0],g=h[1];D([{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=sr(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=ewe(r,n,t,e),a=rwe(r,n,t,e);if(J_e(t,a,i),twe(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=sj(Z(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));cj(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,hz(a)?e.labelOffset+o*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*as/180);var p;hz(a)?d=ou.innerTextLayout(e.rotation,h??e.rotation,o):(d=Q_e(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:ou.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(Wf({el:x,componentModel:t,itemName:i}),x.__fullText=i,x.anid="name",t.get("triggerEvent")){var S=ou.makeAxisEventDataBase(t);S.targetType="axisName",S.name=i,Ie(x).eventData=S}n.add(x),x.updateTransform(),r.add(x),x.decomposeTransform()}}};function Q_e(e,t,r,n){var i=GH(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return t0(i-as/2)?(o=l?"bottom":"top",a="center"):t0(i-as*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",ias/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function J_e(e,t,r){if(!XU(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?(Zn(a),Zn(u)):dz(a,o)&&(n?(Zn(o),Zn(c)):(Zn(a),Zn(u))),i===!1?(Zn(s),Zn(f)):dz(l,s)&&(i?(Zn(l),Zn(d)):(Zn(s),Zn(f)))}}function Zn(e){e&&(e.ignore=!0)}function dz(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=cx([]);return Pu(i,i,-e.rotation),r.applyTransform(no([],i,e.getLocalTransform())),n.applyTransform(no([],i,t.getLocalTransform())),r.intersect(n)}}function hz(e){return e==="middle"||e==="center"}function Wj(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l=0||e===t}function lwe(e){var t=QI(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=rA(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=xe({color:p.color},l));var g=Oe(we(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 me(c)&&(g.name=c(g.name,g));var y=new wt(g,null,this.ecModel);return lr(y,Cv.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"}},zd.axisLine),axisLabel:Kg(zd.axisLabel,!1),axisTick:Kg(zd.axisTick,!1),splitLine:Kg(zd.splitLine,!0),splitArea:Kg(zd.splitArea,!0),indicator:[]},t}(et);const Cwe=wwe;var Twe=["axisLine","axisTickLabel","axisName"],Awe=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 So(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});D(a,function(o){D(Twe,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=q(d)?d:[d],v=q(h)?h:[h],g=[],m=[];function y(R,z,$){var N=$%z.length;return R[N]=R[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;__(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);__(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!xz(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;__(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(Ti);function __(e,t,r,n,i){e.pointerChecker&&e.pointerChecker(n,i.originX,i.originY)&&(vo(n.event),Zj(e,t,r,n,i))}function Zj(e,t,r,n,i){i.isAvailableBehavior=ue(Zm,null,r,n),e.trigger(t,i)}function Zm(e,t,r){var n=r[e];return!e||n&&(!oe(n)||t.event[n+"Key"])}const kv=Nwe;function eP(e,t,r){var n=e.target;n.x+=t,n.y+=r,n.dirty()}function tP(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 zwe={axisPointer:1,tooltip:1,brush:1};function Vx(e,t,r){var n=t.getComponentByElement(e.topTarget),i=n&&n.coordinateSystem;return n&&n!==r&&!zwe.hasOwnProperty(n.mainType)&&i&&i.model!==r}function Kj(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 w_,T0={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"},Sz=He(T0),A0={"alignment-baseline":"textBaseline","stop-color":"stopColor"},bz=He(A0),Bwe=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,r){r=r||{};var n=Kj(t);this._defsUsePending=[];var i=new Ae;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),Dn(n,i,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;Vwe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var d=Gx(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=Jj(c,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var h=i;i=new Ae,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=w_[s];if(c&&ce(w_,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=_z[s];if(h&&ce(_z,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 Pp({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Kn(r,n),Dn(t,n,this._defsUsePending,!1,!1),Fwe(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(){w_={g:function(t,r){var n=new Ae;return Kn(r,n),Dn(t,n,this._defsUsePending,!1,!1),n},rect:function(t,r){var n=new Qe;return Kn(r,n),Dn(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 $a;return Kn(r,n),Dn(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 Kn(r,n),Dn(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 uI;return Kn(r,n),Dn(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=Tz(n));var a=new Pn({shape:{points:i||[]},silent:!0});return Kn(r,a),Dn(t,a,this._defsUsePending,!1,!1),a},polyline:function(t,r){var n=t.getAttribute("points"),i;n&&(i=Tz(n));var a=new kn({shape:{points:i||[]},silent:!0});return Kn(r,a),Dn(t,a,this._defsUsePending,!1,!1),a},image:function(t,r){var n=new Fr;return Kn(r,n),Dn(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 Ae;return Kn(r,s),Dn(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 Ae;return Kn(r,s),Dn(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=I6(n);return Kn(r,i),Dn(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),e}(),_z={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 gv(t,r,n,i);return wz(e,a),Cz(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 V6(t,r,n);return wz(e,i),Cz(e,i),i}};function wz(e,t){var r=e.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(t.global=!0)}function Cz(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={};Qj(r,a,a);var o=a.stopColor||r.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}r=r.nextSibling}}function Kn(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),xe(t.__inheritedStyle,e.__inheritedStyle))}function Tz(e){for(var t=Gx(e),r=[],n=0;n0;a-=2){var o=n[a],s=n[a-1],l=Gx(o);switch(i=i||bi(),s){case"translate":Na(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Y2(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Pu(i,i,-parseFloat(l[0])*C_);break;case"skewX":var u=Math.tan(parseFloat(l[0])*C_);no(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*C_);no(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 Mz=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Qj(e,t,r){var n=e.getAttribute("style");if(n){Mz.lastIndex=0;for(var i;(i=Mz.exec(n))!=null;){var a=i[1],o=ce(T0,a)?T0[a]:null;o&&(t[o]=i[2]);var s=ce(A0,a)?A0[a]:null;s&&(r[s]=i[2])}}}function Uwe(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=ve(),n=ve(),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,yr(n),{labelFetcher:d,labelDataIndex:f,defaultText:r},h);var p=t.getTextContent();if(p&&(e8(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 Rz(e,t,r,n,i,a){e.data?e.data.setItemGraphicEl(a,t):Ie(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:r,region:n&&n.option||{}}}function Lz(e,t,r,n,i){e.data||Wf({el:t,componentModel:i,itemName:r,itemTooltipOption:n.get("tooltip")})}function Ez(e,t,r,n,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var a=n.getModel("emphasis"),o=a.get("focus");return Ut(t,o,a.get("blurScope"),a.get("disabled")),e.isGeo&&cme(t,i,r),o}function Oz(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(),D(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 hCe=dCe;function pCe(e,t){var r={};return D(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=hr(_,{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 xCe(e,t){D(t.get("geoCoord"),function(r,n){e.addGeoCoord(n,r)})}var SCe=function(){function e(){this.dimensions=r8}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 Fz(l+s,l,Y({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=$z,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)}}),D(a,function(o,s){var l=Z(o,function(c){return c.get("nameMap")}),u=new Fz(s,s,Y({nameMap:G2(l)},i(o[0])));u.zoomLimit=Cr.apply(null,Z(o,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=$z,u.resize(o[0],r),D(o,function(c){c.coordinateSystem=u,xCe(u,c)})}),n},e.prototype.getFilledRegions=function(t,r,n,i){for(var a=(t||[]).slice(),o=ve(),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 PCe(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){RCe(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=LCe(e,i,e.parentNode.hierNode.defaultAncestor||n[0],t)}function kCe(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function Gz(e){return arguments.length?e:NCe}function ch(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function DCe(e,t){return hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function RCe(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 LCe(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=T_(s),a=A_(a),s&&a;){i=T_(i),o=A_(o),i.hierNode.ancestor=e;var d=s.hierNode.prelim+f-a.hierNode.prelim-u+n(s,a);d>0&&(OCe(ECe(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&&!T_(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=f-l),a&&!A_(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,r=e)}return r}function T_(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function A_(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function ECe(e,t,r){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:r}function OCe(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 NCe(e,t){return e.parentNode===t.parentNode?1:2}var zCe=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),BCe=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 zCe},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 I=s.get(["emphasis","focus"]),P=I==="relative"?Yy(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;P&&(Ie(r).focus=P),$Ce(i,o,c,r,p,h,v,n),r.__edge&&(r.onHoverStateChange=function(k){if(k!=="blur"){var R=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===vv||n0(r.__edge,k)}})}function $Ce(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 Sx({shape:aA(c,f,d,i,i)})),it(v,{shape:aA(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 u8(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function oP(e,t){var r=u8(e);return ze(r,t)>=0}function Hx(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 KCe=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=aP.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 xr("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=Hx(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 QCe=KCe;function JCe(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 eTe(e,t){e.eachSeriesByType("tree",function(r){tTe(r,t)})}function tTe(e,t){var r=DCe(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=Gz(function(x,S){return(x.parentNode===S.parentNode?1:2)/x.depth})):(i=r.width,a=r.height,o=Gz());var s=e.getData().tree.root,l=s.children[0];if(l){ICe(s),JCe(l,PCe,o),s.hierNode.modifier=-l.hierNode.prelim,Fd(l,kCe);var u=l,c=l,f=l;Fd(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),Fd(l,function(x){g=(x.getLayout().x+h)*p,m=(x.depth-1)*v;var S=ch(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),Fd(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),Fd(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 rTe(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");Y(s,o)})})}function nTe(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=nP(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function iTe(e){e.registerChartView(VCe),e.registerSeriesModel(QCe),e.registerLayout(eTe),e.registerVisual(rTe),nTe(e)}var Yz=["treemapZoomToNode","treemapRender","treemapMove"];function aTe(e){for(var t=0;t1;)a=a.parentNode;var o=LT(e.ecModel,a.name||a.dataIndex+"",n);i.setVisual("decal",o)})}var oTe=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};f8(i);var a=r.levels||[],o=this.designatedVisualItemStyle={},s=new wt({itemStyle:o},this,n);a=r.levels=sTe(a,n);var l=Z(a||[],function(f){return new wt(f,s,n)},this),u=aP.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 xr("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=Hx(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},Y(this.layoutInfo,r)},t.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=ve(),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(){c8(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 f8(e){var t=0;D(e.children,function(n){f8(n);var i=n.value;q(i)&&(i=i[0]),t+=i});var r=e.value;q(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),q(e.value)?e.value[0]=r:e.value=r}function sTe(e,t){var r=pt(t.get("color")),n=pt(t.get(["aria","decal","decals"]));if(r){e=e||[];var i,a;D(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 lTe=oTe;var uTe=8,qz=8,M_=5,cTe=function(){function e(t){this.group=new Ae,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),kx(o,f.pos,f.box)}},e.prototype._prepare=function(t,r,n){for(var i=t;i;i=i.parentNode){var a=dr(i.getModel().get("name"),""),o=n.getTextRect(a),s=Math.max(o.width+uTe*2,r.emptyItemWidth);r.totalWidth+=s+qz,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=xye(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 Pn({shape:{points:fTe(l,0,y,c,v===h.length-1,v===0)},style:xe(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new rt({style:_t(a,{text:x})}),textConfig:{position:"inside"},z2:Gf*1e4,onclick:Pe(s,m)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=_t(o,{text:x}),S.ensureState("emphasis").style=p,Ut(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),dTe(S,t,m),l+=y+qz}},e.prototype.remove=function(){this.group.removeAll()},e}();function fTe(e,t,r,n,i,a){var o=[[i?e:e-M_,t],[e+r,t],[e+r,t+n],[i?e:e-M_,t+n]];return!a&&o.splice(2,0,[e+r+M_,t+n/2]),!i&&o.push([e,t+n/2]),o}function dTe(e,t,r){Ie(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&&Hx(r,t)}}const hTe=cTe;var pTe=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;iZz||Math.abs(r.dy)>Zz)){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=bi();Na(u,u,[-n,-i]),Y2(u,u,[r.scale,r.scale]),Na(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&&u0(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 hTe(this.group))).render(r,n,i.node,function(o){a._state!=="animating"&&(oP(r.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=$d(),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 $d(){return{nodeGroup:[],background:[],content:[]}}function STe(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=j("nodeGroup",oA);if(!M)return;if(l.add(M),M.x=c.x||0,M.y=c.y||0,M.markRedraw(),M0(M).nodeWidth=h,M0(M).nodeHeight=p,c.isAboveViewRoot)return M;var I=j("background",Xz,u,mTe);I&&V(M,I,_&&c.upperLabelHeight);var P=d.getModel("emphasis"),k=P.get("focus"),R=P.get("blurScope"),z=P.get("disabled"),$=k==="ancestor"?o.getAncestorsIndices():k==="descendant"?o.getDescendantIndices():k;if(_)Dp(M)&&Hl(M,!1),I&&(Hl(I,!z),f.setItemGraphicEl(o.dataIndex,I),TT(I,$,R));else{var N=j("content",Xz,u,yTe);N&&L(M,N),I.disableMorphing=!0,I&&Dp(I)&&Hl(I,!1),Hl(M,!z),f.setItemGraphicEl(o.dataIndex,M),TT(M,$,R)}return M;function V(ee,te,ie){var re=Ie(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,fe=Jz(b);fe.fill=J;var de=Cl(w);de.fill=w.get("borderColor");var ke=Cl(C);ke.fill=C.get("borderColor");var We=Cl(A);if(We.fill=A.get("borderColor"),ie){var Ge=h-2*v;U(te,J,Q.opacity,{x:v,y:0,width:Ge,height:S})}else te.removeTextContent();te.setStyle(fe),te.ensureState("emphasis").style=de,te.ensureState("blur").style=ke,te.ensureState("select").style=We,yu(te)}ee.add(te)}function L(ee,te){var ie=Ie(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"),fe=J.fill,de=Jz(b);de.fill=fe,de.decal=J.decal;var ke=Cl(w),We=Cl(C),Ge=Cl(A);U(te,fe,J.opacity,null),te.setStyle(de),te.ensureState("emphasis").style=ke,te.ensureState("blur").style=We,te.ensureState("select").style=Ge,yu(te)}ee.add(te)}function G(ee){!ee.invisible&&a.push(ee)}function U(ee,te,ie,re){var Q=d.getModel(re?Qz:Kz),J=dr(d.get("name"),null),fe=Q.getShallow("show");Br(ee,yr(d,re?Qz:Kz),{defaultText:fe?J:null,inheritColor:te,defaultOpacity:ie,labelFetcher:e,labelDataIndex:o.dataIndex});var de=ee.getTextContent();if(de){var ke=de.style,We=W2(ke.padding||0);re&&(ee.setTextConfig({layoutRect:re}),de.disableLabelLayout=!0),de.beforeUpdate=function(){var at=Math.max((re?re.width:ee.shape.width)-We[1]-We[3],0),ot=Math.max((re?re.height:ee.shape.height)-We[0]-We[2],0);(ke.width!==at||ke.height!==ot)&&de.setStyle({width:at,height:ot})},ke.truncateMinChar=2,ke.lineOverflow="truncate",B(ke,re,c);var Ge=de.getState("emphasis");B(Ge?Ge.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 j(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 _i&&(Q.z2=bTe(ie,re)),W(J,Q)),t[ee][m]=Q}function X(ee,te){var ie=ee[m]={};te instanceof oA?(ie.oldX=te.x,ie.oldY=te.y):ie.oldShape=Y({},te.shape)}function W(ee,te){var ie=ee[m]={},re=o.parentNode,Q=te instanceof Ae;if(re&&(!n||n.direction==="drillDown")){var J=0,fe=0,de=i.background[re.getRawIndex()];!n&&de&&de.oldShape&&(J=de.oldShape.width,fe=de.oldShape.height),Q?(ie.oldX=0,ie.oldY=fe):ie.oldShape={x:J,y:fe,width:0,height:0}}ie.fadein=!Q}}function bTe(e,t){return e*gTe+t}const _Te=xTe;var Up=D,wTe=Se,I0=-1,sP=function(){function e(t){var r=t.mappingMethod,n=t.type,i=this.option=we(t);this.type=n,this.mappingMethod=r,this._normalizeData=ATe[r];var a=e.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[r],r==="piecewise"?(I_(i),CTe(i)):r==="category"?i.categories?TTe(i):I_(i,!0):(ln(r!=="linear"||i.dataExtent),I_(i))}return e.prototype.mapValueToVisual=function(t){var r=this._normalizeData(t);return this._normalizedToVisual(r,t)},e.prototype.getNormalizer=function(){return ue(this._normalizeData,this)},e.listVisualTypes=function(){return He(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,r,n){Se(t)?D(t,r,n):r.call(n,t)},e.mapVisual=function(t,r,n){var i,a=q(t)?[]:Se(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&&Up(e.visualHandlers,function(i,a){t.hasOwnProperty(a)&&(r[a]=t[a],n=!0)}),n?r:null},e.prepareVisualTypes=function(t){if(q(t))t=t.slice();else if(wTe(t)){var r=[];Up(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 I_(e,t){var r=e.visual,n=[];Se(r)?Up(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]),d8(e,n)}function Jg(e){return{applyVisual:function(t,r,n){var i=this.mapValueToVisual(t);n("color",e(r("color"),i))},_normalizedToVisual:sA([0,1])}}function eB(e){var t=this.option.visual;return t[Math.round(ct(e,[0,1],[0,t.length-1],!0))]||{}}function Vd(e){return function(t,r,n){n(e,this.mapValueToVisual(t))}}function fh(e){var t=this.option.visual;return t[this.option.loop&&e!==I0?e%t.length:e]}function Tl(){return this.option.visual[0]}function sA(e){return{linear:function(t){return ct(t,e,this.option.visual,!0)},category:fh,piecewise:function(t,r){var n=lA.call(this,r);return n==null&&(n=ct(t,e,this.option.visual,!0)),n},fixed:Tl}}function lA(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var n=sP.findPieceIndex(e,r),i=r[n];if(i&&i.visual)return i.visual[this.type]}}function d8(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=Z(t,function(r){var n=$n(r);return n||[0,0,0,1]})),t}var ATe={linear:function(e){return ct(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,r=sP.findPieceIndex(e,t,!0);if(r!=null)return ct(r,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??I0},fixed:rr};function em(e,t,r){return e?t<=r:t=r.length||v===r[v.depth]){var m=RTe(i,l,v,g,p,n);p8(v,m,r,n)}})}}}function PTe(e,t,r){var n=Y({},t),i=r.designatedVisualItemStyle;return D(["color","colorAlpha","colorSaturation"],function(a){i[a]=t[a];var o=e.get(a);i[a]=null,o!=null&&(n[a]=o)}),n}function tB(e){var t=P_(e,"color");if(t){var r=P_(e,"colorAlpha"),n=P_(e,"colorSaturation");return n&&(t=Oh(t,null,null,n)),r&&(t=Zy(t,r)),t}}function kTe(e,t){return t!=null?Oh(t,null,null,e):null}function P_(e,t){var r=e[t];if(r!=null&&r!=="none")return r}function DTe(e,t,r,n,i,a){if(!(!a||!a.length)){var o=k_(t,"color")||i.color!=null&&i.color!=="none"&&(k_(t,"colorAlpha")||k_(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 h8(d).drColorMappingBy=c,d}}}function k_(e,t){var r=e.get(t);return q(r)&&r.length?{name:t,range:r}:null}function RTe(e,t,r,n,i,a){var o=Y({},t);if(i){var s=i.type,l=s==="color"&&h8(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 jp=Math.max,P0=Math.min,rB=Cr,lP=D,v8=["itemStyle","borderWidth"],LTe=["itemStyle","gapWidth"],ETe=["upperLabel","show"],OTe=["upperLabel","height"];const NTe={seriesType:"treemap",reset:function(e,t,r,n){var i=r.getWidth(),a=r.getHeight(),o=e.option,s=hr(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],u=ne(rB(s.width,l[0]),i),c=ne(rB(s.height,l[1]),a),f=n&&n.type,d=["treemapZoomToNode","treemapRootToNode"],h=Wp(n,d,e),p=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,v=e.getViewRoot(),g=u8(v);if(f!=="treemapMove"){var m=f==="treemapZoomToNode"?GTe(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),g8(v,x,!1,0),S=v.getLayout(),lP(g,function(b,w){var C=(g[w+1]||v).getValue();b.setLayout(Y({dataExtent:[C,C],borderWidth:0,upperHeight:0},S))})}var _=e.getData().tree.root;_.setLayout(HTe(s,p,h),!0),e.setLayoutInfo(s),m8(_,new Ne(-s.x,-s.y,i,a),g,v,0)}};function g8(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(v8),u=s.get(LTe)/2,c=y8(s),f=Math.max(l,c),d=l-u,h=f-u;e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),i=jp(i-2*d,0),a=jp(a-d-h,0);var p=i*a,v=zTe(e,s,p,t,r,n);if(v.length){var g={x:d,y:h,width:i,height:a},m=P0(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=VTe(x,m,t.squareRatio);w<=y?(S++,y=w):(x.area-=x.pop().getLayout().area,nB(x,m,g,u,!1),m=P0(g.width,g.height),x.length=x.area=0,y=1/0)}if(x.length&&nB(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 VTe(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?jp(u*n/l,l/(u*i)):1/0}function nB(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;fvE&&(u=vE),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}(Ae);const dP=lAe;var uAe=function(){function e(t){this.group=new Ae,this._LineCtor=t||dP}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=uB(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=uB(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!cAe(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0}function uB(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:yr(t)}}function cB(e){return isNaN(e[0])||isNaN(e[1])}function O_(e){return e&&!cB(e[0])&&!cB(e[1])}const hP=uAe;var N_=[],z_=[],B_=[],oc=_r,F_=Ql,fB=Math.abs;function dB(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){N_[0]=oc(n[0],i[0],a[0],c),N_[1]=oc(n[1],i[1],a[1],c);var f=fB(F_(N_,t)-l);f=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function $_(e,t){var r=[],n=Tp,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=[ro(u[0]),ro(u[1])],u[2]&&u.__original.push(ro(u[2])));var d=u.__original;if(u[2]!=null){if(en(i[0],d[0]),en(i[1],d[2]),en(i[2],d[1]),c&&c!=="none"){var h=hh(s.node1),p=dB(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=hh(s.node2),p=dB(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]}en(u[0],i[0]),en(u[1],i[2]),en(u[2],i[1])}else{if(en(a[0],d[0]),en(a[1],d[1]),Vl(o,a[1],a[0]),Ff(o,o),c&&c!=="none"){var h=hh(s.node1);KC(a[0],a[0],o,h*t)}if(f&&f!=="none"){var h=hh(s.node2);KC(a[1],a[1],o,-h*t)}en(u[0],a[0]),en(u[1],a[1])}})}function hB(e){return e.type==="view"}var fAe=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 Av,a=new hP,o=this.group;this._controller=new kv(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(hB(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):it(u,c,r)}$_(r.getGraph(),dh(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),fP(r,"symbolSize",x,[A.offsetX,A.offsetY]),a.updateLayout(r);break;case"none":default:f.setItemLayout(S,[_.x,_.y]),cP(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"&&(Ie(_).focus=x.getAdjacentDataIndices())}}),f.graph.eachEdge(function(x){var S=x.getGraphicEl(),_=x.getModel().get(["emphasis","focus"]);S&&_==="adjacency"&&(Ie(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){_8(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)&&!Vx(u,i,r)}),!hB(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){eP(s,u.dx,u.dy),i.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){tP(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(),$_(r.getGraph(),dh(r)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),i=dh(r);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},t.prototype.updateLayout=function(r){$_(r.getGraph(),dh(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 dAe=fAe;function sc(e){return"_EC_"+e}var hAe=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 Al(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(nt(t)&&(t=this.nodes[t]),nt(r)&&(r=this.nodes[r]),t instanceof Al||(t=i[sc(t)]),r instanceof Al||(r=i[sc(r)]),!(!t||!r)){var o=t.id+"-"+r.id,s=new C8(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 Al&&(t=t.id),r instanceof Al&&(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 Al||(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)}}}lr(Al,T8("hostGraph","data"));lr(C8,T8("hostGraph","edgeData"));const pAe=hAe;function A8(e,t,r,n,i){for(var a=new pAe(n),o=0;o "+d)),u++)}var h=r.get("coordinateSystem"),p;if(h==="cartesian2d"||h==="polar")p=Ao(e,r);else{var v=Sv.get(h),g=v?v.dimensions||[]:[];ze(g,"value")<0&&g.concat(["value"]);var m=_v(e,{coordDimensions:g,encodeDefine:r.getEncode()}).dimensions;p=new sn(m,r),p.initData(e)}var y=new sn(["value"],r);return y.initData(l,s),i&&i(p,y),s8({mainData:p,struct:a,structAttr:"graph",datas:{node:p,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var vAe=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 Pv(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),vu(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){ZTe(this);var s=A8(a,i,this,!0,l);return D(s.edges,function(u){KTe(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),xr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=qW({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:Y({value:0},i)}),n=new sn(["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 gAe=vAe;var mAe={type:"graphRoam",event:"graphRoam",update:"none"};function yAe(e){e.registerChartView(dAe),e.registerSeriesModel(gAe),e.registerProcessor(UTe),e.registerVisual(jTe),e.registerVisual(YTe),e.registerLayout(QTe),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,eAe),e.registerLayout(rAe),e.registerCoordinateSystem("graphView",{dimensions:Dv.dimensions,create:iAe}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},rr),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},rr),e.registerAction(mAe,function(t,r,n){r.eachComponent({mainType:"series",query:t},function(i){var a=i.coordinateSystem,o=nP(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var xAe=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),SAe=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 xAe},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}($e);const bAe=SAe;function _Ae(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 rm(e,t){var r=e==null?"":e+"";return t&&(oe(t)?r=t.replace("{value}",r):me(t)&&(r=t(e))),r}var wAe=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=_Ae(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?C0:In,p=f.get("show"),v=f.getModel("lineStyle"),g=v.get("width"),m=[u,c];i6(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&&(j+=Math.PI)):B==="tangential"?j=-C-Math.PI/2:nt(B)&&(j=B*Math.PI/180),j===0?f.add(new rt({style:_t(x,{text:V,x:G,y:U,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:k<-.4?"left":k>.4?"right":"center"},{inheritColor:L}),silent:!0})):f.add(new rt({style:_t(x,{text:V,x:G,y:U,verticalAlign:"middle",align:"center"},{inheritColor:L}),silent:!0,originX:G,originY:U,rotation:j}))}if(y.get("show")&&z!==S){var $=y.get("distance");$=$?$+c:c;for(var X=0;X<=_;X++){k=Math.cos(C),R=Math.sin(C);var W=new Tr({shape:{x1:k*(p-$)+d,y1:R*(p-$)+h,x2:k*(p-w-$)+d,y2:R*(p-w-$)+h},silent:!0,style:I});I.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 I=y.getItemModel(T),P=I.getModel("pointer"),k=ne(P.get("width"),o.r),R=ne(P.get("length"),o.r),z=r.get(["pointer","icon"]),$=P.get("offsetCenter"),N=ne($[0],o.r),V=ne($[1],o.r),L=P.get("keepAspect"),G;return z?G=sr(z,N-k/2,V-R,k,R,null,L):G=new bAe({shape:{angle:-Math.PI/2,width:k,r:R,x:N,y:V}}),G.rotation=-(M+Math.PI/2),G.x=o.cx,G.y=o.cy,G}function A(T,M){var I=g.get("roundCap"),P=I?C0:In,k=g.get("overlap"),R=k?g.get("width"):c/y.count(),z=k?o.r-R:o.r-(T+1)*R,$=k?o.r:o.r-T*R,N=new P({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:z,r:$}});return k&&(N.z2=_-y.get(x,T)%_),N}(m||v)&&(y.diff(d).add(function(T){var M=y.get(x,T);if(v){var I=C(T,s);Lt(I,{rotation:-((isNaN(+M)?w[0]:ct(M,b,w,!0))+Math.PI/2)},r),f.add(I),y.setItemGraphicEl(T,I)}if(m){var P=A(T,s),k=g.get("clip");Lt(P,{shape:{endAngle:ct(M,b,w,k)}},r),f.add(P),_T(r.seriesIndex,y.dataType,T,P),p[T]=P}}).update(function(T,M){var I=y.get(x,T);if(v){var P=d.getItemGraphicEl(M),k=P?P.rotation:s,R=C(T,k);R.rotation=k,it(R,{rotation:-((isNaN(+I)?w[0]:ct(I,b,w,!0))+Math.PI/2)},r),f.add(R),y.setItemGraphicEl(T,R)}if(m){var z=h[M],$=z?z.shape.endAngle:s,N=A(T,$),V=g.get("clip");it(N,{shape:{endAngle:ct(I,b,w,V)}},r),f.add(N),_T(r.seriesIndex,y.dataType,T,N),p[T]=N}}).execute(),y.each(function(T){var M=y.getItemModel(T),I=M.getModel("emphasis"),P=I.get("focus"),k=I.get("blurScope"),R=I.get("disabled");if(v){var z=y.getItemGraphicEl(T),$=y.getItemVisual(T,"style"),N=$.fill;if(z instanceof Fr){var V=z.style;z.useStyle(Y({image:V.image,x:V.x,y:V.y,width:V.width,height:V.height},$))}else z.useStyle($),z.type!=="pointer"&&z.setColor(N);z.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),z.style.fill==="auto"&&z.setStyle("fill",a(ct(y.get(x,T),b,[0,1],!0))),z.z2EmphasisLift=0,zr(z,M),Ut(z,P,k,R)}if(m){var L=p[T];L.useStyle(y.getItemVisual(T,"style")),L.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),L.z2EmphasisLift=0,zr(L,M),Ut(L,P,k,R)}}),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=sr(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 Ae,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 Ae,_=a(ct(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 I=M.get("offsetCenter"),P=o.cx+ne(I[0],o.r),k=o.cy+ne(I[1],o.r),R=ne(M.get("width"),o.r),z=ne(M.get("height"),o.r),$=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:P,y:k,text:rm(x,N),width:isNaN(R)?null:R,height:isNaN(z)?null:z,align:"center",verticalAlign:"middle"},{inheritColor:$})}),Z6(T,{normal:M},x,function(L){return rm(L,N)}),v&&K6(T,m,l,r,{getFormattedLabel:function(L,G,U,B,j,X){return rm(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 CAe=wAe;var TAe=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 ed(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 AAe=TAe;function MAe(e){e.registerChartView(CAe),e.registerSeriesModel(AAe)}var IAe=["itemStyle","opacity"],PAe=function(e){H(t,e);function t(r,n){var i=e.call(this)||this,a=i,o=new kn,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(IAe);c=c??1,i||Zi(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)):it(a,{style:{opacity:c},shape:{points:l.points}},o,n),zr(a,s),this._updateLabel(r,n),Ut(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,yr(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},it(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),UI(i,jI(l),{stroke:d})},t}(Pn),kAe=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 PAe(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);Rp(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 DAe=kAe;var RAe=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 Pv(ue(this.getData,this),ue(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.getInitialData=function(r,n){return ed(this,{coordDimensions:["value"],encodeDefaulter:Pe(SI,this)})},t.prototype._defaultLabelLine=function(r){vu(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 LAe=RAe;function EAe(e,t){return hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function OAe(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();oeMe)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||!G_(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 G_(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}const nMe=tMe;var iMe=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){D(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){r.hasOwnProperty(n)&&(this.option[n]=r[n])},this)},t.prototype._initDimensions=function(){var r=this.dimensions=[],n=this.parallelAxisIndex=[],i=ft(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);D(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 aMe=iMe;var oMe=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}(Qi);const sMe=oMe;function Ou(e,t,r,n,i,a){e=e||0;var o=r[1]-r[0];if(i!=null&&(i=lc(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=lc(s,[0,o]),i=a=lc(s,[i,a]),n=0}t[0]=lc(t[0],r),t[1]=lc(t[1],r);var l=H_(t,n);t[n]+=e;var u=i||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=lc(t[n],c);var f;return f=H_(t,n),i!=null&&(f.sign!==l.sign||f.spana&&(t[1-n]=t[n]+f.sign*a),t}function H_(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 lc(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var W_=D,I8=Math.min,P8=Math.max,gB=Math.floor,lMe=Math.ceil,mB=Xt,uMe=Math.PI,cMe=function(){function e(t,r,n){this.type="parallel",this._axesMap=ve(),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;W_(i,function(o,s){var l=a[s],u=r.getComponent("parallelAxis",l),c=this._axesMap.set(o,new sMe(o,Bx(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();W_(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),yf(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,r){this._rect=hr(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=nm(t.get("axisExpandWidth"),l),f=nm(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=nm(h[1]-h[0],l),h[1]=h[0]+p;else{p=nm(c*(f-1),l);var v=t.get("axisExpandCenter")||gB(u/2);h=[c*v-p/2],h[1]=h[0]+p}var g=(s-p)/(u-f);g<3&&(g=0);var m=[gB(mB(h[0]/c,1))+1,lMe(mB(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])}),W_(n,function(o,s){var l=(i.axisExpandable?dMe:fMe)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:uMe/2,vertical:0},f=[u[a].x+t.x,u[a].y+t.y],d=c[a],h=bi();Pu(h,h,d),Na(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=[];D(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?Ou(l,i,o,"all"):u="none";else{var h=i[1]-i[0],p=o[1]*s/h;i=[P8(0,p-h/2)],i[1]=I8(o[1],i[0]+h),i[0]=i[1]-h}return{axisExpandWindow:i,behavior:u}},e}();function nm(e,t){return I8(P8(e,t[0]),t[1])}function fMe(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function dMe(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--)vi(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;axMe}function N8(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function z8(e,t,r,n){var i=new Ae;return i.add(new Qe({name:"main",style:mP(r),silent:!0,draggable:!0,cursor:"move",drift:Pe(bB,e,t,i,["n","s","w","e"]),ondragend:Pe(bu,t,{isEnd:!0})})),D(n,function(a){i.add(new Qe({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Pe(bB,e,t,i,a),ondragend:Pe(bu,t,{isEnd:!0})}))}),i}function B8(e,t,r,n){var i=n.brushStyle.lineWidth||0,a=bf(i,SMe),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;Ua(e,t,"main",o,s,p,v),n.transformable&&(Ua(e,t,"w",l,u,a,m),Ua(e,t,"e",d,u,a,m),Ua(e,t,"n",l,u,g,a),Ua(e,t,"s",l,h,g,a),Ua(e,t,"nw",l,u,a,a),Ua(e,t,"ne",d,u,a,a),Ua(e,t,"sw",l,h,a,a),Ua(e,t,"se",d,h,a,a))}function hA(e,t){var r=t.__brushOption,n=r.transformable,i=t.childAt(0);i.useStyle(mP(r)),i.attr({silent:!n,cursor:n?"move":"default"}),D([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?pA(e,a[0]):MMe(e,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?_Me[s]+"-resize":null})})}function Ua(e,t,r,n,i,a,o){var s=t.childOfName(r);s&&s.setShape(PMe(yP(e,t,[[n,i],[n+a,i+o]])))}function mP(e){return xe({strokeNoScale:!0},e.brushStyle)}function F8(e,t,r,n){var i=[qp(e,r),qp(t,n)],a=[bf(e,r),bf(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function AMe(e){return nu(e.group)}function pA(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=_x(r[t],AMe(e));return n[i]}function MMe(e,t){var r=[pA(e,t[0]),pA(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function bB(e,t,r,n,i,a){var o=r.__brushOption,s=e.toRectRange(o.range),l=$8(t,i,a);D(n,function(u){var c=bMe[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(F8(s[0][0],s[1][0],s[0][1],s[1][1])),pP(t,r),bu(t,{isEnd:!1})}function IMe(e,t,r,n){var i=t.__brushOption.range,a=$8(e,r,n);D(i,function(o){o[0]+=a[0],o[1]+=a[1]}),pP(e,t),bu(e,{isEnd:!1})}function $8(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 yP(e,t,r){var n=O8(e,t);return n&&n!==Su?n.clipPath(r,e._transform):we(r)}function PMe(e){var t=qp(e[0][0],e[1][0]),r=qp(e[0][1],e[1][1]),n=bf(e[0][0],e[1][0]),i=bf(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:i-r}}function kMe(e,t,r){if(!(!e._brushType||RMe(e,t.offsetX,t.offsetY))){var n=e._zr,i=e._covers,a=gP(e,t,r);if(!e._dragging)for(var o=0;on.getWidth()||r<0||r>n.getHeight()}var Ux={lineX:CB(0),lineY:CB(1),rect:{createCover:function(e,t){function r(n){return n}return z8({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=N8(e);return F8(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){B8(e,t,r,n)},updateCommon:hA,contain:gA},polygon:{createCover:function(e,t){var r=new Ae;return r.add(new kn({name:"main",style:mP(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Pn({name:"main",draggable:!0,drift:Pe(IMe,e,t),ondragend:Pe(bu,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:yP(e,t,r)})},updateCommon:hA,contain:gA}};function CB(e){return{createCover:function(t,r){return z8({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=N8(t),n=qp(r[0][e],r[1][e]),i=bf(r[0][e],r[1][e]);return[n,i]},updateCoverShape:function(t,r,n,i){var a,o=O8(t,r);if(o!==Su&&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(),B8(t,r,l,i)},updateCommon:hA,contain:gA}}const xP=CMe;function G8(e){return e=SP(e),function(t){return j6(t,e)}}function H8(e,t){return e=SP(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 W8(e,t,r){var n=SP(e);return function(i,a){return n.contain(a[0],a[1])&&!Vx(i,t,r)}}function SP(e){return Ne.create(e)}var LMe=["axisLine","axisTickLabel","axisName"],EMe=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 xP(n.getZr())).on("brush",ue(this._onBrush,this))},t.prototype.render=function(r,n,i,a){if(!OMe(r,n,a)){this.axisModel=r,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ae,this.group.add(this._axisGroup),!!r.get("show")){var s=zMe(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),c=u.width,f=r.axis.dim,d=l.getAxisLayout(f),h=Y({strokeContainThreshold:c},d),p=new So(r,h);D(LMe,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(h,u,r,s,c,i),mv(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:G8(f),isTargetByCursor:W8(f,s,a),getLinearBrushOtherExtent:H8(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(NMe(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}(jt);function OMe(e,t,r){return r&&r.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function NMe(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 zMe(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}const BMe=EMe;var FMe={type:"axisAreaSelect",event:"axisAreaSelected"};function $Me(e){e.registerAction(FMe,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 VMe={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function U8(e){e.registerComponentView(nMe),e.registerComponentModel(aMe),e.registerCoordinateSystem("parallel",gMe),e.registerPreprocessor(KAe),e.registerComponentModel(yB),e.registerComponentView(BMe),Sf(e,"parallel",yB,VMe),$Me(e)}function GMe(e){Fe(U8),e.registerChartView(HAe),e.registerSeriesModel(YAe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,ZAe)}var HMe=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}(),WMe=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new HMe},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(){mo(this)},t.prototype.downplay=function(){yo(this)},t}($e),UMe=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 WMe,g=Ie(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"),I=p.getLayout(),P,k,R,z,$,N,V,L;v.shape.extent=Math.max(1,I.dy),v.shape.orient=h,h==="vertical"?(P=(b!=null?b*u:S.x)+I.sy,k=(w!=null?w*c:S.y)+S.dy,R=(T!=null?T*u:C.x)+I.ty,z=M!=null?M*c:C.y,$=P,N=k*(1-x)+z*x,V=R,L=k*x+z*(1-x)):(P=(b!=null?b*u:S.x)+S.dx,k=(w!=null?w*c:S.y)+I.sy,R=T!=null?T*u:C.x,z=(M!=null?M*c:C.y)+I.ty,$=P*(1-x)+R*x,N=k,V=P*x+R*(1-x),L=z),v.setShape({x1:P,y1:k,x2:R,y2:z,cpx1:$,cpy1:N,cpx2:V,cpy2:L}),v.useStyle(y.getItemStyle()),TB(v.style,h,p);var G=""+m.get("value"),U=yr(m,"edgeLabel");Br(v,U,{labelFetcher:{getFormattedLabel:function(X,W,ee,te,ie,re){return r.getFormattedLabel(X,W,"edge",te,Pa(ie,U.normal&&U.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 TB(W,h,p),W}),s.add(v),d.setItemGraphicEl(p.dataIndex,v);var j=B.get("focus");Ut(v,j==="adjacency"?p.getAdjacentDataIndices():j==="trajectory"?p.getTrajectoryDataIndices():j,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,yr(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),Ie(S).dataType="node";var _=x.get("focus");Ut(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(jMe(s.getBoundingRect(),r,function(){s.removeClipPath()})),this._data=r.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(Tt);function TB(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 gv(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:i,offset:1}]))}}function jMe(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 YMe=UMe;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.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=A8(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 xr("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 xr("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 XMe=qMe;function ZMe(e,t){e.eachSeriesByType("sankey",function(r){var n=r.get("nodeWidth"),i=r.get("nodeGap"),a=KMe(r,t);r.layoutInfo=a;var o=a.width,s=a.height,l=r.getGraph(),u=l.nodes,c=l.edges;JMe(u);var f=ft(u,function(v){return v.getLayout().value===0}),d=f.length!==0?0:r.get("layoutIterations"),h=r.get("orient"),p=r.get("nodeAlign");QMe(u,c,n,i,o,s,d,h,p)})}function KMe(e,t){return hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function QMe(e,t,r,n,i,a,o,s,l){e2e(e,t,r,i,a,s,l),i2e(e,t,a,i,n,o,s),h2e(e,s)}function JMe(e){D(e,function(t){var r=bs(t.outEdges,k0),n=bs(t.inEdges,k0),i=t.getValue()||0,a=Math.max(r,n,i);t.setLayout({value:a},!0)})}function e2e(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"&&t2e(e,o,a,w);var C=a==="vertical"?(i-r)/w:(n-r)/w;n2e(e,C,a)}function j8(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function t2e(e,t,r,n){if(t==="right"){for(var i=[],a=e,o=0;a.length;){for(var s=0;s0;a--)l*=.99,s2e(s,l,o),U_(s,i,r,n,o),d2e(s,l,o),U_(s,i,r,n,o)}function a2e(e,t){var r=[],n=t==="vertical"?"y":"x",i=yT(e,function(a){return a.getLayout()[n]});return i.keys.sort(function(a,o){return a-o}),D(i.keys,function(a){r.push(i.buckets.get(a))}),r}function o2e(e,t,r,n,i,a){var o=1/0;D(e,function(s){var l=s.length,u=0;D(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 s2e(e,t,r){D(e.slice().reverse(),function(n){D(n,function(i){if(i.outEdges.length){var a=bs(i.outEdges,l2e,r)/bs(i.outEdges,k0);if(isNaN(a)){var o=i.outEdges.length;a=o?bs(i.outEdges,u2e,r)/o:0}if(r==="vertical"){var s=i.getLayout().x+(a-Os(i,r))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-Os(i,r))*t;i.setLayout({y:l},!0)}}})})}function l2e(e,t){return Os(e.node2,t)*e.getValue()}function u2e(e,t){return Os(e.node2,t)}function c2e(e,t){return Os(e.node1,t)*e.getValue()}function f2e(e,t){return Os(e.node1,t)}function Os(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function k0(e){return e.getValue()}function bs(e,t,r){for(var n=0,i=e.length,a=-1;++ao&&(o=l)}),D(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&&D(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function v2e(e){e.registerChartView(YMe),e.registerSeriesModel(XMe),e.registerLayout(ZMe),e.registerVisual(p2e),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 Y8=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=[];D(g,function(S,_){var b;q(S)?(b=S.slice(),S.unshift(_)):q(S.value)?(b=Y({},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:y0(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:y0(v),dimsDef:y.slice()}];return ed(this,{coordDimensions:x,dimensionsCount:y.length+1,encodeDefaulter:Pe(xW,x,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),q8=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);lr(q8,Y8,!0);const g2e=q8;var m2e=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=AB(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?(Zi(f),X8(d,f,a,u)):f=AB(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),y2e=function(){function e(){}return e}(),x2e=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 y2e},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 M2e={type:"echarts:boxplot",transform:function(t){var r=t.upstream;if(r.sourceFormat!==Kr){var n="";st(n)}var i=A2e(r.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function I2e(e){e.registerSeriesModel(g2e),e.registerChartView(b2e),e.registerLayout(_2e),e.registerTransform(M2e)}var P2e=["color","borderColor"],k2e=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){Gs(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&&MB(u,f))return;var d=j_(f,c,!0);Lt(d,{shape:{points:f.ends}},r,c),Y_(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&&MB(u,h)){a.remove(d);return}d?(it(d,{shape:{points:h.ends}},r,c),Zi(d)):d=j_(h),Y_(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(),IB(r,this.group);var n=r.get("clip",!0)?$x(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=j_(s);Y_(l,i,o,a),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(r,n){IB(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),D2e=function(){function e(){}return e}(),R2e=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 D2e},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}($e);function j_(e,t,r){var n=e.ends;return new R2e({shape:{points:r?L2e(n,e):n},z2:100})}function MB(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(P2e);t.useStyle(a),t.style.fill=null,t.style.stroke=i}const O2e=k2e;var Z8=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);lr(Z8,Y8,!0);const N2e=Z8;function z2e(e){!e||!q(e.series)||D(e.series,function(t){Se(t)&&t.type==="k"&&(t.type="candlestick")})}var B2e=["itemStyle","borderColor"],F2e=["itemStyle","borderColor0"],$2e=["itemStyle","borderColorDoji"],V2e=["itemStyle","color"],G2e=["itemStyle","color0"],H2e={seriesType:"candlestick",plan:Kf(),performRawSeries:!0,reset:function(e,t){function r(a,o){return o.get(a>0?V2e:G2e)}function n(a,o){return o.get(a===0?$2e:a>0?B2e:F2e)}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");Y(f,c)}}}}}};const W2e=H2e;var U2e={seriesType:"candlestick",plan:Kf(),reset:function(e){var t=e.coordinateSystem,r=e.getData(),n=j2e(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=$(C,x),M=$(A,x),I=$(b,x),P=$(w,x),k=[];N(k,M,0),N(k,T,1),k.push(L(P),L(M),L(I),L(T));var R=g.getItemModel(m),z=!!R.get(["itemStyle","borderColorDoji"]);g.setItemLayout(m,{sign:PB(y,m,S,_,c,z),initBaseline:S>_?M[a]:T[a],ends:k,brushRect:V(b,w,x)})}function $(G,U){var B=[];return B[i]=U,B[a]=G,isNaN(U)||isNaN(G)?[NaN,NaN]:t.dataToPoint(B)}function N(G,U,B){var j=U.slice(),X=U.slice();j[i]=Um(j[i]+n/2,1,!1),X[i]=Um(X[i]-n/2,1,!0),B?G.push(j,X):G.push(X,j)}function V(G,U,B){var j=$(G,B),X=$(U,B);return j[i]-=n/2,X[i]-=n/2,{x:j[0],y:j[1],width:n,height:X[1]-j[1]}}function L(G){return G[i]=Um(G[i],1),G}}function p(v,g){for(var m=_a(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),I=w.get(f,b),P=w.get(d,b);if(isNaN(A)||isNaN(I)||isNaN(P)){m[y++]=NaN,y+=3;continue}m[y++]=PB(w,b,T,M,c,C),S[i]=A,S[a]=I,x=t.dataToPoint(S,null,_),m[y++]=x?x[0]:NaN,m[y++]=x?x[1]:NaN,S[a]=P,x=t.dataToPoint(S,null,_),m[y++]=x?x[1]:NaN}g.setLayout("largePoints",m)}}};function PB(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 j2e(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 Y2e=U2e;function q2e(e){e.registerChartView(O2e),e.registerSeriesModel(N2e),e.registerPreprocessor(z2e),e.registerVisual(W2e),e.registerLayout(Y2e)}function kB(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 X2e=function(e){H(t,e);function t(r,n){var i=e.call(this)||this,a=new Tv(r,n),o=new Ae;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;me(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 Jo(r.__p1,r.__cp1)+Jo(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=_r,c=aT;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}(K8);const aIe=iIe;var oIe=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),sIe=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 oIe},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(a6(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 uIe=lIe;var cIe={seriesType:"lines",plan:Kf(),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)&&$x(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=J8.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 uIe:new hP(o?a?aIe:Q8:a?K8:dP),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 dIe=fIe;var hIe=typeof Uint32Array>"u"?Array:Uint32Array,pIe=typeof Float64Array>"u"?Array:Float64Array;function DB(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),G2([i,r[0],r[1]])}))}var vIe=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||[],DB(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(DB(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=Yy(this._flatCoords,n.flatCoords),this._flatCoordsOffset=Yy(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 gIe=vIe;function im(e){return e instanceof Array||(e=[e,e]),e}var mIe={seriesType:"lines",reset:function(e){var t=im(e.get("symbol")),r=im(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=im(s.getShallow("symbol",!0)),u=im(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 yIe=mIe;function xIe(e){e.registerChartView(dIe),e.registerSeriesModel(gIe),e.registerLayout(J8),e.registerVisual(yIe)}var SIe=256,bIe=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Ps.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 I=o(x)?l:u;x>0&&(x=x*T+C),_[b++]=I[M],_[b++]=I[M+1],_[b++]=I[M+2],_[b++]=I[M+3]*x*256}else b+=4}return d.putImageData(S,0,0),f},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Ps.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 _Ie=bIe;function wIe(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 RB(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var TIe=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()):RB(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&&(RB(o)?this.render(n,i,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,a,r.start,r.end,!0)))},t.prototype.eachRendered=function(r){Gs(this._progressiveEls||this.group,r)},t.prototype._renderOnCartesianAndCalendar=function(r,n,i,a,o){var s=r.coordinateSystem,l=Lu(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"]),_=yr(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]||Rd[1])continue;var z=s.dataToPoint([k,R]);I=new Qe({shape:{x:z[0]-u/2,y:z[1]-c/2,width:u,height:c},style:P})}else{if(isNaN(g.get(T[1],M)))continue;I=new Qe({z2:1,shape:s.dataToRect([g.get(T[0],M)]).contentShape,style:P})}if(g.hasItemOption){var $=g.getItemModel(M),N=$.getModel("emphasis");m=N.getModel("itemStyle").getItemStyle(),y=$.getModel(["blur","itemStyle"]).getItemStyle(),x=$.getModel(["select","itemStyle"]).getItemStyle(),S=$.get(["itemStyle","borderRadius"]),w=N.get("focus"),C=N.get("blurScope"),A=N.get("disabled"),_=yr($)}I.shape.r=S;var V=r.getRawValue(M),L="-";V&&V[2]!=null&&(L=V[2]+""),Br(I,_,{labelFetcher:r,labelDataIndex:M,defaultOpacity:P.opacity,defaultText:L}),I.ensureState("emphasis").style=m,I.ensureState("blur").style=y,I.ensureState("select").style=x,Ut(I,w,C,A),I.incremental=o,o&&(I.states.emphasis.hoverLayer=!0),v.add(I),g.setItemGraphicEl(M,I),this._progressiveEls&&this._progressiveEls.push(I)}},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 _Ie;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"?CIe(S,i.option.range):wIe(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 Fr({style:{width:g,height:m,x:d,y:h,image:u.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t}(Tt);const AIe=TIe;var MIe=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 Ao(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var r=Sv.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 IIe=MIe;function PIe(e){e.registerChartView(AIe),e.registerSeriesModel(IIe)}var kIe=["itemStyle","borderWidth"],LB=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Z_=new $a,DIe=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:LB[+c],categoryDim:LB[1-+c]};return o.diff(s).add(function(h){if(o.hasValue(h)){var p=OB(o,h),v=EB(o,h,p,d),g=NB(o,d,v);o.setItemGraphicEl(h,g),a.add(g),BB(g,d,v)}}).update(function(h,p){var v=s.getItemGraphicEl(p);if(!o.hasValue(h)){a.remove(v);return}var g=OB(o,h),m=EB(o,h,g,d),y=a9(o,m);v&&y!==v.__pictorialShapeStr&&(a.remove(v),o.setItemGraphicEl(h,null),v=null),v?BIe(v,d,m):v=NB(o,d,m,!0),o.setItemGraphicEl(h,v),v.__pictorialSymbolMeta=m,a.add(v),BB(v,d,m)}).remove(function(h){var p=s.getItemGraphicEl(h);p&&zB(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){zB(a,Ie(o).dataIndex,r,o)}):i.removeAll()},t.type="pictorialBar",t}(Tt);function EB(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};RIe(r,a,i,n,d),LIe(e,t,i,a,o,d.boundingLength,d.pxSign,c,n,d),EIe(r,d.symbolScale,u,n,d);var h=d.symbolSize,p=Du(r.get("symbolOffset"),h);return OIe(r,h,i,a,o,p,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,n,d),d}function RIe(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(q(o)){var f=[K_(s,o[0])-l,K_(s,o[1])-l];f[1]0?1:-1}function K_(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function LIe(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;q(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 EIe(e,t,r,n,i){var a=e.get(kIe)||0;a&&(Z_.attr({scaleX:t[0],scaleY:t[1],rotation:r}),Z_.updateTransform(),a/=Z_.getLineScale(),a*=t[n.valueDim.index]),i.valueLineWidth=a||0}function OIe(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=WH(n),C=w?n:FB((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?FB((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 I=f.bundlePosition=[];I[d.index]=r[d.xy],I[h.index]=r[h.xy];var P=f.barRectShape=Y({},r);P[h.wh]=p*Math.max(Math.abs(r[h.wh]),Math.abs(M[h.index]+T)),P[d.wh]=r[d.wh];var k=f.clipShape={};k[d.xy]=-r[d.xy],k[d.wh]=c.ecSize[d.wh],k[h.xy]=0,k[h.wh]=r[h.wh]}function e9(e){var t=e.symbolPatternSize,r=sr(e.symbolType,-t/2,-t/2,t,t);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function t9(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(bP(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 r9(e,t,r,n){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?Jc(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=e9(r),i.add(a),Jc(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 n9(e,t,r){var n=Y({},t.barRectShape),i=e.__pictorialBarRect;i?Jc(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 i9(e,t,r,n){if(r.symbolClip){var i=e.__pictorialClipPath,a=Y({},r.clipShape),o=t.valueDim,s=r.animationModel,l=r.dataIndex;if(i)it(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],xv[n?"updateProps":"initProps"](i,{shape:u},s,l)}}}function OB(e,t){var r=e.getItemModel(t);return r.getAnimationDelayParams=NIe,r.isAnimationEnabled=zIe,r}function NIe(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function zIe(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function NB(e,t,r,n){var i=new Ae,a=new Ae;return i.add(a),i.__pictorialBundle=a,a.x=r.bundlePosition[0],a.y=r.bundlePosition[1],r.symbolRepeat?t9(i,t,r):r9(i,t,r),n9(i,r,n),i9(i,t,r,n),i.__pictorialShapeStr=a9(e,r),i.__pictorialSymbolMeta=r,i}function BIe(e,t,r){var n=r.animationModel,i=r.dataIndex,a=e.__pictorialBundle;it(a,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,i),r.symbolRepeat?t9(e,t,r,!0):r9(e,t,r,!0),n9(e,r,!0),i9(e,t,r,!0)}function zB(e,t,r,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var a=[];bP(n,function(o){a.push(o)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),D(a,function(o){Ds(o,{scaleX:0,scaleY:0},r,t,function(){n.parent&&n.parent.remove(n)})}),e.setItemGraphicEl(t,null)}function a9(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function bP(e,t,r){D(e.__pictorialBundle.children(),function(n){n!==e.__pictorialBarRect&&t.call(r,n)})}function Jc(e,t,r,n,i,a){t&&e.attr(t),n.symbolClip&&!i?r&&e.attr(r):r&&xv[i?"updateProps":"initProps"](e,r,n.animationModel,n.dataIndex,a)}function BB(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");bP(e,function(v){if(v instanceof Fr){var g=v.style;v.useStyle(Y({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,yr(i),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:xf(t.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:h}),Ut(e,c,f,a.get("disabled"))}function FB(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}const FIe=DIe;var $Ie=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=Hs(w0.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}(w0);const VIe=$Ie;function GIe(e){e.registerChartView(FIe),e.registerSeriesModel(VIe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Pe($U,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,VU("pictorialBar"))}var HIe=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 xo(this._layersSeries||[],l,d,d),p=[];h.add(ue(v,this,"add")).update(ue(v,this,"update")).remove(ue(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 ZIe(e){e.registerChartView(UIe),e.registerSeriesModel(YIe),e.registerLayout(qIe),e.registerProcessor(Iv("themeRiver"))}var KIe=2,QIe=4,JIe=function(e){H(t,e);function t(r,n,i,a){var o=e.call(this)||this;o.z2=KIe,o.textConfig={inside:!0},Ie(o).seriesIndex=n.seriesIndex;var s=new rt({z2:QIe,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;Ie(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),f=Y({},c);f.label=null;var d=n.getVisual("style");d.lineJoin="bevel";var h=n.getVisual("decal");h&&(d.decal=mf(h,o));var p=ql(l.getModel("itemStyle"),f,!0);Y(f,p),D(un,function(y){var x=s.ensureState(y),S=l.getModel([y,"itemStyle"]);x.style=S.getItemStyle();var _=ql(S,f);_&&(x.shape=_)}),r?(s.setShape(f),s.shape.r=c.r0,Lt(s,{shape:{r:c.r}},i,n.dataIndex)):(it(s,{shape:f},i),Zi(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;Ut(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"):!I||I==="center"?(s===2*Math.PI&&o.r0===0?T=0:T=(o.r+o.r0)/2,I="center"):I==="left"?(T=o.r0+M,l>Math.PI/2&&(I="right")):I==="right"&&(T=o.r-M,l>Math.PI/2&&(I="left")),S.style.align=I,S.style.verticalAlign=g(y,"verticalAlign")||"middle",S.x=T*u+o.cx,S.y=T*c+o.cy;var P=g(y,"rotate"),k=0;P==="radial"?(k=$i(-l),k>Math.PI/2&&kMath.PI/2?k-=Math.PI:k<-Math.PI/2&&(k+=Math.PI)):nt(P)&&(k=P*Math.PI/180),S.rotation=$i(k)});function g(m,y){var x=m.get(y);return x??a.get(y)}d.dirtyStyle()},t}(In);const VB=JIe;var mA="sunburstRootToNode",GB="sunburstHighlight",ePe="sunburstUnhighlight";function tPe(e){e.registerAction({type:mA,update:"updateView"},function(t,r){r.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(i,a){var o=Wp(t,[mA],i);if(o){var s=i.getViewRoot();s&&(t.direction=oP(s,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}}),e.registerAction({type:GB,update:"none"},function(t,r,n){t=Y({},t),r.eachComponent({mainType:"series",subType:"sunburst",query:t},i);function i(a){var o=Wp(t,[GB],a);o&&(t.dataIndex=o.node.dataIndex)}n.dispatchAction(Y(t,{type:"highlight"}))}),e.registerAction({type:ePe,update:"updateView"},function(t,r,n){t=Y({},t),n.dispatchAction(Y(t,{type:"downplay"}))})}var rPe=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 xo(x,y,S,S).add(_).update(_).remove(Pe(_,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 VB(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 VB(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";u0(u,c)}}i=!0}})})},t.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:mA,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 nPe=rPe;var iPe=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};o9(i);var a=this._levelModels=Z(r.levels||[],function(l){return new wt(l,this,n)},this),o=aP.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=Hx(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(){c8(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 o9(e){var t=0;D(e.children,function(n){o9(n);var i=n.value;q(i)&&(i=i[0]),t+=i});var r=e.value;q(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),q(e.value)?e.value[0]=r:e.value=r}const aPe=iPe;var HB=Math.PI/180;function oPe(e,t,r){t.eachSeriesByType(e,function(n){var i=n.get("center"),a=n.get("radius");q(a)||(a=[0,a]),q(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")*HB,p=n.get("minAngle")*HB,v=n.getData().tree.root,g=n.getViewRoot(),m=g.depth,y=n.get("sort");y!=null&&s9(g,y);var x=0;D(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,I=function(z,$){if(z){var N=$;if(z!==v){var V=z.getValue(),L=S===0&&T?_:V*_;L1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&oe(s)&&(s=lT(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");Y(u,l)})})}function uPe(e){e.registerChartView(nPe),e.registerSeriesModel(aPe),e.registerLayout(Pe(oPe,"sunburst")),e.registerProcessor(Pe(Iv,"sunburst")),e.registerVisual(lPe),tPe(e)}var WB={color:"fill",borderColor:"stroke"},cPe={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},ao=Je(),fPe=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 Ao(null,this)},t.prototype.getDataParams=function(r,n,i){var a=e.prototype.getDataParams.call(this,r,n);return i&&(a.info=ao(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 dPe=fPe;function hPe(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 pPe(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:ue(hPe,e)}}}function vPe(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 gPe(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:ue(vPe,e)}}}function mPe(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 yPe(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:ue(mPe,e)}}}function xPe(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 SPe(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:ue(xPe,e)}}}function bPe(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 l9(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||ce(e,"text")))}function u9(e,t,r){var n=e,i,a,o;if(t==="text")o=n;else{o={},ce(n,"text")&&(o.text=n.text),ce(n,"rich")&&(o.rich=n.rich),ce(n,"textFill")&&(o.fill=n.textFill),ce(n,"textStroke")&&(o.stroke=n.textStroke),ce(n,"fontFamily")&&(o.fontFamily=n.fontFamily),ce(n,"fontSize")&&(o.fontSize=n.fontSize),ce(n,"fontStyle")&&(o.fontStyle=n.fontStyle),ce(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=ce(n,"textPosition");r?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),ce(n,"textPosition")&&(i.position=n.textPosition),ce(n,"textOffset")&&(i.offset=n.textOffset),ce(n,"textRotation")&&(i.rotation=n.textRotation),ce(n,"textDistance")&&(i.distance=n.textDistance)}return UB(o,e),D(o.rich,function(l){UB(l,l)}),{textConfig:i,textContent:a}}function UB(e,t){t&&(t.font=t.textFont||t.font,ce(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),ce(t,"textAlign")&&(e.align=t.textAlign),ce(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),ce(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),ce(t,"textWidth")&&(e.width=t.textWidth),ce(t,"textHeight")&&(e.height=t.textHeight),ce(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),ce(t,"textPadding")&&(e.padding=t.textPadding),ce(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),ce(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),ce(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),ce(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),ce(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),ce(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),ce(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function jB(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";YB(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,D(t.rich,function(s){YB(s,s)}),n}function YB(e,t){t&&(ce(t,"fill")&&(e.textFill=t.fill),ce(t,"stroke")&&(e.textStroke=t.fill),ce(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),ce(t,"font")&&(e.font=t.font),ce(t,"fontStyle")&&(e.fontStyle=t.fontStyle),ce(t,"fontWeight")&&(e.fontWeight=t.fontWeight),ce(t,"fontSize")&&(e.fontSize=t.fontSize),ce(t,"fontFamily")&&(e.fontFamily=t.fontFamily),ce(t,"align")&&(e.textAlign=t.align),ce(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),ce(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),ce(t,"width")&&(e.textWidth=t.width),ce(t,"height")&&(e.textHeight=t.height),ce(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),ce(t,"padding")&&(e.textPadding=t.padding),ce(t,"borderColor")&&(e.textBorderColor=t.borderColor),ce(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),ce(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),ce(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),ce(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),ce(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),ce(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),ce(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),ce(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),ce(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),ce(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var c9={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},qB=He(c9);Oa(za,function(e,t){return e[t]=1,e},{});za.join(", ");var D0=["","style","shape","extra"],_f=Je();function _P(e,t,r,n,i){var a=e+"Animation",o=Hf(e,n,i)||{},s=_f(t).userDuring;return o.duration>0&&(o.during=s?ue(APe,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),Y(o,r[a]),o}function Km(e,t,r,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=_f(e),u=t.style;l.userDuring=t.during;var c={},f={};if(IPe(e,t,f),ZB("shape",t,f),ZB("extra",t,f),!a&&s&&(MPe(e,t,c),XB("shape",e,t,c),XB("extra",e,t,c),PPe(e,t,u,c)),f.style=u,_Pe(e,f,o),CPe(e,t),s)if(a){var d={};D(D0,function(p){var v=p?t[p]:t;v&&v.enterFrom&&(p&&(d[p]=d[p]||{}),Y(p?d[p]:d,v.enterFrom))});var h=_P("enter",e,t,r,i);h.duration>0&&e.animateFrom(d,h)}else wPe(e,t,i||0,r,c);f9(e,t),u?e.dirty():e.markRedraw()}function f9(e,t){for(var r=_f(e).leaveToProps,n=0;n0&&e.animateFrom(i,a)}}function CPe(e,t){ce(t,"silent")&&(e.silent=t.silent),ce(t,"ignore")&&(e.ignore=t.ignore),e instanceof _i&&ce(t,"invisible")&&(e.invisible=t.invisible),e instanceof $e&&ce(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var aa={},TPe={setTransform:function(e,t){return aa.el[e]=t,this},getTransform:function(e){return aa.el[e]},setShape:function(e,t){var r=aa.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){var t=aa.el.shape;if(t)return t[e]},setStyle:function(e,t){var r=aa.el,n=r.style;return n&&(n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){var t=aa.el.style;if(t)return t[e]},setExtra:function(e,t){var r=aa.el.extra||(aa.el.extra={});return r[e]=t,this},getExtra:function(e){var t=aa.el.extra;if(t)return t[e]}};function APe(){var e=this,t=e.el;if(t){var r=_f(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}aa.el=t,n(TPe)}}function XB(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]={}),su(l))Y(o,a);else for(var u=pt(l),c=0;c=0){!o&&(o=n[e]={});for(var h=He(a),c=0;c=0)){var d=e.getAnimationStyleProps(),h=d?d.style:null;if(h){!a&&(a=n.style={});for(var p=He(r),u=0;u=0?t.getStore().get($,R):void 0}var N=t.get(z.name,R),V=z&&z.ordinalMeta;return V?V.categories[N]:N}function b(k,R){R==null&&(R=u);var z=t.getItemVisual(R,"style"),$=z&&z.fill,N=z&&z.opacity,V=y(R,os).getItemStyle();$!=null&&(V.fill=$),N!=null&&(V.opacity=N);var L={inheritColor:oe($)?$:"#000"},G=x(R,os),U=_t(G,null,L,!1,!0);U.text=G.getShallow("show")?Ee(e.getFormattedLabel(R,os),xf(t,R)):null;var B=s0(G,L,!1);return A(k,V),V=jB(V,U,B),k&&C(V,k),V.legacy=!0,V}function w(k,R){R==null&&(R=u);var z=y(R,oo).getItemStyle(),$=x(R,oo),N=_t($,null,null,!0,!0);N.text=$.getShallow("show")?Pa(e.getFormattedLabel(R,oo),e.getFormattedLabel(R,os),xf(t,R)):null;var V=s0($,null,!0);return A(k,z),z=jB(z,N,V),k&&C(z,k),z.legacy=!0,z}function C(k,R){for(var z in R)ce(R,z)&&(k[z]=R[z])}function A(k,R){k&&(k.textFill&&(R.textFill=k.textFill),k.textPosition&&(R.textPosition=k.textPosition))}function T(k,R){if(R==null&&(R=u),ce(WB,k)){var z=t.getItemVisual(R,"style");return z?z[WB[k]]:null}if(ce(cPe,k))return t.getItemVisual(R,k)}function M(k){if(a.type==="cartesian2d"){var R=a.getBaseAxis();return Gxe(xe({axis:R},k))}}function I(){return r.getCurrentSeriesIndices()}function P(k){return X6(k,r)}}function $Pe(e){var t={};return D(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 tw(e,t,r,n,i,a,o){if(!n){a.remove(t);return}var s=MP(e,t,r,n,i,a);return s&&o.setItemGraphicEl(r,s),s&&Ut(s,n.focus,n.blurScope,n.emphasisDisabled),s}function MP(e,t,r,n,i,a){var o=-1,s=t;t&&v9(t,n,i)&&(o=ze(a.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=TP(n),s&&OPe(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Qn.normal.cfg=Qn.normal.conOpt=Qn.emphasis.cfg=Qn.emphasis.conOpt=Qn.blur.cfg=Qn.blur.conOpt=Qn.select.cfg=Qn.select.conOpt=null,Qn.isLegacy=!1,GPe(u,r,n,i,l,Qn),VPe(u,r,n,i,l),AP(e,u,r,n,Qn,i,l),ce(n,"info")&&(ao(u).info=n.info);for(var c=0;c=0?a.replaceAt(u,o):a.add(u),u}function v9(e,t,r){var n=ao(e),i=t.type,a=t.shape,o=t.style;return r.isUniversalTransitionEnabled()||i!=null&&i!==n.customGraphicType||i==="path"&&YPe(a)&&g9(a)!==n.customPathData||i==="image"&&ce(o,"image")&&o.image!==n.customImagePath}function VPe(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&&v9(o,a,n)&&(o=null),o||(o=TP(a),e.setClipPath(o)),AP(null,o,t,a,null,n,i)}}function GPe(e,t,r,n,i,a){if(!e.isGroup){QB(r,null,a),QB(r,oo,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=TP(o),e.setTextContent(c)),AP(null,c,t,o,null,n,i);for(var f=o&&o.style,d=0;d=c;h--){var p=t.childAt(h);WPe(t,p,i)}}}function WPe(e,t,r){t&&jx(t,ao(e).option,r)}function UPe(e){new xo(e.oldChildren,e.newChildren,JB,JB,e).add(e5).update(e5).remove(jPe).execute()}function JB(e,t){var r=e&&e.name;return r??LPe+t}function e5(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,i=t!=null?r.oldChildren[t]:null;MP(r.api,i,r.dataIndex,n,r.seriesModel,r.group)}function jPe(e){var t=this.context,r=t.oldChildren[e];r&&jx(r,ao(r).option,t.seriesModel)}function g9(e){return e&&(e.pathData||e.d)}function YPe(e){return e&&(ce(e,"pathData")||ce(e,"d"))}function qPe(e){e.registerChartView(zPe),e.registerSeriesModel(dPe)}var Rl=Je(),t5=we,rw=ue,XPe=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 Ae,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var d=Pe(r5,r,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,r)}i5(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=QI(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=Rl(t).pointerEl=new xv[a.type](t5(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=Rl(t).labelEl=new rt(t5(r.label));t.add(a),n5(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=Rl(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=Rl(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),n5(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=yv(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){vo(u.event)},onmousedown:rw(this._onHandleDragMove,this,0,0),drift:rw(this._onHandleDragMove,this),ondragend:rw(this._onHandleDragEnd,this)}),n.add(i)),i5(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");q(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,Qf(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){r5(this._axisPointerModel,!r&&this._moveAnimation,this._handle,nw(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(nw(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(nw(i)),Rl(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),zp(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 r5(e,t,r,n){m9(Rl(r).lastProp,n)||(Rl(r).lastProp=n,t?it(r,n,e):(r.stopAnimation(),r.attr(n)))}function m9(e,t){if(Se(e)&&Se(t)){var r=!0;return D(t,function(n,i){r=r&&m9(e[i],n)}),!!r}else return e===t}function n5(e,t){e[t.get(["label","show"])?"show":"hide"]()}function nw(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function i5(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 PP=XPe;function kP(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 y9(e,t,r,n,i){var a=r.get("value"),o=x9(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Yf(s.get("padding")||0),u=s.getFont(),c=hv(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),ZPe(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 ZPe(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 x9(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:HI(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};D(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):me(o)&&(a=o(s))}return a}function DP(e,t,r){var n=bi();return Pu(n,n,r.rotation),Na(n,n,r.position),Ui([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function S9(e,t,r,n,i,a){var o=So.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),y9(t,n,i,a,{position:DP(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function RP(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function b9(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function a5(e,t,r,n,i,a){return{cx:e,cy:t,r0:r,r:n,startAngle:i,endAngle:a,clockwise:!0}}var KPe=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=o5(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var d=kP(a),h=QPe[u](s,f,c);h.style=d,r.graphicKey=h.type,r.pointer=h}var p=tA(l.model,i);S9(n,r,p,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=tA(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=DP(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=o5(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}(PP);function o5(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var QPe={line:function(e,t,r){var n=RP([t,r[0]],[t,r[1]],s5(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:b9([t-n/2,r[0]],[n,i],s5(e))}}};function s5(e){return e.dim==="x"?0:1}const JPe=KPe;var eke=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 tke=eke;var eo=Je(),rke=D;function _9(e,t,r){if(!tt.node){var n=t.getZr();eo(n).records||(eo(n).records={}),nke(n,t);var i=eo(n).records[e]||(eo(n).records[e]={});i.handler=r}}function nke(e,t){if(eo(e).initialized)return;eo(e).initialized=!0,r("click",Pe(l5,"click")),r("mousemove",Pe(l5,"mousemove")),r("globalout",ake);function r(n,i){e.on(n,function(a){var o=oke(t);rke(eo(e).records,function(s){s&&i(s,a,o.dispatchAction)}),ike(o.pendings,t)})}}function ike(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 ake(e,t,r){e.handler("leave",null,r)}function l5(e,t,r,n){t.handler(e,r,n)}function oke(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 SA(e,t){if(!tt.node){var r=t.getZr(),n=(eo(r).records||{})[e];n&&(eo(r).records[e]=null)}}var ske=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";_9("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){SA("axisPointer",n)},t.prototype.dispose=function(r,n){SA("axisPointer",n)},t.type="axisPointer",t}(jt);const lke=ske;function w9(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=gu(a,e);if(o==null||o<0||q(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 u5=Je();function uke(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||ue(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Qm(i)&&(i=w9({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=Qm(i),u=a.axesInfo,c=s.axesInfo,f=n==="leave"||Qm(i),d={},h={},p={list:[],map:{}},v={showPointer:Pe(fke,h),showTooltip:Pe(dke,p)};D(s.coordSysMap,function(m,y){var x=l||m.containPoint(i);D(s.coordSysAxesInfo[y],function(S,_){var b=S.axis,w=gke(u,S);if(!f&&x&&(!u||w)){var C=w&&w.value;C==null&&!l&&(C=b.pointToData(i)),C!=null&&c5(S,C,v,!1,d)}})});var g={};return D(c,function(m,y){var x=m.linkGroup;x&&!h[y]&&D(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,f5(S),f5(m)))),g[m.key]=w}})}),D(g,function(m,y){c5(c[y],m,v,!0,d)}),hke(h,c,d),pke(p,i,e,o),vke(c,o,r),d}}function c5(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=cke(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&Y(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function cke(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return D(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),D(d,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function fke(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function dke(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=Hp(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 hke(e,t,r){var n=r.axesInfo=[];D(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 pke(e,t,r,n){if(Qm(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 vke(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=u5(n)[i]||{},o=u5(n)[i]={};D(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&D(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];D(a,function(u,c){!o[c]&&l.push(u)}),D(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 gke(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 f5(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 Qm(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Rv(e){Eu.registerAxisPointerClass("CartesianAxisPointer",JPe),e.registerComponentModel(tke),e.registerComponentView(lke),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!q(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=nwe(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},uke)}function mke(e){Fe(Xj),Fe(Rv)}var yke=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=kP(a),p=Ske[d](s,l,f,c);p.style=h,r.graphicKey=p.type,r.pointer=p}var v=a.get(["label","margin"]),g=xke(n,i,a,l,v);y9(r,i,a,o,g)},t}(PP);function xke(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=bi();Pu(d,d,s),Na(d,d,[n.cx,n.cy]),u=Ui([o,-i],d);var h=t.getModel("axisLabel").get("rotate")||0,p=So.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 Ske={line:function(e,t,r,n){return e.dim==="angle"?{type:"Line",shape:RP(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:a5(t.cx,t.cy,n[0],n[1],(-r-i/2)*a,(-r+i/2)*a)}:{type:"Sector",shape:a5(t.cx,t.cy,r-i/2,r+i/2,0,Math.PI*2)}}};const bke=yke;var _ke=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 wke=_ke;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",or).models[0]},t.type="polarAxis",t}(et);lr(LP,Cv);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.type="angleAxis",t}(LP),Tke=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),EP=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}(Qi);EP.prototype.dataToRadius=Qi.prototype.dataToCoord;EP.prototype.radiusToData=Qi.prototype.coordToData;const Ake=EP;var Mke=Je(),OP=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=hv(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=Mke(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}(Qi);OP.prototype.dataToAngle=Qi.prototype.dataToCoord;OP.prototype.angleToData=Qi.prototype.coordToData;const Ike=OP;var C9=["radius","angle"],Pke=function(){function e(t){this.dimensions=C9,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Ake,this._angleAxis=new Ike,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=d5(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=d5(r);return i===this?this.pointToData(n):null},e}();function d5(e){var t=e.seriesModel,r=e.polarModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}const kke=Pke;function Dke(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%"]:q(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 Rke(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();D(x0(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),D(x0(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),yf(n.scale,n.model),yf(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 Lke(e){return e.mainType==="angleAxis"}function h5(e,t){if(e.type=t.get("type"),e.scale=Bx(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),Lke(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 Eke={dimensions:C9,create:function(e,t){var r=[];return e.eachComponent("polar",function(n,i){var a=new kke(i+"");a.update=Rke;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");h5(o,l),h5(s,u),Dke(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",or).models[0];n.coordinateSystem=i.coordinateSystem}}),r}};const Oke=Eke;var Nke=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function am(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 om(e){var t=e.getRadiusAxis();return t.inverse?0:1}function p5(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 zke=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=we(c);var f=i.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(d),c});p5(u),p5(s),D(Nke,function(c){r.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&Bke[c](this.group,r,a,s,l,o,u)},this)}},t.type="angleAxis",t}(Eu),Bke={axisLine:function(e,t,r,n,i,a){var o=t.getModel(["axisLine","lineStyle"]),s=om(r),l=s?0:1,u;a[l]===0?u=new $a({shape:{cx:r.cx,cy:r.cy,r:a[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new xx({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[om(r)],u=Z(n,function(c){return new Tr({shape:am(r,[l,l+s],c.coord)})});e.add(di(u,{style:xe(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[om(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];Se(_)&&_.textStyle&&(h=new wt(_.textStyle,l,l.ecModel))}var b=new rt({silent:So.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=So.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=f.rawLabel,Ie(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",P=w;_&&(n[c][M]||(n[c][M]={p:w,n:w}),P=n[c][M][I]);var k=void 0,R=void 0,z=void 0,$=void 0;if(p.dim==="radius"){var N=p.dataToCoord(T)-w,V=l.dataToCoord(M);Math.abs(N)=$})}}})}function Yke(e){var t={};D(e,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=A9(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=T9(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 D(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),D(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=v5(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=v5(r);return i===this?this.pointToData(n):null},e}();function v5(e){var t=e.seriesModel,r=e.singleAxisModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function oDe(e,t){var r=[];return e.eachComponent("singleAxis",function(n,i){var a=new aDe(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",or).models[0];n.coordinateSystem=i&&i.coordinateSystem}}),r}var sDe={create:oDe,dimensions:I9};const lDe=sDe;var g5=["x","y"],uDe=["width","height"],cDe=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=aw(l,1-E0(s)),c=l.dataToPoint(n)[0],f=a.get("type");if(f&&f!=="none"){var d=kP(a),h=fDe[f](s,c,u);h.style=d,r.graphicKey=h.type,r.pointer=h}var p=bA(i);S9(n,r,p,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=bA(n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=DP(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=E0(o),u=aw(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=aw(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}(PP),fDe={line:function(e,t,r){var n=RP([t,r[0]],[t,r[1]],E0(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:b9([t-n/2,r[0]],[n,i],E0(e))}}};function E0(e){return e.isHorizontal()?0:1}function aw(e,t){var r=e.getRect();return[r[g5[t]],r[g5[t]]+r[uDe[t]]]}const dDe=cDe;var hDe=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}(jt);function pDe(e){Fe(Rv),Eu.registerAxisPointerClass("SingleAxisPointer",dDe),e.registerComponentView(hDe),e.registerComponentView(rDe),e.registerComponentModel(iw),Sf(e,"single",iw,iw.defaultOption),e.registerCoordinateSystem("single",lDe)}var vDe=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=qf(r);e.prototype.init.apply(this,arguments),m5(r,a)},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),m5(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 m5(e,t){var r=e.cellSize,n;q(r)?n=r:n=e.cellSize=[r,r],n.length===1&&(n[1]=n[0]);var i=Z([0,1],function(a){return Sye(t,a)&&(n[a]="auto"),n[a]!=null&&n[a]!=="auto"});Rs(e,t,{type:"box",ignoreSize:i})}const gDe=vDe;var mDe=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 kn({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?mye(r,n):me(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=kT(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/ow)-Math.floor(r[0].time/ow)+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 y5(e){var t=e.calendarModel,r=e.seriesModel,n=t?t.coordinateSystem:r?r.coordinateSystem:null;return n}const SDe=xDe;function bDe(e){e.registerComponentModel(gDe),e.registerComponentView(yDe),e.registerCoordinateSystem("calendar",SDe)}function _De(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 x5(e,t){var r;return D(t,function(n){e[n]!=null&&e[n]!=="auto"&&(r=!0)}),r}function wDe(e,t,r){var n=Y({},r),i=e[t],a=r.$action||"merge";a==="merge"?i?(Oe(i,n,!0),Rs(i,n,{ignoreSize:!0}),pW(r,i),sm(r,i),sm(r,i,"shape"),sm(r,i,"style"),sm(r,i,"extra"),r.clipPath=i.clipPath):e[t]=n:a==="replace"?e[t]=n:a==="remove"&&i&&(e[t]=null)}var P9=["transition","enterFrom","leaveTo"],CDe=P9.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function sm(e,t,r){if(r&&(!e[r]&&t[r]&&(e[r]={}),e=e[r],t=t[r]),!(!e||!t))for(var n=r?P9:CDe,i=0;i=0;c--){var f=i[c],d=dr(f.id,null),h=d!=null?o.get(d):null;if(h){var p=h.parent,m=ni(p),y=p===a?{width:s,height:l}:{width:m.width,height:m.height},x={},S=kx(h,f,y,null,{hv:f.hv,boundingMode:f.bounding},x);if(!ni(h).isNew&&S){for(var _=f.transition,b={},w=0;w=0)?b[C]=A:h[C]=A}it(h,b,r,0)}else h.attr(x)}}},t.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(i){Jm(i,ni(i).option,n,r._lastGraphicModel)}),this._elMap=ve()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(jt);function _A(e){var t=ce(S5,e)?S5[e]:hI(e),r=new t({});return ni(r).type=e,r}function b5(e,t,r,n){var i=_A(r);return t.add(i),n.set(e,i),ni(i).id=e,ni(i).isNew=!0,i}function Jm(e,t,r,n){var i=e&&e.parent;i&&(e.type==="group"&&e.traverse(function(a){Jm(a,t,r,n)}),jx(e,t,n),r.removeKey(ni(e).id))}function _5(e,t,r,n){e.isGroup||D([["cursor",_i.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(i){var a=i[0];ce(t,a)?e[a]=Ee(t[a],i[1]):e[a]==null&&(e[a]=i[1])}),D(He(t),function(i){if(i.indexOf("on")===0){var a=t[i];e[i]=me(a)?a:null}}),ce(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function IDe(e){return e=Y({},e),D(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(hW),function(t){delete e[t]}),e}function PDe(e,t,r){var n=Ie(e).eventData;!e.silent&&!e.ignore&&!n&&(n=Ie(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=r.info)}function kDe(e){e.registerComponentModel(ADe),e.registerComponentView(MDe),e.registerPreprocessor(function(t){var r=t.graphic;q(r)?!r[0]||!r[0].elements?t.graphic=[{elements:r}]:t.graphic=[t.graphic[0]]:r&&!r.elements&&(t.graphic=[{elements:[r]}])})}var w5=["x","y","radius","angle","single"],DDe=["cartesian2d","polar","singleAxis"];function RDe(e){var t=e.get("coordinateSystem");return ze(DDe,t)>=0}function ss(e){return e+"Axis"}function LDe(e,t){var r=ve(),n=[],i=ve();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 k9(e){var t=e.ecModel,r={infoList:[],infoMap:ve()};return e.eachTargetAxis(function(n,i){var a=t.getComponent(ss(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 sw=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}(),EDe=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=C5(r);this.settledOption=a,this.mergeDefaultAndTheme(r,i),this._doInit(a)},t.prototype.mergeOption=function(r){var n=C5(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;D([["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=ve(),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 D(w5,function(i){var a=this.getReferringComponents(ss(i),Zve);if(a.specified){n=!0;var o=new sw;D(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 sw;if(d.add(f.componentIndex),r.set(c,d),a=!1,c==="x"||c==="y"){var h=f.getReferringComponents("grid",or).models[0];h&&D(u,function(p){f.componentIndex!==p.componentIndex&&h===p.getReferringComponents("grid",or).models[0]&&d.add(p.componentIndex)})}}}a&&D(w5,function(u){if(a){var c=i.findComponents({mainType:ss(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new sw;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");D([["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(ss(n),i))},this),r},t.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(i,a){D(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(ss(r),n)},t.prototype.setRawRange=function(r){var n=this.option,i=this.settledOption;D([["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;D(["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 yc(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)}});yc(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;yc(["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=ct(n[0]+o,n,[0,100],!0):a!=null&&(o=ct(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=VH(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 VDe(e,t,r){var n=[1/0,-1/0];yc(r,function(o){fSe(n,o.getData(),t)});var i=e.getAxisModel(),a=YU(i.axis.scale,i,n).calculate();return[a.min,a.max]}const GDe=$De;var HDe={getTargetSeries:function(e){function t(i){e.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=e.getComponent(ss(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 GDe(i,a,s,e),r.push(o.__dzAxisProxy))});var n=ve();return D(r,function(i){D(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 WDe=HDe;function UDe(e){e.registerAction("dataZoom",function(t,r){var n=LDe(r,t);D(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var A5=!1;function zP(e){A5||(A5=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,WDe),UDe(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function jDe(e){e.registerComponentModel(NDe),e.registerComponentView(FDe),zP(e)}var fi=function(){function e(){}return e}(),D9={};function xc(e,t){D9[e]=t}function R9(e){return D9[e]}var YDe=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;D(this.option.feature,function(n,i){var a=R9(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 qDe=YDe;function XDe(e,t,r){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:r.getWidth(),height:r.getHeight()},o=hr(n,a,i);iu(t.get("orient"),e,t.get("itemGap"),o.width,o.height),kx(e,n,a,i)}function L9(e,t){var r=Yf(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 ZDe=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=[];D(u,function(p,v){f.push(v)}),new xo(this._featureNames||[],f).add(d).update(d).remove(Pe(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(KDe(g))S={onclick:x.option.onclick,featureName:g};else{var _=R9(g);if(!_)return;S=new _}c[g]=S}else if(S=c[m],!S)return;S.uid=jf("toolbox-feature"),S.model=x,S.ecModel=n,S.api=i;var b=S instanceof fi;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"?mo:yo)(T[w])},S instanceof fi&&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 fi&&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={};D(_,function(C,A){var T=yv(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 I=new rt({style:{text:b[A],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null},ignore:!0});T.setTextContent(I),Wf({el:T,componentModel:r,itemName:A,formatterParamsExtra:{title:b[A]}}),T.__title=b[A],T.on("mouseover",function(){var P=y.getItemStyle(),k=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:y.get("textFill")||P.fill||P.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),T.setTextConfig({position:y.get("textPosition")||k}),I.ignore=!r.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",A])!=="emphasis"&&i.leaveEmphasis(this),I.hide()}),(p.get(["iconStatus",A])==="emphasis"?mo:yo)(T),o.add(T),T.on("click",ue(v.onclick,v,n,i,A)),w[A]=T})}XDe(o,r,i),o.add(L9(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&&!me(x)&&v){var S=x.style||(x.style={}),_=hv(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){D(this._features,function(o){o instanceof fi&&o.updateView&&o.updateView(o.model,n,i,a)})},t.prototype.remove=function(r,n){D(this._features,function(i){i instanceof fi&&i.remove&&i.remove(r,n)}),this.group.removeAll()},t.prototype.dispose=function(r,n){D(this._features,function(i){i instanceof fi&&i.dispose&&i.dispose(r,n)})},t.type="toolbox",t}(jt);function KDe(e){return e.indexOf("my")===0}const QDe=ZDe;var JDe=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(me(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}(fi);const eRe=JDe;var M5="__ec_magicType_stack__",tRe=[["line","bar"],["stack"]],rRe=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 D(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(I5[i]){var s={series:[]},l=function(f){var d=f.subType,h=f.id,p=I5[i](d,h,f,a);p&&(xe(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,or).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"}}};D(tRe,function(f){ze(f,i)>=0&&D(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}(fi),I5={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")===M5;if(e==="line"||e==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),Oe({id:t,stack:i?"":M5},n.get(["option","stack"])||{},!0)}};Ga({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});const nRe=rRe;var Yx=new Array(60).join("-"),wf=" ";function iRe(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 aRe(e){var t=[];return D(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()];D(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(wf)],c=0;c=0)return!0}var _A=new RegExp("["+wf+"]+","g");function lRe(e){for(var t=e.split(/\n+/g),r=O0(t.shift()).split(_A),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 vRe(e){var t=BP(e),r=t[t.length-1];t.length>1&&t.pop();var n={};return E9(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 gRe(e){O9(e).snapshots=null}function mRe(e){return BP(e).length}function BP(e){var t=O9(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var yRe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){gRe(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}(fi);Ga({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});const xRe=yRe;var SRe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],bRe=function(){function e(t,r,n){var i=this;this._targetInfoList=[];var a=P5(r,t);D(_Re,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=sw[n.brushType](0,a,i);n.__rangeOffset={offset:L5[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,r,n){D(t,function(i){var a=this.findTargetInfo(i,r);a&&a!==!0&&D(a.coordSyses,function(o){var s=sw[i.brushType](1,o,i.range,!0);n(i,s.values,o,r)})},this)},e.prototype.setInputRanges=function(t,r){D(t,function(n){var i=this.findTargetInfo(n,r);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=sw[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?L5[n.brushType](a.values,o.offset,wRe(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:G8(i),isTargetByCursor:W8(i,t,n.coordSysModel),getLinearBrushOtherExtent:H8(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=P5(r,t),a=0;ae[1]&&e.reverse(),e}function P5(e,t){return Bh(e,t,{includeMainTypes:SRe})}var _Re={grid:function(e,t){var r=e.xAxisModels,n=e.yAxisModels,i=e.gridModels,a=ve(),o={},s={};!r&&!n&&!i||(D(r,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),D(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),D(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=[];D(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:D5.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){D(e.geoModels,function(r){var n=r.coordinateSystem;t.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:D5.geo})})}},k5=[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}],D5={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(nu(e)),t}},sw={lineX:Pe(R5,0),lineY:Pe(R5,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=[wA([i[0],a[0]]),wA([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 R5(e,t,r,n){var i=r.getAxis(["x","y"][e]),a=wA(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 L5={lineX:Pe(E5,0),lineY:Pe(E5,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 E5(e,t,r,n){return[t[0]-n[e]*r[0],t[1]-n[e]*r[1]]}function wRe(e,t){var r=O5(e),n=O5(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 O5(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}const FP=bRe;var CA=D,CRe=Wve("toolbox-dataZoom_"),TRe=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 xP(i.getZr()),this._brushController.on("brush",ue(this._onBrush,this)).mount()),IRe(r,n,this,a,i),MRe(r,n)},t.prototype.onclick=function(r,n,i){ARe[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($P(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)}}),pRe(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=Ou(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=[];CA(r,function(i,a){n.push(we(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}(fi),ARe={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(vRe(this.ecModel))}};function $P(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 MRe(e,t){e.setIconStatus("back",mRe(t)>1?"emphasis":"normal")}function IRe(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($P(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)}Tye("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=$P(n),o=Bh(e,a);CA(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),CA(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:CRe+u+f};d[c]=f,i.push(d)}return i});const PRe=TRe;function kRe(e){e.registerComponentModel(YDe),e.registerComponentView(KDe),xc("saveAsImage",JDe),xc("magicType",rRe),xc("dataView",hRe),xc("dataZoom",PRe),xc("restore",xRe),Fe(UDe)}var DRe=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 RRe=DRe;function N9(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function z9(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 FRe(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?","+VP+n:",left"+n+",top"+n),ORe+":"+i}function N5(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;"+VP+":"+o+";":[["top",0],["left",0],[B9,o]]}function $Re(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),D(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function VRe(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=YW(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+d),t&&i&&n.push(FRe(i,r)),a&&n.push("background-color:"+a),D(["width","color","radius"],function(h){var p="border-"+h,v=fW(p),g=e.get(v);g!=null&&n.push(p+":"+g+(h==="color"?"":"px"))}),n.push($Re(c)),f!=null&&n.push("padding:"+Yf(f).join("px ")+"px"),n.join(";")+";"}function z5(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&vpe(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 GRe=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;z5(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();ei(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=ERe(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=NRe+VRe(t,!this._firstShow,this._longHide)+N5(a[0],a[1],!0)+("border-color:"+xu(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"&&!N9(n)&&(s=BRe(n,i,a)),oe(t))o.innerHTML=t+s;else if(t){o.innerHTML="",q(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=$5(a,i);this._ticket="";var s=a.dataByCoordSys,l=KRe(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=jRe;c.x=a.x,c.y=a.y,c.update(),Ie(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=w9(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($5(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=Gd([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;Ul(i,function(u){if(Ie(u).dataIndex!=null)return s=u,!0;if(Ie(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=ue(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=Gd([n.tooltipOption],a),l=this._renderMode,u=[],c=xr("section",{blocks:[],noHeader:!0}),f=[],d=new jb;D(r,function(y){D(y.dataByAxis,function(x){var S=i.getComponent(x.axisDim+"Axis",x.axisIndex),_=x.value;if(!(!S||_==null)){var b=x9(_,S.axis,i,x.seriesDataIndices,x.valueLabelOpt),w=xr("section",{header:b,noHeader:!Bi(b),sortBlocks:!0,blocks:[]});c.blocks.push(w),D(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=HI(S.axis,{value:_}),M.axisValueLabel=b,M.marker=d.makeTooltipMarker("item",xu(M.color),l);var I=AO(A.formatTooltip(T,!0,null)),P=I.frag;if(P){var k=Gd([A],a).get("valueFormatter");w.blocks.push(k?Y({valueFormatter:k},P):P)}I.text&&f.push(I.text),u.push(M)}})}})}),c.blocks.reverse(),f.reverse();var h=n.position,p=s.get("order"),v=RO(c,d,l,p,i.get("useUTC"),s.get("textStyle"));v&&f.unshift(v);var g=l==="richText"?` +`),meta:t.meta}}function O0(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function lRe(e){var t=e.slice(0,e.indexOf(` +`));if(t.indexOf(wf)>=0)return!0}var wA=new RegExp("["+wf+"]+","g");function uRe(e){for(var t=e.split(/\n+/g),r=O0(t.shift()).split(wA),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 gRe(e){var t=BP(e),r=t[t.length-1];t.length>1&&t.pop();var n={};return E9(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 mRe(e){O9(e).snapshots=null}function yRe(e){return BP(e).length}function BP(e){var t=O9(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var xRe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){mRe(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}(fi);Ga({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});const SRe=xRe;var bRe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],_Re=function(){function e(t,r,n){var i=this;this._targetInfoList=[];var a=P5(r,t);D(wRe,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=lw[n.brushType](0,a,i);n.__rangeOffset={offset:L5[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,r,n){D(t,function(i){var a=this.findTargetInfo(i,r);a&&a!==!0&&D(a.coordSyses,function(o){var s=lw[i.brushType](1,o,i.range,!0);n(i,s.values,o,r)})},this)},e.prototype.setInputRanges=function(t,r){D(t,function(n){var i=this.findTargetInfo(n,r);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=lw[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?L5[n.brushType](a.values,o.offset,CRe(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:G8(i),isTargetByCursor:W8(i,t,n.coordSysModel),getLinearBrushOtherExtent:H8(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=P5(r,t),a=0;ae[1]&&e.reverse(),e}function P5(e,t){return Bh(e,t,{includeMainTypes:bRe})}var wRe={grid:function(e,t){var r=e.xAxisModels,n=e.yAxisModels,i=e.gridModels,a=ve(),o={},s={};!r&&!n&&!i||(D(r,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),D(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),D(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=[];D(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:D5.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){D(e.geoModels,function(r){var n=r.coordinateSystem;t.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:D5.geo})})}},k5=[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}],D5={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(nu(e)),t}},lw={lineX:Pe(R5,0),lineY:Pe(R5,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=[CA([i[0],a[0]]),CA([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 R5(e,t,r,n){var i=r.getAxis(["x","y"][e]),a=CA(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 L5={lineX:Pe(E5,0),lineY:Pe(E5,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 E5(e,t,r,n){return[t[0]-n[e]*r[0],t[1]-n[e]*r[1]]}function CRe(e,t){var r=O5(e),n=O5(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 O5(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}const FP=_Re;var TA=D,TRe=Uve("toolbox-dataZoom_"),ARe=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 xP(i.getZr()),this._brushController.on("brush",ue(this._onBrush,this)).mount()),PRe(r,n,this,a,i),IRe(r,n)},t.prototype.onclick=function(r,n,i){MRe[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($P(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)}}),vRe(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=Ou(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=[];TA(r,function(i,a){n.push(we(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}(fi),MRe={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(gRe(this.ecModel))}};function $P(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 IRe(e,t){e.setIconStatus("back",yRe(t)>1?"emphasis":"normal")}function PRe(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($P(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)}Aye("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=$P(n),o=Bh(e,a);TA(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),TA(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:TRe+u+f};d[c]=f,i.push(d)}return i});const kRe=ARe;function DRe(e){e.registerComponentModel(qDe),e.registerComponentView(QDe),xc("saveAsImage",eRe),xc("magicType",nRe),xc("dataView",pRe),xc("dataZoom",kRe),xc("restore",SRe),Fe(jDe)}var RRe=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 LRe=RRe;function N9(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function z9(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 $Re(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?","+VP+n:",left"+n+",top"+n),NRe+":"+i}function N5(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;"+VP+":"+o+";":[["top",0],["left",0],[B9,o]]}function VRe(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),D(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function GRe(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=YW(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+d),t&&i&&n.push($Re(i,r)),a&&n.push("background-color:"+a),D(["width","color","radius"],function(h){var p="border-"+h,v=fW(p),g=e.get(v);g!=null&&n.push(p+":"+g+(h==="color"?"":"px"))}),n.push(VRe(c)),f!=null&&n.push("padding:"+Yf(f).join("px ")+"px"),n.join(";")+";"}function z5(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&gpe(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 HRe=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;z5(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();ei(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=ORe(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=zRe+GRe(t,!this._firstShow,this._longHide)+N5(a[0],a[1],!0)+("border-color:"+xu(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"&&!N9(n)&&(s=FRe(n,i,a)),oe(t))o.innerHTML=t+s;else if(t){o.innerHTML="",q(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=$5(a,i);this._ticket="";var s=a.dataByCoordSys,l=QRe(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=YRe;c.x=a.x,c.y=a.y,c.update(),Ie(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=w9(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($5(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=Gd([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;Ul(i,function(u){if(Ie(u).dataIndex!=null)return s=u,!0;if(Ie(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=ue(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=Gd([n.tooltipOption],a),l=this._renderMode,u=[],c=xr("section",{blocks:[],noHeader:!0}),f=[],d=new Yb;D(r,function(y){D(y.dataByAxis,function(x){var S=i.getComponent(x.axisDim+"Axis",x.axisIndex),_=x.value;if(!(!S||_==null)){var b=x9(_,S.axis,i,x.seriesDataIndices,x.valueLabelOpt),w=xr("section",{header:b,noHeader:!Fi(b),sortBlocks:!0,blocks:[]});c.blocks.push(w),D(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=HI(S.axis,{value:_}),M.axisValueLabel=b,M.marker=d.makeTooltipMarker("item",xu(M.color),l);var I=AO(A.formatTooltip(T,!0,null)),P=I.frag;if(P){var k=Gd([A],a).get("valueFormatter");w.blocks.push(k?Y({valueFormatter:k},P):P)}I.text&&f.push(I.text),u.push(M)}})}})}),c.blocks.reverse(),f.reverse();var h=n.position,p=s.get("order"),v=RO(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=Ie(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=Gd([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 jb;m.marker=y.makeTooltipMarker("item",xu(m.color),h);var x=AO(u.formatTooltip(c,!1,f)),S=v.get("order"),_=v.get("valueFormatter"),b=x.frag,w=b?RO(_?Y({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=Ie(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=Gd(u,this._tooltipModel,f?{position:f}:null),h=d.get("content"),p=Math.random()+"",v=new jb;this._showOrMove(d,function(){var g=we(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=q(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=d,y&&(h=Cx(m.axisValue,h,g)),h=dW(h,i,!0)}else if(me(d)){var x=ue(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"||q(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!q(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),me(n)&&(n=n([i,a],s,o.el,p,{viewSize:[u,c],contentSize:f.slice()})),q(n))i=ne(n[0],u),a=ne(n[1],c);else if(Se(n)){var v=n;v.width=f[0],v.height=f[1];var g=hr(v,{width:u,height:c});i=g.x,a=g.y,d=null,h=null}else if(oe(n)&&l){var m=ZRe(n,p,f,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=qRe(i,a,o,u,c,d?null:20,h?null:20);i=m[0],a=m[1]}if(d&&(i-=V5(d)?f[0]/2:d==="right"?f[0]:0),h&&(a-=V5(h)?f[1]/2:h==="bottom"?f[1]:0),N9(r)){var m=XRe(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&&D(i,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&D(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&&D(v,function(m,y){var x=g[y];o=o&&m.seriesIndex===x.seriesIndex&&m.dataIndex===x.dataIndex}),a&&D(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()||(zp(this,"_updatePosition"),this._tooltipContent.dispose(),xA("itemTooltip",n))},t.type="tooltip",t}(jt);function Gd(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 $5(e,t){return e.dispatchAction||ue(t.dispatchAction,t)}function qRe(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 XRe(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 ZRe(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 V5(e){return e==="center"||e==="middle"}function KRe(e,t,r){var n=eI(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=Ie(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const QRe=YRe;function JRe(e){Fe(Rv),e.registerComponentModel(RRe),e.registerComponentView(QRe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},rr),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},rr)}var eLe=["rect","polygon","keep","clear"];function tLe(e,t){var r=pt(e?e.brush:[]);if(r.length){var n=[];D(r,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var i=e&&e.toolbox;q(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),rLe(s),t&&!s.length&&s.push.apply(s,eLe)}}function rLe(e){var t={};D(e,function(r){t[r]=1}),e.length=0,D(t,function(r,n){e.push(n)})}var G5=D;function H5(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function TA(e,t,r){var n={};return G5(t,function(a){var o=n[a]=i();G5(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=we(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 $9(e,t,r){var n;D(r,function(i){t.hasOwnProperty(i)&&H5(t[i])&&(n=!0)}),n&&D(r,function(i){t.hasOwnProperty(i)&&H5(t[i])?e[i]=we(t[i]):delete e[i]})}function nLe(e,t,r,n,i,a){var o={};D(e,function(f){var d=Or.prepareVisualTypes(t[f]);o[f]=d});var s;function l(f){return DI(r,s,f)}function u(f,d){nU(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&&q5(t)}};function q5(e){return new Ne(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var fLe=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 xP(n.getZr())).on("brush",ue(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){V9(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:we(i),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:we(i),$from:n})},t.type="brush",t}(jt);const dLe=fLe;var hLe="#ddd",pLe=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&&$9(i,r,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:hLe},a.hasOwnProperty("liftZ")||(a.liftZ=5)},t.prototype.setAreas=function(r){r&&(this.areas=Z(r,function(n){return X5(this.option,n)},this))},t.prototype.setBrushOption=function(r){this.brushOption=X5(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 X5(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 vLe=pLe;var gLe=["rect","polygon","lineX","lineY","keep","clear"],mLe=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,D(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 D(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:gLe.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}(fi);const yLe=mLe;function xLe(e){e.registerComponentView(dLe),e.registerComponentModel(vLe),e.registerPreprocessor(tLe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,oLe),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),xc("brush",yLe)}var SLe=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),bLe=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(){u0(p,"_"+r.get("target"))}),v&&h.on("click",function(){u0(v,"_"+r.get("subtarget"))}),Ie(c).eventData=Ie(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=hr(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}(jt);function _Le(e){e.registerComponentModel(SLe),e.registerComponentView(bLe)}var wLe=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=[],D(n,function(u,c){var f=dr(Vf(u),""),d;Se(u)?(d=we(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 sn([{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 Z5=wLe;var G9=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=Hs(Z5.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}(Z5);lr(G9,AI.prototype);const CLe=G9;var TLe=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}(jt);const ALe=TLe;var MLe=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}(Ki);const ILe=MLe;var uw=Math.PI,K5=Je(),PLe=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 xr("nameValue",{noName:!0,value:c})},D(["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=DLe(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:uw/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*uw/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=bi(),l=o.x,u=o.y+o.height;Na(s,s,[-l,-u]),Pu(s,s,-uw/2),Na(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=kLe(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 ILe("value",o,r.axisExtent,a);return l.model=n,l},t.prototype._createGroup=function(r){var n=this[r]=new Ae;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:Y({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:xe({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=[],D(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:ue(o._changeTimeline,o,u.value)},g=Q5(f,d,n,v);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),ru(g);var m=Ie(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=[],D(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:ue(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),ru(m),K5(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",ue(this._changeTimeline,this,f?"-":"+")),d(r.prevBtnPosition,"prev",ue(this._changeTimeline,this,f?"+":"-")),d(r.playPosition,c?"stop":"play",ue(this._handlePlayClick,this,!c),!0);function d(h,p,v,g){if(h){var m=qi(Ee(a.get(["controlStyle",p+"BtnSize"]),o),o),y=[0,-m/2,m,m],x=RLe(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),ru(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=ue(u._handlePointerDrag,u),f.ondragend=ue(u._handlePointerDragend,u),J5(f,u._progressLine,s,i,a,!0)},onUpdate:function(f){J5(f,u._progressLine,s,i,a)}};this._currentPointer=Q5(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=vi(a.getExtent().slice());i>o[1]&&(i=o[1]),i=0&&(o[a]=+o[a].toFixed(d)),[o,f]}var cw={min:Pe(cm,"min"),max:Pe(cm,"max"),average:Pe(cm,"average"),median:Pe(cm,"median")};function Zp(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,i=n&&n.dimensions;if(!$Le(t)&&!q(t.coord)&&q(i)){var a=W9(t,r,n,e);if(t=we(t),t.type&&cw[t.type]&&a.baseAxis&&a.valueAxis){var o=ze(i,a.baseAxis.dim),s=ze(i,a.valueAxis.dim),l=cw[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||!q(i))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)cw[u[c]]&&(u[c]=HP(r,r.mapDimension(i[c]),u[c]));return t}}function W9(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(VLe(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 VLe(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function Kp(e,t){return e&&e.containData&&t.coord&&!MA(t)?e.containData(t.coord):!0}function GLe(e,t,r){return e&&e.containZone&&t.coord&&r.coord&&!MA(t)&&!MA(r)?e.containZone(t.coord,r.coord):!0}function U9(e,t){return e?function(r,n,i,a){var o=a<2?r.coord&&r.coord[a]:r.value;return Ss(o,t[a])}:function(r,n,i,a){return Ss(r.value,t[a])}}function HP(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 fw=Je(),HLe=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=ve()},t.prototype.render=function(r,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){fw(s).keep=!1}),n.eachSeries(function(s){var l=zs.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!fw(s).keep&&a.group.remove(s.group)})},t.prototype.markKeep=function(r){fw(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var i=this;D(r,function(a){var o=zs.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?x6(l):oI(l))})}})},t.type="marker",t}(jt);const WP=HLe;function tF(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 WLe=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=zs.getMarkerModelFromSeries(a,"markPoint");o&&(tF(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 Av),f=ULe(o,r,n);n.setData(f),tF(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(me(p)||me(v)||me(g)||me(m)){var x=n.getRawValue(d),S=n.getDataParams(d);me(p)&&(p=p(x,S)),me(v)&&(v=v(x,S)),me(g)&&(g=g(x,S)),me(m)&&(m=m(x,S))}var _=h.getModel("itemStyle").getItemStyle(),b=bv(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){Ie(h).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markPoint",t}(WP);function ULe(e,t,r){var n;e?n=Z(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return Y(Y({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new sn(n,r),a=Z(r.get("data"),Pe(Zp,t));e&&(a=ft(a,Pe(Kp,e)));var o=U9(!!e,n);return i.initData(a,null,o),i}const jLe=WLe;function YLe(e){e.registerComponentModel(FLe),e.registerComponentView(jLe),e.registerPreprocessor(function(t){GP(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var qLe=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}(zs);const XLe=qLe;var fm=Je(),ZLe=function(e,t,r,n){var i=e.getData(),a;if(q(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=W9(n,i,t,e);s=u.valueAxis;var c=DU(i,u.valueDataDim);l=HP(i,c,o)}var f=s.dim==="x"?0:1,d=1-f,h=we(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=[Zp(e,a[0]),Zp(e,a[1]),Y({},a[2])];return g[2].type=g[2].type||null,Oe(g[2],g[0]),Oe(g[2],g[1]),g};function N0(e){return!isNaN(e)&&!isFinite(e)}function rF(e,t,r,n){var i=1-e,a=n.dimensions[e];return N0(t[i])&&N0(r[i])&&t[e]===r[e]&&n.getAxis(a).containData(t[e])}function KLe(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(rF(1,r,n,e)||rF(0,r,n,e)))return!0}return Kp(e,t[0])&&Kp(e,t[1])}function dw(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(Lu(a,"cartesian2d")){var h=a.getAxis("x"),p=a.getAxis("y"),c=a.dimensions;N0(e.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[r?0:1]):N0(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 QLe=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=zs.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=fm(o).from,u=fm(o).to;l.each(function(c){dw(l,c,!0,a,i),dw(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 hP);this.group.add(c.group);var f=JLe(o,r,n),d=f.from,h=f.to,p=f.line;fm(n).from=d,fm(n).to=h,n.setData(p);var v=n.get("symbol"),g=n.get("symbolSize"),m=n.get("symbolRotate"),y=n.get("symbolOffset");q(v)||(v=[v,v]),q(g)||(g=[g,g]),q(m)||(m=[m,m]),q(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){Ie(S).dataModel=n,S.traverse(function(_){Ie(_).dataModel=n})});function x(S,_,b){var w=S.getItemModel(_);dw(S,_,b,r,a);var C=w.getModel("itemStyle").getItemStyle();C.fill==null&&(C.fill=bv(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}(WP);function JLe(e,t,r){var n;e?n=Z(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return Y(Y({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new sn(n,r),a=new sn(n,r),o=new sn([],r),s=Z(r.get("data"),Pe(ZLe,t,e,r));e&&(s=ft(s,Pe(KLe,e)));var l=U9(!!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 eEe=QLe;function tEe(e){e.registerComponentModel(XLe),e.registerComponentView(eEe),e.registerPreprocessor(function(t){GP(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var rEe=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}(zs);const nEe=rEe;var dm=Je(),iEe=function(e,t,r,n){var i=n[0],a=n[1];if(!(!i||!a)){var o=Zp(e,i),s=Zp(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=G2([{},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 z0(e){return!isNaN(e)&&!isFinite(e)}function nF(e,t,r,n){var i=1-e;return z0(t[i])&&z0(r[i])}function aEe(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 Lu(e,"cartesian2d")?r&&n&&(nF(1,r,n)||nF(0,r,n))?!0:GLe(e,i,a):Kp(e,i)||Kp(e,a)}function iF(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(Lu(a,"cartesian2d")){var y=a.getAxis("x"),x=a.getAxis("y"),v=e.get(r[0],t),g=e.get(r[1],t);z0(v)?s[0]=y.toGlobalCoord(y.getExtent()[r[0]==="x0"?0:1]):z0(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 aF=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],oEe=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=zs.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Z(aF,function(f){return iF(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 Ae});this.group.add(c.group),this.markKeep(c);var f=sEe(o,r,n);n.setData(f),f.each(function(d){var h=Z(aF,function(C){return iF(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))];vi(y),vi(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 IA=fEe;var uc=Pe,PA=D,hm=Ae,dEe=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 hm),this.group.add(this._selectorGroup=new hm),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=hr(c,f,d),p=this.layoutInner(r,o,h,a,l,u),v=hr(xe({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=L9(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=ve(),f=n.get("selectedMode"),d=[];i.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),PA(n.getData(),function(h,p){var v=h.get("name");if(!this.newlineDisabled&&(v===""||v===` -`)){var g=new hm;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",uc(oF,v,null,a,d)).on("mouseover",uc(kA,m.name,null,a,d)).on("mouseout",uc(DA,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"),I=$n(T.fill);I&&I[3]===0&&(I[3]=.2,T=Y(Y({},T),{fill:io(I,"rgba")}));var P=this._createItem(w,v,p,h,n,r,{},T,M,f,a);P.on("click",uc(oF,null,v,a,d)).on("mouseover",uc(kA,null,v,a,d)).on("mouseout",uc(DA,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();PA(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}),ru(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=hEe(c,a,l,u,h,g,d),_=new hm,b=a.getModel("textStyle");if(me(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(pEe({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??""):me(T)&&(M=T(n));var I=g?b.getTextColor():a.get("inactiveColor");_.add(new rt({style:_t(b,{text:M,x:C,y:v/2,fill:I,align:A,verticalAlign:"middle"},{inheritColor:I})}));var P=new Qe({shape:_.getBoundingRect(),invisible:!0}),k=a.getModel("tooltip");return k.get("show")&&Wf({el:P,componentModel:o,itemName:n,itemTooltipOption:k.option}),_.add(P),_.eachChild(function(R){R.silent=!0}),P.silent=!f,this.getContentGroup().add(_),ru(_),_.__legendDataIndex=i,_},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();iu(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){iu("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}(jt);function hEe(e,t,r,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),PA(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:mf(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 pEe(e){var t=e.icon||"roundRect",r=sr(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 oF(e,t,r,n){DA(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),kA(e,t,r,n)}function j9(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&&it(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;D(["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=hw[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}(Y9);const SEe=xEe;function bEe(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 _Ee(e){Fe(q9),e.registerComponentModel(yEe),e.registerComponentView(SEe),bEe(e)}function wEe(e){Fe(q9),Fe(_Ee)}var CEe=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=Hs(Xp.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Xp);const TEe=CEe;var UP=Je();function AEe(e,t,r){UP(e).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=r)})}function MEe(e,t){for(var r=UP(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 REe(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=UP(r),i=n.coordSysRecordMap||(n.coordSysRecordMap=ve());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=k9(a);D(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,IEe(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ve());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){X9(i,a);return}var c=DEe(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),Qf(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var LEe=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(),AEe(i,r,{pan:ue(vw.pan,this),zoom:ue(vw.zoom,this),scrollMove:ue(vw.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){MEe(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(NP),vw={zoom:function(e,t,r,n){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=gw[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(Ou(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:uF(function(e,t,r,n,i,a){var o=gw[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:uF(function(e,t,r,n,i,a){var o=gw[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,r);return o.signal*(e[1]-e[0])*a.scrollDelta})};function uF(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(Ou(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var gw={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 EEe=LEe;function Z9(e){zP(e),e.registerComponentModel(TEe),e.registerComponentView(EEe),REe(e)}var OEe=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=Hs(Xp.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}(Xp);const NEe=OEe;var Ud=Qe,cF=7,zEe=1,mw=30,BEe=7,jd="horizontal",fF="vertical",FEe=5,$Ee=["line","bar","candlestick","scatter"],VEe={easing:"cubicOut",duration:100,delay:0},GEe=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=ue(this._onBrush,this),this._onBrushEnd=ue(this._onBrushEnd,this)},t.prototype.render=function(r,n,i,a){if(e.prototype.render.apply(this,arguments),Qf(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(){zp(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 Ae;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?BEe:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===jd?{right:s.width-o.x-o.width,top:s.height-mw-cF-a,width:o.width,height:mw}:{right:cF,top:o.y,width:mw,height:o.height},u=qf(r.option);D(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=hr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===fF&&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===jd&&!o?{scaleY:l?1:-1,scaleX:1}:i===jd&&o?{scaleY:l?1:-1,scaleX:-1}:i===fF&&!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 Ud({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new Ud({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:ue(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==="",I=M?0:ct(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,I]),g.push([y,I]),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 Ae,I=new Pn({shape:{points:u},segmentIgnoreThreshold:1,style:T.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),P=new kn({shape:{points:c},segmentIgnoreThreshold:1,style:T.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(I),M.add(P),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();D(l,function(u){if(!i&&!(n!==!0&&ze($Ee,u.get("type"))<0)){var c=a.getComponent(ss(o),s).axis,f=HEe(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 Ud({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new Ud({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:zEe,fill:"rgba(0,0,0,0)"}})),D([0,1],function(x){var S=l.get("handleIcon");!d0[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var _=sr(S,-1,0,2,2,null,!0);_.attr({cursor:dF(this._orient),draggable:!0,drift:ue(this._onDragMove,this,x),ondragend:ue(this._onDragEnd,this),onmouseover:ue(this._showDataInfo,this,!0),onmouseout:ue(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(),ru(_);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=sr(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:dF(this._orient),drift:ue(this._onDragMove,this,"all"),ondragstart:ue(this._showDataInfo,this,!0),ondragend:ue(this._onDragEnd,this),onmouseover:ue(this._showDataInfo,this,!0),onmouseout:ue(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[ct(r[0],[0,100],n,!0),ct(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];Ou(n,a,o,i.get("zoomLock")?"all":r,s.minSpan!=null?ct(s.minSpan,l,o,!0):null,s.maxSpan!=null?ct(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=vi([ct(a[0],o,l,!0),ct(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=vi(i.slice()),o=this._size;D([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=vi([ct(i.x,o,s,!0),ct(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&&(vo(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 Ud({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?VEe:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=k9(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}(NP);function HEe(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function dF(e){return e==="vertical"?"ns-resize":"ew-resize"}const WEe=GEe;function K9(e){e.registerComponentModel(NEe),e.registerComponentView(WEe),zP(e)}function UEe(e){Fe(Z9),Fe(K9)}var jEe={get:function(e,t,r){var n=we((YEe[e]||{})[t]);return r&&q(n)?n[n.length-1]:n}},YEe={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 Q9=jEe;var hF=Or.mapVisual,qEe=Or.eachVisual,XEe=q,pF=D,ZEe=vi,KEe=ct,QEe=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&&$9(i,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(r){var n=this.stateList;r=ue(r,this),this.controllerVisuals=TA(this.option.controller,n,r),this.targetVisuals=TA(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){D(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||["<",">"],q(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(me(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=ZEe([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){XEe(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]={},pF(p,function(g,m){if(Or.isValidType(m)){var y=Q9.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";pF(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&&we(d)||(s?g:[g])),x.symbolSize==null&&(x.symbolSize=h&&we(h)||(s?y[0]:[y[0],y[0]])),x.symbol=hF(x.symbol,function(b){return b==="none"?g:b});var S=x.symbolSize;if(S!=null){var _=-1/0;qEe(S,function(b){b>_&&(_=b)}),x.symbolSize=hF(S,function(b){return KEe(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 B0=QEe;var vF=[20,140],JEe=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]=vF[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=vF[1])},t.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):q(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),D(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},t.prototype.getSelected=function(){var r=this.getExtent(),n=vi((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=gF(this,"outOfRange",this.getExtent()),i=gF(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 Ae(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();rOe([0,1],function(c){var f=o[c];f.setStyle("fill",n.handlesColor[c]),f.y=r[c];var d=aa(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=Wi(i.handleLabelPoints[c],nu(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=aa(r,s,u,!0),g=l[0]-p/2,m={x:f.x,y:f.y};f.y=v,f.x=g;var y=Wi(c.indicatorLabelPoint,nu(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||SF(i))&&(h=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var p=Yve(d,h);this._dispatchHighDown("downplay",ey(p[0],i)),this._dispatchHighDown("highlight",ey(p[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(Ul(r.target,function(l){var u=Ie(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 fOe(e,t,r,n){for(var i=t.targetVisuals[n],a=Or.prepareVisualTypes(i),o={color:bv(e.getData(),"color")},s=0,l=a.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(lOe,uOe),D(cOe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(dOe))}function r7(e){e.registerComponentModel(eOe),e.registerComponentView(sOe),t7(e)}var hOe=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=[],pOe[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=we(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Z(this._pieceList,function(l){return l=we(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var r=this.option,n={},i=Or.listVisualTypes(),a=this.isCategory();D(r.pieces,function(s){D(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),D(n,function(s,l){var u=!1;D(this.stateList,function(c){u=u||o(r,c,l)||o(r.target,c,l)},this),!u&&D(this.stateList,function(c){(r[c]||(r[c]={}))[l]=Q9.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,D(a,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;D(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=we(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 D(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=Hs(B0.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}(B0),pOe={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 CF(e,t){var r=e.inverse;(e.orient==="vertical"?!r:r)&&t.reverse()}const vOe=hOe;var 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.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),D(c.viewPieceList,function(h){var p=h.piece,v=new Ae;v.onclick=ue(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),iu(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:ey(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return e7(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 Ae,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(sr(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=we(i.selected),s=n.getSelectedMapKey(r);a==="single"||a===!0?(o[s]=!0,D(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(J9);const mOe=gOe;function n7(e){e.registerComponentModel(vOe),e.registerComponentView(mOe),t7(e)}function yOe(e){Fe(r7),Fe(n7)}var xOe={label:{enabled:!0},decal:{show:!1}},TF=Je(),SOe={};function bOe(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=we(xOe);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=ve();e.eachSeries(function(d){if(!d.isColorBySeries()){var h=f.get(d.type);h||(h={},f.set(d.type,h)),TF(d).scope=h}}),e.eachRawSeries(function(d){if(e.isSeriesFiltered(d))return;if(me(d.enableAriaDecal)){d.enableAriaDecal();return}var h=d.getData();if(d.isColorBySeries()){var y=RT(d.ecModel,d.name,SOe,e.getSeriesCount()),x=h.getVisual("decal");h.setVisual("decal",S(x,y))}else{var p=d.getRawData(),v={},g=TF(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=RT(d.ecModel,w,g,m),A=h.getItemVisual(b,"decal");h.setItemVisual(b,"decal",S(A,C))})}function S(_,b){var w=_?Y(Y({},b),_):b;return w.dirty=!0,w}})}}function a(){var u=e.getLocaleModel().get("aria"),c=r.getModel("label");if(c.option=xe(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",I]):c.get(["series","single",I]),T=o(T,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var P=C.getData();if(P.count()>h){var k=c.get(["data","partialData"]);T+=o(k,{displayCnt:h})}else T+=c.get(["data","allData"]);for(var R=c.get(["data","separator","middle"]),z=c.get(["data","separator","end"]),$=[],N=0;N":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},COe=function(){function e(t){var r=this._condVal=oe(t)?new RegExp(t):ipe(t)?t:null;if(r==null){var n="";st(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}(),TOe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),AOe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r2&&n.push(i),i=[P,k]}function c(P,k,R,z){Nc(P,R)&&Nc(k,z)||i.push(P,k,R,z,R,z)}function f(P,k,R,z,$,N){var V=Math.abs(k-P),L=Math.tan(V/4)*4/3,G=kC:M2&&n.push(i),n}function LA(e,t,r,n,i,a,o,s,l,u){if(Nc(e,r)&&Nc(t,n)&&Nc(i,o)&&Nc(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=[];ks(e,r,i,o,.5,A),ks(t,n,a,s,.5,T),LA(A[0],T[0],A[1],T[1],A[2],T[2],A[3],T[3],l,u),LA(A[4],T[4],A[5],T[5],A[6],T[6],A[7],T[7],l,u)}function $Oe(e,t){var r=RA(e),n=[];t=t||1;for(var i=0;i0)for(var u=0;uMath.abs(u),f=a7([l,u],c?0:1,t),d=(c?s:u)/f.length,h=0;hi,o=a7([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 HOe(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 fc(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function WOe(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),WOe(t,u,c)}function F0(e,t,r,n){if(r===1)n.push(t);else{var i=Math.floor(r/2),a=e(t);F0(e,a[0],i,n),F0(e,a[1],r-i,n)}return n}function UOe(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 G0(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:eNe(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 l7(e){return qOe(e.path,e.count)}function EA(){return{fromIndividuals:[],toIndividuals:[],count:0}}function tNe(e,t,r){var n=[];function i(_){for(var b=0;b<_.length;b++){var w=_[b];$0(w)?i(w.childrenRef()):w instanceof $e&&n.push(w)}}i(e);var a=n.length;if(!a)return EA();var o=r.dividePath||l7,s=o({path:t,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),EA();n=G0(n),s=G0(s);for(var l=r.done,u=r.during,c=r.individualDelay,f=new Ja,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 nNe={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;EF(e)&&(u=e,c=t),EF(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($0(C))f({many:[C],one:A},!0,x,S,!0);else{var T=s?xe({delay:s(x,S)},l):l;YP(C,A,T),a(C,A,C,A,T)}}else for(var M=xe({dividePath:nNe[r],individualDelay:s&&function($,N,V,L){return s($+x,S)}},l),I=y?tNe(b,w,M):rNe(w,b,M),P=I.fromIndividuals,k=I.toIndividuals,R=P.length,z=0;zt.length,h=u?OF(c,u):OF(d?t:e,[d?e:t]),p=0,v=0;vu7))for(var i=n.getIndices(),a=aNe(n),o=0;o0&&S.group.traverse(function(b){b instanceof $e&&!b.animators.length&&b.animateFrom({style:{opacity:0}},_)})})}function zF(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function BF(e){return q(e)?e.sort().join(","):e}function Yo(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function lNe(e,t){var r=ve(),n=ve(),i=ve();return D(e.oldSeries,function(a,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=zF(a),c=BF(u);n.set(c,{dataGroupId:s,data:l}),q(u)&&D(u,function(f){i.set(f,{key:c,dataGroupId:s,data:l})})}),D(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=zF(a),u=BF(l),c=n.get(u);if(c)r.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Yo(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Yo(s),data:s}]});else if(q(l)){var f=[];D(l,function(p){var v=n.get(p);v.data&&f.push({dataGroupId:v.dataGroupId,divide:Yo(v.data),data:v.data})}),f.length&&r.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:Yo(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:Yo(d.data)}],newSeries:[]},r.set(d.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Yo(s)})}}}}),r}function FF(e,t){for(var r=0;r=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Yo(t.oldData[s]),dim:o.dimension})}),D(pt(e.to),function(o){var s=FF(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Yo(l),dim:o.dimension})}}),i.length>0&&a.length>0&&c7(i,a,n)}function cNe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){D(pt(n.seriesTransition),function(i){D(pt(i.to),function(a){for(var o=n.updatedSeries,s=0;s({legend:{icon:"circle",inactiveColor:Xh,textStyle:{color:Xh}},title:{text:t,x:10,y:10},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)=>` +`:"
",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=Ie(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=Gd([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 Yb;m.marker=y.makeTooltipMarker("item",xu(m.color),h);var x=AO(u.formatTooltip(c,!1,f)),S=v.get("order"),_=v.get("valueFormatter"),b=x.frag,w=b?RO(_?Y({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=Ie(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=Gd(u,this._tooltipModel,f?{position:f}:null),h=d.get("content"),p=Math.random()+"",v=new Yb;this._showOrMove(d,function(){var g=we(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=q(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=d,y&&(h=Tx(m.axisValue,h,g)),h=dW(h,i,!0)}else if(me(d)){var x=ue(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"||q(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!q(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),me(n)&&(n=n([i,a],s,o.el,p,{viewSize:[u,c],contentSize:f.slice()})),q(n))i=ne(n[0],u),a=ne(n[1],c);else if(Se(n)){var v=n;v.width=f[0],v.height=f[1];var g=hr(v,{width:u,height:c});i=g.x,a=g.y,d=null,h=null}else if(oe(n)&&l){var m=KRe(n,p,f,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=XRe(i,a,o,u,c,d?null:20,h?null:20);i=m[0],a=m[1]}if(d&&(i-=V5(d)?f[0]/2:d==="right"?f[0]:0),h&&(a-=V5(h)?f[1]/2:h==="bottom"?f[1]:0),N9(r)){var m=ZRe(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&&D(i,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&D(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&&D(v,function(m,y){var x=g[y];o=o&&m.seriesIndex===x.seriesIndex&&m.dataIndex===x.dataIndex}),a&&D(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()||(zp(this,"_updatePosition"),this._tooltipContent.dispose(),SA("itemTooltip",n))},t.type="tooltip",t}(jt);function Gd(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 $5(e,t){return e.dispatchAction||ue(t.dispatchAction,t)}function XRe(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 ZRe(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 KRe(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 V5(e){return e==="center"||e==="middle"}function QRe(e,t,r){var n=eI(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=Ie(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const JRe=qRe;function eLe(e){Fe(Rv),e.registerComponentModel(LRe),e.registerComponentView(JRe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},rr),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},rr)}var tLe=["rect","polygon","keep","clear"];function rLe(e,t){var r=pt(e?e.brush:[]);if(r.length){var n=[];D(r,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var i=e&&e.toolbox;q(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),nLe(s),t&&!s.length&&s.push.apply(s,tLe)}}function nLe(e){var t={};D(e,function(r){t[r]=1}),e.length=0,D(t,function(r,n){e.push(n)})}var G5=D;function H5(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function AA(e,t,r){var n={};return G5(t,function(a){var o=n[a]=i();G5(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=we(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 $9(e,t,r){var n;D(r,function(i){t.hasOwnProperty(i)&&H5(t[i])&&(n=!0)}),n&&D(r,function(i){t.hasOwnProperty(i)&&H5(t[i])?e[i]=we(t[i]):delete e[i]})}function iLe(e,t,r,n,i,a){var o={};D(e,function(f){var d=Or.prepareVisualTypes(t[f]);o[f]=d});var s;function l(f){return DI(r,s,f)}function u(f,d){nU(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&&q5(t)}};function q5(e){return new Ne(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var dLe=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 xP(n.getZr())).on("brush",ue(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){V9(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:we(i),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:we(i),$from:n})},t.type="brush",t}(jt);const hLe=dLe;var pLe="#ddd",vLe=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&&$9(i,r,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:pLe},a.hasOwnProperty("liftZ")||(a.liftZ=5)},t.prototype.setAreas=function(r){r&&(this.areas=Z(r,function(n){return X5(this.option,n)},this))},t.prototype.setBrushOption=function(r){this.brushOption=X5(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 X5(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 gLe=vLe;var mLe=["rect","polygon","lineX","lineY","keep","clear"],yLe=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,D(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 D(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:mLe.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}(fi);const xLe=yLe;function SLe(e){e.registerComponentView(hLe),e.registerComponentModel(gLe),e.registerPreprocessor(rLe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,sLe),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),xc("brush",xLe)}var bLe=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),_Le=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(){u0(p,"_"+r.get("target"))}),v&&h.on("click",function(){u0(v,"_"+r.get("subtarget"))}),Ie(c).eventData=Ie(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=hr(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}(jt);function wLe(e){e.registerComponentModel(bLe),e.registerComponentView(_Le)}var CLe=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=[],D(n,function(u,c){var f=dr(Vf(u),""),d;Se(u)?(d=we(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 sn([{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 Z5=CLe;var G9=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=Hs(Z5.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}(Z5);lr(G9,AI.prototype);const TLe=G9;var ALe=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}(jt);const MLe=ALe;var ILe=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}(Qi);const PLe=ILe;var cw=Math.PI,K5=Je(),kLe=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 xr("nameValue",{noName:!0,value:c})},D(["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=RLe(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:cw/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*cw/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=bi(),l=o.x,u=o.y+o.height;Na(s,s,[-l,-u]),Pu(s,s,-cw/2),Na(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=DLe(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 PLe("value",o,r.axisExtent,a);return l.model=n,l},t.prototype._createGroup=function(r){var n=this[r]=new Ae;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:Y({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:xe({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=[],D(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:ue(o._changeTimeline,o,u.value)},g=Q5(f,d,n,v);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),ru(g);var m=Ie(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=[],D(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:ue(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),ru(m),K5(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",ue(this._changeTimeline,this,f?"-":"+")),d(r.prevBtnPosition,"prev",ue(this._changeTimeline,this,f?"+":"-")),d(r.playPosition,c?"stop":"play",ue(this._handlePlayClick,this,!c),!0);function d(h,p,v,g){if(h){var m=Xi(Ee(a.get(["controlStyle",p+"BtnSize"]),o),o),y=[0,-m/2,m,m],x=LLe(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),ru(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=ue(u._handlePointerDrag,u),f.ondragend=ue(u._handlePointerDragend,u),J5(f,u._progressLine,s,i,a,!0)},onUpdate:function(f){J5(f,u._progressLine,s,i,a)}};this._currentPointer=Q5(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=vi(a.getExtent().slice());i>o[1]&&(i=o[1]),i=0&&(o[a]=+o[a].toFixed(d)),[o,f]}var fw={min:Pe(cm,"min"),max:Pe(cm,"max"),average:Pe(cm,"average"),median:Pe(cm,"median")};function Zp(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,i=n&&n.dimensions;if(!VLe(t)&&!q(t.coord)&&q(i)){var a=W9(t,r,n,e);if(t=we(t),t.type&&fw[t.type]&&a.baseAxis&&a.valueAxis){var o=ze(i,a.baseAxis.dim),s=ze(i,a.valueAxis.dim),l=fw[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||!q(i))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)fw[u[c]]&&(u[c]=HP(r,r.mapDimension(i[c]),u[c]));return t}}function W9(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(GLe(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 GLe(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function Kp(e,t){return e&&e.containData&&t.coord&&!IA(t)?e.containData(t.coord):!0}function HLe(e,t,r){return e&&e.containZone&&t.coord&&r.coord&&!IA(t)&&!IA(r)?e.containZone(t.coord,r.coord):!0}function U9(e,t){return e?function(r,n,i,a){var o=a<2?r.coord&&r.coord[a]:r.value;return Ss(o,t[a])}:function(r,n,i,a){return Ss(r.value,t[a])}}function HP(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 dw=Je(),WLe=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=ve()},t.prototype.render=function(r,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){dw(s).keep=!1}),n.eachSeries(function(s){var l=zs.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!dw(s).keep&&a.group.remove(s.group)})},t.prototype.markKeep=function(r){dw(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var i=this;D(r,function(a){var o=zs.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?x6(l):oI(l))})}})},t.type="marker",t}(jt);const WP=WLe;function tF(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 ULe=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=zs.getMarkerModelFromSeries(a,"markPoint");o&&(tF(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 Av),f=jLe(o,r,n);n.setData(f),tF(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(me(p)||me(v)||me(g)||me(m)){var x=n.getRawValue(d),S=n.getDataParams(d);me(p)&&(p=p(x,S)),me(v)&&(v=v(x,S)),me(g)&&(g=g(x,S)),me(m)&&(m=m(x,S))}var _=h.getModel("itemStyle").getItemStyle(),b=bv(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){Ie(h).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markPoint",t}(WP);function jLe(e,t,r){var n;e?n=Z(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return Y(Y({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new sn(n,r),a=Z(r.get("data"),Pe(Zp,t));e&&(a=ft(a,Pe(Kp,e)));var o=U9(!!e,n);return i.initData(a,null,o),i}const YLe=ULe;function qLe(e){e.registerComponentModel($Le),e.registerComponentView(YLe),e.registerPreprocessor(function(t){GP(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var XLe=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}(zs);const ZLe=XLe;var fm=Je(),KLe=function(e,t,r,n){var i=e.getData(),a;if(q(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=W9(n,i,t,e);s=u.valueAxis;var c=DU(i,u.valueDataDim);l=HP(i,c,o)}var f=s.dim==="x"?0:1,d=1-f,h=we(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=[Zp(e,a[0]),Zp(e,a[1]),Y({},a[2])];return g[2].type=g[2].type||null,Oe(g[2],g[0]),Oe(g[2],g[1]),g};function N0(e){return!isNaN(e)&&!isFinite(e)}function rF(e,t,r,n){var i=1-e,a=n.dimensions[e];return N0(t[i])&&N0(r[i])&&t[e]===r[e]&&n.getAxis(a).containData(t[e])}function QLe(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(rF(1,r,n,e)||rF(0,r,n,e)))return!0}return Kp(e,t[0])&&Kp(e,t[1])}function hw(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(Lu(a,"cartesian2d")){var h=a.getAxis("x"),p=a.getAxis("y"),c=a.dimensions;N0(e.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[r?0:1]):N0(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 JLe=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=zs.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=fm(o).from,u=fm(o).to;l.each(function(c){hw(l,c,!0,a,i),hw(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 hP);this.group.add(c.group);var f=eEe(o,r,n),d=f.from,h=f.to,p=f.line;fm(n).from=d,fm(n).to=h,n.setData(p);var v=n.get("symbol"),g=n.get("symbolSize"),m=n.get("symbolRotate"),y=n.get("symbolOffset");q(v)||(v=[v,v]),q(g)||(g=[g,g]),q(m)||(m=[m,m]),q(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){Ie(S).dataModel=n,S.traverse(function(_){Ie(_).dataModel=n})});function x(S,_,b){var w=S.getItemModel(_);hw(S,_,b,r,a);var C=w.getModel("itemStyle").getItemStyle();C.fill==null&&(C.fill=bv(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}(WP);function eEe(e,t,r){var n;e?n=Z(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return Y(Y({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new sn(n,r),a=new sn(n,r),o=new sn([],r),s=Z(r.get("data"),Pe(KLe,t,e,r));e&&(s=ft(s,Pe(QLe,e)));var l=U9(!!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 tEe=JLe;function rEe(e){e.registerComponentModel(ZLe),e.registerComponentView(tEe),e.registerPreprocessor(function(t){GP(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var nEe=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}(zs);const iEe=nEe;var dm=Je(),aEe=function(e,t,r,n){var i=n[0],a=n[1];if(!(!i||!a)){var o=Zp(e,i),s=Zp(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=G2([{},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 z0(e){return!isNaN(e)&&!isFinite(e)}function nF(e,t,r,n){var i=1-e;return z0(t[i])&&z0(r[i])}function oEe(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 Lu(e,"cartesian2d")?r&&n&&(nF(1,r,n)||nF(0,r,n))?!0:HLe(e,i,a):Kp(e,i)||Kp(e,a)}function iF(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(Lu(a,"cartesian2d")){var y=a.getAxis("x"),x=a.getAxis("y"),v=e.get(r[0],t),g=e.get(r[1],t);z0(v)?s[0]=y.toGlobalCoord(y.getExtent()[r[0]==="x0"?0:1]):z0(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 aF=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],sEe=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=zs.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Z(aF,function(f){return iF(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 Ae});this.group.add(c.group),this.markKeep(c);var f=lEe(o,r,n);n.setData(f),f.each(function(d){var h=Z(aF,function(C){return iF(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))];vi(y),vi(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 PA=dEe;var uc=Pe,kA=D,hm=Ae,hEe=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 hm),this.group.add(this._selectorGroup=new hm),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=hr(c,f,d),p=this.layoutInner(r,o,h,a,l,u),v=hr(xe({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=L9(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=ve(),f=n.get("selectedMode"),d=[];i.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),kA(n.getData(),function(h,p){var v=h.get("name");if(!this.newlineDisabled&&(v===""||v===` +`)){var g=new hm;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",uc(oF,v,null,a,d)).on("mouseover",uc(DA,m.name,null,a,d)).on("mouseout",uc(RA,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"),I=$n(T.fill);I&&I[3]===0&&(I[3]=.2,T=Y(Y({},T),{fill:io(I,"rgba")}));var P=this._createItem(w,v,p,h,n,r,{},T,M,f,a);P.on("click",uc(oF,null,v,a,d)).on("mouseover",uc(DA,null,v,a,d)).on("mouseout",uc(RA,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();kA(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}),ru(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=pEe(c,a,l,u,h,g,d),_=new hm,b=a.getModel("textStyle");if(me(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(vEe({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??""):me(T)&&(M=T(n));var I=g?b.getTextColor():a.get("inactiveColor");_.add(new rt({style:_t(b,{text:M,x:C,y:v/2,fill:I,align:A,verticalAlign:"middle"},{inheritColor:I})}));var P=new Qe({shape:_.getBoundingRect(),invisible:!0}),k=a.getModel("tooltip");return k.get("show")&&Wf({el:P,componentModel:o,itemName:n,itemTooltipOption:k.option}),_.add(P),_.eachChild(function(R){R.silent=!0}),P.silent=!f,this.getContentGroup().add(_),ru(_),_.__legendDataIndex=i,_},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();iu(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){iu("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}(jt);function pEe(e,t,r,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),kA(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:mf(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 vEe(e){var t=e.icon||"roundRect",r=sr(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 oF(e,t,r,n){RA(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),DA(e,t,r,n)}function j9(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&&it(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;D(["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=vw[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}(Y9);const bEe=SEe;function _Ee(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 wEe(e){Fe(q9),e.registerComponentModel(xEe),e.registerComponentView(bEe),_Ee(e)}function CEe(e){Fe(q9),Fe(wEe)}var TEe=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=Hs(Xp.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Xp);const AEe=TEe;var UP=Je();function MEe(e,t,r){UP(e).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=r)})}function IEe(e,t){for(var r=UP(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 LEe(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=UP(r),i=n.coordSysRecordMap||(n.coordSysRecordMap=ve());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=k9(a);D(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,PEe(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ve());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){X9(i,a);return}var c=REe(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),Qf(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var EEe=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(),MEe(i,r,{pan:ue(gw.pan,this),zoom:ue(gw.zoom,this),scrollMove:ue(gw.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){IEe(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(NP),gw={zoom:function(e,t,r,n){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=mw[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(Ou(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:uF(function(e,t,r,n,i,a){var o=mw[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:uF(function(e,t,r,n,i,a){var o=mw[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,r);return o.signal*(e[1]-e[0])*a.scrollDelta})};function uF(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(Ou(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var mw={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 OEe=EEe;function Z9(e){zP(e),e.registerComponentModel(AEe),e.registerComponentView(OEe),LEe(e)}var NEe=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=Hs(Xp.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}(Xp);const zEe=NEe;var Ud=Qe,cF=7,BEe=1,yw=30,FEe=7,jd="horizontal",fF="vertical",$Ee=5,VEe=["line","bar","candlestick","scatter"],GEe={easing:"cubicOut",duration:100,delay:0},HEe=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=ue(this._onBrush,this),this._onBrushEnd=ue(this._onBrushEnd,this)},t.prototype.render=function(r,n,i,a){if(e.prototype.render.apply(this,arguments),Qf(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(){zp(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 Ae;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?FEe:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===jd?{right:s.width-o.x-o.width,top:s.height-yw-cF-a,width:o.width,height:yw}:{right:cF,top:o.y,width:yw,height:o.height},u=qf(r.option);D(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=hr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===fF&&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===jd&&!o?{scaleY:l?1:-1,scaleX:1}:i===jd&&o?{scaleY:l?1:-1,scaleX:-1}:i===fF&&!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 Ud({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new Ud({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:ue(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==="",I=M?0:ct(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,I]),g.push([y,I]),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 Ae,I=new Pn({shape:{points:u},segmentIgnoreThreshold:1,style:T.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),P=new kn({shape:{points:c},segmentIgnoreThreshold:1,style:T.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(I),M.add(P),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();D(l,function(u){if(!i&&!(n!==!0&&ze(VEe,u.get("type"))<0)){var c=a.getComponent(ss(o),s).axis,f=WEe(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 Ud({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new Ud({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:BEe,fill:"rgba(0,0,0,0)"}})),D([0,1],function(x){var S=l.get("handleIcon");!d0[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var _=sr(S,-1,0,2,2,null,!0);_.attr({cursor:dF(this._orient),draggable:!0,drift:ue(this._onDragMove,this,x),ondragend:ue(this._onDragEnd,this),onmouseover:ue(this._showDataInfo,this,!0),onmouseout:ue(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(),ru(_);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=sr(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:dF(this._orient),drift:ue(this._onDragMove,this,"all"),ondragstart:ue(this._showDataInfo,this,!0),ondragend:ue(this._onDragEnd,this),onmouseover:ue(this._showDataInfo,this,!0),onmouseout:ue(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[ct(r[0],[0,100],n,!0),ct(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];Ou(n,a,o,i.get("zoomLock")?"all":r,s.minSpan!=null?ct(s.minSpan,l,o,!0):null,s.maxSpan!=null?ct(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=vi([ct(a[0],o,l,!0),ct(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=vi(i.slice()),o=this._size;D([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=vi([ct(i.x,o,s,!0),ct(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&&(vo(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 Ud({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?GEe:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=k9(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}(NP);function WEe(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function dF(e){return e==="vertical"?"ns-resize":"ew-resize"}const UEe=HEe;function K9(e){e.registerComponentModel(zEe),e.registerComponentView(UEe),zP(e)}function jEe(e){Fe(Z9),Fe(K9)}var YEe={get:function(e,t,r){var n=we((qEe[e]||{})[t]);return r&&q(n)?n[n.length-1]:n}},qEe={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 Q9=YEe;var hF=Or.mapVisual,XEe=Or.eachVisual,ZEe=q,pF=D,KEe=vi,QEe=ct,JEe=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&&$9(i,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(r){var n=this.stateList;r=ue(r,this),this.controllerVisuals=AA(this.option.controller,n,r),this.targetVisuals=AA(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){D(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||["<",">"],q(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(me(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=KEe([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){ZEe(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]={},pF(p,function(g,m){if(Or.isValidType(m)){var y=Q9.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";pF(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&&we(d)||(s?g:[g])),x.symbolSize==null&&(x.symbolSize=h&&we(h)||(s?y[0]:[y[0],y[0]])),x.symbol=hF(x.symbol,function(b){return b==="none"?g:b});var S=x.symbolSize;if(S!=null){var _=-1/0;XEe(S,function(b){b>_&&(_=b)}),x.symbolSize=hF(S,function(b){return QEe(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 B0=JEe;var vF=[20,140],eOe=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]=vF[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=vF[1])},t.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):q(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),D(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},t.prototype.getSelected=function(){var r=this.getExtent(),n=vi((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=gF(this,"outOfRange",this.getExtent()),i=gF(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 Ae(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();nOe([0,1],function(c){var f=o[c];f.setStyle("fill",n.handlesColor[c]),f.y=r[c];var d=oa(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=Ui(i.handleLabelPoints[c],nu(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=oa(r,s,u,!0),g=l[0]-p/2,m={x:f.x,y:f.y};f.y=v,f.x=g;var y=Ui(c.indicatorLabelPoint,nu(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||SF(i))&&(h=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var p=qve(d,h);this._dispatchHighDown("downplay",ey(p[0],i)),this._dispatchHighDown("highlight",ey(p[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(Ul(r.target,function(l){var u=Ie(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 dOe(e,t,r,n){for(var i=t.targetVisuals[n],a=Or.prepareVisualTypes(i),o={color:bv(e.getData(),"color")},s=0,l=a.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(uOe,cOe),D(fOe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(hOe))}function r7(e){e.registerComponentModel(tOe),e.registerComponentView(lOe),t7(e)}var pOe=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=[],vOe[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=we(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Z(this._pieceList,function(l){return l=we(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var r=this.option,n={},i=Or.listVisualTypes(),a=this.isCategory();D(r.pieces,function(s){D(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),D(n,function(s,l){var u=!1;D(this.stateList,function(c){u=u||o(r,c,l)||o(r.target,c,l)},this),!u&&D(this.stateList,function(c){(r[c]||(r[c]={}))[l]=Q9.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,D(a,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;D(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=we(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 D(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=Hs(B0.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}(B0),vOe={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 CF(e,t){var r=e.inverse;(e.orient==="vertical"?!r:r)&&t.reverse()}const gOe=pOe;var mOe=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),D(c.viewPieceList,function(h){var p=h.piece,v=new Ae;v.onclick=ue(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),iu(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:ey(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return e7(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 Ae,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(sr(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=we(i.selected),s=n.getSelectedMapKey(r);a==="single"||a===!0?(o[s]=!0,D(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(J9);const yOe=mOe;function n7(e){e.registerComponentModel(gOe),e.registerComponentView(yOe),t7(e)}function xOe(e){Fe(r7),Fe(n7)}var SOe={label:{enabled:!0},decal:{show:!1}},TF=Je(),bOe={};function _Oe(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=we(SOe);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=ve();e.eachSeries(function(d){if(!d.isColorBySeries()){var h=f.get(d.type);h||(h={},f.set(d.type,h)),TF(d).scope=h}}),e.eachRawSeries(function(d){if(e.isSeriesFiltered(d))return;if(me(d.enableAriaDecal)){d.enableAriaDecal();return}var h=d.getData();if(d.isColorBySeries()){var y=LT(d.ecModel,d.name,bOe,e.getSeriesCount()),x=h.getVisual("decal");h.setVisual("decal",S(x,y))}else{var p=d.getRawData(),v={},g=TF(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=LT(d.ecModel,w,g,m),A=h.getItemVisual(b,"decal");h.setItemVisual(b,"decal",S(A,C))})}function S(_,b){var w=_?Y(Y({},b),_):b;return w.dirty=!0,w}})}}function a(){var u=e.getLocaleModel().get("aria"),c=r.getModel("label");if(c.option=xe(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",I]):c.get(["series","single",I]),T=o(T,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var P=C.getData();if(P.count()>h){var k=c.get(["data","partialData"]);T+=o(k,{displayCnt:h})}else T+=c.get(["data","allData"]);for(var R=c.get(["data","separator","middle"]),z=c.get(["data","separator","end"]),$=[],N=0;N":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},TOe=function(){function e(t){var r=this._condVal=oe(t)?new RegExp(t):ape(t)?t:null;if(r==null){var n="";st(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}(),AOe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),MOe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r2&&n.push(i),i=[P,k]}function c(P,k,R,z){Nc(P,R)&&Nc(k,z)||i.push(P,k,R,z,R,z)}function f(P,k,R,z,$,N){var V=Math.abs(k-P),L=Math.tan(V/4)*4/3,G=kC:M2&&n.push(i),n}function EA(e,t,r,n,i,a,o,s,l,u){if(Nc(e,r)&&Nc(t,n)&&Nc(i,o)&&Nc(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=[];ks(e,r,i,o,.5,A),ks(t,n,a,s,.5,T),EA(A[0],T[0],A[1],T[1],A[2],T[2],A[3],T[3],l,u),EA(A[4],T[4],A[5],T[5],A[6],T[6],A[7],T[7],l,u)}function VOe(e,t){var r=LA(e),n=[];t=t||1;for(var i=0;i0)for(var u=0;uMath.abs(u),f=a7([l,u],c?0:1,t),d=(c?s:u)/f.length,h=0;hi,o=a7([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 WOe(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 fc(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function UOe(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),UOe(t,u,c)}function F0(e,t,r,n){if(r===1)n.push(t);else{var i=Math.floor(r/2),a=e(t);F0(e,a[0],i,n),F0(e,a[1],r-i,n)}return n}function jOe(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 G0(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:tNe(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 l7(e){return XOe(e.path,e.count)}function OA(){return{fromIndividuals:[],toIndividuals:[],count:0}}function rNe(e,t,r){var n=[];function i(_){for(var b=0;b<_.length;b++){var w=_[b];$0(w)?i(w.childrenRef()):w instanceof $e&&n.push(w)}}i(e);var a=n.length;if(!a)return OA();var o=r.dividePath||l7,s=o({path:t,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),OA();n=G0(n),s=G0(s);for(var l=r.done,u=r.during,c=r.individualDelay,f=new Ja,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 iNe={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;EF(e)&&(u=e,c=t),EF(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($0(C))f({many:[C],one:A},!0,x,S,!0);else{var T=s?xe({delay:s(x,S)},l):l;YP(C,A,T),a(C,A,C,A,T)}}else for(var M=xe({dividePath:iNe[r],individualDelay:s&&function($,N,V,L){return s($+x,S)}},l),I=y?rNe(b,w,M):nNe(w,b,M),P=I.fromIndividuals,k=I.toIndividuals,R=P.length,z=0;zt.length,h=u?OF(c,u):OF(d?t:e,[d?e:t]),p=0,v=0;vu7))for(var i=n.getIndices(),a=oNe(n),o=0;o0&&S.group.traverse(function(b){b instanceof $e&&!b.animators.length&&b.animateFrom({style:{opacity:0}},_)})})}function zF(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function BF(e){return q(e)?e.sort().join(","):e}function Yo(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function uNe(e,t){var r=ve(),n=ve(),i=ve();return D(e.oldSeries,function(a,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=zF(a),c=BF(u);n.set(c,{dataGroupId:s,data:l}),q(u)&&D(u,function(f){i.set(f,{key:c,dataGroupId:s,data:l})})}),D(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=zF(a),u=BF(l),c=n.get(u);if(c)r.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Yo(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Yo(s),data:s}]});else if(q(l)){var f=[];D(l,function(p){var v=n.get(p);v.data&&f.push({dataGroupId:v.dataGroupId,divide:Yo(v.data),data:v.data})}),f.length&&r.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:Yo(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:Yo(d.data)}],newSeries:[]},r.set(d.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Yo(s)})}}}}),r}function FF(e,t){for(var r=0;r=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Yo(t.oldData[s]),dim:o.dimension})}),D(pt(e.to),function(o){var s=FF(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Yo(l),dim:o.dimension})}}),i.length>0&&a.length>0&&c7(i,a,n)}function fNe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){D(pt(n.seriesTransition),function(i){D(pt(i.to),function(a){for(var o=n.updatedSeries,s=0;s({legend:{icon:"circle",inactiveColor:Xh,textStyle:{color:Xh}},title:{text:t,x:10,y:10},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?o:""} ${a}
${l}: ${u} - `,""):"No data",axisPointer:{animation:!0},textStyle:{color:Xh,fontSize:13},backgroundColor:"rgba(21,35,28, 0.93)",borderWidth:0,extraCssText:"z-index:1;"},xAxis:{type:"category",splitLine:{show:!1},axisLine:{lineStyle:{color:OA}},data:e.time},yAxis:{type:"value",boundaryGap:[0,"5%"],splitLine:{show:!1},axisLine:{lineStyle:{color:OA}}},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"}}}}}}),dNe=({charts:e,lines:t})=>t.map(({key:r,name:n})=>({name:n,type:"line",showSymbol:!0,data:e[r]})),hNe=e=>({symbol:"none",label:{formatter:t=>`Run #${t.dataIndex+1}`},lineStyle:{color:OA},data:(e.markers||[]).map(t=>({xAxis:t}))});function pNe({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=txe(o.current,"locust");s.setOption(fNe({charts:e,title:t,seriesData:dNe({charts:e,lines:r}),colors:n}));const l=()=>s.resize();return window.addEventListener("resize",l),s.group="swarmCharts",rxe("swarmCharts"),a(s),()=>{nxe(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:hNe(e)}:{}}))})},[e,i,r]),E.jsx("div",{ref:o,style:{width:"100%",height:"300px"}})}const vNe=[{title:"Total Requests per Second",lines:[{name:"RPS",key:"currentRps"},{name:"Failures/s",key:"currentFailPerSec"}],colors:["#00ca5a","#ff6d6d"]},{title:"Response Times (ms)",lines:[{name:`${window.templateArgs.percentile1*100}th percentile`,key:"responseTimePercentile1"},{name:`${window.templateArgs.percentile2*100}th percentile`,key:"responseTimePercentile2"}]},{title:"Number of Users",lines:[{name:"Number of Users",key:"userCount"}]}];function f7({charts:e}){return E.jsx("div",{children:vNe.map((t,r)=>E.jsx(pNe,{...t,charts:e},`swarm-chart-${r}`))})}const gNe=({ui:{charts:e}})=>({charts:e}),mNe=qn(gNe)(f7);function yNe(e){return(e*100).toFixed(1)+"%"}function NA({classRatio:e}){return E.jsx("ul",{children:Object.entries(e).map(([t,{ratio:r,tasks:n}])=>E.jsxs("li",{children:[`${yNe(r)} ${t}`,n&&E.jsx(NA,{classRatio:n})]},`nested-ratio-${t}`))})}function d7({ratios:{perClass:e,total:t}}){return!e&&!t?null:E.jsxs("div",{children:[e&&E.jsxs(E.Fragment,{children:[E.jsx("h3",{children:"Ratio Per Class"}),E.jsx(NA,{classRatio:e})]}),t&&E.jsxs(E.Fragment,{children:[E.jsx("h3",{children:"Total Ratio"}),E.jsx(NA,{classRatio:t})]})]})}const xNe=({ui:{ratios:e}})=>({ratios:e}),SNe=qn(xNe)(d7),bNe=[{key:"id",title:"Worker"},{key:"state",title:"State"},{key:"userCount",title:"# users"},{key:"cpuUsage",title:"CPU usage"},{key:"memoryUsage",title:"Memory usage",formatter:Rle}];function _Ne({workers:e=[]}){const{onTableHeadClick:t,sortedStats:r,currentSortField:n}=z2(e,{defaultSortKey:"worker"});return E.jsx(zf,{currentSortField:n,onTableHeadClick:t,rows:r,structure:bNe})}const wNe=({ui:{workers:e}})=>({workers:e}),CNe=qn(wNe)(_Ne),TNe=[{component:Vhe,key:"stats",title:"Statistics"},{component:mNe,key:"charts",title:"Charts"},{component:Ehe,key:"failures",title:"Failures"},{component:khe,key:"exceptions",title:"Exceptions"},{component:SNe,key:"ratios",title:"Current Ratio"},{component:Bhe,key:"reports",title:"Download Data"},{component:Ohe,key:"log_viewer",title:"Logs"}],ANe=[{component:CNe,key:"workers",title:"Workers",shouldDisplayTab:e=>e.swarm.isDistributed}],MNe=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)},INe=()=>window.location.search?Dle(window.location.search):null,PNe={query:INe()},h7=fa({name:"url",initialState:PNe,reducers:{setUrl:C2}}),kNe=h7.actions,DNe=h7.reducer;function RNe({currentTabIndexFromQuery:e,setUrl:t,tabs:r}){const[n,i]=O.useState(e),a=(o,s)=>{const l=r[s].key;MNe({tab:l}),t({query:{tab:l}}),i(s)};return E.jsxs(Lf,{maxWidth:"xl",children:[E.jsx(ht,{sx:{mb:2},children:E.jsx(soe,{onChange:a,value:n,children:r.map(({title:o},s)=>E.jsx(Gie,{label:o},`tab-${s}`))})}),r.map(({component:o=Mhe},s)=>n===s&&E.jsx(o,{},`tabpabel-${s}`))]})}const LNe=e=>{const{swarm:{extendedTabs:t=[]},url:{query:r}}=e,n=ANe.filter(({shouldDisplayTab:a})=>a(e)),i=[...TNe,...n,...t];return{tabs:i,currentTabIndexFromQuery:r&&r.tab?i.findIndex(({key:a})=>a===r.tab):0}},ENe={setUrl:kNe.setUrl},ONe=qn(LNe,ENe)(RNe),NNe={totalRps:0,failRatio:0,stats:[],errors:[],exceptions:[],charts:$l(window.templateArgs).history.reduce(rx,{}),ratios:{},userCount:0},zNe=e=>rx(e,{currentRps:{value:null},currentFailPerSec:{value:null},responseTimePercentile1:{value:null},responseTimePercentile2:{value:null},userCount:{value:null},time:""}),p7=fa({name:"ui",initialState:NNe,reducers:{setUi:C2,updateCharts:(e,{payload:t})=>({...e,charts:rx(e.charts,t)}),updateChartMarkers:(e,{payload:t})=>({...e,charts:{...zNe(e.charts),markers:e.charts.markers?[...e.charts.markers,t]:[e.charts.time[0],t]}})}}),_w=p7.actions,BNe=p7.reducer,VF=2e3;function FNe(){const e=Qd(gG.setSwarm),t=Qd(_w.setUi),r=Qd(_w.updateCharts),n=Qd(_w.updateChartMarkers),i=Ef(({swarm:m})=>m),a=O.useRef(i.state),o=O.useRef(!1),[s,l]=O.useState(!1),{data:u,refetch:c}=Lle(),{data:f,refetch:d}=Ele(),{data:h,refetch:p}=Ole(),v=i.state===li.SPAWNING||i.state==li.RUNNING,g=()=>{if(!u)return;const{extendedStats:m,stats:y,errors:x,totalRps:S,totalFailPerSec:_,failRatio:b,workers:w,currentResponseTimePercentile1:C,currentResponseTimePercentile2:A,userCount:T}=u,M=new Date().toLocaleTimeString();s&&(l(!1),n(M));const I=Lm(S,2),P=Lm(_,2),k=Lm(b*100),R={currentRps:I,currentFailPerSec:P,responseTimePercentile1:C,responseTimePercentile2:A,userCount:T,time:M};t({extendedStats:m,stats:y,errors:x,totalRps:I,failRatio:k,workers:w,userCount:T}),r(R)};O.useEffect(()=>{u&&(u.state===li.STOPPED||u.state===li.SPAWNING)&&e({state:u.state})},[u&&u.state]),O.useEffect(()=>{u&&(o.current||g(),o.current=!0)},[u]),th(g,VF,{shouldRunInterval:!!u&&v}),O.useEffect(()=>{f&&t({ratios:f})},[f]),O.useEffect(()=>{h&&t({exceptions:h.exceptions})},[h]),th(c,VF,{shouldRunInterval:v}),th(d,5e3,{shouldRunInterval:v}),th(p,5e3,{shouldRunInterval:v}),O.useEffect(()=>{i.state===li.RUNNING&&a.current===li.STOPPED&&l(!0),a.current=i.state},[i.state,a])}const v7=e=>JM({palette:{mode:e,primary:{main:"#15803d"},success:{main:"#00C853"}}});function $Ne({isDarkMode:e,swarmState:t}){FNe();const r=O.useMemo(()=>v7(e?Ma.DARK:Ma.LIGHT),[e]);return E.jsxs(a4,{theme:r,children:[E.jsx(i4,{}),E.jsx(nue,{children:t===li.READY?E.jsx(mG,{}):E.jsx(ONe,{})})]})}const VNe=({swarm:{state:e},theme:{isDarkMode:t}})=>({isDarkMode:t,swarmState:e}),GNe=qn(VNe)($Ne),HNe=g2({[NC.reducerPath]:NC.reducer,swarm:qle,theme:Tse,ui:BNe,url:DNe}),WNe=hse({reducer:HNe}),UNe=[{key:"method",title:"Method"},{key:"name",title:"Name"}];function jNe({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 E.jsx(zf,{rows:e,structure:[...UNe,...t]})}const YNe=v7(window.theme||G4);function qNe({locustfile:e,showDownloadLink:t,startTime:r,endTime:n,charts:i,host:a,exceptionsStatistics:o,requestsStatistics:s,failuresStatistics:l,responseTimeStatistics:u,tasks:c}){return E.jsxs(a4,{theme:YNe,children:[E.jsx(i4,{}),E.jsxs(Lf,{maxWidth:"lg",sx:{my:4},children:[E.jsxs(ht,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-end"},children:[E.jsx(Xe,{component:"h1",noWrap:!0,sx:{fontWeight:700},variant:"h3",children:"Locust Test Report"}),t&&E.jsx(si,{href:`?download=1&theme=${window.theme}`,children:"Download the Report"})]}),E.jsxs(ht,{sx:{my:2},children:[E.jsxs(ht,{sx:{display:"flex",columnGap:.5},children:[E.jsx(Xe,{fontWeight:600,children:"During:"}),E.jsxs(Xe,{children:[r," - ",n]})]}),E.jsxs(ht,{sx:{display:"flex",columnGap:.5},children:[E.jsx(Xe,{fontWeight:600,children:"Target Host:"}),E.jsx(Xe,{children:a||"None"})]}),E.jsxs(ht,{sx:{display:"flex",columnGap:.5},children:[E.jsx(Xe,{fontWeight:600,children:"Script:"}),E.jsx(Xe,{children:e})]})]}),E.jsxs(ht,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[E.jsxs(ht,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Request Statistics"}),E.jsx(nH,{stats:s})]}),E.jsxs(ht,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Response Time Statistics"}),E.jsx(jNe,{responseTimes:u})]}),E.jsxs(ht,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Failures Statistics"}),E.jsx(rH,{errors:l})]}),!!o.length&&E.jsxs(ht,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Exceptions Statistics"}),E.jsx(tH,{exceptions:o})]}),E.jsxs(ht,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Charts"}),E.jsx(f7,{charts:i})]}),E.jsxs(ht,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Final ratio"}),E.jsx(d7,{ratios:c})]})]})]})]})}const GF=Cw.createRoot(document.getElementById("root"));if(window.templateArgs.is_report){const e=$l(window.templateArgs),t={...e,charts:e.history.reduce(rx,{})};GF.render(E.jsx(qNe,{...t}))}else GF.render(E.jsx(XX,{store:WNe,children:E.jsx(GNe,{})})); + `,""):"No data",axisPointer:{animation:!0},textStyle:{color:Xh,fontSize:13},backgroundColor:"rgba(21,35,28, 0.93)",borderWidth:0,extraCssText:"z-index:1;"},xAxis:{type:"category",splitLine:{show:!1},axisLine:{lineStyle:{color:NA}},data:e.time},yAxis:{type:"value",boundaryGap:[0,"5%"],splitLine:{show:!1},axisLine:{lineStyle:{color:NA}}},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"}}}}}}),hNe=({charts:e,lines:t})=>t.map(({key:r,name:n})=>({name:n,type:"line",showSymbol:!0,data:e[r]})),pNe=e=>({symbol:"none",label:{formatter:t=>`Run #${t.dataIndex+1}`},lineStyle:{color:NA},data:(e.markers||[]).map(t=>({xAxis:t}))});function vNe({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=rxe(o.current,"locust");s.setOption(dNe({charts:e,title:t,seriesData:hNe({charts:e,lines:r}),colors:n}));const l=()=>s.resize();return window.addEventListener("resize",l),s.group="swarmCharts",nxe("swarmCharts"),a(s),()=>{ixe(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:pNe(e)}:{}}))})},[e,i,r]),E.jsx("div",{ref:o,style:{width:"100%",height:"300px"}})}const gNe=[{title:"Total Requests per Second",lines:[{name:"RPS",key:"currentRps"},{name:"Failures/s",key:"currentFailPerSec"}],colors:["#00ca5a","#ff6d6d"]},{title:"Response Times (ms)",lines:[{name:`${window.templateArgs.percentile1*100}th percentile`,key:"responseTimePercentile1"},{name:`${window.templateArgs.percentile2*100}th percentile`,key:"responseTimePercentile2"}]},{title:"Number of Users",lines:[{name:"Number of Users",key:"userCount"}]}];function f7({charts:e}){return E.jsx("div",{children:gNe.map((t,r)=>E.jsx(vNe,{...t,charts:e},`swarm-chart-${r}`))})}const mNe=({ui:{charts:e}})=>({charts:e}),yNe=qn(mNe)(f7);function xNe(e){return(e*100).toFixed(1)+"%"}function zA({classRatio:e}){return E.jsx("ul",{children:Object.entries(e).map(([t,{ratio:r,tasks:n}])=>E.jsxs("li",{children:[`${xNe(r)} ${t}`,n&&E.jsx(zA,{classRatio:n})]},`nested-ratio-${t}`))})}function d7({ratios:{perClass:e,total:t}}){return!e&&!t?null:E.jsxs("div",{children:[e&&E.jsxs(E.Fragment,{children:[E.jsx("h3",{children:"Ratio Per Class"}),E.jsx(zA,{classRatio:e})]}),t&&E.jsxs(E.Fragment,{children:[E.jsx("h3",{children:"Total Ratio"}),E.jsx(zA,{classRatio:t})]})]})}const SNe=({ui:{ratios:e}})=>({ratios:e}),bNe=qn(SNe)(d7),_Ne=[{key:"id",title:"Worker"},{key:"state",title:"State"},{key:"userCount",title:"# users"},{key:"cpuUsage",title:"CPU usage"},{key:"memoryUsage",title:"Memory usage",formatter:Lle}];function wNe({workers:e=[]}){const{onTableHeadClick:t,sortedStats:r,currentSortField:n}=z2(e,{defaultSortKey:"worker"});return E.jsx(zf,{currentSortField:n,onTableHeadClick:t,rows:r,structure:_Ne})}const CNe=({ui:{workers:e}})=>({workers:e}),TNe=qn(CNe)(wNe),ANe=[{component:Ghe,key:"stats",title:"Statistics"},{component:yNe,key:"charts",title:"Charts"},{component:Ohe,key:"failures",title:"Failures"},{component:Dhe,key:"exceptions",title:"Exceptions"},{component:bNe,key:"ratios",title:"Current Ratio"},{component:Fhe,key:"reports",title:"Download Data"},{component:Nhe,key:"log_viewer",title:"Logs"}],MNe=[{component:TNe,key:"workers",title:"Workers",shouldDisplayTab:e=>e.swarm.isDistributed}],INe=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)},PNe=()=>window.location.search?Rle(window.location.search):null,kNe={query:PNe()},h7=Bi({name:"url",initialState:kNe,reducers:{setUrl:nx}}),DNe=h7.actions,RNe=h7.reducer;function LNe({currentTabIndexFromQuery:e,setUrl:t,tabs:r}){const[n,i]=O.useState(e),a=(o,s)=>{const l=r[s].key;INe({tab:l}),t({query:{tab:l}}),i(s)};return E.jsxs(Lf,{maxWidth:"xl",children:[E.jsx(ht,{sx:{mb:2},children:E.jsx(soe,{onChange:a,value:n,children:r.map(({title:o},s)=>E.jsx(Gie,{label:o},`tab-${s}`))})}),r.map(({component:o=Ihe},s)=>n===s&&E.jsx(o,{},`tabpabel-${s}`))]})}const ENe=e=>{const{swarm:{extendedTabs:t=[]},url:{query:r}}=e,n=MNe.filter(({shouldDisplayTab:a})=>a(e)),i=[...ANe,...n,...t];return{tabs:i,currentTabIndexFromQuery:r&&r.tab?i.findIndex(({key:a})=>a===r.tab):0}},ONe={setUrl:DNe.setUrl},NNe=qn(ENe,ONe)(LNe),zNe={totalRps:0,failRatio:0,stats:[],errors:[],exceptions:[],charts:$l(window.templateArgs).history.reduce(rx,{}),ratios:{},userCount:0},BNe=e=>rx(e,{currentRps:{value:null},currentFailPerSec:{value:null},responseTimePercentile1:{value:null},responseTimePercentile2:{value:null},userCount:{value:null},time:""}),p7=Bi({name:"ui",initialState:zNe,reducers:{setUi:nx,updateCharts:(e,{payload:t})=>({...e,charts:rx(e.charts,t)}),updateChartMarkers:(e,{payload:t})=>({...e,charts:{...BNe(e.charts),markers:e.charts.markers?[...e.charts.markers,t]:[e.charts.time[0],t]}})}}),ww=p7.actions,FNe=p7.reducer,VF=2e3;function $Ne(){const e=Qd(gG.setSwarm),t=Qd(ww.setUi),r=Qd(ww.updateCharts),n=Qd(ww.updateChartMarkers),i=Ef(({swarm:m})=>m),a=O.useRef(i.state),o=O.useRef(!1),[s,l]=O.useState(!1),{data:u,refetch:c}=Ele(),{data:f,refetch:d}=Ole(),{data:h,refetch:p}=Nle(),v=i.state===li.SPAWNING||i.state==li.RUNNING,g=()=>{if(!u)return;const{extendedStats:m,stats:y,errors:x,totalRps:S,totalFailPerSec:_,failRatio:b,workers:w,currentResponseTimePercentile1:C,currentResponseTimePercentile2:A,userCount:T}=u,M=new Date().toLocaleTimeString();s&&(l(!1),n(M));const I=Lm(S,2),P=Lm(_,2),k=Lm(b*100),R={currentRps:I,currentFailPerSec:P,responseTimePercentile1:C,responseTimePercentile2:A,userCount:T,time:M};t({extendedStats:m,stats:y,errors:x,totalRps:I,failRatio:k,workers:w,userCount:T}),r(R)};O.useEffect(()=>{u&&(u.state===li.STOPPED||u.state===li.SPAWNING)&&e({state:u.state})},[u&&u.state]),O.useEffect(()=>{u&&(o.current||g(),o.current=!0)},[u]),th(g,VF,{shouldRunInterval:!!u&&v}),O.useEffect(()=>{f&&t({ratios:f})},[f]),O.useEffect(()=>{h&&t({exceptions:h.exceptions})},[h]),th(c,VF,{shouldRunInterval:v}),th(d,5e3,{shouldRunInterval:v}),th(p,5e3,{shouldRunInterval:v}),O.useEffect(()=>{i.state===li.RUNNING&&a.current===li.STOPPED&&l(!0),a.current=i.state},[i.state,a])}const v7=e=>e2({palette:{mode:e,primary:{main:"#15803d"},success:{main:"#00C853"}}});function VNe({isDarkMode:e,swarmState:t}){$Ne();const r=O.useMemo(()=>v7(e?Ma.DARK:Ma.LIGHT),[e]);return E.jsxs(a4,{theme:r,children:[E.jsx(i4,{}),E.jsx(iue,{children:t===li.READY?E.jsx(mG,{}):E.jsx(NNe,{})})]})}const GNe=({swarm:{state:e},theme:{isDarkMode:t}})=>({isDarkMode:t,swarmState:e}),HNe=qn(GNe)(VNe),WNe={},UNe=Bi({name:"notification",initialState:WNe,reducers:{setNotification:nx}}),jNe=UNe.reducer,YNe=m2({[zC.reducerPath]:zC.reducer,notification:jNe,swarm:Xle,theme:Tse,ui:FNe,url:RNe}),qNe=hse({reducer:YNe}),XNe=[{key:"method",title:"Method"},{key:"name",title:"Name"}];function ZNe({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 E.jsx(zf,{rows:e,structure:[...XNe,...t]})}const KNe=v7(window.theme||G4);function QNe({locustfile:e,showDownloadLink:t,startTime:r,endTime:n,charts:i,host:a,exceptionsStatistics:o,requestsStatistics:s,failuresStatistics:l,responseTimeStatistics:u,tasks:c}){return E.jsxs(a4,{theme:KNe,children:[E.jsx(i4,{}),E.jsxs(Lf,{maxWidth:"lg",sx:{my:4},children:[E.jsxs(ht,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-end"},children:[E.jsx(Xe,{component:"h1",noWrap:!0,sx:{fontWeight:700},variant:"h3",children:"Locust Test Report"}),t&&E.jsx(si,{href:`?download=1&theme=${window.theme}`,children:"Download the Report"})]}),E.jsxs(ht,{sx:{my:2},children:[E.jsxs(ht,{sx:{display:"flex",columnGap:.5},children:[E.jsx(Xe,{fontWeight:600,children:"During:"}),E.jsxs(Xe,{children:[r," - ",n]})]}),E.jsxs(ht,{sx:{display:"flex",columnGap:.5},children:[E.jsx(Xe,{fontWeight:600,children:"Target Host:"}),E.jsx(Xe,{children:a||"None"})]}),E.jsxs(ht,{sx:{display:"flex",columnGap:.5},children:[E.jsx(Xe,{fontWeight:600,children:"Script:"}),E.jsx(Xe,{children:e})]})]}),E.jsxs(ht,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[E.jsxs(ht,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Request Statistics"}),E.jsx(nH,{stats:s})]}),E.jsxs(ht,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Response Time Statistics"}),E.jsx(ZNe,{responseTimes:u})]}),E.jsxs(ht,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Failures Statistics"}),E.jsx(rH,{errors:l})]}),!!o.length&&E.jsxs(ht,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Exceptions Statistics"}),E.jsx(tH,{exceptions:o})]}),E.jsxs(ht,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Charts"}),E.jsx(f7,{charts:i})]}),E.jsxs(ht,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Final ratio"}),E.jsx(d7,{ratios:c})]})]})]})]})}const GF=Tw.createRoot(document.getElementById("root"));if(window.templateArgs.is_report){const e=$l(window.templateArgs),t={...e,charts:e.history.reduce(rx,{})};GF.render(E.jsx(QNe,{...t}))}else GF.render(E.jsx(XX,{store:qNe,children:E.jsx(HNe,{})})); diff --git a/locust/webui/dist/index.html b/locust/webui/dist/index.html index e190233438..002d94765d 100644 --- a/locust/webui/dist/index.html +++ b/locust/webui/dist/index.html @@ -7,7 +7,7 @@ Locust - +
diff --git a/locust/webui/src/hooks/useNotifications.ts b/locust/webui/src/hooks/useNotifications.ts new file mode 100644 index 0000000000..d39f1abda0 --- /dev/null +++ b/locust/webui/src/hooks/useNotifications.ts @@ -0,0 +1,31 @@ +import { useEffect } from 'react'; + +import { useAction, useSelector } from 'redux/hooks'; +import { notificationActions } from 'redux/slice/notification.slice'; +import { objectLength } from 'utils/object'; + +export default function useNotifications( + data: any[] | Record, + { key }: { key: string }, +) { + const setNotification = useAction(notificationActions.setNotification); + const currentPage = useSelector(({ url: { query } }) => query && query.tab); + const storageKey = `${key}Notification`; + + useEffect(() => { + if (objectLength(data) > 0 && objectLength(data) < localStorage[storageKey]) { + // handles data being reset + // localStorage should always be <= to objectLength(data) + localStorage[storageKey] = objectLength(data); + } + + if ( + objectLength(data) > (localStorage[storageKey] || 0) && + /// don't show notifications for current page + (!currentPage || currentPage !== key) + ) { + setNotification({ [key]: true }); + localStorage[storageKey] = objectLength(data); + } + }, [data]); +} diff --git a/locust/webui/src/redux/slice/notification.slice.ts b/locust/webui/src/redux/slice/notification.slice.ts new file mode 100644 index 0000000000..346f356693 --- /dev/null +++ b/locust/webui/src/redux/slice/notification.slice.ts @@ -0,0 +1,22 @@ +import { PayloadAction, createSlice } from '@reduxjs/toolkit'; + +import { updateStateWithPayload } from 'redux/utils'; + +export interface INotificationState { + [key: string]: boolean; +} + +export type NotificationAction = PayloadAction; + +const initialState = {}; + +const notificationSlice = createSlice({ + name: 'notification', + initialState, + reducers: { + setNotification: updateStateWithPayload, + }, +}); + +export const notificationActions = notificationSlice.actions; +export default notificationSlice.reducer; diff --git a/locust/webui/src/redux/slice/root.slice.ts b/locust/webui/src/redux/slice/root.slice.ts index 2534a61344..b6f6c0b676 100644 --- a/locust/webui/src/redux/slice/root.slice.ts +++ b/locust/webui/src/redux/slice/root.slice.ts @@ -1,20 +1,38 @@ import { combineReducers, PayloadAction } from '@reduxjs/toolkit'; import { api } from 'redux/api/swarm'; +import notification, { + INotificationState, + NotificationAction, +} from 'redux/slice/notification.slice'; import swarm, { ISwarmState, SwarmAction } from 'redux/slice/swarm.slice'; import theme, { IThemeState, ThemeAction } from 'redux/slice/theme.slice'; import ui, { IUiState, UiAction } from 'redux/slice/ui.slice'; import url, { IUrlState, UrlAction } from 'redux/slice/url.slice'; export interface IRootState { + notification: INotificationState; swarm: ISwarmState; theme: IThemeState; ui: IUiState; url: IUrlState; } -export type Action = SwarmAction | ThemeAction | UiAction | UrlAction | PayloadAction; +export type Action = + | NotificationAction + | SwarmAction + | ThemeAction + | UiAction + | UrlAction + | PayloadAction; -const rootReducer = combineReducers({ [api.reducerPath]: api.reducer, swarm, theme, ui, url }); +const rootReducer = combineReducers({ + [api.reducerPath]: api.reducer, + notification, + swarm, + theme, + ui, + url, +}); export default rootReducer; diff --git a/locust/webui/src/utils/object.ts b/locust/webui/src/utils/object.ts index eef3732d27..ae7ab71d70 100644 --- a/locust/webui/src/utils/object.ts +++ b/locust/webui/src/utils/object.ts @@ -1,4 +1,8 @@ -export const isEmpty = >(object: T) => !Object.keys(object).length; +export const objectLength = | any[]>(object: T) => + Array.isArray(object) ? object.length : Object.keys(object).length; + +export const isEmpty = | any[]>(object: T) => + objectLength(object) === 0; export function shallowMerge(objectA: ObjectA, objectB: ObjectB) { return { From 0e02578579af6d5825ee8dff1ef8e0730975ae47 Mon Sep 17 00:00:00 2001 From: Andrew Baldwin Date: Mon, 4 Dec 2023 11:02:43 -0500 Subject: [PATCH 2/8] Refactor LogViewer to register notifications --- .../{index-4821ac48.js => index-b9008be3.js} | 116 +++++++++--------- locust/webui/dist/index.html | 2 +- locust/webui/src/App.tsx | 2 + .../components/LogViewer/LogViewer.test.tsx | 31 ----- .../src/components/LogViewer/LogViewer.tsx | 14 +-- .../LogViewer/tests/LogViewer.test.tsx | 20 +++ .../LogViewer/tests/useLogViewer.test.tsx | 38 ++++++ .../src/components/LogViewer/useLogViewer.ts | 27 ++++ .../src/components/Tabs/Tabs.constants.tsx | 2 +- .../webui/src/redux/slice/logViewer.slice.ts | 24 ++++ locust/webui/src/redux/slice/root.slice.ts | 4 + 11 files changed, 181 insertions(+), 99 deletions(-) rename locust/webui/dist/assets/{index-4821ac48.js => index-b9008be3.js} (64%) delete mode 100644 locust/webui/src/components/LogViewer/LogViewer.test.tsx create mode 100644 locust/webui/src/components/LogViewer/tests/LogViewer.test.tsx create mode 100644 locust/webui/src/components/LogViewer/tests/useLogViewer.test.tsx create mode 100644 locust/webui/src/components/LogViewer/useLogViewer.ts create mode 100644 locust/webui/src/redux/slice/logViewer.slice.ts diff --git a/locust/webui/dist/assets/index-4821ac48.js b/locust/webui/dist/assets/index-b9008be3.js similarity index 64% rename from locust/webui/dist/assets/index-4821ac48.js rename to locust/webui/dist/assets/index-b9008be3.js index 8a767bc20e..147b55a257 100644 --- a/locust/webui/dist/assets/index-4821ac48.js +++ b/locust/webui/dist/assets/index-b9008be3.js @@ -1,4 +1,4 @@ -function m7(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 Qp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function y7(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 HF={exports:{}},H0={},WF={exports:{}},lt={};/** +function S7(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 Jp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function b7(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 WF={exports:{}},U0={},UF={exports:{}},lt={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function m7(e,t){for(var r=0;r>>1,U=N[G];if(0>>1;Gi(X,L))Wi(ee,X)?(N[G]=ee,N[W]=L,G=W):(N[G]=X,N[j]=L,G=j);else if(Wi(ee,L))N[G]=ee,N[W]=L,G=W;else break e}}return V}function i(N,V){var L=N.sortIndex-V.sortIndex;return L!==0?L:N.id-V.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 V=r(u);V!==null;){if(V.callback===null)n(u);else if(V.startTime<=N)n(u),V.sortIndex=V.expirationTime,t(l,V);else break;V=r(u)}}function S(N){if(v=!1,x(N),!p)if(r(l)!==null)p=!0,z(_);else{var V=r(u);V!==null&&$(S,V.startTime-N)}}function _(N,V){p=!1,v&&(v=!1,m(C),C=-1),h=!0;var L=d;try{for(x(V),f=r(l);f!==null&&(!(f.expirationTime>V)||N&&!M());){var G=f.callback;if(typeof G=="function"){f.callback=null,d=f.priorityLevel;var U=G(f.expirationTime<=V);V=e.unstable_now(),typeof U=="function"?f.callback=U:f===r(l)&&n(l),x(V)}else n(l);f=r(l)}if(f!==null)var B=!0;else{var j=r(u);j!==null&&$(S,j.startTime-V),B=!1}return B}finally{f=null,d=L,h=!1}}var b=!1,w=null,C=-1,A=5,T=-1;function M(){return!(e.unstable_now()-TN||125G?(N.sortIndex=L,t(u,N),r(l)===null&&N===r(u)&&(v?(m(C),C=-1):v=!0,$(S,L-G))):(N.sortIndex=U,t(l,N),p||h||(p=!0,z(_))),N},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(N){var V=d;return function(){var L=d;d=V;try{return N.apply(this,arguments)}finally{d=L}}}})(t$);e$.exports=t$;var $7=e$.exports;/** + */(function(e){function t(N,V){var L=N.length;N.push(V);e:for(;0>>1,U=N[G];if(0>>1;Gi(X,L))Wi(ee,X)?(N[G]=ee,N[W]=L,G=W):(N[G]=X,N[j]=L,G=j);else if(Wi(ee,L))N[G]=ee,N[W]=L,G=W;else break e}}return V}function i(N,V){var L=N.sortIndex-V.sortIndex;return L!==0?L:N.id-V.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 V=r(u);V!==null;){if(V.callback===null)n(u);else if(V.startTime<=N)n(u),V.sortIndex=V.expirationTime,t(l,V);else break;V=r(u)}}function S(N){if(v=!1,x(N),!p)if(r(l)!==null)p=!0,z(_);else{var V=r(u);V!==null&&$(S,V.startTime-N)}}function _(N,V){p=!1,v&&(v=!1,m(C),C=-1),h=!0;var L=d;try{for(x(V),f=r(l);f!==null&&(!(f.expirationTime>V)||N&&!M());){var G=f.callback;if(typeof G=="function"){f.callback=null,d=f.priorityLevel;var U=G(f.expirationTime<=V);V=e.unstable_now(),typeof U=="function"?f.callback=U:f===r(l)&&n(l),x(V)}else n(l);f=r(l)}if(f!==null)var B=!0;else{var j=r(u);j!==null&&$(S,j.startTime-V),B=!1}return B}finally{f=null,d=L,h=!1}}var b=!1,w=null,C=-1,A=5,T=-1;function M(){return!(e.unstable_now()-TN||125G?(N.sortIndex=L,t(u,N),r(l)===null&&N===r(u)&&(v?(m(C),C=-1):v=!0,$(S,L-G))):(N.sortIndex=U,t(l,N),p||h||(p=!0,z(_))),N},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(N){var V=d;return function(){var L=d;d=V;try{return N.apply(this,arguments)}finally{d=L}}}})(r$);t$.exports=r$;var H7=t$.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ function m7(e,t){for(var r=0;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Aw=Object.prototype.hasOwnProperty,V7=/^[: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]*$/,QP={},JP={};function G7(e){return Aw.call(JP,e)?!0:Aw.call(QP,e)?!1:V7.test(e)?JP[e]=!0:(QP[e]=!0,!1)}function H7(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 W7(e,t,r,n){if(t===null||typeof t>"u"||H7(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 fn(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 fn(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 fn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Nr[e]=new fn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Nr[e]=new fn(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 fn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Nr[e]=new fn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Nr[e]=new fn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Nr[e]=new fn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Nr[e]=new fn(e,5,!1,e.toLowerCase(),null,!1,!1)});var GA=/[\-:]([a-z])/g;function HA(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(GA,HA);Nr[t]=new fn(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(GA,HA);Nr[t]=new fn(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(GA,HA);Nr[t]=new fn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Nr[e]=new fn(e,1,!1,e.toLowerCase(),null,!1,!1)});Nr.xlinkHref=new fn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Nr[e]=new fn(e,1,!1,e.toLowerCase(),null,!0,!0)});function WA(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"),Mw=Object.prototype.hasOwnProperty,W7=/^[: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]*$/,JP={},ek={};function U7(e){return Mw.call(ek,e)?!0:Mw.call(JP,e)?!1:W7.test(e)?ek[e]=!0:(JP[e]=!0,!1)}function j7(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 Y7(e,t,r,n){if(t===null||typeof t>"u"||j7(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 fn(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 fn(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 fn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Nr[e]=new fn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Nr[e]=new fn(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 fn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Nr[e]=new fn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Nr[e]=new fn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Nr[e]=new fn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Nr[e]=new fn(e,5,!1,e.toLowerCase(),null,!1,!1)});var HA=/[\-:]([a-z])/g;function WA(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(HA,WA);Nr[t]=new fn(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(HA,WA);Nr[t]=new fn(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(HA,WA);Nr[t]=new fn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Nr[e]=new fn(e,1,!1,e.toLowerCase(),null,!1,!1)});Nr.xlinkHref=new fn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Nr[e]=new fn(e,1,!1,e.toLowerCase(),null,!0,!0)});function UA(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{Kx=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Yd(e):""}function U7(e){switch(e.tag){case 5:return Yd(e.type);case 16:return Yd("Lazy");case 13:return Yd("Suspense");case 19:return Yd("SuspenseList");case 0:case 2:case 15:return e=Qx(e.type,!1),e;case 11:return e=Qx(e.type.render,!1),e;case 1:return e=Qx(e.type,!0),e;default:return""}}function kw(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 bc:return"Fragment";case Sc:return"Portal";case Mw:return"Profiler";case UA:return"StrictMode";case Iw:return"Suspense";case Pw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case a$:return(e.displayName||"Context")+".Consumer";case i$:return(e._context.displayName||"Context")+".Provider";case jA:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case YA:return t=e.displayName||null,t!==null?t:kw(e.type)||"Memo";case Wo:t=e._payload,e=e._init;try{return kw(e(t))}catch{}}return null}function j7(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 kw(t);case 8:return t===UA?"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 _s(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function s$(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Y7(e){var t=s$(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 Nv(e){e._valueTracker||(e._valueTracker=Y7(e))}function l$(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=s$(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function ty(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 Dw(e,t){var r=t.checked;return Kt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function tk(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=_s(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 u$(e,t){t=t.checked,t!=null&&WA(e,"checked",t,!1)}function Rw(e,t){u$(e,t);var r=_s(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")?Lw(e,t.type,r):t.hasOwnProperty("defaultValue")&&Lw(e,t.type,_s(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function rk(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 Lw(e,t,r){(t!=="number"||ty(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var qd=Array.isArray;function zc(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=zv.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Kh(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var ph={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},q7=["Webkit","ms","Moz","O"];Object.keys(ph).forEach(function(e){q7.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ph[t]=ph[e]})});function h$(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||ph.hasOwnProperty(e)&&ph[e]?(""+t).trim():t+"px"}function p$(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=h$(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var X7=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 Nw(e,t){if(t){if(X7[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 zw(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 Bw=null;function qA(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fw=null,Bc=null,Fc=null;function ak(e){if(e=rv(e)){if(typeof Fw!="function")throw Error(ae(280));var t=e.stateNode;t&&(t=q0(t),Fw(e.stateNode,e.type,t))}}function v$(e){Bc?Fc?Fc.push(e):Fc=[e]:Bc=e}function g$(){if(Bc){var e=Bc,t=Fc;if(Fc=Bc=null,ak(e),t)for(e=0;e>>=0,e===0?32:31-(oY(e)/sY|0)|0}var Bv=64,Fv=4194304;function Xd(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 ay(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=Xd(s):(a&=o,a!==0&&(n=Xd(a)))}else o=r&~i,o!==0?n=Xd(o):a!==0&&(n=Xd(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 ev(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Gi(t),e[t]=r}function fY(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=gh),pk=String.fromCharCode(32),vk=!1;function N$(e,t){switch(e){case"keyup":return FY.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function z$(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var _c=!1;function VY(e,t){switch(e){case"compositionend":return z$(t);case"keypress":return t.which!==32?null:(vk=!0,pk);case"textInput":return e=t.data,e===pk&&vk?null:e;default:return null}}function GY(e,t){if(_c)return e==="compositionend"||!rM&&N$(e,t)?(e=E$(),mm=JA=Ko=null,_c=!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=xk(r)}}function V$(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?V$(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function G$(){for(var e=window,t=ty();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=ty(e.document)}return t}function nM(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 KY(e){var t=G$(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&V$(r.ownerDocument.documentElement,r)){if(n!==null&&nM(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=Sk(r,a);var o=Sk(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,wc=null,Uw=null,yh=null,jw=!1;function bk(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;jw||wc==null||wc!==ty(n)||(n=wc,"selectionStart"in n&&nM(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}),yh&&np(yh,n)||(yh=n,n=ly(Uw,"onSelect"),0Ac||(e.current=Qw[Ac],Qw[Ac]=null,Ac--)}function Ot(e,t){Ac++,Qw[Ac]=e.current,e.current=t}var ws={},Xr=Fs(ws),_n=Fs(!1),lu=ws;function tf(e,t){var r=e.type.contextTypes;if(!r)return ws;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 wn(e){return e=e.childContextTypes,e!=null}function cy(){$t(_n),$t(Xr)}function Ik(e,t,r){if(Xr.current!==ws)throw Error(ae(168));Ot(Xr,t),Ot(_n,r)}function K$(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,j7(e)||"Unknown",i));return Kt({},r,n)}function fy(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ws,lu=Xr.current,Ot(Xr,e),Ot(_n,_n.current),!0}function Pk(e,t,r){var n=e.stateNode;if(!n)throw Error(ae(169));r?(e=K$(e,t,lu),n.__reactInternalMemoizedMergedChildContext=e,$t(_n),$t(Xr),Ot(Xr,e)):$t(_n),Ot(_n,r)}var Za=null,X0=!1,dS=!1;function Q$(e){Za===null?Za=[e]:Za.push(e)}function uq(e){X0=!0,Q$(e)}function $s(){if(!dS&&Za!==null){dS=!0;var e=0,t=Ct;try{var r=Za;for(Ct=1;e>=o,i-=o,Ka=1<<32-Gi(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&&gl(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&&gl(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&&gl(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(I){return t(m,I)}),Wt&&gl(m,C),_}function g(m,y,x,S){if(typeof x=="object"&&x!==null&&x.type===bc&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Ov:e:{for(var _=x.key,b=y;b!==null;){if(b.key===_){if(_=x.type,_===bc){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===Wo&&Nk(_)===b.type){r(m,b.sibling),y=i(b,x.props),y.ref=od(m,b,x),y.return=m,m=y;break e}r(m,b);break}else t(m,b);b=b.sibling}x.type===bc?(y=Zl(x.props.children,m.mode,S,x.key),y.return=m,m=y):(S=Tm(x.type,x.key,x.props,null,m.mode,S),S.ref=od(m,y,x),S.return=m,m=S)}return o(m);case Sc: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=SS(x,m.mode,S),y.return=m,m=y}return o(m);case Wo:return b=x._init,g(m,y,b(x._payload),S)}if(qd(x))return p(m,y,x,S);if(td(x))return v(m,y,x,S);jv(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=xS(x,m.mode,S),y.return=m,m=y),o(m)):r(m,y)}return g}var nf=o3(!0),s3=o3(!1),nv={},Ta=Fs(nv),sp=Fs(nv),lp=Fs(nv);function Nl(e){if(e===nv)throw Error(ae(174));return e}function dM(e,t){switch(Ot(lp,t),Ot(sp,e),Ot(Ta,nv),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ow(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ow(t,e)}$t(Ta),Ot(Ta,t)}function af(){$t(Ta),$t(sp),$t(lp)}function l3(e){Nl(lp.current);var t=Nl(Ta.current),r=Ow(t,e.type);t!==r&&(Ot(sp,e),Ot(Ta,r))}function hM(e){sp.current===e&&($t(Ta),$t(sp))}var qt=Fs(0);function my(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 hS=[];function pM(){for(var e=0;er?r:4,e(!0);var n=pS.transition;pS.transition={};try{e(!1),t()}finally{Ct=r,pS.transition=n}}function C3(){return Si().memoizedState}function hq(e,t,r){var n=ps(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},T3(e))A3(t,r);else if(r=r3(e,t,r,n),r!==null){var i=an();Hi(r,e,n,i),M3(r,t,n)}}function pq(e,t,r){var n=ps(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(T3(e))A3(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,ji(s,o)){var l=t.interleaved;l===null?(i.next=i,cM(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=r3(e,t,i,n),r!==null&&(i=an(),Hi(r,e,n,i),M3(r,t,n))}}function T3(e){var t=e.alternate;return e===Zt||t!==null&&t===Zt}function A3(e,t){xh=yy=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function M3(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,ZA(e,r)}}var xy={readContext:xi,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},vq={readContext:xi,useCallback:function(e,t){return sa().memoizedState=[e,t===void 0?null:t],e},useContext:xi,useEffect:Bk,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,bm(4194308,4,x3.bind(null,t,e),r)},useLayoutEffect:function(e,t){return bm(4194308,4,e,t)},useInsertionEffect:function(e,t){return bm(4,2,e,t)},useMemo:function(e,t){var r=sa();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=sa();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=hq.bind(null,Zt,e),[n.memoizedState,e]},useRef:function(e){var t=sa();return e={current:e},t.memoizedState=e},useState:zk,useDebugValue:xM,useDeferredValue:function(e){return sa().memoizedState=e},useTransition:function(){var e=zk(!1),t=e[0];return e=dq.bind(null,e[1]),sa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Zt,i=sa();if(Wt){if(r===void 0)throw Error(ae(407));r=r()}else{if(r=t(),Ar===null)throw Error(ae(349));cu&30||f3(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,Bk(h3.bind(null,n,a,e),[e]),n.flags|=2048,fp(9,d3.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=sa(),t=Ar.identifierPrefix;if(Wt){var r=Qa,n=Ka;r=(n&~(1<<32-Gi(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=up++,0")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{Qx=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Xd(e):""}function q7(e){switch(e.tag){case 5:return Xd(e.type);case 16:return Xd("Lazy");case 13:return Xd("Suspense");case 19:return Xd("SuspenseList");case 0:case 2:case 15:return e=Jx(e.type,!1),e;case 11:return e=Jx(e.type.render,!1),e;case 1:return e=Jx(e.type,!0),e;default:return""}}function Dw(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 Cc:return"Fragment";case wc:return"Portal";case Iw:return"Profiler";case jA:return"StrictMode";case Pw:return"Suspense";case kw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case o$:return(e.displayName||"Context")+".Consumer";case a$:return(e._context.displayName||"Context")+".Provider";case YA:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case qA:return t=e.displayName||null,t!==null?t:Dw(e.type)||"Memo";case Wo:t=e._payload,e=e._init;try{return Dw(e(t))}catch{}}return null}function X7(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 Dw(t);case 8:return t===jA?"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 _s(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function l$(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Z7(e){var t=l$(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 Bv(e){e._valueTracker||(e._valueTracker=Z7(e))}function u$(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=l$(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function ny(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 Rw(e,t){var r=t.checked;return Kt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function rk(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=_s(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 c$(e,t){t=t.checked,t!=null&&UA(e,"checked",t,!1)}function Lw(e,t){c$(e,t);var r=_s(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")?Ew(e,t.type,r):t.hasOwnProperty("defaultValue")&&Ew(e,t.type,_s(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function nk(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 Ew(e,t,r){(t!=="number"||ny(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Zd=Array.isArray;function $c(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Fv.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Qh(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var vh={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},K7=["Webkit","ms","Moz","O"];Object.keys(vh).forEach(function(e){K7.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),vh[t]=vh[e]})});function p$(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||vh.hasOwnProperty(e)&&vh[e]?(""+t).trim():t+"px"}function v$(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=p$(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var Q7=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 zw(e,t){if(t){if(Q7[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 Bw(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 Fw=null;function XA(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $w=null,Vc=null,Gc=null;function ok(e){if(e=nv(e)){if(typeof $w!="function")throw Error(ae(280));var t=e.stateNode;t&&(t=Z0(t),$w(e.stateNode,e.type,t))}}function g$(e){Vc?Gc?Gc.push(e):Gc=[e]:Vc=e}function m$(){if(Vc){var e=Vc,t=Gc;if(Gc=Vc=null,ok(e),t)for(e=0;e>>=0,e===0?32:31-(uY(e)/cY|0)|0}var $v=64,Vv=4194304;function Kd(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=Kd(s):(a&=o,a!==0&&(n=Kd(a)))}else o=r&~i,o!==0?n=Kd(o):a!==0&&(n=Kd(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 tv(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Gi(t),e[t]=r}function pY(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),vk=String.fromCharCode(32),gk=!1;function z$(e,t){switch(e){case"keyup":return GY.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function B$(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Tc=!1;function WY(e,t){switch(e){case"compositionend":return B$(t);case"keypress":return t.which!==32?null:(gk=!0,vk);case"textInput":return e=t.data,e===vk&&gk?null:e;default:return null}}function UY(e,t){if(Tc)return e==="compositionend"||!nM&&z$(e,t)?(e=O$(),xm=eM=Ko=null,Tc=!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=Sk(r)}}function G$(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?G$(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function H$(){for(var e=window,t=ny();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=ny(e.document)}return t}function iM(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 eq(e){var t=H$(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&G$(r.ownerDocument.documentElement,r)){if(n!==null&&iM(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=bk(r,a);var o=bk(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,Ac=null,jw=null,xh=null,Yw=!1;function _k(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Yw||Ac==null||Ac!==ny(n)||(n=Ac,"selectionStart"in n&&iM(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}),xh&&ip(xh,n)||(xh=n,n=cy(jw,"onSelect"),0Pc||(e.current=Jw[Pc],Jw[Pc]=null,Pc--)}function Ot(e,t){Pc++,Jw[Pc]=e.current,e.current=t}var ws={},Xr=Fs(ws),_n=Fs(!1),cu=ws;function af(e,t){var r=e.type.contextTypes;if(!r)return ws;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 wn(e){return e=e.childContextTypes,e!=null}function dy(){$t(_n),$t(Xr)}function Pk(e,t,r){if(Xr.current!==ws)throw Error(ae(168));Ot(Xr,t),Ot(_n,r)}function Q$(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,X7(e)||"Unknown",i));return Kt({},r,n)}function hy(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ws,cu=Xr.current,Ot(Xr,e),Ot(_n,_n.current),!0}function kk(e,t,r){var n=e.stateNode;if(!n)throw Error(ae(169));r?(e=Q$(e,t,cu),n.__reactInternalMemoizedMergedChildContext=e,$t(_n),$t(Xr),Ot(Xr,e)):$t(_n),Ot(_n,r)}var Za=null,K0=!1,hS=!1;function J$(e){Za===null?Za=[e]:Za.push(e)}function dq(e){K0=!0,J$(e)}function $s(){if(!hS&&Za!==null){hS=!0;var e=0,t=Ct;try{var r=Za;for(Ct=1;e>=o,i-=o,Ka=1<<32-Gi(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&&ml(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&&ml(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&&ml(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(I){return t(m,I)}),Wt&&ml(m,C),_}function g(m,y,x,S){if(typeof x=="object"&&x!==null&&x.type===Cc&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case zv:e:{for(var _=x.key,b=y;b!==null;){if(b.key===_){if(_=x.type,_===Cc){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===Wo&&zk(_)===b.type){r(m,b.sibling),y=i(b,x.props),y.ref=ld(m,b,x),y.return=m,m=y;break e}r(m,b);break}else t(m,b);b=b.sibling}x.type===Cc?(y=Ql(x.props.children,m.mode,S,x.key),y.return=m,m=y):(S=Mm(x.type,x.key,x.props,null,m.mode,S),S.ref=ld(m,y,x),S.return=m,m=S)}return o(m);case wc: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=bS(x,m.mode,S),y.return=m,m=y}return o(m);case Wo:return b=x._init,g(m,y,b(x._payload),S)}if(Zd(x))return p(m,y,x,S);if(nd(x))return v(m,y,x,S);qv(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=SS(x,m.mode,S),y.return=m,m=y),o(m)):r(m,y)}return g}var sf=s3(!0),l3=s3(!1),iv={},Ta=Fs(iv),lp=Fs(iv),up=Fs(iv);function zl(e){if(e===iv)throw Error(ae(174));return e}function hM(e,t){switch(Ot(up,t),Ot(lp,e),Ot(Ta,iv),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Nw(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Nw(t,e)}$t(Ta),Ot(Ta,t)}function lf(){$t(Ta),$t(lp),$t(up)}function u3(e){zl(up.current);var t=zl(Ta.current),r=Nw(t,e.type);t!==r&&(Ot(lp,e),Ot(Ta,r))}function pM(e){lp.current===e&&($t(Ta),$t(lp))}var qt=Fs(0);function xy(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 pS=[];function vM(){for(var e=0;er?r:4,e(!0);var n=vS.transition;vS.transition={};try{e(!1),t()}finally{Ct=r,vS.transition=n}}function T3(){return bi().memoizedState}function gq(e,t,r){var n=ps(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},A3(e))M3(t,r);else if(r=n3(e,t,r,n),r!==null){var i=an();Hi(r,e,n,i),I3(r,t,n)}}function mq(e,t,r){var n=ps(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(A3(e))M3(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,ji(s,o)){var l=t.interleaved;l===null?(i.next=i,fM(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=n3(e,t,i,n),r!==null&&(i=an(),Hi(r,e,n,i),I3(r,t,n))}}function A3(e){var t=e.alternate;return e===Zt||t!==null&&t===Zt}function M3(e,t){Sh=Sy=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function I3(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,KA(e,r)}}var by={readContext:Si,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},yq={readContext:Si,useCallback:function(e,t){return sa().memoizedState=[e,t===void 0?null:t],e},useContext:Si,useEffect:Fk,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,wm(4194308,4,S3.bind(null,t,e),r)},useLayoutEffect:function(e,t){return wm(4194308,4,e,t)},useInsertionEffect:function(e,t){return wm(4,2,e,t)},useMemo:function(e,t){var r=sa();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=sa();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=gq.bind(null,Zt,e),[n.memoizedState,e]},useRef:function(e){var t=sa();return e={current:e},t.memoizedState=e},useState:Bk,useDebugValue:SM,useDeferredValue:function(e){return sa().memoizedState=e},useTransition:function(){var e=Bk(!1),t=e[0];return e=vq.bind(null,e[1]),sa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Zt,i=sa();if(Wt){if(r===void 0)throw Error(ae(407));r=r()}else{if(r=t(),Ar===null)throw Error(ae(349));du&30||d3(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,Fk(p3.bind(null,n,a,e),[e]),n.flags|=2048,dp(9,h3.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=sa(),t=Ar.identifierPrefix;if(Wt){var r=Qa,n=Ka;r=(n&~(1<<32-Gi(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=cp++,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[da]=t,e[op]=n,N3(e,t,!1,!1),t.stateNode=e;e:{switch(o=zw(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;isf&&(t.flags|=128,n=!0,sd(a,!1),t.lanes=4194304)}else{if(!n)if(e=my(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),sd(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Wt)return Gr(t),null}else 2*ar()-a.renderingStartTime>sf&&r!==1073741824&&(t.flags|=128,n=!0,sd(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=qt.current,Ot(qt,n?r&1|2:r&1),t):(Gr(t),null);case 22:case 23:return TM(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Ln&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 wq(e,t){switch(aM(t),t.tag){case 1:return wn(t.type)&&cy(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return af(),$t(_n),$t(Xr),pM(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return hM(t),null;case 13:if($t(qt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ae(340));rf()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $t(qt),null;case 4:return af(),null;case 10:return uM(t.type._context),null;case 22:case 23:return TM(),null;case 24:return null;default:return null}}var qv=!1,qr=!1,Cq=typeof WeakSet=="function"?WeakSet:Set,be=null;function kc(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 cC(e,t,r){try{r()}catch(n){er(e,t,n)}}var Yk=!1;function Tq(e,t){if(Yw=oy,e=G$(),nM(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(qw={focusedElem:e,selectionRange:r},oy=!1,be=t;be!==null;)if(t=be,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,be=e;else for(;be!==null;){t=be;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:Ei(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,be=e;break}be=t.return}return p=Yk,Yk=!1,p}function Sh(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&&cC(t,r,a)}i=i.next}while(i!==n)}}function Q0(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 fC(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 F3(e){var t=e.alternate;t!==null&&(e.alternate=null,F3(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[da],delete t[op],delete t[Kw],delete t[sq],delete t[lq])),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 $3(e){return e.tag===5||e.tag===3||e.tag===4}function qk(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$3(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 dC(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=uy));else if(n!==4&&(e=e.child,e!==null))for(dC(e,t,r),e=e.sibling;e!==null;)dC(e,t,r),e=e.sibling}function hC(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(hC(e,t,r),e=e.sibling;e!==null;)hC(e,t,r),e=e.sibling}var Pr=null,Ni=!1;function Po(e,t,r){for(r=r.child;r!==null;)V3(e,t,r),r=r.sibling}function V3(e,t,r){if(Ca&&typeof Ca.onCommitFiberUnmount=="function")try{Ca.onCommitFiberUnmount(W0,r)}catch{}switch(r.tag){case 5:qr||kc(r,t);case 6:var n=Pr,i=Ni;Pr=null,Po(e,t,r),Pr=n,Ni=i,Pr!==null&&(Ni?(e=Pr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Pr.removeChild(r.stateNode));break;case 18:Pr!==null&&(Ni?(e=Pr,r=r.stateNode,e.nodeType===8?fS(e.parentNode,r):e.nodeType===1&&fS(e,r),tp(e)):fS(Pr,r.stateNode));break;case 4:n=Pr,i=Ni,Pr=r.stateNode.containerInfo,Ni=!0,Po(e,t,r),Pr=n,Ni=i;break;case 0:case 11:case 14:case 15:if(!qr&&(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)&&cC(r,t,o),i=i.next}while(i!==n)}Po(e,t,r);break;case 1:if(!qr&&(kc(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)}Po(e,t,r);break;case 21:Po(e,t,r);break;case 22:r.mode&1?(qr=(n=qr)||r.memoizedState!==null,Po(e,t,r),qr=n):Po(e,t,r);break;default:Po(e,t,r)}}function Xk(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Cq),t.forEach(function(n){var i=Eq.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Ii(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*Mq(n/1960))-n,10e?16:e,Qo===null)var n=!1;else{if(e=Qo,Qo=null,_y=0,dt&6)throw Error(ae(331));var i=dt;for(dt|=4,be=e.current;be!==null;){var a=be,o=a.child;if(be.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lar()-wM?Xl(e,0):_M|=r),Cn(e,t)}function X3(e,t){t===0&&(e.mode&1?(t=Fv,Fv<<=1,!(Fv&130023424)&&(Fv=4194304)):t=1);var r=an();e=uo(e,t),e!==null&&(ev(e,t,r),Cn(e,r))}function Lq(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),X3(e,r)}function Eq(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),X3(e,r)}var Z3;Z3=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||_n.current)bn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return bn=!1,bq(e,t,r);bn=!!(e.flags&131072)}else bn=!1,Wt&&t.flags&1048576&&J$(t,hy,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;_m(e,t),e=t.pendingProps;var i=tf(t,Xr.current);Vc(t,r),i=gM(null,t,n,e,i,r);var a=mM();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,wn(n)?(a=!0,fy(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,fM(t),i.updater=Z0,t.stateNode=i,i._reactInternals=t,nC(t,n,e,r),t=oC(null,t,n,!0,a,r)):(t.tag=0,Wt&&a&&iM(t),tn(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(_m(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=Nq(n),e=Ei(n,e),i){case 0:t=aC(null,t,n,e,r);break e;case 1:t=Wk(null,t,n,e,r);break e;case 11:t=Gk(null,t,n,e,r);break e;case 14:t=Hk(null,t,n,Ei(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:Ei(n,i),aC(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ei(n,i),Wk(e,t,n,i,r);case 3:e:{if(L3(t),e===null)throw Error(ae(387));n=t.pendingProps,a=t.memoizedState,i=a.element,n3(e,t),gy(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=of(Error(ae(423)),t),t=Uk(e,t,n,r,i);break e}else if(n!==i){i=of(Error(ae(424)),t),t=Uk(e,t,n,r,i);break e}else for(Nn=fs(t.stateNode.containerInfo.firstChild),Bn=t,Wt=!0,zi=null,r=s3(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(rf(),n===i){t=co(e,t,r);break e}tn(e,t,n,r)}t=t.child}return t;case 5:return l3(t),e===null&&eC(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Xw(n,i)?o=null:a!==null&&Xw(n,a)&&(t.flags|=32),R3(e,t),tn(e,t,o,r),t.child;case 6:return e===null&&eC(t),null;case 13:return E3(e,t,r);case 4:return dM(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=nf(t,null,n,r):tn(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ei(n,i),Gk(e,t,n,i,r);case 7:return tn(e,t,t.pendingProps,r),t.child;case 8:return tn(e,t,t.pendingProps.children,r),t.child;case 12:return tn(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(py,n._currentValue),n._currentValue=o,a!==null)if(ji(a.value,o)){if(a.children===i.children&&!_n.current){t=co(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=to(-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),tC(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),tC(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}tn(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Vc(t,r),i=xi(i),n=n(i),t.flags|=1,tn(e,t,n,r),t.child;case 14:return n=t.type,i=Ei(n,t.pendingProps),i=Ei(n.type,i),Hk(e,t,n,i,r);case 15:return k3(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ei(n,i),_m(e,t),t.tag=1,wn(n)?(e=!0,fy(t)):e=!1,Vc(t,r),a3(t,n,i),nC(t,n,i,r),oC(null,t,n,!0,e,r);case 19:return O3(e,t,r);case 22:return D3(e,t,r)}throw Error(ae(156,t.tag))};function K3(e,t){return w$(e,t)}function Oq(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 pi(e,t,r,n){return new Oq(e,t,r,n)}function MM(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Nq(e){if(typeof e=="function")return MM(e)?1:0;if(e!=null){if(e=e.$$typeof,e===jA)return 11;if(e===YA)return 14}return 2}function vs(e,t){var r=e.alternate;return r===null?(r=pi(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 Tm(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")MM(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case bc:return Zl(r.children,i,a,t);case UA:o=8,i|=8;break;case Mw:return e=pi(12,r,t,i|2),e.elementType=Mw,e.lanes=a,e;case Iw:return e=pi(13,r,t,i),e.elementType=Iw,e.lanes=a,e;case Pw:return e=pi(19,r,t,i),e.elementType=Pw,e.lanes=a,e;case o$:return e1(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case i$:o=10;break e;case a$:o=9;break e;case jA:o=11;break e;case YA:o=14;break e;case Wo:o=16,n=null;break e}throw Error(ae(130,e==null?e:typeof e,""))}return t=pi(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function Zl(e,t,r,n){return e=pi(7,e,n,t),e.lanes=r,e}function e1(e,t,r,n){return e=pi(22,e,n,t),e.elementType=o$,e.lanes=r,e.stateNode={isHidden:!1},e}function xS(e,t,r){return e=pi(6,e,null,t),e.lanes=r,e}function SS(e,t,r){return t=pi(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zq(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=eS(0),this.expirationTimes=eS(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=eS(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function IM(e,t,r,n,i,a,o,s,l){return e=new zq(e,t,r,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=pi(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},fM(a),e}function Bq(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(tV)}catch(e){console.error(e)}}tV(),JF.exports=Un;var Mf=JF.exports;const Kv=Qp(Mf);var nD=Mf;Tw.createRoot=nD.createRoot,Tw.hydrateRoot=nD.hydrateRoot;var rV={exports:{}},nV={};/** +`+a.stack}return{value:e,source:t,stack:i,digest:null}}function yS(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function aC(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var bq=typeof WeakMap=="function"?WeakMap:Map;function P3(e,t,r){r=to(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){wy||(wy=!0,vC=n),aC(e,t)},r}function k3(e,t,r){r=to(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){aC(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){aC(e,t),typeof n!="function"&&(hs===null?hs=new Set([this]):hs.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}function $k(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new bq;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=Oq.bind(null,e,t,r),t.then(e,e))}function Vk(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Gk(e,t,r,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=to(-1,1),t.tag=2,ds(r,t,1))),r.lanes|=1),e)}var _q=_o.ReactCurrentOwner,bn=!1;function tn(e,t,r,n){t.child=e===null?l3(t,null,r,n):sf(t,e.child,r,n)}function Hk(e,t,r,n,i){r=r.render;var a=t.ref;return Wc(t,i),n=mM(e,t,r,n,a,i),r=yM(),e!==null&&!bn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,co(e,t,i)):(Wt&&r&&aM(t),t.flags|=1,tn(e,t,n,i),t.child)}function Wk(e,t,r,n,i){if(e===null){var a=r.type;return typeof a=="function"&&!IM(a)&&a.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=a,D3(e,t,a,n,i)):(e=Mm(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var o=a.memoizedProps;if(r=r.compare,r=r!==null?r:ip,r(o,n)&&e.ref===t.ref)return co(e,t,i)}return t.flags|=1,e=vs(a,n),e.ref=t.ref,e.return=t,t.child=e}function D3(e,t,r,n,i){if(e!==null){var a=e.memoizedProps;if(ip(a,n)&&e.ref===t.ref)if(bn=!1,t.pendingProps=n=a,(e.lanes&i)!==0)e.flags&131072&&(bn=!0);else return t.lanes=e.lanes,co(e,t,i)}return oC(e,t,r,n,i)}function R3(e,t,r){var n=t.pendingProps,i=n.children,a=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ot(Ec,Ln),Ln|=r;else{if(!(r&1073741824))return e=a!==null?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ot(Ec,Ln),Ln|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=a!==null?a.baseLanes:r,Ot(Ec,Ln),Ln|=n}else a!==null?(n=a.baseLanes|r,t.memoizedState=null):n=r,Ot(Ec,Ln),Ln|=n;return tn(e,t,i,r),t.child}function L3(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function oC(e,t,r,n,i){var a=wn(r)?cu:Xr.current;return a=af(t,a),Wc(t,i),r=mM(e,t,r,n,a,i),n=yM(),e!==null&&!bn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,co(e,t,i)):(Wt&&n&&aM(t),t.flags|=1,tn(e,t,r,i),t.child)}function Uk(e,t,r,n,i){if(wn(r)){var a=!0;hy(t)}else a=!1;if(Wc(t,i),t.stateNode===null)Cm(e,t),o3(t,r,n),iC(t,r,n,i),n=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,u=r.contextType;typeof u=="object"&&u!==null?u=Si(u):(u=wn(r)?cu:Xr.current,u=af(t,u));var c=r.getDerivedStateFromProps,f=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==n||l!==u)&&Nk(t,o,n,u),Uo=!1;var d=t.memoizedState;o.state=d,yy(t,n,o,i),l=t.memoizedState,s!==n||d!==l||_n.current||Uo?(typeof c=="function"&&(nC(t,r,c,n),l=t.memoizedState),(s=Uo||Ok(t,r,s,n,d,l,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),o.props=n,o.state=l,o.context=u,n=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,i3(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Oi(t.type,s),o.props=u,f=t.pendingProps,d=o.context,l=r.contextType,typeof l=="object"&&l!==null?l=Si(l):(l=wn(r)?cu:Xr.current,l=af(t,l));var h=r.getDerivedStateFromProps;(c=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==f||d!==l)&&Nk(t,o,n,l),Uo=!1,d=t.memoizedState,o.state=d,yy(t,n,o,i);var p=t.memoizedState;s!==f||d!==p||_n.current||Uo?(typeof h=="function"&&(nC(t,r,h,n),p=t.memoizedState),(u=Uo||Ok(t,r,u,n,d,p,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,p,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,p,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=p),o.props=n,o.state=p,o.context=l,n=u):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),n=!1)}return sC(e,t,r,n,a,i)}function sC(e,t,r,n,i,a){L3(e,t);var o=(t.flags&128)!==0;if(!n&&!o)return i&&kk(t,r,!1),co(e,t,a);n=t.stateNode,_q.current=t;var s=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=sf(t,e.child,null,a),t.child=sf(t,null,s,a)):tn(e,t,s,a),t.memoizedState=n.state,i&&kk(t,r,!0),t.child}function E3(e){var t=e.stateNode;t.pendingContext?Pk(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Pk(e,t.context,!1),hM(e,t.containerInfo)}function jk(e,t,r,n,i){return of(),sM(i),t.flags|=256,tn(e,t,r,n),t.child}var lC={dehydrated:null,treeContext:null,retryLane:0};function uC(e){return{baseLanes:e,cachePool:null,transitions:null}}function O3(e,t,r){var n=t.pendingProps,i=qt.current,a=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Ot(qt,i&1),e===null)return tC(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=n.children,e=n.fallback,a?(n=t.mode,a=t.child,o={mode:"hidden",children:o},!(n&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=r1(o,n,0,null),e=Ql(e,n,r,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=uC(r),t.memoizedState=lC,e):bM(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return wq(e,t,o,n,s,i,r);if(a){a=n.fallback,o=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:n.children};return!(o&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=vs(i,l),n.subtreeFlags=i.subtreeFlags&14680064),s!==null?a=vs(s,a):(a=Ql(a,o,r,null),a.flags|=2),a.return=t,n.return=t,n.sibling=a,t.child=n,n=a,a=t.child,o=e.child.memoizedState,o=o===null?uC(r):{baseLanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~r,t.memoizedState=lC,n}return a=e.child,e=a.sibling,n=vs(a,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function bM(e,t){return t=r1({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Xv(e,t,r,n){return n!==null&&sM(n),sf(t,e.child,null,r),e=bM(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function wq(e,t,r,n,i,a,o){if(r)return t.flags&256?(t.flags&=-257,n=yS(Error(ae(422))),Xv(e,t,o,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=n.fallback,i=t.mode,n=r1({mode:"visible",children:n.children},i,0,null),a=Ql(a,i,o,null),a.flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,t.mode&1&&sf(t,e.child,null,o),t.child.memoizedState=uC(o),t.memoizedState=lC,a);if(!(t.mode&1))return Xv(e,t,o,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var s=n.dgst;return n=s,a=Error(ae(419)),n=yS(a,n,void 0),Xv(e,t,o,n)}if(s=(o&e.childLanes)!==0,bn||s){if(n=Ar,n!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|o)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,uo(e,i),Hi(n,e,i,-1))}return MM(),n=yS(Error(ae(421))),Xv(e,t,o,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Nq.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,zn=fs(i.nextSibling),Fn=t,Wt=!0,Bi=null,e!==null&&(oi[si++]=Ka,oi[si++]=Qa,oi[si++]=fu,Ka=e.id,Qa=e.overflow,fu=t),t=bM(t,n.children),t.flags|=4096,t)}function Yk(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),rC(e.return,t,r)}function xS(e,t,r,n,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=i)}function N3(e,t,r){var n=t.pendingProps,i=n.revealOrder,a=n.tail;if(tn(e,t,n.children,r),n=qt.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Yk(e,r,t);else if(e.tag===19)Yk(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Ot(qt,n),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&xy(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),xS(t,!1,i,r,a);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&xy(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}xS(t,!0,r,null,a);break;case"together":xS(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Cm(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function co(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),hu|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(ae(153));if(t.child!==null){for(e=t.child,r=vs(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=vs(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Cq(e,t,r){switch(t.tag){case 3:E3(t),of();break;case 5:u3(t);break;case 1:wn(t.type)&&hy(t);break;case 4:hM(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;Ot(gy,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Ot(qt,qt.current&1),t.flags|=128,null):r&t.child.childLanes?O3(e,t,r):(Ot(qt,qt.current&1),e=co(e,t,r),e!==null?e.sibling:null);Ot(qt,qt.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return N3(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ot(qt,qt.current),n)break;return null;case 22:case 23:return t.lanes=0,R3(e,t,r)}return co(e,t,r)}var z3,cC,B3,F3;z3=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};cC=function(){};B3=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,zl(Ta.current);var a=null;switch(r){case"input":i=Rw(e,i),n=Rw(e,n),a=[];break;case"select":i=Kt({},i,{value:void 0}),n=Kt({},n,{value:void 0}),a=[];break;case"textarea":i=Ow(e,i),n=Ow(e,n),a=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=fy)}zw(r,n);var o;r=null;for(u in i)if(!n.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var s=i[u];for(o in s)s.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Kh.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in n){var l=n[u];if(s=i!=null?i[u]:void 0,n.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(r||(r={}),r[o]=l[o])}else r||(a||(a=[]),a.push(u,r)),r=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(a=a||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(a=a||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Kh.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Bt("scroll",e),a||s===l||(a=[])):(a=a||[]).push(u,l))}r&&(a=a||[]).push("style",r);var u=a;(t.updateQueue=u)&&(t.flags|=4)}};F3=function(e,t,r,n){r!==n&&(t.flags|=4)};function ud(e,t){if(!Wt)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Gr(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Tq(e,t,r){var n=t.pendingProps;switch(oM(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gr(t),null;case 1:return wn(t.type)&&dy(),Gr(t),null;case 3:return n=t.stateNode,lf(),$t(_n),$t(Xr),vM(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Yv(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Bi!==null&&(yC(Bi),Bi=null))),cC(e,t),Gr(t),null;case 5:pM(t);var i=zl(up.current);if(r=t.type,e!==null&&t.stateNode!=null)B3(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(ae(166));return Gr(t),null}if(e=zl(Ta.current),Yv(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[da]=t,n[sp]=a,e=(t.mode&1)!==0,r){case"dialog":Bt("cancel",n),Bt("close",n);break;case"iframe":case"object":case"embed":Bt("load",n);break;case"video":case"audio":for(i=0;i<\/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[da]=t,e[sp]=n,z3(e,t,!1,!1),t.stateNode=e;e:{switch(o=Bw(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;icf&&(t.flags|=128,n=!0,ud(a,!1),t.lanes=4194304)}else{if(!n)if(e=xy(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),ud(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Wt)return Gr(t),null}else 2*ar()-a.renderingStartTime>cf&&r!==1073741824&&(t.flags|=128,n=!0,ud(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=qt.current,Ot(qt,n?r&1|2:r&1),t):(Gr(t),null);case 22:case 23:return AM(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Ln&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 Aq(e,t){switch(oM(t),t.tag){case 1:return wn(t.type)&&dy(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return lf(),$t(_n),$t(Xr),vM(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return pM(t),null;case 13:if($t(qt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ae(340));of()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $t(qt),null;case 4:return lf(),null;case 10:return cM(t.type._context),null;case 22:case 23:return AM(),null;case 24:return null;default:return null}}var Zv=!1,qr=!1,Mq=typeof WeakSet=="function"?WeakSet:Set,be=null;function Lc(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 fC(e,t,r){try{r()}catch(n){er(e,t,n)}}var qk=!1;function Iq(e,t){if(qw=ly,e=H$(),iM(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(Xw={focusedElem:e,selectionRange:r},ly=!1,be=t;be!==null;)if(t=be,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,be=e;else for(;be!==null;){t=be;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:Oi(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,be=e;break}be=t.return}return p=qk,qk=!1,p}function bh(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&&fC(t,r,a)}i=i.next}while(i!==n)}}function e1(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 dC(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 $3(e){var t=e.alternate;t!==null&&(e.alternate=null,$3(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[da],delete t[sp],delete t[Qw],delete t[cq],delete t[fq])),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 V3(e){return e.tag===5||e.tag===3||e.tag===4}function Xk(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||V3(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 hC(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=fy));else if(n!==4&&(e=e.child,e!==null))for(hC(e,t,r),e=e.sibling;e!==null;)hC(e,t,r),e=e.sibling}function pC(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(pC(e,t,r),e=e.sibling;e!==null;)pC(e,t,r),e=e.sibling}var Pr=null,zi=!1;function Po(e,t,r){for(r=r.child;r!==null;)G3(e,t,r),r=r.sibling}function G3(e,t,r){if(Ca&&typeof Ca.onCommitFiberUnmount=="function")try{Ca.onCommitFiberUnmount(j0,r)}catch{}switch(r.tag){case 5:qr||Lc(r,t);case 6:var n=Pr,i=zi;Pr=null,Po(e,t,r),Pr=n,zi=i,Pr!==null&&(zi?(e=Pr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Pr.removeChild(r.stateNode));break;case 18:Pr!==null&&(zi?(e=Pr,r=r.stateNode,e.nodeType===8?dS(e.parentNode,r):e.nodeType===1&&dS(e,r),rp(e)):dS(Pr,r.stateNode));break;case 4:n=Pr,i=zi,Pr=r.stateNode.containerInfo,zi=!0,Po(e,t,r),Pr=n,zi=i;break;case 0:case 11:case 14:case 15:if(!qr&&(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)&&fC(r,t,o),i=i.next}while(i!==n)}Po(e,t,r);break;case 1:if(!qr&&(Lc(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)}Po(e,t,r);break;case 21:Po(e,t,r);break;case 22:r.mode&1?(qr=(n=qr)||r.memoizedState!==null,Po(e,t,r),qr=n):Po(e,t,r);break;default:Po(e,t,r)}}function Zk(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Mq),t.forEach(function(n){var i=zq.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Pi(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*kq(n/1960))-n,10e?16:e,Qo===null)var n=!1;else{if(e=Qo,Qo=null,Cy=0,dt&6)throw Error(ae(331));var i=dt;for(dt|=4,be=e.current;be!==null;){var a=be,o=a.child;if(be.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lar()-CM?Kl(e,0):wM|=r),Cn(e,t)}function Z3(e,t){t===0&&(e.mode&1?(t=Vv,Vv<<=1,!(Vv&130023424)&&(Vv=4194304)):t=1);var r=an();e=uo(e,t),e!==null&&(tv(e,t,r),Cn(e,r))}function Nq(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Z3(e,r)}function zq(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),Z3(e,r)}var K3;K3=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||_n.current)bn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return bn=!1,Cq(e,t,r);bn=!!(e.flags&131072)}else bn=!1,Wt&&t.flags&1048576&&e3(t,vy,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Cm(e,t),e=t.pendingProps;var i=af(t,Xr.current);Wc(t,r),i=mM(null,t,n,e,i,r);var a=yM();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,wn(n)?(a=!0,hy(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,dM(t),i.updater=Q0,t.stateNode=i,i._reactInternals=t,iC(t,n,e,r),t=sC(null,t,n,!0,a,r)):(t.tag=0,Wt&&a&&aM(t),tn(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Cm(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=Fq(n),e=Oi(n,e),i){case 0:t=oC(null,t,n,e,r);break e;case 1:t=Uk(null,t,n,e,r);break e;case 11:t=Hk(null,t,n,e,r);break e;case 14:t=Wk(null,t,n,Oi(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:Oi(n,i),oC(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Oi(n,i),Uk(e,t,n,i,r);case 3:e:{if(E3(t),e===null)throw Error(ae(387));n=t.pendingProps,a=t.memoizedState,i=a.element,i3(e,t),yy(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=uf(Error(ae(423)),t),t=jk(e,t,n,r,i);break e}else if(n!==i){i=uf(Error(ae(424)),t),t=jk(e,t,n,r,i);break e}else for(zn=fs(t.stateNode.containerInfo.firstChild),Fn=t,Wt=!0,Bi=null,r=l3(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(of(),n===i){t=co(e,t,r);break e}tn(e,t,n,r)}t=t.child}return t;case 5:return u3(t),e===null&&tC(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Zw(n,i)?o=null:a!==null&&Zw(n,a)&&(t.flags|=32),L3(e,t),tn(e,t,o,r),t.child;case 6:return e===null&&tC(t),null;case 13:return O3(e,t,r);case 4:return hM(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=sf(t,null,n,r):tn(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Oi(n,i),Hk(e,t,n,i,r);case 7:return tn(e,t,t.pendingProps,r),t.child;case 8:return tn(e,t,t.pendingProps.children,r),t.child;case 12:return tn(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(gy,n._currentValue),n._currentValue=o,a!==null)if(ji(a.value,o)){if(a.children===i.children&&!_n.current){t=co(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=to(-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),rC(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),rC(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}tn(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Wc(t,r),i=Si(i),n=n(i),t.flags|=1,tn(e,t,n,r),t.child;case 14:return n=t.type,i=Oi(n,t.pendingProps),i=Oi(n.type,i),Wk(e,t,n,i,r);case 15:return D3(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Oi(n,i),Cm(e,t),t.tag=1,wn(n)?(e=!0,hy(t)):e=!1,Wc(t,r),o3(t,n,i),iC(t,n,i,r),sC(null,t,n,!0,e,r);case 19:return N3(e,t,r);case 22:return R3(e,t,r)}throw Error(ae(156,t.tag))};function Q3(e,t){return C$(e,t)}function Bq(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 vi(e,t,r,n){return new Bq(e,t,r,n)}function IM(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Fq(e){if(typeof e=="function")return IM(e)?1:0;if(e!=null){if(e=e.$$typeof,e===YA)return 11;if(e===qA)return 14}return 2}function vs(e,t){var r=e.alternate;return r===null?(r=vi(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 Mm(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")IM(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Cc:return Ql(r.children,i,a,t);case jA:o=8,i|=8;break;case Iw:return e=vi(12,r,t,i|2),e.elementType=Iw,e.lanes=a,e;case Pw:return e=vi(13,r,t,i),e.elementType=Pw,e.lanes=a,e;case kw:return e=vi(19,r,t,i),e.elementType=kw,e.lanes=a,e;case s$:return r1(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case a$:o=10;break e;case o$:o=9;break e;case YA:o=11;break e;case qA:o=14;break e;case Wo:o=16,n=null;break e}throw Error(ae(130,e==null?e:typeof e,""))}return t=vi(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function Ql(e,t,r,n){return e=vi(7,e,n,t),e.lanes=r,e}function r1(e,t,r,n){return e=vi(22,e,n,t),e.elementType=s$,e.lanes=r,e.stateNode={isHidden:!1},e}function SS(e,t,r){return e=vi(6,e,null,t),e.lanes=r,e}function bS(e,t,r){return t=vi(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $q(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=tS(0),this.expirationTimes=tS(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tS(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function PM(e,t,r,n,i,a,o,s,l){return e=new $q(e,t,r,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=vi(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},dM(a),e}function Vq(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(rV)}catch(e){console.error(e)}}rV(),e$.exports=jn;var kf=e$.exports;const Jv=Jp(kf);var iD=kf;Aw.createRoot=iD.createRoot,Aw.hydrateRoot=iD.hydrateRoot;var nV={exports:{}},iV={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -45,7 +45,7 @@ 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 lf=O;function Hq(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Wq=typeof Object.is=="function"?Object.is:Hq,Uq=lf.useState,jq=lf.useEffect,Yq=lf.useLayoutEffect,qq=lf.useDebugValue;function Xq(e,t){var r=t(),n=Uq({inst:{value:r,getSnapshot:t}}),i=n[0].inst,a=n[1];return Yq(function(){i.value=r,i.getSnapshot=t,bS(i)&&a({inst:i})},[e,r,t]),jq(function(){return bS(i)&&a({inst:i}),e(function(){bS(i)&&a({inst:i})})},[e]),qq(r),r}function bS(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Wq(e,r)}catch{return!0}}function Zq(e,t){return t()}var Kq=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Zq:Xq;nV.useSyncExternalStore=lf.useSyncExternalStore!==void 0?lf.useSyncExternalStore:Kq;rV.exports=nV;var iV=rV.exports,aV={exports:{}},oV={};/** + */var ff=O;function jq(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Yq=typeof Object.is=="function"?Object.is:jq,qq=ff.useState,Xq=ff.useEffect,Zq=ff.useLayoutEffect,Kq=ff.useDebugValue;function Qq(e,t){var r=t(),n=qq({inst:{value:r,getSnapshot:t}}),i=n[0].inst,a=n[1];return Zq(function(){i.value=r,i.getSnapshot=t,_S(i)&&a({inst:i})},[e,r,t]),Xq(function(){return _S(i)&&a({inst:i}),e(function(){_S(i)&&a({inst:i})})},[e]),Kq(r),r}function _S(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Yq(e,r)}catch{return!0}}function Jq(e,t){return t()}var eX=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Jq:Qq;iV.useSyncExternalStore=ff.useSyncExternalStore!==void 0?ff.useSyncExternalStore:eX;nV.exports=iV;var aV=nV.exports,oV={exports:{}},sV={};/** * @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,Qq=iV;function Jq(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var eX=typeof Object.is=="function"?Object.is:Jq,tX=Qq.useSyncExternalStore,rX=a1.useRef,nX=a1.useEffect,iX=a1.useMemo,aX=a1.useDebugValue;oV.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var a=rX(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=iX(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,eX(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=tX(e,a[0],a[1]);return nX(function(){o.hasValue=!0,o.value=s},[s]),aX(s),s};aV.exports=oV;var oX=aV.exports;function sX(e){e()}let sV=sX;const lX=e=>sV=e,uX=()=>sV,iD=Symbol.for("react-redux-context"),aD=typeof globalThis<"u"?globalThis:{};function cX(){var e;if(!O.createContext)return{};const t=(e=aD[iD])!=null?e:aD[iD]=new Map;let r=t.get(O.createContext);return r||(r=O.createContext(null),t.set(O.createContext,r)),r}const fo=cX();function RM(e=fo){return function(){return O.useContext(e)}}const lV=RM(),uV=()=>{throw new Error("uSES not initialized!")};let cV=uV;const fX=e=>{cV=e},dX=(e,t)=>e===t;function hX(e=fo){const t=e===fo?lV:RM(e);return function(n,i={}){const{equalityFn:a=dX,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=cV(u.addNestedSub,l.getState,c||l.getState,h,a);return O.useDebugValue(p),p}}const fV=hX();function F(){return F=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}var dV={exports:{}},At={};/** @license React v16.13.1 + */var s1=O,tX=aV;function rX(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nX=typeof Object.is=="function"?Object.is:rX,iX=tX.useSyncExternalStore,aX=s1.useRef,oX=s1.useEffect,sX=s1.useMemo,lX=s1.useDebugValue;sV.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var a=aX(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=sX(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,nX(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=iX(e,a[0],a[1]);return oX(function(){o.hasValue=!0,o.value=s},[s]),lX(s),s};oV.exports=sV;var uX=oV.exports;function cX(e){e()}let lV=cX;const fX=e=>lV=e,dX=()=>lV,aD=Symbol.for("react-redux-context"),oD=typeof globalThis<"u"?globalThis:{};function hX(){var e;if(!O.createContext)return{};const t=(e=oD[aD])!=null?e:oD[aD]=new Map;let r=t.get(O.createContext);return r||(r=O.createContext(null),t.set(O.createContext,r)),r}const fo=hX();function LM(e=fo){return function(){return O.useContext(e)}}const uV=LM(),cV=()=>{throw new Error("uSES not initialized!")};let fV=cV;const pX=e=>{fV=e},vX=(e,t)=>e===t;function gX(e=fo){const t=e===fo?uV:LM(e);return function(n,i={}){const{equalityFn:a=vX,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=fV(u.addNestedSub,l.getState,c||l.getState,h,a);return O.useDebugValue(p),p}}const dV=gX();function F(){return F=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}var hV={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 Ir=typeof Symbol=="function"&&Symbol.for,LM=Ir?Symbol.for("react.element"):60103,EM=Ir?Symbol.for("react.portal"):60106,o1=Ir?Symbol.for("react.fragment"):60107,s1=Ir?Symbol.for("react.strict_mode"):60108,l1=Ir?Symbol.for("react.profiler"):60114,u1=Ir?Symbol.for("react.provider"):60109,c1=Ir?Symbol.for("react.context"):60110,OM=Ir?Symbol.for("react.async_mode"):60111,f1=Ir?Symbol.for("react.concurrent_mode"):60111,d1=Ir?Symbol.for("react.forward_ref"):60112,h1=Ir?Symbol.for("react.suspense"):60113,pX=Ir?Symbol.for("react.suspense_list"):60120,p1=Ir?Symbol.for("react.memo"):60115,v1=Ir?Symbol.for("react.lazy"):60116,vX=Ir?Symbol.for("react.block"):60121,gX=Ir?Symbol.for("react.fundamental"):60117,mX=Ir?Symbol.for("react.responder"):60118,yX=Ir?Symbol.for("react.scope"):60119;function Yn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case LM:switch(e=e.type,e){case OM:case f1:case o1:case l1:case s1:case h1:return e;default:switch(e=e&&e.$$typeof,e){case c1:case d1:case v1:case p1:case u1:return e;default:return t}}case EM:return t}}}function hV(e){return Yn(e)===f1}At.AsyncMode=OM;At.ConcurrentMode=f1;At.ContextConsumer=c1;At.ContextProvider=u1;At.Element=LM;At.ForwardRef=d1;At.Fragment=o1;At.Lazy=v1;At.Memo=p1;At.Portal=EM;At.Profiler=l1;At.StrictMode=s1;At.Suspense=h1;At.isAsyncMode=function(e){return hV(e)||Yn(e)===OM};At.isConcurrentMode=hV;At.isContextConsumer=function(e){return Yn(e)===c1};At.isContextProvider=function(e){return Yn(e)===u1};At.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===LM};At.isForwardRef=function(e){return Yn(e)===d1};At.isFragment=function(e){return Yn(e)===o1};At.isLazy=function(e){return Yn(e)===v1};At.isMemo=function(e){return Yn(e)===p1};At.isPortal=function(e){return Yn(e)===EM};At.isProfiler=function(e){return Yn(e)===l1};At.isStrictMode=function(e){return Yn(e)===s1};At.isSuspense=function(e){return Yn(e)===h1};At.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===o1||e===f1||e===l1||e===s1||e===h1||e===pX||typeof e=="object"&&e!==null&&(e.$$typeof===v1||e.$$typeof===p1||e.$$typeof===u1||e.$$typeof===c1||e.$$typeof===d1||e.$$typeof===gX||e.$$typeof===mX||e.$$typeof===yX||e.$$typeof===vX)};At.typeOf=Yn;dV.exports=At;var xX=dV.exports,NM=xX,SX={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},bX={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},_X={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},pV={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},zM={};zM[NM.ForwardRef]=_X;zM[NM.Memo]=pV;function oD(e){return NM.isMemo(e)?pV:zM[e.$$typeof]||SX}var wX=Object.defineProperty,CX=Object.getOwnPropertyNames,sD=Object.getOwnPropertySymbols,TX=Object.getOwnPropertyDescriptor,AX=Object.getPrototypeOf,lD=Object.prototype;function vV(e,t,r){if(typeof t!="string"){if(lD){var n=AX(t);n&&n!==lD&&vV(e,n,r)}var i=CX(t);sD&&(i=i.concat(sD(t)));for(var a=oD(e),o=oD(t),s=0;st(i(...a)))}return r}function yC(e){return function(r){const n=e(r);function i(){return n}return i.dependsOnOwnProps=!1,i}}function cD(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function yV(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=cD(e);let u=a(s,l);return typeof u=="function"&&(a.mapToProps=u,a.dependsOnOwnProps=cD(u),u=a(s,l)),u},a}}function $M(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function OX(e){return e&&typeof e=="object"?yC(t=>EX(e,t)):e?typeof e=="function"?yV(e):$M(e,"mapDispatchToProps"):yC(t=>({dispatch:t}))}function NX(e){return e?typeof e=="function"?yV(e):$M(e,"mapStateToProps"):yC(()=>({}))}function zX(e,t,r){return F({},r,e,t)}function BX(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 FX(e){return e?typeof e=="function"?BX(e):$M(e,"mergeProps"):()=>zX}function $X(){const e=uX();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 fD={notify(){},get:()=>[]};function xV(e,t){let r,n=fD;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=$X())}function u(){r&&(r(),r=void 0,n.clear(),n=fD)}const c={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:s,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>n};return c}const VX=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ty=VX?O.useLayoutEffect:O.useEffect;function dD(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Kl(e,t){if(dD(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{SV=e},WX=[null,null];function UX(e,t,r){Ty(()=>e(...t),r)}function jX(e,t,r,n,i,a){e.current=n,r.current=!1,i.current&&(i.current=null,a())}function YX(e,t,r,n,i,a,o,s,l,u,c){if(!e)return()=>{};let f=!1,d=null;const 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 qX(e,t){return e===t}function qn(e,t,r,{pure:n,areStatesEqual:i=qX,areOwnPropsEqual:a=Kl,areStatePropsEqual:o=Kl,areMergedPropsEqual:s=Kl,forwardRef:l=!1,context:u=fo}={}){const c=u,f=NX(e),d=OX(t),h=FX(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,fe=ye(w,GX);return[w.context,J,fe]},[w]),M=O.useMemo(()=>C&&C.Consumer&&kX.isContextConsumer(O.createElement(C.Consumer,null))?C:c,[C,c]),I=O.useContext(M),P=!!w.store&&!!w.store.getState&&!!w.store.dispatch,k=!!I&&!!I.store,R=P?w.store:I.store,z=k?I.getServerState:R.getState,$=O.useMemo(()=>LX(R.dispatch,x),[R]),[N,V]=O.useMemo(()=>{if(!p)return WX;const J=xV(R,P?void 0:I.subscription),fe=J.notifyNestedSubs.bind(J);return[J,fe]},[R,P,I]),L=O.useMemo(()=>P?I:F({},I,{subscription:N}),[P,I,N]),G=O.useRef(),U=O.useRef(T),B=O.useRef(),j=O.useRef(!1);O.useRef(!1);const X=O.useRef(!1),W=O.useRef();Ty(()=>(X.current=!0,()=>{X.current=!1}),[]);const ee=O.useMemo(()=>()=>B.current&&T===U.current?B.current:$(R.getState(),T),[R,T]),te=O.useMemo(()=>fe=>N?YX(p,R,N,$,U,G,j,X,B,V,fe):()=>{},[N]);UX(jX,[U,G,j,T,B,V]);let ie;try{ie=SV(te,ee,z?()=>$(z(),T):ee)}catch(J){throw W.current&&(J.message+=` + */var FM=Symbol.for("react.element"),$M=Symbol.for("react.portal"),y1=Symbol.for("react.fragment"),x1=Symbol.for("react.strict_mode"),S1=Symbol.for("react.profiler"),b1=Symbol.for("react.provider"),_1=Symbol.for("react.context"),DX=Symbol.for("react.server_context"),w1=Symbol.for("react.forward_ref"),C1=Symbol.for("react.suspense"),T1=Symbol.for("react.suspense_list"),A1=Symbol.for("react.memo"),M1=Symbol.for("react.lazy"),RX=Symbol.for("react.offscreen"),yV;yV=Symbol.for("react.module.reference");function Ci(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case FM:switch(e=e.type,e){case y1:case S1:case x1:case C1:case T1:return e;default:switch(e=e&&e.$$typeof,e){case DX:case _1:case w1:case M1:case A1:case b1:return e;default:return t}}case $M:return t}}}Mt.ContextConsumer=_1;Mt.ContextProvider=b1;Mt.Element=FM;Mt.ForwardRef=w1;Mt.Fragment=y1;Mt.Lazy=M1;Mt.Memo=A1;Mt.Portal=$M;Mt.Profiler=S1;Mt.StrictMode=x1;Mt.Suspense=C1;Mt.SuspenseList=T1;Mt.isAsyncMode=function(){return!1};Mt.isConcurrentMode=function(){return!1};Mt.isContextConsumer=function(e){return Ci(e)===_1};Mt.isContextProvider=function(e){return Ci(e)===b1};Mt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===FM};Mt.isForwardRef=function(e){return Ci(e)===w1};Mt.isFragment=function(e){return Ci(e)===y1};Mt.isLazy=function(e){return Ci(e)===M1};Mt.isMemo=function(e){return Ci(e)===A1};Mt.isPortal=function(e){return Ci(e)===$M};Mt.isProfiler=function(e){return Ci(e)===S1};Mt.isStrictMode=function(e){return Ci(e)===x1};Mt.isSuspense=function(e){return Ci(e)===C1};Mt.isSuspenseList=function(e){return Ci(e)===T1};Mt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===y1||e===S1||e===x1||e===C1||e===T1||e===RX||typeof e=="object"&&e!==null&&(e.$$typeof===M1||e.$$typeof===A1||e.$$typeof===b1||e.$$typeof===_1||e.$$typeof===w1||e.$$typeof===yV||e.getModuleId!==void 0)};Mt.typeOf=Ci;mV.exports=Mt;var LX=mV.exports;const EX=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function OX(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 NX(e,t){let{initMapStateToProps:r,initMapDispatchToProps:n,initMergeProps:i}=t,a=ye(t,EX);const o=r(e,a),s=n(e,a),l=i(e,a);return OX(o,s,l,e,a)}function zX(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 xC(e){return function(r){const n=e(r);function i(){return n}return i.dependsOnOwnProps=!1,i}}function fD(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function xV(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=fD(e);let u=a(s,l);return typeof u=="function"&&(a.mapToProps=u,a.dependsOnOwnProps=fD(u),u=a(s,l)),u},a}}function VM(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function BX(e){return e&&typeof e=="object"?xC(t=>zX(e,t)):e?typeof e=="function"?xV(e):VM(e,"mapDispatchToProps"):xC(t=>({dispatch:t}))}function FX(e){return e?typeof e=="function"?xV(e):VM(e,"mapStateToProps"):xC(()=>({}))}function $X(e,t,r){return F({},r,e,t)}function VX(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 GX(e){return e?typeof e=="function"?VX(e):VM(e,"mergeProps"):()=>$X}function HX(){const e=dX();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 dD={notify(){},get:()=>[]};function SV(e,t){let r,n=dD;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=HX())}function u(){r&&(r(),r=void 0,n.clear(),n=dD)}const c={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:s,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>n};return c}const WX=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",My=WX?O.useLayoutEffect:O.useEffect;function hD(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Jl(e,t){if(hD(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{bV=e},YX=[null,null];function qX(e,t,r){My(()=>e(...t),r)}function XX(e,t,r,n,i,a){e.current=n,r.current=!1,i.current&&(i.current=null,a())}function ZX(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 KX(e,t){return e===t}function Xn(e,t,r,{pure:n,areStatesEqual:i=KX,areOwnPropsEqual:a=Jl,areStatePropsEqual:o=Jl,areMergedPropsEqual:s=Jl,forwardRef:l=!1,context:u=fo}={}){const c=u,f=FX(e),d=BX(t),h=GX(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,fe=ye(w,UX);return[w.context,J,fe]},[w]),M=O.useMemo(()=>C&&C.Consumer&&LX.isContextConsumer(O.createElement(C.Consumer,null))?C:c,[C,c]),I=O.useContext(M),P=!!w.store&&!!w.store.getState&&!!w.store.dispatch,k=!!I&&!!I.store,R=P?w.store:I.store,z=k?I.getServerState:R.getState,$=O.useMemo(()=>NX(R.dispatch,x),[R]),[N,V]=O.useMemo(()=>{if(!p)return YX;const J=SV(R,P?void 0:I.subscription),fe=J.notifyNestedSubs.bind(J);return[J,fe]},[R,P,I]),L=O.useMemo(()=>P?I:F({},I,{subscription:N}),[P,I,N]),G=O.useRef(),U=O.useRef(T),B=O.useRef(),j=O.useRef(!1);O.useRef(!1);const X=O.useRef(!1),W=O.useRef();My(()=>(X.current=!0,()=>{X.current=!1}),[]);const ee=O.useMemo(()=>()=>B.current&&T===U.current?B.current:$(R.getState(),T),[R,T]),te=O.useMemo(()=>fe=>N?ZX(p,R,N,$,U,G,j,X,B,V,fe):()=>{},[N]);qX(XX,[U,G,j,T,B,V]);let ie;try{ie=bV(te,ee,z?()=>$(z(),T):ee)}catch(J){throw W.current&&(J.message+=` The error may be correlated with this previous error: ${W.current.stack} -`),J}Ty(()=>{W.current=void 0,B.current=void 0,G.current=ie});const re=O.useMemo(()=>O.createElement(g,F({},ie,{ref:A})),[A,g,ie]);return O.useMemo(()=>p?O.createElement(M.Provider,{value:L},re):re,[M,re,L])}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,F({},T,{reactReduxForwardedRef:M}))});return C.displayName=y,C.WrappedComponent=g,uD(C,g)}return uD(b,g)}}function XX({store:e,context:t,children:r,serverState:n,stabilityCheck:i="once",noopCheck:a="once"}){const o=O.useMemo(()=>{const u=xV(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]);Ty(()=>{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||fo;return O.createElement(l.Provider,{value:o},r)}function bV(e=fo){const t=e===fo?lV:RM(e);return function(){const{store:n}=t();return n}}const _V=bV();function ZX(e=fo){const t=e===fo?_V:bV(e);return function(){return t().dispatch}}const wV=ZX();fX(oX.useSyncExternalStoreWithSelector);HX(iV.useSyncExternalStore);lX(Mf.unstable_batchedUpdates);function Il(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function CV(e){if(!Il(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=CV(e[r])}),t}function mi(e,t,r={clone:!0}){const n=r.clone?F({},e):e;return Il(e)&&Il(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(Il(t[i])&&i in e&&Il(e[i])?n[i]=mi(e[i],t[i],r):r.clone?n[i]=Il(t[i])?CV(t[i]):t[i]:n[i]=t[i])}),n}function Cs(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 iv(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 KX(e,t){return()=>null}function wh(e,t){return O.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function on(e){return e&&e.ownerDocument||document}function Da(e){return on(e).defaultView||window}function QX(e,t){return()=>null}function Ay(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const JX=typeof window<"u"?O.useLayoutEffect:O.useEffect,ho=JX;let hD=0;function eZ(e){const[t,r]=O.useState(e),n=e||t;return O.useEffect(()=>{t==null&&(hD+=1,r(`mui-${hD}`))},[t]),n}const pD=Cw["useId".toString()];function TV(e){if(pD!==void 0){const t=pD();return e??t}return eZ(e)}function tZ(e,t,r,n,i){return null}function My({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 ya(e){const t=O.useRef(e);return ho(()=>{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=>{Ay(r,t)})},e)}let A1=!0,SC=!1,vD;const rZ={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 nZ(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&rZ[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function iZ(e){e.metaKey||e.altKey||e.ctrlKey||(A1=!0)}function _S(){A1=!1}function aZ(){this.visibilityState==="hidden"&&SC&&(A1=!0)}function oZ(e){e.addEventListener("keydown",iZ,!0),e.addEventListener("mousedown",_S,!0),e.addEventListener("pointerdown",_S,!0),e.addEventListener("touchstart",_S,!0),e.addEventListener("visibilitychange",aZ,!0)}function sZ(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return A1||nZ(t)}function VM(){const e=O.useCallback(i=>{i!=null&&oZ(i.ownerDocument)},[]),t=O.useRef(!1);function r(){return t.current?(SC=!0,window.clearTimeout(vD),vD=window.setTimeout(()=>{SC=!1},100),t.current=!1,!0):!1}function n(i){return sZ(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function AV(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let zu;function MV(){if(zu)return zu;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),zu="reverse",e.scrollLeft>0?zu="default":(e.scrollLeft=1,e.scrollLeft===0&&(zu="negative")),document.body.removeChild(e),zu}function lZ(e,t){const r=e.scrollLeft;if(t!=="rtl")return r;switch(MV()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function GM(e,t){const r=F({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=F({},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]=F({},a),Object.keys(i).forEach(o=>{r[n][o]=GM(i[o],a[o])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function Ze(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 gD=e=>e,uZ=()=>{let e=gD;return{configure(t){e=t},generate(t){return e(t)},reset(){e=gD}}},cZ=uZ(),HM=cZ,fZ={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 Ue(e,t,r="Mui"){const n=fZ[t];return n?`${r}-${n}`:`${HM.generate(e)}-${t}`}function je(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=Ue(e,i,r)}),n}function IV(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var dZ=/^((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)-.*))$/,hZ=IV(function(e){return dZ.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function pZ(e){if(e.sheet)return e.sheet;for(var t=0;t0?Dr(If,--Mn):0,uf--,cr===10&&(uf=1,I1--),cr}function Fn(){return cr=Mn2||pp(cr)>3?"":" "}function MZ(e,t){for(;--t&&Fn()&&!(cr<48||cr>102||cr>57&&cr<65||cr>70&&cr<97););return av(e,Am()+(t<6&&Aa()==32&&Fn()==32))}function _C(e){for(;Fn();)switch(cr){case e:return Mn;case 34:case 39:e!==34&&e!==39&&_C(cr);break;case 40:e===41&&_C(e);break;case 92:Fn();break}return Mn}function IZ(e,t){for(;Fn()&&e+cr!==47+10;)if(e+cr===42+42&&Aa()===47)break;return"/*"+av(t,Mn-1)+"*"+M1(e===47?e:Fn())}function PZ(e){for(;!pp(Aa());)Fn();return av(e,Mn)}function kZ(e){return EV(Im("",null,null,null,[""],e=LV(e),0,[0],e))}function Im(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=Fn()){case 40:if(p!=108&&Dr(w,f-1)==58){bC(w+=gt(Mm(y),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:w+=Mm(y);break;case 9:case 10:case 13:case 32:w+=AZ(p);break;case 92:w+=MZ(Am()-1,7);continue;case 47:switch(Aa()){case 42:case 47:Qv(DZ(IZ(Fn(),Am()),t,r),l);break;default:w+="/"}break;case 123*v:s[u++]=ca(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&&ca(w)-f&&Qv(h>32?yD(w+";",n,r,f-1):yD(gt(w," ","")+";",n,r,f-2),l);break;case 59:w+=";";default:if(Qv(b=mD(w,t,r,u,c,i,s,x,S=[],_=[],f),a),y===123)if(c===0)Im(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:Im(e,b,b,n&&Qv(mD(e,b,b,0,0,i,s,x,i,S=[],f),_),i,_,f,s,n?S:_);break;default:Im(w,b,b,b,[""],_,0,s,_)}}u=c=h=0,v=m=1,x=w="",f=o;break;case 58:f=1+ca(w),h=p;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&TZ()==125)continue}switch(w+=M1(y),y*v){case 38:m=c>0?1:(w+="\f",-1);break;case 44:s[u++]=(ca(w)-1)*m,m=1;break;case 64:Aa()===45&&(w+=Mm(Fn())),d=Aa(),c=f=ca(x=w+=PZ(Am())),y++;break;case 45:p===45&&ca(w)==2&&(v=0)}}return a}function mD(e,t,r,n,i,a,o,s,l,u,c){for(var f=i-1,d=i===0?a:[""],h=jM(d),p=0,v=0,g=0;p0?d[m]+" "+y:gt(y,/&\f/g,d[m])))&&(l[g++]=x);return P1(e,t,r,i===0?WM:s,l,u,c)}function DZ(e,t,r){return P1(e,t,r,PV,M1(CZ()),hp(e,2,-2),0)}function yD(e,t,r,n){return P1(e,t,r,UM,hp(e,0,n),hp(e,n+1,-1),n)}function Hc(e,t){for(var r="",n=jM(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"+Iy+(Dr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~bC(e,"stretch")?OV(gt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Dr(e,t+1)!==115)break;case 6444:switch(Dr(e,ca(e)-3-(~bC(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"+Ur+"$2box$3")+e}break;case 5936:switch(Dr(e,t+11)){case 114:return vt+e+Ur+gt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return vt+e+Ur+gt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return vt+e+Ur+gt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return vt+e+Ur+e+e}return e}var $Z=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case UM:t.return=OV(t.value,t.length);break;case kV:return Hc([ud(t,{value:gt(t.value,"@","@"+vt)})],i);case WM:if(t.length)return wZ(t.props,function(a){switch(_Z(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Hc([ud(t,{props:[gt(a,/:(read-\w+)/,":"+Iy+"$1")]})],i);case"::placeholder":return Hc([ud(t,{props:[gt(a,/:(plac\w+)/,":"+vt+"input-$1")]}),ud(t,{props:[gt(a,/:(plac\w+)/,":"+Iy+"$1")]}),ud(t,{props:[gt(a,/:(plac\w+)/,Ur+"input-$1")]})],i)}return""})}},VZ=[$Z],GZ=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||VZ,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 jZ={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},YZ=/[A-Z]|^ms/g,qZ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,BV=function(t){return t.charCodeAt(1)===45},SD=function(t){return t!=null&&typeof t!="boolean"},wS=IV(function(e){return BV(e)?e:e.replace(YZ,"-$&").toLowerCase()}),bD=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(qZ,function(n,i,a){return fa={name:i,styles:a,next:fa},i})}return jZ[t]!==1&&!BV(t)&&typeof r=="number"&&r!==0?r+"px":r};function vp(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 fa={name:r.name,styles:r.styles,next:fa},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)fa={name:n.name,styles:n.styles,next:fa},n=n.next;var i=r.styles+";";return i}return XZ(e,t,r)}case"function":{if(e!==void 0){var a=fa,o=r(e);return fa=a,vp(e,t,o)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function XZ(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i96?eK:tK},TD=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},rK=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return NV(r,n,i),KZ(function(){return zV(r,n,i)}),null},nK=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=TD(t,r,n),l=s||CD(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(aK(i)?r:i):t;return E.jsx(QZ,{styles:n})}/** +`),J}My(()=>{W.current=void 0,B.current=void 0,G.current=ie});const re=O.useMemo(()=>O.createElement(g,F({},ie,{ref:A})),[A,g,ie]);return O.useMemo(()=>p?O.createElement(M.Provider,{value:L},re):re,[M,re,L])}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,F({},T,{reactReduxForwardedRef:M}))});return C.displayName=y,C.WrappedComponent=g,cD(C,g)}return cD(b,g)}}function QX({store:e,context:t,children:r,serverState:n,stabilityCheck:i="once",noopCheck:a="once"}){const o=O.useMemo(()=>{const u=SV(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]);My(()=>{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||fo;return O.createElement(l.Provider,{value:o},r)}function _V(e=fo){const t=e===fo?uV:LM(e);return function(){const{store:n}=t();return n}}const wV=_V();function JX(e=fo){const t=e===fo?wV:_V(e);return function(){return t().dispatch}}const CV=JX();pX(uX.useSyncExternalStoreWithSelector);jX(aV.useSyncExternalStore);fX(kf.unstable_batchedUpdates);function Pl(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function TV(e){if(!Pl(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=TV(e[r])}),t}function yi(e,t,r={clone:!0}){const n=r.clone?F({},e):e;return Pl(e)&&Pl(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(Pl(t[i])&&i in e&&Pl(e[i])?n[i]=yi(e[i],t[i],r):r.clone?n[i]=Pl(t[i])?TV(t[i]):t[i]:n[i]=t[i])}),n}function Cs(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 av(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 eZ(e,t){return()=>null}function Ch(e,t){return O.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function on(e){return e&&e.ownerDocument||document}function Da(e){return on(e).defaultView||window}function tZ(e,t){return()=>null}function Iy(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const rZ=typeof window<"u"?O.useLayoutEffect:O.useEffect,ho=rZ;let pD=0;function nZ(e){const[t,r]=O.useState(e),n=e||t;return O.useEffect(()=>{t==null&&(pD+=1,r(`mui-${pD}`))},[t]),n}const vD=Tw["useId".toString()];function AV(e){if(vD!==void 0){const t=vD();return e??t}return nZ(e)}function iZ(e,t,r,n,i){return null}function Py({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 ya(e){const t=O.useRef(e);return ho(()=>{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=>{Iy(r,t)})},e)}let I1=!0,bC=!1,gD;const aZ={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 oZ(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&aZ[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function sZ(e){e.metaKey||e.altKey||e.ctrlKey||(I1=!0)}function wS(){I1=!1}function lZ(){this.visibilityState==="hidden"&&bC&&(I1=!0)}function uZ(e){e.addEventListener("keydown",sZ,!0),e.addEventListener("mousedown",wS,!0),e.addEventListener("pointerdown",wS,!0),e.addEventListener("touchstart",wS,!0),e.addEventListener("visibilitychange",lZ,!0)}function cZ(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return I1||oZ(t)}function GM(){const e=O.useCallback(i=>{i!=null&&uZ(i.ownerDocument)},[]),t=O.useRef(!1);function r(){return t.current?(bC=!0,window.clearTimeout(gD),gD=window.setTimeout(()=>{bC=!1},100),t.current=!1,!0):!1}function n(i){return cZ(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function MV(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Fu;function IV(){if(Fu)return Fu;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),Fu="reverse",e.scrollLeft>0?Fu="default":(e.scrollLeft=1,e.scrollLeft===0&&(Fu="negative")),document.body.removeChild(e),Fu}function fZ(e,t){const r=e.scrollLeft;if(t!=="rtl")return r;switch(IV()){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=F({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=F({},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]=F({},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 Ze(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 mD=e=>e,dZ=()=>{let e=mD;return{configure(t){e=t},generate(t){return e(t)},reset(){e=mD}}},hZ=dZ(),WM=hZ,pZ={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 Ue(e,t,r="Mui"){const n=pZ[t];return n?`${r}-${n}`:`${WM.generate(e)}-${t}`}function je(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=Ue(e,i,r)}),n}function PV(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var vZ=/^((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)-.*))$/,gZ=PV(function(e){return vZ.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function mZ(e){if(e.sheet)return e.sheet;for(var t=0;t0?Dr(Df,--Mn):0,df--,cr===10&&(df=1,k1--),cr}function $n(){return cr=Mn2||vp(cr)>3?"":" "}function kZ(e,t){for(;--t&&$n()&&!(cr<48||cr>102||cr>57&&cr<65||cr>70&&cr<97););return ov(e,Im()+(t<6&&Aa()==32&&$n()==32))}function wC(e){for(;$n();)switch(cr){case e:return Mn;case 34:case 39:e!==34&&e!==39&&wC(cr);break;case 40:e===41&&wC(e);break;case 92:$n();break}return Mn}function DZ(e,t){for(;$n()&&e+cr!==47+10;)if(e+cr===42+42&&Aa()===47)break;return"/*"+ov(t,Mn-1)+"*"+P1(e===47?e:$n())}function RZ(e){for(;!vp(Aa());)$n();return ov(e,Mn)}function LZ(e){return OV(km("",null,null,null,[""],e=EV(e),0,[0],e))}function km(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=$n()){case 40:if(p!=108&&Dr(w,f-1)==58){_C(w+=gt(Pm(y),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:w+=Pm(y);break;case 9:case 10:case 13:case 32:w+=PZ(p);break;case 92:w+=kZ(Im()-1,7);continue;case 47:switch(Aa()){case 42:case 47:eg(EZ(DZ($n(),Im()),t,r),l);break;default:w+="/"}break;case 123*v:s[u++]=ca(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&&ca(w)-f&&eg(h>32?xD(w+";",n,r,f-1):xD(gt(w," ","")+";",n,r,f-2),l);break;case 59:w+=";";default:if(eg(b=yD(w,t,r,u,c,i,s,x,S=[],_=[],f),a),y===123)if(c===0)km(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:km(e,b,b,n&&eg(yD(e,b,b,0,0,i,s,x,i,S=[],f),_),i,_,f,s,n?S:_);break;default:km(w,b,b,b,[""],_,0,s,_)}}u=c=h=0,v=m=1,x=w="",f=o;break;case 58:f=1+ca(w),h=p;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&IZ()==125)continue}switch(w+=P1(y),y*v){case 38:m=c>0?1:(w+="\f",-1);break;case 44:s[u++]=(ca(w)-1)*m,m=1;break;case 64:Aa()===45&&(w+=Pm($n())),d=Aa(),c=f=ca(x=w+=RZ(Im())),y++;break;case 45:p===45&&ca(w)==2&&(v=0)}}return a}function yD(e,t,r,n,i,a,o,s,l,u,c){for(var f=i-1,d=i===0?a:[""],h=YM(d),p=0,v=0,g=0;p0?d[m]+" "+y:gt(y,/&\f/g,d[m])))&&(l[g++]=x);return D1(e,t,r,i===0?UM:s,l,u,c)}function EZ(e,t,r){return D1(e,t,r,kV,P1(MZ()),pp(e,2,-2),0)}function xD(e,t,r,n){return D1(e,t,r,jM,pp(e,0,n),pp(e,n+1,-1),n)}function jc(e,t){for(var r="",n=YM(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"+ky+(Dr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~_C(e,"stretch")?NV(gt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Dr(e,t+1)!==115)break;case 6444:switch(Dr(e,ca(e)-3-(~_C(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"+Ur+"$2box$3")+e}break;case 5936:switch(Dr(e,t+11)){case 114:return vt+e+Ur+gt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return vt+e+Ur+gt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return vt+e+Ur+gt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return vt+e+Ur+e+e}return e}var HZ=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case jM:t.return=NV(t.value,t.length);break;case DV:return jc([fd(t,{value:gt(t.value,"@","@"+vt)})],i);case UM:if(t.length)return AZ(t.props,function(a){switch(TZ(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return jc([fd(t,{props:[gt(a,/:(read-\w+)/,":"+ky+"$1")]})],i);case"::placeholder":return jc([fd(t,{props:[gt(a,/:(plac\w+)/,":"+vt+"input-$1")]}),fd(t,{props:[gt(a,/:(plac\w+)/,":"+ky+"$1")]}),fd(t,{props:[gt(a,/:(plac\w+)/,Ur+"input-$1")]})],i)}return""})}},WZ=[HZ],UZ=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||WZ,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 XZ={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},ZZ=/[A-Z]|^ms/g,KZ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,FV=function(t){return t.charCodeAt(1)===45},bD=function(t){return t!=null&&typeof t!="boolean"},CS=PV(function(e){return FV(e)?e:e.replace(ZZ,"-$&").toLowerCase()}),_D=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(KZ,function(n,i,a){return fa={name:i,styles:a,next:fa},i})}return XZ[t]!==1&&!FV(t)&&typeof r=="number"&&r!==0?r+"px":r};function gp(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 fa={name:r.name,styles:r.styles,next:fa},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)fa={name:n.name,styles:n.styles,next:fa},n=n.next;var i=r.styles+";";return i}return QZ(e,t,r)}case"function":{if(e!==void 0){var a=fa,o=r(e);return fa=a,gp(e,t,o)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function QZ(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i96?nK:iK},AD=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},aK=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return zV(r,n,i),eK(function(){return BV(r,n,i)}),null},oK=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=AD(t,r,n),l=s||TD(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(lK(i)?r:i):t;return E.jsx(tK,{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 GV(e,t){return wC(e,t)}const sK=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},lK=["values","unit","step"],uK=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)=>F({},r,{[n.key]:n.val}),{})};function cK(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,i=ye(e,lK),a=uK(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 po(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||AD;return t.reduce((o,s,l)=>(o[a.up(a.keys[l])]=r(t[l]),o),{})}if(typeof t=="object"){const a=n.breakpoints||AD;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 hK(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,i)=>{const a=e.up(i);return n[a]={},n},{}))||{}}function pK(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function cf(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 Py(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=cf(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=cf(l,n)||{};return po(o,s,f=>{let d=Py(u,i,f);return f===d&&typeof f=="string"&&(d=Py(u,i,`${t}${f==="default"?"":Me(f)}`,f)),r===!1?d:{[r]:d}})};return a.propTypes={},a.filterProps=[t],a}function vK(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const gK={m:"margin",p:"padding"},mK={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},MD={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},yK=vK(e=>{if(e.length>2)if(MD[e])e=MD[e];else return[e];const[t,r]=e.split(""),n=gK[t],i=mK[r]||"";return Array.isArray(i)?i.map(a=>n+a):[n+i]}),ZM=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],KM=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...ZM,...KM];function ov(e,t,r,n){var i;const a=(i=cf(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 HV(e){return ov(e,"spacing",8)}function sv(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 xK(e,t){return r=>e.reduce((n,i)=>(n[i]=sv(t,r),n),{})}function SK(e,t,r,n){if(t.indexOf(r)===-1)return null;const i=yK(r),a=xK(i,n),o=e[r];return po(e,o,a)}function WV(e,t){const r=HV(e.theme);return Object.keys(e).map(n=>SK(e,t,n,r)).reduce(Ch,{})}function Qt(e){return WV(e,ZM)}Qt.propTypes={};Qt.filterProps=ZM;function Jt(e){return WV(e,KM)}Jt.propTypes={};Jt.filterProps=KM;function bK(e=8){if(e.mui)return e;const t=HV({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 D1(...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]?Ch(i,t[a](n)):i,{});return r.propTypes={},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function ha(e){return typeof e!="number"?e:`${e}px solid`}const _K=St({prop:"border",themeKey:"borders",transform:ha}),wK=St({prop:"borderTop",themeKey:"borders",transform:ha}),CK=St({prop:"borderRight",themeKey:"borders",transform:ha}),TK=St({prop:"borderBottom",themeKey:"borders",transform:ha}),AK=St({prop:"borderLeft",themeKey:"borders",transform:ha}),MK=St({prop:"borderColor",themeKey:"palette"}),IK=St({prop:"borderTopColor",themeKey:"palette"}),PK=St({prop:"borderRightColor",themeKey:"palette"}),kK=St({prop:"borderBottomColor",themeKey:"palette"}),DK=St({prop:"borderLeftColor",themeKey:"palette"}),R1=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ov(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:sv(t,n)});return po(e,e.borderRadius,r)}return null};R1.propTypes={};R1.filterProps=["borderRadius"];D1(_K,wK,CK,TK,AK,MK,IK,PK,kK,DK,R1);const L1=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ov(e.theme,"spacing",8),r=n=>({gap:sv(t,n)});return po(e,e.gap,r)}return null};L1.propTypes={};L1.filterProps=["gap"];const E1=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ov(e.theme,"spacing",8),r=n=>({columnGap:sv(t,n)});return po(e,e.columnGap,r)}return null};E1.propTypes={};E1.filterProps=["columnGap"];const O1=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ov(e.theme,"spacing",8),r=n=>({rowGap:sv(t,n)});return po(e,e.rowGap,r)}return null};O1.propTypes={};O1.filterProps=["rowGap"];const RK=St({prop:"gridColumn"}),LK=St({prop:"gridRow"}),EK=St({prop:"gridAutoFlow"}),OK=St({prop:"gridAutoColumns"}),NK=St({prop:"gridAutoRows"}),zK=St({prop:"gridTemplateColumns"}),BK=St({prop:"gridTemplateRows"}),FK=St({prop:"gridTemplateAreas"}),$K=St({prop:"gridArea"});D1(L1,E1,O1,RK,LK,EK,OK,NK,zK,BK,FK,$K);function Wc(e,t){return t==="grey"?t:e}const VK=St({prop:"color",themeKey:"palette",transform:Wc}),GK=St({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Wc}),HK=St({prop:"backgroundColor",themeKey:"palette",transform:Wc});D1(VK,GK,HK);function En(e){return e<=1&&e!==0?`${e*100}%`:e}const WK=St({prop:"width",transform:En}),QM=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:En(r)}};return po(e,e.maxWidth,t)}return null};QM.filterProps=["maxWidth"];const UK=St({prop:"minWidth",transform:En}),jK=St({prop:"height",transform:En}),YK=St({prop:"maxHeight",transform:En}),qK=St({prop:"minHeight",transform:En});St({prop:"size",cssProperty:"width",transform:En});St({prop:"size",cssProperty:"height",transform:En});const XK=St({prop:"boxSizing"});D1(WK,QM,UK,jK,YK,qK,XK);const ZK={border:{themeKey:"borders",transform:ha},borderTop:{themeKey:"borders",transform:ha},borderRight:{themeKey:"borders",transform:ha},borderBottom:{themeKey:"borders",transform:ha},borderLeft:{themeKey:"borders",transform:ha},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:R1},color:{themeKey:"palette",transform:Wc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Wc},backgroundColor:{themeKey:"palette",transform:Wc},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:L1},rowGap:{style:O1},columnGap:{style:E1},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:En},maxWidth:{style:QM},minWidth:{transform:En},height:{transform:En},maxHeight:{transform:En},minHeight:{transform:En},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},N1=ZK;function KK(...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 QK(e,t){return typeof e=="function"?e(t):e}function JK(){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=cf(i,u)||{};return f?f(o):po(o,n,p=>{let v=Py(d,c,p);return p===v&&typeof p=="string"&&(v=Py(d,c,`${r}${p==="default"?"":Me(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:N1;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=hK(a.breakpoints),f=Object.keys(c);let d=c;return Object.keys(u).forEach(h=>{const p=QK(u[h],a);if(p!=null)if(typeof p=="object")if(o[h])d=Ch(d,e(h,p,a,o));else{const v=po({theme:a},p,g=>({[h]:g}));KK(v,p)?d[h]=t({sx:p,theme:a}):d=Ch(d,v)}else d=Ch(d,e(h,p,a,o))}),pK(f,d)}return Array.isArray(i)?i.map(s):s(i)}return t}const UV=JK();UV.filterProps=["sx"];const z1=UV,eQ=["breakpoints","palette","spacing","shape"];function B1(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:a={}}=e,o=ye(e,eQ),s=cK(r),l=bK(i);let u=mi({breakpoints:s,direction:"ltr",components:{},palette:F({mode:"light"},n),spacing:l,shape:F({},dK,a)},o);return u=t.reduce((c,f)=>mi(c,f),u),u.unstable_sxConfig=F({},N1,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(f){return z1({sx:f,theme:this})},u}function tQ(e){return Object.keys(e).length===0}function jV(e=null){const t=O.useContext(k1);return!t||tQ(t)?e:t}const rQ=B1();function F1(e=rQ){return jV(e)}function nQ({styles:e,themeId:t,defaultTheme:r={}}){const n=F1(r),i=typeof e=="function"?e(t&&n[t]||n):e;return E.jsx(oK,{styles:i})}const iQ=["sx"],aQ=e=>{var t,r;const n={systemProps:{},otherProps:{}},i=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:N1;return Object.keys(e).forEach(a=>{i[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function YV(e){const{sx:t}=e,r=ye(e,iQ),{systemProps:n,otherProps:i}=aQ(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...o)=>{const s=t(...o);return Il(s)?F({},n,s):n}:a=F({},n,t),F({},i,{sx:a})}function qV(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"})(z1);return O.forwardRef(function(l,u){const c=F1(r),f=YV(l),{className:d,component:h="div"}=f,p=ye(f,oQ);return E.jsx(a,F({as:h,ref:u,className:Ce(d,i?i(n):n),theme:t&&c[t]||c},p))})}const lQ=["variant"];function ID(e){return e.length===0}function XV(e){const{variant:t}=e,r=ye(e,lQ);let n=t||"";return Object.keys(r).sort().forEach(i=>{i==="color"?n+=ID(n)?e[i]:Me(e[i]):n+=`${ID(n)?i:Me(i)}${Me(e[i].toString())}`}),n}const uQ=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function cQ(e){return Object.keys(e).length===0}function fQ(e){return typeof e=="string"&&e.charCodeAt(0)>96}const dQ=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,hQ=(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=XV(i.props);n[a]=i.style}),n},pQ=(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[XV(l.props)])}),o};function Th(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const vQ=B1(),gQ=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function cd({defaultTheme:e,theme:t,themeId:r}){return cQ(t)?e:t[r]||t}function mQ(e){return e?(t,r)=>r[e]:null}function ZV(e={}){const{themeId:t,defaultTheme:r=vQ,rootShouldForwardProp:n=Th,slotShouldForwardProp:i=Th}=e,a=o=>z1(F({},o,{theme:cd(F({},o,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(o,s={})=>{sK(o,S=>S.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:d=mQ(gQ(u))}=s,h=ye(s,uQ),p=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,v=f||!1;let g,m=Th;u==="Root"||u==="root"?m=n:u?m=i:fQ(o)&&(m=void 0);const y=GV(o,F({shouldForwardProp:m,label:g},h)),x=(S,..._)=>{const b=_?_.map(T=>typeof T=="function"&&T.__emotion_real!==T?M=>T(F({},M,{theme:cd(F({},M,{defaultTheme:r,themeId:t}))})):T):[];let w=S;l&&d&&b.push(T=>{const M=cd(F({},T,{defaultTheme:r,themeId:t})),I=dQ(l,M);if(I){const P={};return Object.entries(I).forEach(([k,R])=>{P[k]=typeof R=="function"?R(F({},T,{theme:M})):R}),d(T,P)}return null}),l&&!p&&b.push(T=>{const M=cd(F({},T,{defaultTheme:r,themeId:t}));return pQ(T,hQ(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(F({},T,{theme:cd(F({},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 yQ=ZV(),xQ=yQ;function SQ(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:GM(t.components[r].defaultProps,n)}function KV({props:e,name:t,defaultTheme:r,themeId:n}){let i=F1(r);return n&&(i=i[n]||i),SQ({theme:i,name:t,props:e})}function JM(e,t=0,r=1){return Math.min(Math.max(t,e),r)}function bQ(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 hu(e){if(e.type)return e;if(e.charAt(0)==="#")return hu(bQ(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(Cs(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(Cs(10,i))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:i}}function $1(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 _Q(e){e=hu(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])),$1({type:s,values:l})}function PD(e){e=hu(e);let t=e.type==="hsl"||e.type==="hsla"?hu(_Q(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 wQ(e,t){const r=PD(e),n=PD(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function wr(e,t){return e=hu(e),t=JM(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,$1(e)}function QV(e,t){if(e=hu(e),t=JM(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 $1(e)}function JV(e,t){if(e=hu(e),t=JM(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 $1(e)}const CQ=O.createContext(null),e4=CQ;function t4(){return O.useContext(e4)}const TQ=typeof Symbol=="function"&&Symbol.for,AQ=TQ?Symbol.for("mui.nested"):"__THEME_NESTED__";function MQ(e,t){return typeof t=="function"?t(e):F({},e,t)}function IQ(e){const{children:t,theme:r}=e,n=t4(),i=O.useMemo(()=>{const a=n===null?r:MQ(n,r);return a!=null&&(a[AQ]=n!==null),a},[r,n]);return E.jsx(e4.Provider,{value:i,children:t})}const kD={};function DD(e,t,r,n=!1){return O.useMemo(()=>{const i=e&&t[e]||t;if(typeof r=="function"){const a=r(i),o=e?F({},t,{[e]:a}):a;return n?()=>o:o}return e?F({},t,{[e]:r}):F({},t,r)},[e,t,r,n])}function PQ(e){const{children:t,theme:r,themeId:n}=e,i=jV(kD),a=t4()||kD,o=DD(n,i,r),s=DD(n,a,r,!0);return E.jsx(IQ,{theme:s,children:E.jsx(k1.Provider,{value:o,children:t})})}const kQ=["className","component","disableGutters","fixed","maxWidth","classes"],DQ=B1(),RQ=xQ("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Me(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),LQ=e=>KV({props:e,name:"MuiContainer",defaultTheme:DQ}),EQ=(e,t)=>{const r=l=>Ue(t,l),{classes:n,fixed:i,disableGutters:a,maxWidth:o}=e,s={root:["root",o&&`maxWidth${Me(String(o))}`,i&&"fixed",a&&"disableGutters"]};return Ze(s,r,n)};function OQ(e={}){const{createStyledComponent:t=RQ,useThemeProps:r=LQ,componentName:n="MuiContainer"}=e,i=t(({theme:o,ownerState:s})=>F({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})=>F({},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=ye(u,kQ),g=F({},u,{component:f,disableGutters:d,fixed:h,maxWidth:p}),m=EQ(g,n);return E.jsx(i,F({as:f,ownerState:g,className:Ce(m.root,c),ref:l},v))})}function NQ(e,t){return F({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const zQ={black:"#000",white:"#fff"},gp=zQ,BQ={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"},FQ=BQ,$Q={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"},Bu=$Q,VQ={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"},Fu=VQ,GQ={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"},fd=GQ,HQ={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"},$u=HQ,WQ={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"},Vu=WQ,UQ={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"},Gu=UQ,jQ=["mode","contrastThreshold","tonalOffset"],RD={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:gp.white,default:gp.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}},CS={text:{primary:gp.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:gp.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 LD(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=JV(e.main,i):t==="dark"&&(e.dark=QV(e.main,a)))}function YQ(e="light"){return e==="dark"?{main:$u[200],light:$u[50],dark:$u[400]}:{main:$u[700],light:$u[400],dark:$u[800]}}function qQ(e="light"){return e==="dark"?{main:Bu[200],light:Bu[50],dark:Bu[400]}:{main:Bu[500],light:Bu[300],dark:Bu[700]}}function XQ(e="light"){return e==="dark"?{main:Fu[500],light:Fu[300],dark:Fu[700]}:{main:Fu[700],light:Fu[400],dark:Fu[800]}}function ZQ(e="light"){return e==="dark"?{main:Vu[400],light:Vu[300],dark:Vu[700]}:{main:Vu[700],light:Vu[500],dark:Vu[900]}}function KQ(e="light"){return e==="dark"?{main:Gu[400],light:Gu[300],dark:Gu[700]}:{main:Gu[800],light:Gu[500],dark:Gu[900]}}function QQ(e="light"){return e==="dark"?{main:fd[400],light:fd[300],dark:fd[700]}:{main:"#ed6c02",light:fd[500],dark:fd[900]}}function JQ(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,i=ye(e,jQ),a=e.primary||YQ(t),o=e.secondary||qQ(t),s=e.error||XQ(t),l=e.info||ZQ(t),u=e.success||KQ(t),c=e.warning||QQ(t);function f(v){return wQ(v,CS.text.primary)>=r?CS.text.primary:RD.text.primary}const d=({color:v,name:g,mainShade:m=500,lightShade:y=300,darkShade:x=700})=>{if(v=F({},v),!v.main&&v[m]&&(v.main=v[m]),!v.hasOwnProperty("main"))throw new Error(Cs(11,g?` (${g})`:"",m));if(typeof v.main!="string")throw new Error(Cs(12,g?` (${g})`:"",JSON.stringify(v.main)));return LD(v,"light",y,n),LD(v,"dark",x,n),v.contrastText||(v.contrastText=f(v.main)),v},h={dark:CS,light:RD};return mi(F({common:F({},gp),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:FQ,contrastThreshold:r,getContrastText:f,augmentColor:d,tonalOffset:n},h[t]),i)}const eJ=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function tJ(e){return Math.round(e*1e5)/1e5}const ED={textTransform:"uppercase"},OD='"Roboto", "Helvetica", "Arial", sans-serif';function rJ(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=OD,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:o=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:f}=r,d=ye(r,eJ),h=i/14,p=f||(m=>`${m/u*h}rem`),v=(m,y,x,S,_)=>F({fontFamily:n,fontWeight:m,fontSize:p(y),lineHeight:x},n===OD?{letterSpacing:`${tJ(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,ED),caption:v(o,12,1.66,.4),overline:v(o,12,2.66,1,ED),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return mi(F({htmlFontSize:u,pxToRem:p,fontFamily:n,fontSize:i,fontWeightLight:a,fontWeightRegular:o,fontWeightMedium:s,fontWeightBold:l},g),d,{clone:!1})}const nJ=.2,iJ=.14,aJ=.12;function Gt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${nJ})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${iJ})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${aJ})`].join(",")}const oJ=["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)],sJ=oJ,lJ=["duration","easing","delay"],uJ={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)"},r4={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ND(e){return`${Math.round(e)}ms`}function cJ(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function fJ(e){const t=F({},uJ,e.easing),r=F({},r4,e.duration);return F({getAutoHeightDuration:cJ,create:(i=["all"],a={})=>{const{duration:o=r.standard,easing:s=t.easeInOut,delay:l=0}=a;return ye(a,lJ),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof o=="string"?o:ND(o)} ${s} ${typeof l=="string"?l:ND(l)}`).join(",")}},e,{easing:t,duration:r})}const dJ={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},hJ=dJ,pJ=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function e2(e={},...t){const{mixins:r={},palette:n={},transitions:i={},typography:a={}}=e,o=ye(e,pJ);if(e.vars)throw new Error(Cs(18));const s=JQ(n),l=B1(e);let u=mi(l,{mixins:NQ(l.breakpoints,r),palette:s,shadows:sJ.slice(),typography:rJ(s,a),transitions:fJ(i),zIndex:F({},hJ)});return u=mi(u,o),u=t.reduce((c,f)=>mi(c,f),u),u.unstable_sxConfig=F({},N1,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(f){return z1({sx:f,theme:this})},u}const vJ=e2(),V1=vJ,pu="$$material";function Ye({props:e,name:t}){return KV({props:e,name:t,defaultTheme:V1,themeId:pu})}function n4(e){return E.jsx(nQ,F({},e,{defaultTheme:V1,themeId:pu}))}const gJ=(e,t)=>F({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),mJ=e=>F({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}}),yJ=(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=F({html:gJ(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:F({margin:0},mJ(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 i4(e){const t=Ye({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return E.jsxs(O.Fragment,{children:[E.jsx(n4,{styles:i=>yJ(i,n)}),r]})}function Pf(){const e=F1(V1);return e[pu]||e}const wo=e=>Th(e)&&e!=="classes",xJ=Th,SJ=ZV({themeId:pu,defaultTheme:V1,rootShouldForwardProp:wo}),ge=SJ,bJ=["theme"];function a4(e){let{theme:t}=e,r=ye(e,bJ);const n=t[pu];return E.jsx(PQ,F({},r,{themeId:n?pu:void 0,theme:n||t}))}const _J=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},zD=_J;function wJ(e){return Ue("MuiSvgIcon",e)}je("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const CJ=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],TJ=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${Me(t)}`,`fontSize${Me(r)}`]};return Ze(i,wJ,n)},AJ=ge("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Me(r.color)}`],t[`fontSize${Me(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]}}),o4=O.forwardRef(function(t,r){const n=Ye({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=ye(n,CJ),p=O.isValidElement(i)&&i.type==="svg",v=F({},n,{color:o,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:p}),g={};c||(g.viewBox=d);const m=TJ(v);return E.jsxs(AJ,F({as:s,className:Ce(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?E.jsx("title",{children:f}):null]}))});o4.muiName="SvgIcon";const BD=o4;function G1(e,t){function r(n,i){return E.jsx(BD,F({"data-testid":`${t}Icon`,ref:i},n,{children:e}))}return r.muiName=BD.muiName,O.memo(O.forwardRef(r))}const MJ={configure:e=>{HM.configure(e)}},IJ=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Me,createChainedFunction:xC,createSvgIcon:G1,debounce:iv,deprecatedPropType:KX,isMuiElement:wh,ownerDocument:on,ownerWindow:Da,requirePropFactory:QX,setRef:Ay,unstable_ClassNameGenerator:MJ,unstable_useEnhancedEffect:ho,unstable_useId:TV,unsupportedProp:tZ,useControlled:My,useEventCallback:ya,useForkRef:Mr,useIsFocusVisible:VM},Symbol.toStringTag,{value:"Module"}));function CC(e,t){return CC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},CC(e,t)}function s4(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,CC(e,t)}const FD={disabled:!1},ky=ma.createContext(null);var PJ=function(t){return t.scrollTop},Kd="unmounted",yl="exited",xl="entering",hc="entered",TC="exiting",Co=function(e){s4(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=yl,a.appearStatus=xl):l=hc:n.unmountOnExit||n.mountOnEnter?l=Kd:l=yl,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===Kd?{status:yl}: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!==xl&&o!==hc&&(a=xl):(o===xl||o===hc)&&(a=TC)}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===xl){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Kv.findDOMNode(this);o&&PJ(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===yl&&this.setState({status:Kd})},r.performEnter=function(i){var a=this,o=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[Kv.findDOMNode(this),s],u=l[0],c=l[1],f=this.getTimeouts(),d=s?f.appear:f.enter;if(!i&&!o||FD.disabled){this.safeSetState({status:hc},function(){a.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:xl},function(){a.props.onEntering(u,c),a.onTransitionEnd(d,function(){a.safeSetState({status:hc},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:Kv.findDOMNode(this);if(!a||FD.disabled){this.safeSetState({status:yl},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:TC},function(){i.props.onExiting(s),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:yl},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:Kv.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===Kd)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=ye(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ma.createElement(ky.Provider,{value:null},typeof o=="function"?o(i,s):ma.cloneElement(ma.Children.only(o),s))},t}(ma.Component);Co.contextType=ky;Co.propTypes={};function Hu(){}Co.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Hu,onEntering:Hu,onEntered:Hu,onExit:Hu,onExiting:Hu,onExited:Hu};Co.UNMOUNTED=Kd;Co.EXITED=yl;Co.ENTERING=xl;Co.ENTERED=hc;Co.EXITING=TC;const t2=Co;function kJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r2(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 DJ(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 ff(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 zJ(e){return Ue("MuiCollapse",e)}je("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const BJ=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],FJ=e=>{const{orientation:t,classes:r}=e,n={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Ze(n,zJ,r)},$J=ge("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})=>F({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&F({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),VJ=ge("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>F({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),GJ=ge("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>F({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),u4=O.forwardRef(function(t,r){const n=Ye({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=r4.standard,TransitionComponent:S=t2}=n,_=ye(n,BJ),b=F({},n,{orientation:m,collapsedSize:s}),w=FJ(b),C=Pf(),A=O.useRef(),T=O.useRef(null),M=O.useRef(),I=typeof s=="number"?`${s}px`:s,P=m==="horizontal",k=P?"width":"height";O.useEffect(()=>()=>{clearTimeout(A.current)},[]);const R=O.useRef(null),z=Mr(r,R),$=W=>ee=>{if(W){const te=R.current;ee===void 0?W(te):W(te,ee)}},N=()=>T.current?T.current[P?"clientWidth":"clientHeight"]:0,V=$((W,ee)=>{T.current&&P&&(T.current.style.position="absolute"),W.style[k]=I,f&&f(W,ee)}),L=$((W,ee)=>{const te=N();T.current&&P&&(T.current.style.position="");const{duration:ie,easing:re}=ff({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[k]=`${te}px`,W.style.transitionTimingFunction=re,h&&h(W,ee)}),G=$((W,ee)=>{W.style[k]="auto",d&&d(W,ee)}),U=$(W=>{W.style[k]=`${N()}px`,p&&p(W)}),B=$(v),j=$(W=>{const ee=N(),{duration:te,easing:ie}=ff({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[k]=I,W.style.transitionTimingFunction=ie,g&&g(W)}),X=W=>{x==="auto"&&(A.current=setTimeout(W,M.current||0)),i&&i(R.current,W)};return E.jsx(S,F({in:c,onEnter:V,onEntered:G,onEntering:L,onExit:U,onExited:B,onExiting:j,addEndListener:X,nodeRef:R,timeout:x==="auto"?null:x},_,{children:(W,ee)=>E.jsx($J,F({as:l,className:Ce(w.root,o,{entered:w.entered,exited:!c&&I==="0px"&&w.hidden}[W]),style:F({[P?"minWidth":"minHeight"]:I},y),ownerState:F({},b,{state:W}),ref:z},ee,{children:E.jsx(VJ,{ownerState:F({},b,{state:W}),className:w.wrapper,ref:T,children:E.jsx(GJ,{ownerState:F({},b,{state:W}),className:w.wrapperInner,children:a})})}))}))});u4.muiSupportAuto=!0;const HJ=u4;function WJ(e){return Ue("MuiPaper",e)}je("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 UJ=["className","component","elevation","square","variant"],jJ=e=>{const{square:t,elevation:r,variant:n,classes:i}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Ze(a,WJ,i)},YJ=ge("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 F({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"&&F({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${wr("#fff",zD(t.elevation))}, ${wr("#fff",zD(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),qJ=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiPaper"}),{className:i,component:a="div",elevation:o=1,square:s=!1,variant:l="elevation"}=n,u=ye(n,UJ),c=F({},n,{component:a,elevation:o,square:s,variant:l}),f=jJ(c);return E.jsx(YJ,F({as:a,ownerState:c,className:Ce(f.root,i),ref:r},u))}),H1=qJ,XJ=O.createContext({}),c4=XJ;function ZJ(e){return Ue("MuiAccordion",e)}const KJ=je("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),Jv=KJ,QJ=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],JJ=e=>{const{classes:t,square:r,expanded:n,disabled:i,disableGutters:a}=e;return Ze({root:["root",!r&&"rounded",n&&"expanded",i&&"disabled",!a&&"gutters"],region:["region"]},ZJ,t)},eee=ge(H1,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Jv.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"}},[`&.${Jv.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${Jv.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e,ownerState:t})=>F({},!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&&{[`&.${Jv.expanded}`]:{margin:"16px 0"}})),tee=O.forwardRef(function(t,r){const n=Ye({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=HJ,TransitionProps:h}=n,p=ye(n,QJ),[v,g]=My({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]),_=F({},n,{square:f,disabled:s,disableGutters:l,expanded:v}),b=JJ(_);return E.jsxs(eee,F({className:Ce(b.root,a),ref:r,ownerState:_,square:f},p,{children:[E.jsx(c4.Provider,{value:S,children:y}),E.jsx(d,F({in:v,timeout:"auto"},h,{children:E.jsx("div",{"aria-labelledby":y.props.id,id:y.props["aria-controls"],role:"region",className:b.region,children:x})}))]}))}),f4=tee;function ree(e){return Ue("MuiAccordionDetails",e)}je("MuiAccordionDetails",["root"]);const nee=["className"],iee=e=>{const{classes:t}=e;return Ze({root:["root"]},ree,t)},aee=ge("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),oee=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiAccordionDetails"}),{className:i}=n,a=ye(n,nee),o=n,s=iee(o);return E.jsx(aee,F({className:Ce(s.root,i),ref:r,ownerState:o},a))}),d4=oee;function see(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=Ce(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),h={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},p=Ce(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]),E.jsx("span",{className:d,style:h,children:E.jsx("span",{className:p})})}const lee=je("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ii=lee,uee=["center","classes","className"];let W1=e=>e,$D,VD,GD,HD;const AC=550,cee=80,fee=qM($D||($D=W1` + */function HV(e,t){return CC(e,t)}const cK=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},fK=["values","unit","step"],dK=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)=>F({},r,{[n.key]:n.val}),{})};function hK(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,i=ye(e,fK),a=dK(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:${ZM[e]}px)`};function po(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||MD;return t.reduce((o,s,l)=>(o[a.up(a.keys[l])]=r(t[l]),o),{})}if(typeof t=="object"){const a=n.breakpoints||MD;return Object.keys(t).reduce((o,s)=>{if(Object.keys(a.values||ZM).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 gK(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,i)=>{const a=e.up(i);return n[a]={},n},{}))||{}}function mK(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function hf(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 Dy(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=hf(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=hf(l,n)||{};return po(o,s,f=>{let d=Dy(u,i,f);return f===d&&typeof f=="string"&&(d=Dy(u,i,`${t}${f==="default"?"":Me(f)}`,f)),r===!1?d:{[r]:d}})};return a.propTypes={},a.filterProps=[t],a}function yK(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const xK={m:"margin",p:"padding"},SK={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ID={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},bK=yK(e=>{if(e.length>2)if(ID[e])e=ID[e];else return[e];const[t,r]=e.split(""),n=xK[t],i=SK[r]||"";return Array.isArray(i)?i.map(a=>n+a):[n+i]}),KM=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],QM=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...KM,...QM];function sv(e,t,r,n){var i;const a=(i=hf(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 WV(e){return sv(e,"spacing",8)}function lv(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 _K(e,t){return r=>e.reduce((n,i)=>(n[i]=lv(t,r),n),{})}function wK(e,t,r,n){if(t.indexOf(r)===-1)return null;const i=bK(r),a=_K(i,n),o=e[r];return po(e,o,a)}function UV(e,t){const r=WV(e.theme);return Object.keys(e).map(n=>wK(e,t,n,r)).reduce(Th,{})}function Qt(e){return UV(e,KM)}Qt.propTypes={};Qt.filterProps=KM;function Jt(e){return UV(e,QM)}Jt.propTypes={};Jt.filterProps=QM;function CK(e=8){if(e.mui)return e;const t=WV({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 L1(...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]?Th(i,t[a](n)):i,{});return r.propTypes={},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function ha(e){return typeof e!="number"?e:`${e}px solid`}const TK=St({prop:"border",themeKey:"borders",transform:ha}),AK=St({prop:"borderTop",themeKey:"borders",transform:ha}),MK=St({prop:"borderRight",themeKey:"borders",transform:ha}),IK=St({prop:"borderBottom",themeKey:"borders",transform:ha}),PK=St({prop:"borderLeft",themeKey:"borders",transform:ha}),kK=St({prop:"borderColor",themeKey:"palette"}),DK=St({prop:"borderTopColor",themeKey:"palette"}),RK=St({prop:"borderRightColor",themeKey:"palette"}),LK=St({prop:"borderBottomColor",themeKey:"palette"}),EK=St({prop:"borderLeftColor",themeKey:"palette"}),E1=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=sv(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:lv(t,n)});return po(e,e.borderRadius,r)}return null};E1.propTypes={};E1.filterProps=["borderRadius"];L1(TK,AK,MK,IK,PK,kK,DK,RK,LK,EK,E1);const O1=e=>{if(e.gap!==void 0&&e.gap!==null){const t=sv(e.theme,"spacing",8),r=n=>({gap:lv(t,n)});return po(e,e.gap,r)}return null};O1.propTypes={};O1.filterProps=["gap"];const N1=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=sv(e.theme,"spacing",8),r=n=>({columnGap:lv(t,n)});return po(e,e.columnGap,r)}return null};N1.propTypes={};N1.filterProps=["columnGap"];const z1=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=sv(e.theme,"spacing",8),r=n=>({rowGap:lv(t,n)});return po(e,e.rowGap,r)}return null};z1.propTypes={};z1.filterProps=["rowGap"];const OK=St({prop:"gridColumn"}),NK=St({prop:"gridRow"}),zK=St({prop:"gridAutoFlow"}),BK=St({prop:"gridAutoColumns"}),FK=St({prop:"gridAutoRows"}),$K=St({prop:"gridTemplateColumns"}),VK=St({prop:"gridTemplateRows"}),GK=St({prop:"gridTemplateAreas"}),HK=St({prop:"gridArea"});L1(O1,N1,z1,OK,NK,zK,BK,FK,$K,VK,GK,HK);function Yc(e,t){return t==="grey"?t:e}const WK=St({prop:"color",themeKey:"palette",transform:Yc}),UK=St({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Yc}),jK=St({prop:"backgroundColor",themeKey:"palette",transform:Yc});L1(WK,UK,jK);function On(e){return e<=1&&e!==0?`${e*100}%`:e}const YK=St({prop:"width",transform:On}),JM=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])||ZM[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:On(r)}};return po(e,e.maxWidth,t)}return null};JM.filterProps=["maxWidth"];const qK=St({prop:"minWidth",transform:On}),XK=St({prop:"height",transform:On}),ZK=St({prop:"maxHeight",transform:On}),KK=St({prop:"minHeight",transform:On});St({prop:"size",cssProperty:"width",transform:On});St({prop:"size",cssProperty:"height",transform:On});const QK=St({prop:"boxSizing"});L1(YK,JM,qK,XK,ZK,KK,QK);const JK={border:{themeKey:"borders",transform:ha},borderTop:{themeKey:"borders",transform:ha},borderRight:{themeKey:"borders",transform:ha},borderBottom:{themeKey:"borders",transform:ha},borderLeft:{themeKey:"borders",transform:ha},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:E1},color:{themeKey:"palette",transform:Yc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Yc},backgroundColor:{themeKey:"palette",transform:Yc},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:O1},rowGap:{style:z1},columnGap:{style:N1},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:On},maxWidth:{style:JM},minWidth:{transform:On},height:{transform:On},maxHeight:{transform:On},minHeight:{transform:On},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},B1=JK;function eQ(...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 tQ(e,t){return typeof e=="function"?e(t):e}function rQ(){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=hf(i,u)||{};return f?f(o):po(o,n,p=>{let v=Dy(d,c,p);return p===v&&typeof p=="string"&&(v=Dy(d,c,`${r}${p==="default"?"":Me(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:B1;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=gK(a.breakpoints),f=Object.keys(c);let d=c;return Object.keys(u).forEach(h=>{const p=tQ(u[h],a);if(p!=null)if(typeof p=="object")if(o[h])d=Th(d,e(h,p,a,o));else{const v=po({theme:a},p,g=>({[h]:g}));eQ(v,p)?d[h]=t({sx:p,theme:a}):d=Th(d,v)}else d=Th(d,e(h,p,a,o))}),mK(f,d)}return Array.isArray(i)?i.map(s):s(i)}return t}const jV=rQ();jV.filterProps=["sx"];const F1=jV,nQ=["breakpoints","palette","spacing","shape"];function $1(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:a={}}=e,o=ye(e,nQ),s=hK(r),l=CK(i);let u=yi({breakpoints:s,direction:"ltr",components:{},palette:F({mode:"light"},n),spacing:l,shape:F({},vK,a)},o);return u=t.reduce((c,f)=>yi(c,f),u),u.unstable_sxConfig=F({},B1,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(f){return F1({sx:f,theme:this})},u}function iQ(e){return Object.keys(e).length===0}function YV(e=null){const t=O.useContext(R1);return!t||iQ(t)?e:t}const aQ=$1();function V1(e=aQ){return YV(e)}function oQ({styles:e,themeId:t,defaultTheme:r={}}){const n=V1(r),i=typeof e=="function"?e(t&&n[t]||n):e;return E.jsx(uK,{styles:i})}const sQ=["sx"],lQ=e=>{var t,r;const n={systemProps:{},otherProps:{}},i=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:B1;return Object.keys(e).forEach(a=>{i[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function qV(e){const{sx:t}=e,r=ye(e,sQ),{systemProps:n,otherProps:i}=lQ(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...o)=>{const s=t(...o);return Pl(s)?F({},n,s):n}:a=F({},n,t),F({},i,{sx:a})}function XV(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"})(F1);return O.forwardRef(function(l,u){const c=V1(r),f=qV(l),{className:d,component:h="div"}=f,p=ye(f,uQ);return E.jsx(a,F({as:h,ref:u,className:Ce(d,i?i(n):n),theme:t&&c[t]||c},p))})}const fQ=["variant"];function PD(e){return e.length===0}function ZV(e){const{variant:t}=e,r=ye(e,fQ);let n=t||"";return Object.keys(r).sort().forEach(i=>{i==="color"?n+=PD(n)?e[i]:Me(e[i]):n+=`${PD(n)?i:Me(i)}${Me(e[i].toString())}`}),n}const dQ=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function hQ(e){return Object.keys(e).length===0}function pQ(e){return typeof e=="string"&&e.charCodeAt(0)>96}const vQ=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,gQ=(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=ZV(i.props);n[a]=i.style}),n},mQ=(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[ZV(l.props)])}),o};function Ah(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const yQ=$1(),xQ=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function dd({defaultTheme:e,theme:t,themeId:r}){return hQ(t)?e:t[r]||t}function SQ(e){return e?(t,r)=>r[e]:null}function KV(e={}){const{themeId:t,defaultTheme:r=yQ,rootShouldForwardProp:n=Ah,slotShouldForwardProp:i=Ah}=e,a=o=>F1(F({},o,{theme:dd(F({},o,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(o,s={})=>{cK(o,S=>S.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:d=SQ(xQ(u))}=s,h=ye(s,dQ),p=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,v=f||!1;let g,m=Ah;u==="Root"||u==="root"?m=n:u?m=i:pQ(o)&&(m=void 0);const y=HV(o,F({shouldForwardProp:m,label:g},h)),x=(S,..._)=>{const b=_?_.map(T=>typeof T=="function"&&T.__emotion_real!==T?M=>T(F({},M,{theme:dd(F({},M,{defaultTheme:r,themeId:t}))})):T):[];let w=S;l&&d&&b.push(T=>{const M=dd(F({},T,{defaultTheme:r,themeId:t})),I=vQ(l,M);if(I){const P={};return Object.entries(I).forEach(([k,R])=>{P[k]=typeof R=="function"?R(F({},T,{theme:M})):R}),d(T,P)}return null}),l&&!p&&b.push(T=>{const M=dd(F({},T,{defaultTheme:r,themeId:t}));return mQ(T,gQ(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(F({},T,{theme:dd(F({},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 bQ=KV(),_Q=bQ;function wQ(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 QV({props:e,name:t,defaultTheme:r,themeId:n}){let i=V1(r);return n&&(i=i[n]||i),wQ({theme:i,name:t,props:e})}function e2(e,t=0,r=1){return Math.min(Math.max(t,e),r)}function CQ(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 vu(e){if(e.type)return e;if(e.charAt(0)==="#")return vu(CQ(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(Cs(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(Cs(10,i))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:i}}function G1(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 TQ(e){e=vu(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])),G1({type:s,values:l})}function kD(e){e=vu(e);let t=e.type==="hsl"||e.type==="hsla"?vu(TQ(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 AQ(e,t){const r=kD(e),n=kD(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function wr(e,t){return e=vu(e),t=e2(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,G1(e)}function JV(e,t){if(e=vu(e),t=e2(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 G1(e)}function e4(e,t){if(e=vu(e),t=e2(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 G1(e)}const MQ=O.createContext(null),t4=MQ;function r4(){return O.useContext(t4)}const IQ=typeof Symbol=="function"&&Symbol.for,PQ=IQ?Symbol.for("mui.nested"):"__THEME_NESTED__";function kQ(e,t){return typeof t=="function"?t(e):F({},e,t)}function DQ(e){const{children:t,theme:r}=e,n=r4(),i=O.useMemo(()=>{const a=n===null?r:kQ(n,r);return a!=null&&(a[PQ]=n!==null),a},[r,n]);return E.jsx(t4.Provider,{value:i,children:t})}const DD={};function RD(e,t,r,n=!1){return O.useMemo(()=>{const i=e&&t[e]||t;if(typeof r=="function"){const a=r(i),o=e?F({},t,{[e]:a}):a;return n?()=>o:o}return e?F({},t,{[e]:r}):F({},t,r)},[e,t,r,n])}function RQ(e){const{children:t,theme:r,themeId:n}=e,i=YV(DD),a=r4()||DD,o=RD(n,i,r),s=RD(n,a,r,!0);return E.jsx(DQ,{theme:s,children:E.jsx(R1.Provider,{value:o,children:t})})}const LQ=["className","component","disableGutters","fixed","maxWidth","classes"],EQ=$1(),OQ=_Q("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Me(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),NQ=e=>QV({props:e,name:"MuiContainer",defaultTheme:EQ}),zQ=(e,t)=>{const r=l=>Ue(t,l),{classes:n,fixed:i,disableGutters:a,maxWidth:o}=e,s={root:["root",o&&`maxWidth${Me(String(o))}`,i&&"fixed",a&&"disableGutters"]};return Ze(s,r,n)};function BQ(e={}){const{createStyledComponent:t=OQ,useThemeProps:r=NQ,componentName:n="MuiContainer"}=e,i=t(({theme:o,ownerState:s})=>F({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})=>F({},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=ye(u,LQ),g=F({},u,{component:f,disableGutters:d,fixed:h,maxWidth:p}),m=zQ(g,n);return E.jsx(i,F({as:f,ownerState:g,className:Ce(m.root,c),ref:l},v))})}function FQ(e,t){return F({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const $Q={black:"#000",white:"#fff"},mp=$Q,VQ={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"},GQ=VQ,HQ={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"},$u=HQ,WQ={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"},Vu=WQ,UQ={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"},hd=UQ,jQ={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"},Gu=jQ,YQ={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"},Hu=YQ,qQ={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"},Wu=qQ,XQ=["mode","contrastThreshold","tonalOffset"],LD={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:mp.white,default:mp.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}},TS={text:{primary:mp.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:mp.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 ED(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=e4(e.main,i):t==="dark"&&(e.dark=JV(e.main,a)))}function ZQ(e="light"){return e==="dark"?{main:Gu[200],light:Gu[50],dark:Gu[400]}:{main:Gu[700],light:Gu[400],dark:Gu[800]}}function KQ(e="light"){return e==="dark"?{main:$u[200],light:$u[50],dark:$u[400]}:{main:$u[500],light:$u[300],dark:$u[700]}}function QQ(e="light"){return e==="dark"?{main:Vu[500],light:Vu[300],dark:Vu[700]}:{main:Vu[700],light:Vu[400],dark:Vu[800]}}function JQ(e="light"){return e==="dark"?{main:Hu[400],light:Hu[300],dark:Hu[700]}:{main:Hu[700],light:Hu[500],dark:Hu[900]}}function eJ(e="light"){return e==="dark"?{main:Wu[400],light:Wu[300],dark:Wu[700]}:{main:Wu[800],light:Wu[500],dark:Wu[900]}}function tJ(e="light"){return e==="dark"?{main:hd[400],light:hd[300],dark:hd[700]}:{main:"#ed6c02",light:hd[500],dark:hd[900]}}function rJ(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,i=ye(e,XQ),a=e.primary||ZQ(t),o=e.secondary||KQ(t),s=e.error||QQ(t),l=e.info||JQ(t),u=e.success||eJ(t),c=e.warning||tJ(t);function f(v){return AQ(v,TS.text.primary)>=r?TS.text.primary:LD.text.primary}const d=({color:v,name:g,mainShade:m=500,lightShade:y=300,darkShade:x=700})=>{if(v=F({},v),!v.main&&v[m]&&(v.main=v[m]),!v.hasOwnProperty("main"))throw new Error(Cs(11,g?` (${g})`:"",m));if(typeof v.main!="string")throw new Error(Cs(12,g?` (${g})`:"",JSON.stringify(v.main)));return ED(v,"light",y,n),ED(v,"dark",x,n),v.contrastText||(v.contrastText=f(v.main)),v},h={dark:TS,light:LD};return yi(F({common:F({},mp),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:GQ,contrastThreshold:r,getContrastText:f,augmentColor:d,tonalOffset:n},h[t]),i)}const nJ=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function iJ(e){return Math.round(e*1e5)/1e5}const OD={textTransform:"uppercase"},ND='"Roboto", "Helvetica", "Arial", sans-serif';function aJ(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=ND,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:o=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:f}=r,d=ye(r,nJ),h=i/14,p=f||(m=>`${m/u*h}rem`),v=(m,y,x,S,_)=>F({fontFamily:n,fontWeight:m,fontSize:p(y),lineHeight:x},n===ND?{letterSpacing:`${iJ(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,OD),caption:v(o,12,1.66,.4),overline:v(o,12,2.66,1,OD),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return yi(F({htmlFontSize:u,pxToRem:p,fontFamily:n,fontSize:i,fontWeightLight:a,fontWeightRegular:o,fontWeightMedium:s,fontWeightBold:l},g),d,{clone:!1})}const oJ=.2,sJ=.14,lJ=.12;function Gt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${oJ})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${sJ})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${lJ})`].join(",")}const uJ=["none",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)],cJ=uJ,fJ=["duration","easing","delay"],dJ={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)"},n4={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function zD(e){return`${Math.round(e)}ms`}function hJ(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function pJ(e){const t=F({},dJ,e.easing),r=F({},n4,e.duration);return F({getAutoHeightDuration:hJ,create:(i=["all"],a={})=>{const{duration:o=r.standard,easing:s=t.easeInOut,delay:l=0}=a;return ye(a,fJ),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof o=="string"?o:zD(o)} ${s} ${typeof l=="string"?l:zD(l)}`).join(",")}},e,{easing:t,duration:r})}const vJ={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},gJ=vJ,mJ=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function t2(e={},...t){const{mixins:r={},palette:n={},transitions:i={},typography:a={}}=e,o=ye(e,mJ);if(e.vars)throw new Error(Cs(18));const s=rJ(n),l=$1(e);let u=yi(l,{mixins:FQ(l.breakpoints,r),palette:s,shadows:cJ.slice(),typography:aJ(s,a),transitions:pJ(i),zIndex:F({},gJ)});return u=yi(u,o),u=t.reduce((c,f)=>yi(c,f),u),u.unstable_sxConfig=F({},B1,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(f){return F1({sx:f,theme:this})},u}const yJ=t2(),H1=yJ,gu="$$material";function Ye({props:e,name:t}){return QV({props:e,name:t,defaultTheme:H1,themeId:gu})}function i4(e){return E.jsx(oQ,F({},e,{defaultTheme:H1,themeId:gu}))}const xJ=(e,t)=>F({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),SJ=e=>F({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}}),bJ=(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=F({html:xJ(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:F({margin:0},SJ(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 a4(e){const t=Ye({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return E.jsxs(O.Fragment,{children:[E.jsx(i4,{styles:i=>bJ(i,n)}),r]})}function Rf(){const e=V1(H1);return e[gu]||e}const wo=e=>Ah(e)&&e!=="classes",_J=Ah,wJ=KV({themeId:gu,defaultTheme:H1,rootShouldForwardProp:wo}),ge=wJ,CJ=["theme"];function o4(e){let{theme:t}=e,r=ye(e,CJ);const n=t[gu];return E.jsx(RQ,F({},r,{themeId:n?gu:void 0,theme:n||t}))}const TJ=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},BD=TJ;function AJ(e){return Ue("MuiSvgIcon",e)}je("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const MJ=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],IJ=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${Me(t)}`,`fontSize${Me(r)}`]};return Ze(i,AJ,n)},PJ=ge("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Me(r.color)}`],t[`fontSize${Me(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]}}),s4=O.forwardRef(function(t,r){const n=Ye({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=ye(n,MJ),p=O.isValidElement(i)&&i.type==="svg",v=F({},n,{color:o,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:p}),g={};c||(g.viewBox=d);const m=IJ(v);return E.jsxs(PJ,F({as:s,className:Ce(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?E.jsx("title",{children:f}):null]}))});s4.muiName="SvgIcon";const FD=s4;function W1(e,t){function r(n,i){return E.jsx(FD,F({"data-testid":`${t}Icon`,ref:i},n,{children:e}))}return r.muiName=FD.muiName,O.memo(O.forwardRef(r))}const kJ={configure:e=>{WM.configure(e)}},DJ=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Me,createChainedFunction:SC,createSvgIcon:W1,debounce:av,deprecatedPropType:eZ,isMuiElement:Ch,ownerDocument:on,ownerWindow:Da,requirePropFactory:tZ,setRef:Iy,unstable_ClassNameGenerator:kJ,unstable_useEnhancedEffect:ho,unstable_useId:AV,unsupportedProp:iZ,useControlled:Py,useEventCallback:ya,useForkRef:Mr,useIsFocusVisible:GM},Symbol.toStringTag,{value:"Module"}));function TC(e,t){return TC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},TC(e,t)}function l4(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,TC(e,t)}const $D={disabled:!1},Ry=ma.createContext(null);var RJ=function(t){return t.scrollTop},Jd="unmounted",xl="exited",Sl="entering",vc="entered",AC="exiting",Co=function(e){l4(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=xl,a.appearStatus=Sl):l=vc:n.unmountOnExit||n.mountOnEnter?l=Jd:l=xl,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===Jd?{status:xl}: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!==Sl&&o!==vc&&(a=Sl):(o===Sl||o===vc)&&(a=AC)}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===Sl){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Jv.findDOMNode(this);o&&RJ(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===xl&&this.setState({status:Jd})},r.performEnter=function(i){var a=this,o=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[Jv.findDOMNode(this),s],u=l[0],c=l[1],f=this.getTimeouts(),d=s?f.appear:f.enter;if(!i&&!o||$D.disabled){this.safeSetState({status:vc},function(){a.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Sl},function(){a.props.onEntering(u,c),a.onTransitionEnd(d,function(){a.safeSetState({status:vc},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:Jv.findDOMNode(this);if(!a||$D.disabled){this.safeSetState({status:xl},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:AC},function(){i.props.onExiting(s),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:xl},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:Jv.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===Jd)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=ye(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ma.createElement(Ry.Provider,{value:null},typeof o=="function"?o(i,s):ma.cloneElement(ma.Children.only(o),s))},t}(ma.Component);Co.contextType=Ry;Co.propTypes={};function Uu(){}Co.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Uu,onEntering:Uu,onEntered:Uu,onExit:Uu,onExiting:Uu,onExited:Uu};Co.UNMOUNTED=Jd;Co.EXITED=xl;Co.ENTERING=Sl;Co.ENTERED=vc;Co.EXITING=AC;const r2=Co;function LJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function n2(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 EJ(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 pf(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 $J(e){return Ue("MuiCollapse",e)}je("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const VJ=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],GJ=e=>{const{orientation:t,classes:r}=e,n={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Ze(n,$J,r)},HJ=ge("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})=>F({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&F({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),WJ=ge("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>F({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),UJ=ge("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>F({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),c4=O.forwardRef(function(t,r){const n=Ye({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=n4.standard,TransitionComponent:S=r2}=n,_=ye(n,VJ),b=F({},n,{orientation:m,collapsedSize:s}),w=GJ(b),C=Rf(),A=O.useRef(),T=O.useRef(null),M=O.useRef(),I=typeof s=="number"?`${s}px`:s,P=m==="horizontal",k=P?"width":"height";O.useEffect(()=>()=>{clearTimeout(A.current)},[]);const R=O.useRef(null),z=Mr(r,R),$=W=>ee=>{if(W){const te=R.current;ee===void 0?W(te):W(te,ee)}},N=()=>T.current?T.current[P?"clientWidth":"clientHeight"]:0,V=$((W,ee)=>{T.current&&P&&(T.current.style.position="absolute"),W.style[k]=I,f&&f(W,ee)}),L=$((W,ee)=>{const te=N();T.current&&P&&(T.current.style.position="");const{duration:ie,easing:re}=pf({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[k]=`${te}px`,W.style.transitionTimingFunction=re,h&&h(W,ee)}),G=$((W,ee)=>{W.style[k]="auto",d&&d(W,ee)}),U=$(W=>{W.style[k]=`${N()}px`,p&&p(W)}),B=$(v),j=$(W=>{const ee=N(),{duration:te,easing:ie}=pf({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[k]=I,W.style.transitionTimingFunction=ie,g&&g(W)}),X=W=>{x==="auto"&&(A.current=setTimeout(W,M.current||0)),i&&i(R.current,W)};return E.jsx(S,F({in:c,onEnter:V,onEntered:G,onEntering:L,onExit:U,onExited:B,onExiting:j,addEndListener:X,nodeRef:R,timeout:x==="auto"?null:x},_,{children:(W,ee)=>E.jsx(HJ,F({as:l,className:Ce(w.root,o,{entered:w.entered,exited:!c&&I==="0px"&&w.hidden}[W]),style:F({[P?"minWidth":"minHeight"]:I},y),ownerState:F({},b,{state:W}),ref:z},ee,{children:E.jsx(WJ,{ownerState:F({},b,{state:W}),className:w.wrapper,ref:T,children:E.jsx(UJ,{ownerState:F({},b,{state:W}),className:w.wrapperInner,children:a})})}))}))});c4.muiSupportAuto=!0;const jJ=c4;function YJ(e){return Ue("MuiPaper",e)}je("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 qJ=["className","component","elevation","square","variant"],XJ=e=>{const{square:t,elevation:r,variant:n,classes:i}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Ze(a,YJ,i)},ZJ=ge("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 F({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"&&F({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${wr("#fff",BD(t.elevation))}, ${wr("#fff",BD(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),KJ=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiPaper"}),{className:i,component:a="div",elevation:o=1,square:s=!1,variant:l="elevation"}=n,u=ye(n,qJ),c=F({},n,{component:a,elevation:o,square:s,variant:l}),f=XJ(c);return E.jsx(ZJ,F({as:a,ownerState:c,className:Ce(f.root,i),ref:r},u))}),U1=KJ,QJ=O.createContext({}),f4=QJ;function JJ(e){return Ue("MuiAccordion",e)}const eee=je("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),tg=eee,tee=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],ree=e=>{const{classes:t,square:r,expanded:n,disabled:i,disableGutters:a}=e;return Ze({root:["root",!r&&"rounded",n&&"expanded",i&&"disabled",!a&&"gutters"],region:["region"]},JJ,t)},nee=ge(U1,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${tg.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"}},[`&.${tg.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${tg.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e,ownerState:t})=>F({},!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&&{[`&.${tg.expanded}`]:{margin:"16px 0"}})),iee=O.forwardRef(function(t,r){const n=Ye({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=jJ,TransitionProps:h}=n,p=ye(n,tee),[v,g]=Py({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]),_=F({},n,{square:f,disabled:s,disableGutters:l,expanded:v}),b=ree(_);return E.jsxs(nee,F({className:Ce(b.root,a),ref:r,ownerState:_,square:f},p,{children:[E.jsx(f4.Provider,{value:S,children:y}),E.jsx(d,F({in:v,timeout:"auto"},h,{children:E.jsx("div",{"aria-labelledby":y.props.id,id:y.props["aria-controls"],role:"region",className:b.region,children:x})}))]}))}),d4=iee;function aee(e){return Ue("MuiAccordionDetails",e)}je("MuiAccordionDetails",["root"]);const oee=["className"],see=e=>{const{classes:t}=e;return Ze({root:["root"]},aee,t)},lee=ge("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),uee=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiAccordionDetails"}),{className:i}=n,a=ye(n,oee),o=n,s=see(o);return E.jsx(lee,F({className:Ce(s.root,i),ref:r,ownerState:o},a))}),h4=uee;function cee(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=Ce(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),h={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},p=Ce(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]),E.jsx("span",{className:d,style:h,children:E.jsx("span",{className:p})})}const fee=je("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ai=fee,dee=["center","classes","className"];let j1=e=>e,VD,GD,HD,WD;const MC=550,hee=80,pee=XM(VD||(VD=j1` 0% { transform: scale(0); opacity: 0.1; @@ -88,7 +88,7 @@ ${W.current.stack} transform: scale(1); opacity: 0.3; } -`)),dee=qM(VD||(VD=W1` +`)),vee=XM(GD||(GD=j1` 0% { opacity: 1; } @@ -96,7 +96,7 @@ ${W.current.stack} 100% { opacity: 0; } -`)),hee=qM(GD||(GD=W1` +`)),gee=XM(HD||(HD=j1` 0% { transform: scale(1); } @@ -108,7 +108,7 @@ ${W.current.stack} 100% { transform: scale(1); } -`)),pee=ge("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),vee=ge(see,{name:"MuiTouchRipple",slot:"Ripple"})(HD||(HD=W1` +`)),mee=ge("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),yee=ge(cee,{name:"MuiTouchRipple",slot:"Ripple"})(WD||(WD=j1` opacity: 0; position: absolute; @@ -151,24 +151,24 @@ ${W.current.stack} animation-iteration-count: infinite; animation-delay: 200ms; } -`),ii.rippleVisible,fee,AC,({theme:e})=>e.transitions.easing.easeInOut,ii.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ii.child,ii.childLeaving,dee,AC,({theme:e})=>e.transitions.easing.easeInOut,ii.childPulsate,hee,({theme:e})=>e.transitions.easing.easeInOut),gee=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:o}=n,s=ye(n,uee),[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,E.jsx(vee,{classes:{ripple:Ce(a.ripple,ii.ripple),rippleVisible:Ce(a.rippleVisible,ii.rippleVisible),ripplePulsate:Ce(a.ripplePulsate,ii.ripplePulsate),child:Ce(a.child,ii.child),childLeaving:Ce(a.childLeaving,ii.childLeaving),childPulsate:Ce(a.childPulsate,ii.childPulsate)},timeout:AC,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 I,P,k;if(C||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)I=Math.round(M.width/2),P=Math.round(M.height/2);else{const{clientX:R,clientY:z}=S.touches&&S.touches.length>0?S.touches[0]:S;I=Math.round(R-M.left),P=Math.round(z-M.top)}if(C)k=Math.sqrt((2*M.width**2+M.height**2)/3),k%2===0&&(k+=1);else{const R=Math.max(Math.abs((T?T.clientWidth:0)-I),I)*2+2,z=Math.max(Math.abs((T?T.clientHeight:0)-P),P)*2+2;k=Math.sqrt(R**2+z**2)}S!=null&&S.touches?p.current===null&&(p.current=()=>{g({pulsate:w,rippleX:I,rippleY:P,rippleSize:k,cb:b})},h.current=setTimeout(()=>{p.current&&(p.current(),p.current=null)},cee)):g({pulsate:w,rippleX:I,rippleY:P,rippleSize:k,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]),E.jsx(pee,F({className:Ce(ii.root,a.root,o),ref:v},s,{children:E.jsx(NJ,{component:null,exit:!0,children:l})}))}),mee=gee;function yee(e){return Ue("MuiButtonBase",e)}const xee=je("MuiButtonBase",["root","disabled","focusVisible"]),See=xee,bee=["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"],_ee=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,o=Ze({root:["root",t&&"disabled",r&&"focusVisible"]},yee,i);return r&&n&&(o.root+=` ${n}`),o},wee=ge("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${See.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Cee=O.forwardRef(function(t,r){const n=Ye({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:I=0,TouchRippleProps:P,touchRippleRef:k,type:R}=n,z=ye(n,bee),$=O.useRef(null),N=O.useRef(null),V=Mr(N,k),{isFocusVisibleRef:L,onFocus:G,onBlur:U,ref:B}=VM(),[j,X]=O.useState(!1);u&&j&&X(!1),O.useImperativeHandle(i,()=>({focusVisible:()=>{X(!0),$.current.focus()}}),[]);const[W,ee]=O.useState(!1);O.useEffect(()=>{ee(!0)},[]);const te=W&&!c&&!u;O.useEffect(()=>{j&&d&&!c&&W&&N.current.pulsate()},[c,d,j,W]);function ie(he,Vt,Sr=f){return ya(Te=>(Vt&&Vt(Te),!Sr&&N.current&&N.current[he](Te),!0))}const re=ie("start",b),Q=ie("stop",g),J=ie("stop",m),fe=ie("stop",C),de=ie("stop",he=>{j&&he.preventDefault(),w&&w(he)}),ke=ie("start",M),We=ie("stop",A),Ge=ie("stop",T),at=ie("stop",he=>{U(he),L.current===!1&&X(!1),p&&p(he)},!1),ot=ya(he=>{$.current||($.current=he.currentTarget),G(he),L.current===!0&&(X(!0),x&&x(he)),y&&y(he)}),It=()=>{const he=$.current;return l&&l!=="button"&&!(he.tagName==="A"&&he.href)},Be=O.useRef(!1),Pt=ya(he=>{d&&!Be.current&&j&&N.current&&he.key===" "&&(Be.current=!0,N.current.stop(he,()=>{N.current.start(he)})),he.target===he.currentTarget&&It()&&he.key===" "&&he.preventDefault(),S&&S(he),he.target===he.currentTarget&&It()&&he.key==="Enter"&&!u&&(he.preventDefault(),v&&v(he))}),Yt=ya(he=>{d&&he.key===" "&&N.current&&j&&!he.defaultPrevented&&(Be.current=!1,N.current.stop(he,()=>{N.current.pulsate(he)})),_&&_(he),v&&he.target===he.currentTarget&&It()&&he.key===" "&&!he.defaultPrevented&&v(he)});let kt=l;kt==="button"&&(z.href||z.to)&&(kt=h);const K={};kt==="button"?(K.type=R===void 0?"button":R,K.disabled=u):(!z.href&&!z.to&&(K.role="button"),u&&(K["aria-disabled"]=u));const le=Mr(r,B,$),Re=F({},n,{centerRipple:a,component:l,disabled:u,disableRipple:c,disableTouchRipple:f,focusRipple:d,tabIndex:I,focusVisible:j}),_e=_ee(Re);return E.jsxs(wee,F({as:kt,className:Ce(_e.root,s),ownerState:Re,onBlur:at,onClick:v,onContextMenu:Q,onFocus:ot,onKeyDown:Pt,onKeyUp:Yt,onMouseDown:re,onMouseLeave:de,onMouseUp:fe,onDragLeave:J,onTouchEnd:We,onTouchMove:Ge,onTouchStart:ke,ref:le,tabIndex:u?-1:I,type:R},K,z,{children:[o,te?E.jsx(mee,F({ref:V,center:a},P)):null]}))}),kf=Cee;function Tee(e){return Ue("MuiAccordionSummary",e)}const Aee=je("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),Rc=Aee,Mee=["children","className","expandIcon","focusVisibleClassName","onClick"],Iee=e=>{const{classes:t,expanded:r,disabled:n,disableGutters:i}=e;return Ze({root:["root",r&&"expanded",n&&"disabled",!i&&"gutters"],focusVisible:["focusVisible"],content:["content",r&&"expanded",!i&&"contentGutters"],expandIconWrapper:["expandIconWrapper",r&&"expanded"]},Tee,t)},Pee=ge(kf,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const r={duration:e.transitions.duration.shortest};return F({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],r),[`&.${Rc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Rc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${Rc.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${Rc.expanded}`]:{minHeight:64}})}),kee=ge("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>F({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${Rc.expanded}`]:{margin:"20px 0"}})),Dee=ge("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}),[`&.${Rc.expanded}`]:{transform:"rotate(180deg)"}})),Ree=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiAccordionSummary"}),{children:i,className:a,expandIcon:o,focusVisibleClassName:s,onClick:l}=n,u=ye(n,Mee),{disabled:c=!1,disableGutters:f,expanded:d,toggle:h}=O.useContext(c4),p=m=>{h&&h(m),l&&l(m)},v=F({},n,{expanded:d,disabled:c,disableGutters:f}),g=Iee(v);return E.jsxs(Pee,F({focusRipple:!1,disableRipple:!0,disabled:c,component:"div","aria-expanded":d,className:Ce(g.root,a),focusVisibleClassName:Ce(g.focusVisible,s),onClick:p,ref:r,ownerState:v},u,{children:[E.jsx(kee,{className:g.content,ownerState:v,children:i}),o&&E.jsx(Dee,{className:g.expandIconWrapper,ownerState:v,children:o})]}))}),h4=Ree;function Lee(e){return Ue("MuiIconButton",e)}const Eee=je("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Oee=Eee,Nee=["edge","children","className","color","disabled","disableFocusRipple","size"],zee=e=>{const{classes:t,disabled:r,color:n,edge:i,size:a}=e,o={root:["root",r&&"disabled",n!=="default"&&`color${Me(n)}`,i&&`edge${Me(i)}`,`size${Me(a)}`]};return Ze(o,Lee,t)},Bee=ge(kf,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${Me(r.color)}`],r.edge&&t[`edge${Me(r.edge)}`],t[`size${Me(r.size)}`]]}})(({theme:e,ownerState:t})=>F({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})`:wr(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 F({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&F({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":F({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:wr(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)},{[`&.${Oee.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Fee=O.forwardRef(function(t,r){const n=Ye({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=ye(n,Nee),d=F({},n,{edge:i,color:s,disabled:l,disableFocusRipple:u,size:c}),h=zee(d);return E.jsx(Bee,F({className:Ce(h.root,o),centerRipple:!0,focusRipple:!u,disabled:l,ref:r,ownerState:d},f,{children:a}))}),p4=Fee;function $ee(e){return Ue("MuiTypography",e)}je("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Vee=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Gee=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:a,classes:o}=e,s={root:["root",a,e.align!=="inherit"&&`align${Me(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return Ze(s,$ee,o)},Hee=ge("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${Me(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>F({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})),WD={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Wee={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Uee=e=>Wee[e]||e,jee=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTypography"}),i=Uee(n.color),a=YV(F({},n,{color:i})),{align:o="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:f=!1,variant:d="body1",variantMapping:h=WD}=a,p=ye(a,Vee),v=F({},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]||WD[d])||"span",m=Gee(v);return E.jsx(Hee,F({as:g,ref:r,ownerState:v,className:Ce(m.root,s)},p))}),Xe=jee;function Yee(e){return Ue("MuiAppBar",e)}je("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const qee=["className","color","enableColorOnDark","position"],Xee=e=>{const{color:t,position:r,classes:n}=e,i={root:["root",`color${Me(t)}`,`position${Me(r)}`]};return Ze(i,Yee,n)},eg=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Zee=ge(H1,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Me(r.position)}`],t[`color${Me(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return F({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&&F({},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"&&F({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&F({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:eg(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:eg(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:eg(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:eg(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"}))}),Kee=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiAppBar"}),{className:i,color:a="primary",enableColorOnDark:o=!1,position:s="fixed"}=n,l=ye(n,qee),u=F({},n,{color:a,position:s,enableColorOnDark:o}),c=Xee(u);return E.jsx(Zee,F({square:!0,component:"header",ownerState:u,elevation:4,className:Ce(c.root,i,s==="fixed"&&"mui-fixed"),ref:r},l))}),Qee=Kee;function df(e){return typeof e=="string"}function Jee(e,t,r){return e===void 0||df(e)?t:F({},t,{ownerState:F({},t.ownerState,r)})}function v4(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 ete(e,t,r){return typeof e=="function"?e(t,r):e}function UD(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 tte(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:a}=e;if(!t){const h=Ce(i==null?void 0:i.className,n==null?void 0:n.className,a,r==null?void 0:r.className),p=F({},r==null?void 0:r.style,i==null?void 0:i.style,n==null?void 0:n.style),v=F({},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=v4(F({},i,n)),s=UD(n),l=UD(i),u=t(o),c=Ce(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=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=F({},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 rte=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ra(e){var t;const{elementType:r,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:a=!1}=e,o=ye(e,rte),s=a?{}:ete(n,i),{props:l,internalRef:u}=tte(F({},o,{externalSlotProps:s})),c=Mr(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Jee(r,F({},l,{ref:c}),i)}const nte=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ite(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 ate(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 ote(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||ate(e))}function ste(e){const t=[],r=[];return Array.from(e.querySelectorAll(nte)).forEach((n,i)=>{const a=ite(n);a===-1||!ote(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 lte(){return!0}function ute(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:a=ste,isEnabled:o=lte,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=on(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=on(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"),I=C[0],P=C[C.length-1];typeof I!="string"&&typeof P!="string"&&(M?P.focus():I.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 E.jsxs(O.Fragment,{children:[E.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelStart"}),O.cloneElement(t,{ref:v,onFocus:m}),E.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelEnd"})]})}function cte(e){return typeof e=="function"?e():e}const fte=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(ho(()=>{a||s(cte(i)||document.body)},[i,a]),ho(()=>{if(o&&!a)return Ay(r,o),()=>{Ay(r,null)}},[r,o,a]),a){if(O.isValidElement(n)){const u={ref:l};return O.cloneElement(n,u)}return E.jsx(O.Fragment,{children:n})}return E.jsx(O.Fragment,{children:o&&Mf.createPortal(n,o)})});function dte(e){const t=on(e);return t.body===e?Da(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ah(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function jD(e){return parseInt(Da(e).getComputedStyle(e).paddingRight,10)||0}function hte(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 YD(e,t,r,n,i){const a=[t,r,...n];[].forEach.call(e.children,o=>{const s=a.indexOf(o)===-1,l=!hte(o);s&&l&&Ah(o,i)})}function TS(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function pte(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(dte(n)){const o=AV(on(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${jD(n)+o}px`;const s=on(n).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${jD(l)+o}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=on(n).body;else{const o=n.parentElement,s=Da(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 vte(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class gte{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&&Ah(t.modalRef,!1);const i=vte(r);YD(r,t.mount,t.modalRef,i,!0);const a=TS(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=TS(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[n];i.restore||(i.restore=pte(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=TS(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&&Ah(t.modalRef,r),YD(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&&Ah(o.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function mte(e){return typeof e=="function"?e():e}function yte(e){return e?e.props.hasOwnProperty("in"):!1}const xte=new gte;function Ste(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:i=xte,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=yte(l);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const S=()=>on(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=ya(()=>{const z=mte(t)||S().body;i.add(_(),z),p.current&&b()}),C=O.useCallback(()=>i.isTopModal(_()),[i]),A=ya(z=>{h.current=z,z&&(c&&C()?b():p.current&&Ah(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=>$=>{var N;(N=z.onKeyDown)==null||N.call(z,$),!($.key!=="Escape"||!C())&&(r||($.stopPropagation(),u&&u($,"escapeKeyDown")))},I=z=>$=>{var N;(N=z.onClick)==null||N.call(z,$),$.target===$.currentTarget&&u&&u($,"backdropClick")};return{getRootProps:(z={})=>{const $=v4(e);delete $.onTransitionEnter,delete $.onTransitionExited;const N=F({},$,z);return F({role:"presentation"},N,{onKeyDown:M(N),ref:v})},getBackdropProps:(z={})=>{const $=z;return F({"aria-hidden":!0},$,{onClick:I($),open:c})},getTransitionProps:()=>{const z=()=>{m(!1),o&&o()},$=()=>{m(!0),s&&s(),a&&T()};return{onEnter:xC(z,l==null?void 0:l.props.onEnter),onExited:xC($,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:A,isTopModal:C,exited:g,hasTransition:y}}const bte=["onChange","maxRows","minRows","style","value"];function tg(e){return parseInt(e,10)||0}const _te={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function qD(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const wte=O.forwardRef(function(t,r){const{onChange:n,maxRows:i,minRows:a=1,style:o,value:s}=t,l=ye(t,bte),{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=Da(_).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=tg(w.paddingBottom)+tg(w.paddingTop),M=tg(w.borderBottomWidth)+tg(w.borderTopWidth),I=C.scrollHeight;C.value="x";const P=C.scrollHeight;let k=I;a&&(k=Math.max(Number(a)*P,k)),i&&(k=Math.min(Number(i)*P,k)),k=Math.max(k,P);const R=k+(A==="border-box"?T+M:0),z=Math.abs(k-I)<=1;return{outerHeightStyle:R,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();qD(_)||v(b=>m(b,_))},[g]),x=()=>{const _=g();qD(_)||Mf.flushSync(()=>{v(b=>m(b,_))})};O.useEffect(()=>{const _=()=>{h.current=0,c.current&&x()},b=iv(()=>{h.current=0,c.current&&x()});let w;const C=c.current,A=Da(C);return A.addEventListener("resize",b),typeof ResizeObserver<"u"&&(w=new ResizeObserver(_),w.observe(C)),()=>{b.clear(),A.removeEventListener("resize",b),w&&w.disconnect()}}),ho(()=>{y()}),O.useEffect(()=>{h.current=0},[s]);const S=_=>{h.current=0,u||y(),n&&n(_)};return E.jsxs(O.Fragment,{children:[E.jsx("textarea",F({value:s,onChange:S,ref:f,rows:a,style:F({height:p.outerHeightStyle,overflow:p.overflow?"hidden":void 0},o)},l)),E.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:d,tabIndex:-1,style:F({},_te.shadow,o,{paddingTop:0,paddingBottom:0})})]})});function Df({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 Cte=O.createContext(void 0),i2=Cte;function Rf(){return O.useContext(i2)}function XD(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Dy(e,t=!1){return e&&(XD(e.value)&&e.value!==""||t&&XD(e.defaultValue)&&e.defaultValue!=="")}function Tte(e){return e.startAdornment}function Ate(e){return Ue("MuiInputBase",e)}const Mte=je("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),hf=Mte,Ite=["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"],U1=(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${Me(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},j1=(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]},Pte=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${Me(r)}`,n&&"disabled",i&&"error",l&&"fullWidth",o&&"focused",s&&"formControl",d&&d!=="medium"&&`size${Me(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 Ze(v,Ate,t)},Y1=ge("div",{name:"MuiInputBase",slot:"Root",overridesResolver:U1})(({theme:e,ownerState:t})=>F({},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",[`&.${hf.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&F({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),q1=ge("input",{name:"MuiInputBase",slot:"Input",overridesResolver:j1})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=F({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 F({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] + .${hf.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},[`&.${hf.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"})}),kte=E.jsx(n4,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Dte=O.forwardRef(function(t,r){var n;const i=Ye({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:I,onKeyUp:P,placeholder:k,readOnly:R,renderSuffix:z,rows:$,slotProps:N={},slots:V={},startAdornment:L,type:G="text",value:U}=i,B=ye(i,Ite),j=y.value!=null?y.value:U,{current:X}=O.useRef(j!=null),W=O.useRef(),ee=O.useCallback(_e=>{},[]),te=Mr(W,x,y.ref,ee),[ie,re]=O.useState(!1),Q=Rf(),J=Df({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 fe=Q&&Q.onFilled,de=Q&&Q.onEmpty,ke=O.useCallback(_e=>{Dy(_e)?fe&&fe():de&&de()},[fe,de]);ho(()=>{X&&ke({value:j})},[j,ke,X]);const We=_e=>{if(J.disabled){_e.stopPropagation();return}M&&M(_e),y.onFocus&&y.onFocus(_e),Q&&Q.onFocus?Q.onFocus(_e):re(!0)},Ge=_e=>{C&&C(_e),y.onBlur&&y.onBlur(_e),Q&&Q.onBlur?Q.onBlur(_e):re(!1)},at=(_e,...he)=>{if(!X){const Vt=_e.target||W.current;if(Vt==null)throw new Error(Cs(1));ke({value:Vt.value})}y.onChange&&y.onChange(_e,...he),A&&A(_e,...he)};O.useEffect(()=>{ke(W.current)},[]);const ot=_e=>{W.current&&_e.currentTarget===_e.target&&W.current.focus(),T&&T(_e)};let It=m,Be=y;b&&It==="input"&&($?Be=F({type:void 0,minRows:$,maxRows:$},Be):Be=F({type:void 0,maxRows:S,minRows:_},Be),It=wte);const Pt=_e=>{ke(_e.animationName==="mui-auto-fill-cancel"?W.current:{value:"x"})};O.useEffect(()=>{Q&&Q.setAdornedStart(!!L)},[Q,L]);const Yt=F({},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:L,type:G}),kt=Pte(Yt),K=V.root||u.Root||Y1,le=N.root||c.root||{},Re=V.input||u.Input||q1;return Be=F({},Be,(n=N.input)!=null?n:c.input),E.jsxs(O.Fragment,{children:[!h&&kte,E.jsxs(K,F({},le,!df(K)&&{ownerState:F({},Yt,le.ownerState)},{ref:r,onClick:ot},B,{className:Ce(kt.root,le.className,l,R&&"MuiInputBase-readOnly"),children:[L,E.jsx(i2.Provider,{value:null,children:E.jsx(Re,F({ownerState:Yt,"aria-invalid":J.error,"aria-describedby":a,autoComplete:o,autoFocus:s,defaultValue:f,disabled:J.disabled,id:g,onAnimationStart:Pt,name:w,placeholder:k,readOnly:R,required:J.required,rows:$,value:j,onKeyDown:I,onKeyUp:P,type:G},Be,!df(Re)&&{as:It,ownerState:F({},Yt,Be.ownerState)},{ref:te,className:Ce(kt.input,Be.className,R&&"MuiInputBase-readOnly"),onBlur:Ge,onChange:at,onFocus:We}))}),p,z?z(F({},J,{startAdornment:L})):null]}))]})}),a2=Dte;function Rte(e){return Ue("MuiInput",e)}const Lte=F({},hf,je("MuiInput",["root","underline","input"])),dd=Lte;function Ete(e){return Ue("MuiOutlinedInput",e)}const Ote=F({},hf,je("MuiOutlinedInput",["root","notchedOutline","input"])),ko=Ote;function Nte(e){return Ue("MuiFilledInput",e)}const zte=F({},hf,je("MuiFilledInput",["root","underline","input"])),Ws=zte,Bte=G1(E.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Fte=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],$te={entering:{opacity:1},entered:{opacity:1}},Vte=O.forwardRef(function(t,r){const n=Pf(),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=t2}=t,x=ye(t,Fte),S=O.useRef(null),_=Mr(S,s.ref,r),b=k=>R=>{if(k){const z=S.current;R===void 0?k(z):k(z,R)}},w=b(d),C=b((k,R)=>{l4(k);const z=ff({style:g,timeout:m,easing:l},{mode:"enter"});k.style.webkitTransition=n.transitions.create("opacity",z),k.style.transition=n.transitions.create("opacity",z),c&&c(k,R)}),A=b(f),T=b(v),M=b(k=>{const R=ff({style:g,timeout:m,easing:l},{mode:"exit"});k.style.webkitTransition=n.transitions.create("opacity",R),k.style.transition=n.transitions.create("opacity",R),h&&h(k)}),I=b(p),P=k=>{a&&a(S.current,k)};return E.jsx(y,F({appear:o,in:u,nodeRef:S,onEnter:C,onEntered:A,onEntering:w,onExit:M,onExited:I,onExiting:T,addEndListener:P,timeout:m},x,{children:(k,R)=>O.cloneElement(s,F({style:F({opacity:0,visibility:k==="exited"&&!u?"hidden":void 0},$te[k],g,s.props.style),ref:_},R))}))}),Gte=Vte;function Hte(e){return Ue("MuiBackdrop",e)}je("MuiBackdrop",["root","invisible"]);const Wte=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Ute=e=>{const{classes:t,invisible:r}=e;return Ze({root:["root",r&&"invisible"]},Hte,t)},jte=ge("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>F({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"})),Yte=O.forwardRef(function(t,r){var n,i,a;const o=Ye({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=Gte,transitionDuration:m}=o,y=ye(o,Wte),x=F({},o,{component:u,invisible:d}),S=Ute(x),_=(n=p.root)!=null?n:f.root;return E.jsx(g,F({in:h,timeout:m},y,{children:E.jsx(jte,F({"aria-hidden":!0},_,{as:(i=(a=v.root)!=null?a:c.Root)!=null?i:u,className:Ce(S.root,l,_==null?void 0:_.className),ownerState:F({},x,_==null?void 0:_.ownerState),classes:S,ref:r,children:s}))}))}),qte=Yte,Xte=e2(),Zte=sQ({themeId:pu,defaultTheme:Xte,defaultClassName:"MuiBox-root",generateClassName:HM.generate}),ht=Zte;function Kte(e){return Ue("MuiButton",e)}const Qte=je("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"]),rg=Qte,Jte=O.createContext({}),ere=Jte,tre=O.createContext(void 0),rre=tre,nre=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],ire=e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:a,classes:o}=e,s={root:["root",a,`${a}${Me(t)}`,`size${Me(i)}`,`${a}Size${Me(i)}`,t==="inherit"&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Me(i)}`],endIcon:["endIcon",`iconSize${Me(i)}`]},l=Ze(s,Kte,o);return F({},o,l)},g4=e=>F({},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}}),are=ge(kf,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Me(r.color)}`],t[`size${Me(r.size)}`],t[`${r.variant}Size${Me(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 F({},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":F({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:wr(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})`:wr(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})`:wr(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":F({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${rg.focusVisible}`]:F({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${rg.disabled}`]:F({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 ${wr(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"},[`&.${rg.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${rg.disabled}`]:{boxShadow:"none"}}),ore=ge("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Me(r.size)}`]]}})(({ownerState:e})=>F({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},g4(e))),sre=ge("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Me(r.size)}`]]}})(({ownerState:e})=>F({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},g4(e))),lre=O.forwardRef(function(t,r){const n=O.useContext(ere),i=O.useContext(rre),a=GM(n,t),o=Ye({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,_=ye(o,nre),b=F({},o,{color:l,component:u,disabled:f,disableElevation:d,disableFocusRipple:h,fullWidth:g,size:m,type:x,variant:S}),w=ire(b),C=y&&E.jsx(ore,{className:w.startIcon,ownerState:b,children:y}),A=p&&E.jsx(sre,{className:w.endIcon,ownerState:b,children:p}),T=i||"";return E.jsxs(are,F({ownerState:b,className:Ce(n.className,w.root,c,T),component:u,disabled:f,focusRipple:!h,focusVisibleClassName:Ce(w.focusVisible,v),ref:r,type:x},_,{classes:w,children:[C,s,A]}))}),Cu=lre,ure=OQ({createStyledComponent:ge("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Me(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Ye({props:e,name:"MuiContainer"})}),Lf=ure;function cre(e){return Ue("MuiModal",e)}je("MuiModal",["root","hidden","backdrop"]);const fre=["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"],dre=e=>{const{open:t,exited:r,classes:n}=e;return Ze({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},cre,n)},hre=ge("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})=>F({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),pre=ge(qte,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),vre=O.forwardRef(function(t,r){var n,i,a,o,s,l;const u=Ye({name:"MuiModal",props:t}),{BackdropComponent:c=pre,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:I,slotProps:P,slots:k}=u,R=ye(u,fre),z=F({},u,{closeAfterTransition:h,disableAutoFocus:x,disableEnforceFocus:S,disableEscapeKeyDown:_,disablePortal:b,disableRestoreFocus:w,disableScrollLock:C,hideBackdrop:A,keepMounted:T}),{getRootProps:$,getBackdropProps:N,getTransitionProps:V,portalRef:L,isTopModal:G,exited:U,hasTransition:B}=Ste(F({},z,{rootRef:r})),j=F({},z,{exited:U}),X=dre(j),W={};if(p.props.tabIndex===void 0&&(W.tabIndex="-1"),B){const{onEnter:fe,onExited:de}=V();W.onEnter=fe,W.onExited=de}const ee=(n=(i=k==null?void 0:k.root)!=null?i:m.Root)!=null?n:hre,te=(a=(o=k==null?void 0:k.backdrop)!=null?o:m.Backdrop)!=null?a:c,ie=(s=P==null?void 0:P.root)!=null?s:y.root,re=(l=P==null?void 0:P.backdrop)!=null?l:y.backdrop,Q=Ra({elementType:ee,externalSlotProps:ie,externalForwardedProps:R,getSlotProps:$,additionalProps:{ref:r,as:g},ownerState:j,className:Ce(d,ie==null?void 0:ie.className,X==null?void 0:X.root,!j.open&&j.exited&&(X==null?void 0:X.hidden))}),J=Ra({elementType:te,externalSlotProps:re,additionalProps:f,getSlotProps:fe=>N(F({},fe,{onClick:de=>{M&&M(de),fe!=null&&fe.onClick&&fe.onClick(de)}})),className:Ce(re==null?void 0:re.className,f==null?void 0:f.className,X==null?void 0:X.backdrop),ownerState:j});return!T&&!I&&(!B||U)?null:E.jsx(fte,{ref:L,container:v,disablePortal:b,children:E.jsxs(ee,F({},Q,{children:[!A&&c?E.jsx(te,F({},J)):null,E.jsx(ute,{disableEnforceFocus:S,disableAutoFocus:x,disableRestoreFocus:w,isEnabled:G,open:I,children:O.cloneElement(p,W)})]}))})}),m4=vre;function gre(e){return Ue("MuiDivider",e)}je("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const mre=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],yre=e=>{const{absolute:t,children:r,classes:n,flexItem:i,light:a,orientation:o,textAlign:s,variant:l}=e;return Ze({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"]},gre,n)},xre=ge("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})=>F({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)`:wr(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})=>F({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>F({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>F({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>F({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Sre=ge("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>F({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)`})),y4=O.forwardRef(function(t,r){const n=Ye({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=ye(n,mre),v=F({},n,{absolute:i,component:s,flexItem:l,light:u,orientation:c,role:f,textAlign:d,variant:h}),g=yre(v);return E.jsx(xre,F({as:s,className:Ce(g.root,o),role:f,ref:r,ownerState:v},p,{children:a?E.jsx(Sre,{className:g.wrapper,ownerState:v,children:a}):null}))});y4.muiSkipListHighlight=!0;const hd=y4,bre=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],_re=e=>{const{classes:t,disableUnderline:r}=e,i=Ze({root:["root",!r&&"underline"],input:["input"]},Nte,t);return F({},t,i)},wre=ge(Y1,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...U1(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 F({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}},[`&.${Ws.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${Ws.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"},[`&.${Ws.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ws.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(.${Ws.disabled}, .${Ws.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ws.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&F({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),Cre=ge(q1,{name:"MuiFilledInput",slot:"Input",overridesResolver:j1})(({theme:e,ownerState:t})=>F({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})),x4=O.forwardRef(function(t,r){var n,i,a,o;const s=Ye({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=ye(s,bre),m=F({},s,{fullWidth:c,inputComponent:f,multiline:d,type:v}),y=_re(s),x={root:{ownerState:m},input:{ownerState:m}},S=h??u?mi(h??u,x):x,_=(n=(i=p.root)!=null?i:l.Root)!=null?n:wre,b=(a=(o=p.input)!=null?o:l.Input)!=null?a:Cre;return E.jsx(a2,F({slots:{root:_,input:b},componentsProps:S,fullWidth:c,inputComponent:f,multiline:d,ref:r,type:v},g,{classes:y}))});x4.muiName="Input";const S4=x4;function Tre(e){return Ue("MuiFormControl",e)}je("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Are=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Mre=e=>{const{classes:t,margin:r,fullWidth:n}=e,i={root:["root",r!=="none"&&`margin${Me(r)}`,n&&"fullWidth"]};return Ze(i,Tre,t)},Ire=ge("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>F({},t.root,t[`margin${Me(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>F({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%"})),Pre=O.forwardRef(function(t,r){const n=Ye({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=ye(n,Are),y=F({},n,{color:o,component:s,disabled:l,error:u,fullWidth:f,hiddenLabel:d,margin:h,required:p,size:v,variant:g}),x=Mre(y),[S,_]=O.useState(()=>{let P=!1;return i&&O.Children.forEach(i,k=>{if(!wh(k,["Input","Select"]))return;const R=wh(k,["Select"])?k.props.input:k;R&&Tte(R.props)&&(P=!0)}),P}),[b,w]=O.useState(()=>{let P=!1;return i&&O.Children.forEach(i,k=>{wh(k,["Input","Select"])&&(Dy(k.props,!0)||Dy(k.props.inputProps,!0))&&(P=!0)}),P}),[C,A]=O.useState(!1);l&&C&&A(!1);const T=c!==void 0&&!l?c:C;let M;const I=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 E.jsx(i2.Provider,{value:I,children:E.jsx(Ire,F({as:s,ownerState:y,className:Ce(x.root,a),ref:r},m,{children:i}))})}),b4=Pre;function kre(e){return Ue("MuiFormHelperText",e)}const Dre=je("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),ZD=Dre;var KD;const Rre=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Lre=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${Me(n)}`,r&&"contained",s&&"focused",o&&"filled",l&&"required"]};return Ze(u,kre,t)},Ere=ge("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${Me(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>F({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${ZD.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ZD.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Ore=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:o="p"}=n,s=ye(n,Rre),l=Rf(),u=Df({props:n,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=F({},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=Lre(c);return E.jsx(Ere,F({as:o,ownerState:c,className:Ce(f.root,a),ref:r},s,{children:i===" "?KD||(KD=E.jsx("span",{className:"notranslate",children:"​"})):i}))}),Nre=Ore;function zre(e){return Ue("MuiFormLabel",e)}const Bre=je("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Mh=Bre,Fre=["children","className","color","component","disabled","error","filled","focused","required"],$re=e=>{const{classes:t,color:r,focused:n,disabled:i,error:a,filled:o,required:s}=e,l={root:["root",`color${Me(r)}`,i&&"disabled",a&&"error",o&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return Ze(l,zre,t)},Vre=ge("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>F({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>F({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Mh.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Mh.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Mh.error}`]:{color:(e.vars||e).palette.error.main}})),Gre=ge("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Mh.error}`]:{color:(e.vars||e).palette.error.main}})),Hre=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiFormLabel"}),{children:i,className:a,component:o="label"}=n,s=ye(n,Fre),l=Rf(),u=Df({props:n,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=F({},n,{color:u.color||"primary",component:o,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=$re(c);return E.jsxs(Vre,F({as:o,ownerState:c,className:Ce(f.root,a),ref:r},s,{children:[i,u.required&&E.jsxs(Gre,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),Wre=Hre,Ure=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function MC(e){return`scale(${e}, ${e**2})`}const jre={entering:{opacity:1,transform:MC(1)},entered:{opacity:1,transform:"none"}},AS=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),_4=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=t2}=t,m=ye(t,Ure),y=O.useRef(),x=O.useRef(),S=Pf(),_=O.useRef(null),b=Mr(_,a.ref,r),w=R=>z=>{if(R){const $=_.current;z===void 0?R($):R($,z)}},C=w(c),A=w((R,z)=>{l4(R);const{duration:$,delay:N,easing:V}=ff({style:p,timeout:v,easing:o},{mode:"enter"});let L;v==="auto"?(L=S.transitions.getAutoHeightDuration(R.clientHeight),x.current=L):L=$,R.style.transition=[S.transitions.create("opacity",{duration:L,delay:N}),S.transitions.create("transform",{duration:AS?L:L*.666,delay:N,easing:V})].join(","),l&&l(R,z)}),T=w(u),M=w(h),I=w(R=>{const{duration:z,delay:$,easing:N}=ff({style:p,timeout:v,easing:o},{mode:"exit"});let V;v==="auto"?(V=S.transitions.getAutoHeightDuration(R.clientHeight),x.current=V):V=z,R.style.transition=[S.transitions.create("opacity",{duration:V,delay:$}),S.transitions.create("transform",{duration:AS?V:V*.666,delay:AS?$:$||V*.333,easing:N})].join(","),R.style.opacity=0,R.style.transform=MC(.75),f&&f(R)}),P=w(d),k=R=>{v==="auto"&&(y.current=setTimeout(R,x.current||0)),n&&n(_.current,R)};return O.useEffect(()=>()=>{clearTimeout(y.current)},[]),E.jsx(g,F({appear:i,in:s,nodeRef:_,onEnter:A,onEntered:T,onEntering:C,onExit:I,onExited:P,onExiting:M,addEndListener:k,timeout:v==="auto"?null:v},m,{children:(R,z)=>O.cloneElement(a,F({style:F({opacity:0,transform:MC(.75),visibility:R==="exited"&&!s?"hidden":void 0},jre[R],p,a.props.style),ref:b},z))}))});_4.muiSupportAuto=!0;const Yre=_4,qre=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Xre=e=>{const{classes:t,disableUnderline:r}=e,i=Ze({root:["root",!r&&"underline"],input:["input"]},Rte,t);return F({},t,i)},Zre=ge(Y1,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...U1(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})`),F({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"},[`&.${dd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${dd.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(.${dd.disabled}, .${dd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${dd.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Kre=ge(q1,{name:"MuiInput",slot:"Input",overridesResolver:j1})({}),w4=O.forwardRef(function(t,r){var n,i,a,o;const s=Ye({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=ye(s,qre),y=Xre(s),S={root:{ownerState:{disableUnderline:l}}},_=p??c?mi(p??c,S):S,b=(n=(i=v.root)!=null?i:u.Root)!=null?n:Zre,w=(a=(o=v.input)!=null?o:u.Input)!=null?a:Kre;return E.jsx(a2,F({slots:{root:b,input:w},slotProps:_,fullWidth:f,inputComponent:d,multiline:h,ref:r,type:g},m,{classes:y}))});w4.muiName="Input";const C4=w4;function Qre(e){return Ue("MuiInputLabel",e)}je("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Jre=["disableAnimation","margin","shrink","variant","className"],ene=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${Me(n)}`,o],asterisk:[s&&"asterisk"]},u=Ze(l,Qre,t);return F({},t,u)},tne=ge(Wre,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Mh.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})=>F({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"&&F({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&&F({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"&&F({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)"}))),rne=O.forwardRef(function(t,r){const n=Ye({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:a,className:o}=n,s=ye(n,Jre),l=Rf();let u=a;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=Df({props:n,muiFormControl:l,states:["size","variant","required"]}),f=F({},n,{disableAnimation:i,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required}),d=ene(f);return E.jsx(tne,F({"data-shrink":u,ownerState:f,ref:r,className:Ce(d.root,o)},s,{classes:d}))}),T4=rne;function nne(e){return Ue("MuiLink",e)}const ine=je("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),ane=ine,A4={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},one=e=>A4[e]||e,sne=({theme:e,ownerState:t})=>{const r=one(t.color),n=cf(e,`palette.${r}`,!1)||t.color,i=cf(e,`palette.${r}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:wr(n,.4)},lne=sne,une=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],cne=e=>{const{classes:t,component:r,focusVisible:n,underline:i}=e,a={root:["root",`underline${Me(i)}`,r==="button"&&"button",n&&"focusVisible"]};return Ze(a,nne,t)},fne=ge(Xe,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Me(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>F({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&F({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:lne({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"},[`&.${ane.focusVisible}`]:{outline:"auto"}})),dne=O.forwardRef(function(t,r){const n=Ye({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=ye(n,une),{isFocusVisibleRef:p,onBlur:v,onFocus:g,ref:m}=VM(),[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=F({},n,{color:a,component:o,focusVisible:y,underline:c,variant:f}),C=cne(w);return E.jsx(fne,F({color:a,className:Ce(C.root,i),classes:u,component:o,onBlur:_,onFocus:b,ref:S,ownerState:w,variant:f,sx:[...Object.keys(A4).includes(a)?[]:[{color:a}],...Array.isArray(d)?d:[d]]},h))}),si=dne,hne=O.createContext({}),Ih=hne;function pne(e){return Ue("MuiList",e)}je("MuiList",["root","padding","dense","subheader"]);const vne=["children","className","component","dense","disablePadding","subheader"],gne=e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return Ze({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},pne,t)},mne=ge("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})=>F({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),yne=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiList"}),{children:i,className:a,component:o="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=n,c=ye(n,vne),f=O.useMemo(()=>({dense:s}),[s]),d=F({},n,{component:o,dense:s,disablePadding:l}),h=gne(d);return E.jsx(Ih.Provider,{value:f,children:E.jsxs(mne,F({as:o,className:Ce(h.root,a),ref:r,ownerState:d},c,{children:[u,i]}))})}),M4=yne;function xne(e){return Ue("MuiListItem",e)}const Sne=je("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),pc=Sne,bne=je("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),_ne=bne;function wne(e){return Ue("MuiListItemSecondaryAction",e)}je("MuiListItemSecondaryAction",["root","disableGutters"]);const Cne=["className"],Tne=e=>{const{disableGutters:t,classes:r}=e;return Ze({root:["root",t&&"disableGutters"]},wne,r)},Ane=ge("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})(({ownerState:e})=>F({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),I4=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=n,a=ye(n,Cne),o=O.useContext(Ih),s=F({},n,{disableGutters:o.disableGutters}),l=Tne(s);return E.jsx(Ane,F({className:Ce(l.root,i),ownerState:s,ref:r},a))});I4.muiName="ListItemSecondaryAction";const Mne=I4,Ine=["className"],Pne=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],kne=(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]},Dne=e=>{const{alignItems:t,button:r,classes:n,dense:i,disabled:a,disableGutters:o,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return Ze({root:["root",i&&"dense",!o&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",r&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},xne,n)},Rne=ge("div",{name:"MuiListItem",slot:"Root",overridesResolver:kne})(({theme:e,ownerState:t})=>F({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&F({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${_ne.root}`]:{paddingRight:48}},{[`&.${pc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${pc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:wr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${pc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:wr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${pc.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"}},[`&.${pc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:wr(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})`:wr(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Lne=ge("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Ene=O.forwardRef(function(t,r){const n=Ye({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=ye(n.ContainerProps,Ine),A=ye(n,Pne),T=O.useContext(Ih),M=O.useMemo(()=>({dense:p||T.dense||!1,alignItems:i,disableGutters:g}),[i,T.dense,p,g]),I=O.useRef(null);ho(()=>{a&&I.current&&I.current.focus()},[a]);const P=O.Children.toArray(s),k=P.length&&wh(P[P.length-1],["ListItemSecondaryAction"]),R=F({},n,{alignItems:i,autoFocus:a,button:o,dense:M.dense,disabled:v,disableGutters:g,disablePadding:m,divider:y,hasSecondaryAction:k,selected:_}),z=Dne(R),$=Mr(I,r),N=w.root||c.Root||Rne,V=b.root||f.root||{},L=F({className:Ce(z.root,V.className,l),disabled:v},A);let G=u||"li";return o&&(L.component=u||"div",L.focusVisibleClassName=Ce(pc.focusVisible,x),G=kf),k?(G=!L.component&&!u?"div":G,d==="li"&&(G==="li"?G="div":L.component==="li"&&(L.component="div")),E.jsx(Ih.Provider,{value:M,children:E.jsxs(Lne,F({as:d,className:Ce(z.container,h),ref:$,ownerState:R},C,{children:[E.jsx(N,F({},V,!df(N)&&{as:G,ownerState:F({},R,V.ownerState)},L,{children:P})),P.pop()]}))})):E.jsx(Ih.Provider,{value:M,children:E.jsxs(N,F({},V,{as:G,ref:$},!df(N)&&{ownerState:F({},R,V.ownerState)},L,{children:[P,S&&E.jsx(Mne,{children:S})]}))})}),Wu=Ene,One=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function MS(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function QD(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function P4(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 pd(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")||!P4(s,a)||l)s=i(e,s,r);else return s.focus(),!0}return!1}const Nne=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=ye(t,One),h=O.useRef(null),p=O.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ho(()=>{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=on(S).activeElement;if(_==="ArrowDown")x.preventDefault(),pd(S,b,u,l,MS);else if(_==="ArrowUp")x.preventDefault(),pd(S,b,u,l,QD);else if(_==="Home")x.preventDefault(),pd(S,null,u,l,MS);else if(_==="End")x.preventDefault(),pd(S,null,u,l,QD);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&&P4(b,w);w.previousKeyMatched&&(T||pd(S,b,!1,l,MS,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 E.jsx(M4,F({role:"menu",ref:g,className:s,onKeyDown:v,tabIndex:i?0:-1},d,{children:y}))}),zne=Nne;function Bne(e){return Ue("MuiPopover",e)}je("MuiPopover",["root","paper"]);const Fne=["onEntering"],$ne=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Vne=["slotProps"];function JD(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function eR(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function tR(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function IS(e){return typeof e=="function"?e():e}const Gne=e=>{const{classes:t}=e;return Ze({root:["root"],paper:["paper"]},Bne,t)},Hne=ge(m4,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),k4=ge(H1,{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}),Wne=O.forwardRef(function(t,r){var n,i,a;const o=Ye({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=Yre,transitionDuration:w="auto",TransitionProps:{onEntering:C}={},disableScrollLock:A=!1}=o,T=ye(o.TransitionProps,Fne),M=ye(o,$ne),I=(n=S==null?void 0:S.paper)!=null?n:y,P=O.useRef(),k=Mr(P,I.ref),R=F({},o,{anchorOrigin:u,anchorReference:f,elevation:v,marginThreshold:g,externalPaperSlotProps:I,transformOrigin:_,TransitionComponent:b,transitionDuration:w,TransitionProps:T}),z=Gne(R),$=O.useCallback(()=>{if(f==="anchorPosition")return c;const fe=IS(l),ke=(fe&&fe.nodeType===1?fe:on(P.current).body).getBoundingClientRect();return{top:ke.top+JD(ke,u.vertical),left:ke.left+eR(ke,u.horizontal)}},[l,u.horizontal,u.vertical,c,f]),N=O.useCallback(fe=>({vertical:JD(fe,_.vertical),horizontal:eR(fe,_.horizontal)}),[_.horizontal,_.vertical]),V=O.useCallback(fe=>{const de={width:fe.offsetWidth,height:fe.offsetHeight},ke=N(de);if(f==="none")return{top:null,left:null,transformOrigin:tR(ke)};const We=$();let Ge=We.top-ke.vertical,at=We.left-ke.horizontal;const ot=Ge+de.height,It=at+de.width,Be=Da(IS(l)),Pt=Be.innerHeight-g,Yt=Be.innerWidth-g;if(g!==null&&GePt){const kt=ot-Pt;Ge-=kt,ke.vertical+=kt}if(g!==null&&atYt){const kt=It-Yt;at-=kt,ke.horizontal+=kt}return{top:`${Math.round(Ge)}px`,left:`${Math.round(at)}px`,transformOrigin:tR(ke)}},[l,f,$,N,g]),[L,G]=O.useState(m),U=O.useCallback(()=>{const fe=P.current;if(!fe)return;const de=V(fe);de.top!==null&&(fe.style.top=de.top),de.left!==null&&(fe.style.left=de.left),fe.style.transformOrigin=de.transformOrigin,G(!0)},[V]);O.useEffect(()=>(A&&window.addEventListener("scroll",U),()=>window.removeEventListener("scroll",U)),[l,A,U]);const B=(fe,de)=>{C&&C(fe,de),U()},j=()=>{G(!1)};O.useEffect(()=>{m&&U()}),O.useImperativeHandle(s,()=>m?{updatePosition:()=>{U()}}:null,[m,U]),O.useEffect(()=>{if(!m)return;const fe=iv(()=>{U()}),de=Da(l);return de.addEventListener("resize",fe),()=>{fe.clear(),de.removeEventListener("resize",fe)}},[l,m,U]);let X=w;w==="auto"&&!b.muiSupportAuto&&(X=void 0);const W=p||(l?on(IS(l)).body:void 0),ee=(i=x==null?void 0:x.root)!=null?i:Hne,te=(a=x==null?void 0:x.paper)!=null?a:k4,ie=Ra({elementType:te,externalSlotProps:F({},I,{style:L?I.style:F({},I.style,{opacity:0})}),additionalProps:{elevation:v,ref:k},ownerState:R,className:Ce(z.paper,I==null?void 0:I.className)}),re=Ra({elementType:ee,externalSlotProps:(S==null?void 0:S.root)||{},externalForwardedProps:M,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:W,open:m},ownerState:R,className:Ce(z.root,h)}),{slotProps:Q}=re,J=ye(re,Vne);return E.jsx(ee,F({},J,!df(ee)&&{slotProps:Q,disableScrollLock:A},{children:E.jsx(b,F({appear:!0,in:m,onEntering:B,onExited:j,timeout:X},T,{children:E.jsx(te,F({},ie,{children:d}))}))}))}),Une=Wne;function jne(e){return Ue("MuiMenu",e)}je("MuiMenu",["root","paper","list"]);const Yne=["onEntering"],qne=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Xne={vertical:"top",horizontal:"right"},Zne={vertical:"top",horizontal:"left"},Kne=e=>{const{classes:t}=e;return Ze({root:["root"],paper:["paper"],list:["list"]},jne,t)},Qne=ge(Une,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Jne=ge(k4,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),eie=ge(zne,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),tie=O.forwardRef(function(t,r){var n,i;const a=Ye({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=ye(a.TransitionProps,Yne),_=ye(a,qne),b=Pf(),w=b.direction==="rtl",C=F({},a,{autoFocus:o,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:h,transitionDuration:v,TransitionProps:S,variant:m}),A=Kne(C),T=o&&!u&&d,M=O.useRef(null),I=(V,L)=>{M.current&&M.current.adjustStyleForScrollbar(V,b),g&&g(V,L)},P=V=>{V.key==="Tab"&&(V.preventDefault(),f&&f(V,"tabKeyDown"))};let k=-1;O.Children.map(s,(V,L)=>{O.isValidElement(V)&&(V.props.disabled||(m==="selectedMenu"&&V.props.selected||k===-1)&&(k=L))});const R=(n=y.paper)!=null?n:Jne,z=(i=x.paper)!=null?i:h,$=Ra({elementType:y.root,externalSlotProps:x.root,ownerState:C,className:[A.root,l]}),N=Ra({elementType:R,externalSlotProps:z,ownerState:C,className:A.paper});return E.jsx(Qne,F({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Xne:Zne,slots:{paper:R,root:y.root},slotProps:{root:$,paper:N},open:d,ref:r,transitionDuration:v,TransitionProps:F({onEntering:I},S),ownerState:C},_,{classes:p,children:E.jsx(eie,F({onKeyDown:P,actions:M,autoFocus:o&&(k===-1||u),autoFocusItem:T,variant:m},c,{className:Ce(A.list,c.className),children:s}))}))}),rie=tie;function nie(e){return Ue("MuiNativeSelect",e)}const iie=je("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),o2=iie,aie=["className","disabled","error","IconComponent","inputRef","variant"],oie=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${Me(r)}`,a&&"iconOpen",n&&"disabled"]};return Ze(s,nie,t)},D4=({ownerState:e,theme:t})=>F({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":F({},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"},[`&.${o2.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}}),sie=ge("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:wo,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${o2.multiple}`]:t.multiple}]}})(D4),R4=({ownerState:e,theme:t})=>F({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${o2.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),lie=ge("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Me(r.variant)}`],r.open&&t.iconOpen]}})(R4),uie=O.forwardRef(function(t,r){const{className:n,disabled:i,error:a,IconComponent:o,inputRef:s,variant:l="standard"}=t,u=ye(t,aie),c=F({},t,{disabled:i,variant:l,error:a}),f=oie(c);return E.jsxs(O.Fragment,{children:[E.jsx(sie,F({ownerState:c,className:Ce(f.select,n),disabled:i,ref:s||r},u)),t.multiple?null:E.jsx(lie,{as:o,ownerState:c,className:f.icon})]})}),cie=uie;var rR;const fie=["children","classes","className","label","notched"],die=ge("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%"}),hie=ge("legend")(({ownerState:e,theme:t})=>F({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&&F({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 pie(e){const{className:t,label:r,notched:n}=e,i=ye(e,fie),a=r!=null&&r!=="",o=F({},e,{notched:n,withLabel:a});return E.jsx(die,F({"aria-hidden":!0,className:t,ownerState:o},i,{children:E.jsx(hie,{ownerState:o,children:a?E.jsx("span",{children:r}):rR||(rR=E.jsx("span",{className:"notranslate",children:"​"}))})}))}const vie=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],gie=e=>{const{classes:t}=e,n=Ze({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Ete,t);return F({},t,n)},mie=ge(Y1,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:U1})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return F({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ko.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ko.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${ko.focused} .${ko.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ko.error} .${ko.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ko.disabled} .${ko.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&F({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),yie=ge(pie,{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}}),xie=ge(q1,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:j1})(({theme:e,ownerState:t})=>F({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})),L4=O.forwardRef(function(t,r){var n,i,a,o,s;const l=Ye({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=ye(l,vie),y=gie(l),x=Rf(),S=Df({props:l,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=F({},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:mie,w=(a=(o=v.input)!=null?o:u.Input)!=null?a:xie;return E.jsx(a2,F({slots:{root:b,input:w},renderSuffix:C=>E.jsx(yie,{ownerState:_,className:y.notchedOutline,label:d!=null&&d!==""&&S.required?s||(s=E.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:F({},y,{notchedOutline:null})}))});L4.muiName="Input";const E4=L4;function Sie(e){return Ue("MuiSelect",e)}const bie=je("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),vd=bie;var nR;const _ie=["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"],wie=ge("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${vd.select}`]:t.select},{[`&.${vd.select}`]:t[r.variant]},{[`&.${vd.error}`]:t.error},{[`&.${vd.multiple}`]:t.multiple}]}})(D4,{[`&.${vd.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Cie=ge("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Me(r.variant)}`],r.open&&t.iconOpen]}})(R4),Tie=ge("input",{shouldForwardProp:e=>xJ(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 iR(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Aie(e){return e==null||typeof e=="string"&&!e.trim()}const Mie=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${Me(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Ze(s,Sie,t)},Iie=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:I,SelectDisplayProps:P={},tabIndex:k,value:R,variant:z="standard"}=t,$=ye(t,_ie),[N,V]=My({controlled:R,default:f,name:"Select"}),[L,G]=My({controlled:T,default:c,name:"Select"}),U=O.useRef(null),B=O.useRef(null),[j,X]=O.useState(null),{current:W}=O.useRef(T!=null),[ee,te]=O.useState(),ie=Mr(r,g),re=O.useCallback(Te=>{B.current=Te,Te&&X(Te)},[]),Q=j==null?void 0:j.parentNode;O.useImperativeHandle(ie,()=>({focus:()=>{B.current.focus()},node:U.current,value:N}),[N]),O.useEffect(()=>{c&&L&&j&&!W&&(te(s?null:Q.clientWidth),B.current.focus())},[j,s]),O.useEffect(()=>{o&&B.current.focus()},[o]),O.useEffect(()=>{if(!m)return;const Te=on(B.current).getElementById(m);if(Te){const ut=()=>{getSelection().isCollapsed&&B.current.focus()};return Te.addEventListener("click",ut),()=>{Te.removeEventListener("click",ut)}}},[m]);const J=(Te,ut)=>{Te?A&&A(ut):w&&w(ut),W||(te(s?null:Q.clientWidth),G(Te))},fe=Te=>{Te.button===0&&(Te.preventDefault(),B.current.focus(),J(!0,Te))},de=Te=>{J(!1,Te)},ke=O.Children.toArray(l),We=Te=>{const ut=ke.find(Rt=>Rt.props.value===Te.target.value);ut!==void 0&&(V(ut.props.value),b&&b(Te,ut))},Ge=Te=>ut=>{let Rt;if(ut.currentTarget.hasAttribute("tabindex")){if(x){Rt=Array.isArray(N)?N.slice():[];const pe=N.indexOf(Te.props.value);pe===-1?Rt.push(Te.props.value):Rt.splice(pe,1)}else Rt=Te.props.value;if(Te.props.onClick&&Te.props.onClick(ut),N!==Rt&&(V(Rt),b)){const pe=ut.nativeEvent||ut,De=new pe.constructor(pe.type,pe);Object.defineProperty(De,"target",{writable:!0,value:{value:Rt,name:S}}),b(De,Te)}x||J(!1,ut)}},at=Te=>{M||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Te.key)!==-1&&(Te.preventDefault(),J(!0,Te))},ot=j!==null&&L,It=Te=>{!ot&&_&&(Object.defineProperty(Te,"target",{writable:!0,value:{value:N,name:S}}),_(Te))};delete $["aria-invalid"];let Be,Pt;const Yt=[];let kt=!1;(Dy({value:N})||h)&&(I?Be=I(N):kt=!0);const K=ke.map(Te=>{if(!O.isValidElement(Te))return null;let ut;if(x){if(!Array.isArray(N))throw new Error(Cs(2));ut=N.some(Rt=>iR(Rt,Te.props.value)),ut&&kt&&Yt.push(Te.props.children)}else ut=iR(N,Te.props.value),ut&&kt&&(Pt=Te.props.children);return O.cloneElement(Te,{"aria-selected":ut?"true":"false",onClick:Ge(Te),onKeyUp:Rt=>{Rt.key===" "&&Rt.preventDefault(),Te.props.onKeyUp&&Te.props.onKeyUp(Rt)},role:"option",selected:ut,value:void 0,"data-value":Te.props.value})});kt&&(x?Yt.length===0?Be=null:Be=Yt.reduce((Te,ut,Rt)=>(Te.push(ut),Rt{const{classes:t}=e;return t},s2={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>wo(e)&&e!=="variant",slot:"Root"},Lie=ge(C4,s2)(""),Eie=ge(E4,s2)(""),Oie=ge(S4,s2)(""),O4=O.forwardRef(function(t,r){const n=Ye({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:o={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=Bte,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=ye(n,kie),T=y?cie:Pie,M=Rf(),I=Df({props:n,muiFormControl:M,states:["variant","error"]}),P=I.variant||C,k=F({},n,{variant:P,classes:o}),R=Rie(k),z=ye(R,Die),$=d||{standard:E.jsx(Lie,{ownerState:k}),outlined:E.jsx(Eie,{label:p,ownerState:k}),filled:E.jsx(Oie,{ownerState:k})}[P],N=Mr(r,$.ref);return E.jsx(O.Fragment,{children:O.cloneElement($,F({inputComponent:T,inputProps:F({children:a,error:I.error,IconComponent:c,variant:P,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:F({id:f},w)},h,{classes:h?mi(z,h.classes):z},d?d.props.inputProps:{})},m&&y&&P==="outlined"?{notched:!0}:{},{ref:N,className:Ce($.props.className,s,R.root)},!d&&{variant:P},A))})});O4.muiName="Select";const N4=O4;function Nie(e){return Ue("MuiTab",e)}const zie=je("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Us=zie,Bie=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Fie=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${Me(r)}`,n&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Ze(u,Nie,t)},$ie=ge(kf,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${Me(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>F({},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,[`& > .${Us.iconWrapper}`]:F({},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,[`&.${Us.selected}`]:{opacity:1},[`&.${Us.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Us.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Us.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Us.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Us.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)})),Vie=O.forwardRef(function(t,r){const n=Ye({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=ye(n,Bie),_=F({},n,{disabled:a,disableFocusRipple:o,selected:v,icon:!!l,iconPosition:u,label:!!f,fullWidth:s,textColor:m,wrapped:x}),b=Fie(_),w=l&&f&&O.isValidElement(l)?O.cloneElement(l,{className:Ce(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 E.jsxs($ie,F({focusRipple:!o,className:Ce(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"?E.jsxs(O.Fragment,{children:[w,f]}):E.jsxs(O.Fragment,{children:[f,w]}),c]}))}),Gie=Vie,Hie=O.createContext(),z4=Hie;function Wie(e){return Ue("MuiTable",e)}je("MuiTable",["root","stickyHeader"]);const Uie=["className","component","padding","size","stickyHeader"],jie=e=>{const{classes:t,stickyHeader:r}=e;return Ze({root:["root",r&&"stickyHeader"]},Wie,t)},Yie=ge("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>F({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":F({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),aR="table",qie=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTable"}),{className:i,component:a=aR,padding:o="normal",size:s="medium",stickyHeader:l=!1}=n,u=ye(n,Uie),c=F({},n,{component:a,padding:o,size:s,stickyHeader:l}),f=jie(c),d=O.useMemo(()=>({padding:o,size:s,stickyHeader:l}),[o,s,l]);return E.jsx(z4.Provider,{value:d,children:E.jsx(Yie,F({as:a,role:a===aR?null:"table",ref:r,className:Ce(f.root,i),ownerState:c},u))})}),Xie=qie,Zie=O.createContext(),X1=Zie;function Kie(e){return Ue("MuiTableBody",e)}je("MuiTableBody",["root"]);const Qie=["className","component"],Jie=e=>{const{classes:t}=e;return Ze({root:["root"]},Kie,t)},eae=ge("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),tae={variant:"body"},oR="tbody",rae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableBody"}),{className:i,component:a=oR}=n,o=ye(n,Qie),s=F({},n,{component:a}),l=Jie(s);return E.jsx(X1.Provider,{value:tae,children:E.jsx(eae,F({className:Ce(l.root,i),as:a,ref:r,role:a===oR?null:"rowgroup",ownerState:s},o))})}),nae=rae;function iae(e){return Ue("MuiTableCell",e)}const aae=je("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),oae=aae,sae=["align","className","component","padding","scope","size","sortDirection","variant"],lae=e=>{const{classes:t,variant:r,align:n,padding:i,size:a,stickyHeader:o}=e,s={root:["root",r,o&&"stickyHeader",n!=="inherit"&&`align${Me(n)}`,i!=="normal"&&`padding${Me(i)}`,`size${Me(a)}`]};return Ze(s,iae,t)},uae=ge("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Me(r.size)}`],r.padding!=="normal"&&t[`padding${Me(r.padding)}`],r.align!=="inherit"&&t[`align${Me(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>F({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?JV(wr(e.palette.divider,1),.88):QV(wr(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",[`&.${oae.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})),cae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:o,padding:s,scope:l,size:u,sortDirection:c,variant:f}=n,d=ye(n,sae),h=O.useContext(z4),p=O.useContext(X1),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=F({},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=lae(x);let _=null;return c&&(_=c==="asc"?"ascending":"descending"),E.jsx(uae,F({as:g,ref:r,className:Ce(S.root,a),"aria-sort":_,scope:m,ownerState:x},d))}),sR=cae;function fae(e){return Ue("MuiTableContainer",e)}je("MuiTableContainer",["root"]);const dae=["className","component"],hae=e=>{const{classes:t}=e;return Ze({root:["root"]},fae,t)},pae=ge("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),vae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableContainer"}),{className:i,component:a="div"}=n,o=ye(n,dae),s=F({},n,{component:a}),l=hae(s);return E.jsx(pae,F({ref:r,as:a,className:Ce(l.root,i),ownerState:s},o))}),gae=vae;function mae(e){return Ue("MuiTableHead",e)}je("MuiTableHead",["root"]);const yae=["className","component"],xae=e=>{const{classes:t}=e;return Ze({root:["root"]},mae,t)},Sae=ge("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),bae={variant:"head"},lR="thead",_ae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableHead"}),{className:i,component:a=lR}=n,o=ye(n,yae),s=F({},n,{component:a}),l=xae(s);return E.jsx(X1.Provider,{value:bae,children:E.jsx(Sae,F({as:a,className:Ce(l.root,i),ref:r,role:a===lR?null:"rowgroup",ownerState:s},o))})}),wae=_ae;function Cae(e){return Ue("MuiToolbar",e)}je("MuiToolbar",["root","gutters","regular","dense"]);const Tae=["className","component","disableGutters","variant"],Aae=e=>{const{classes:t,disableGutters:r,variant:n}=e;return Ze({root:["root",!r&&"gutters",n]},Cae,t)},Mae=ge("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})=>F({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),Iae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiToolbar"}),{className:i,component:a="div",disableGutters:o=!1,variant:s="regular"}=n,l=ye(n,Tae),u=F({},n,{component:a,disableGutters:o,variant:s}),c=Aae(u);return E.jsx(Mae,F({as:a,className:Ce(c.root,i),ref:r,ownerState:u},l))}),Pae=Iae,kae=G1(E.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Dae=G1(E.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Rae(e){return Ue("MuiTableRow",e)}const Lae=je("MuiTableRow",["root","selected","hover","head","footer"]),uR=Lae,Eae=["className","component","hover","selected"],Oae=e=>{const{classes:t,selected:r,hover:n,head:i,footer:a}=e;return Ze({root:["root",r&&"selected",n&&"hover",i&&"head",a&&"footer"]},Rae,t)},Nae=ge("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,[`&.${uR.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${uR.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:wr(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}))`:wr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),cR="tr",zae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableRow"}),{className:i,component:a=cR,hover:o=!1,selected:s=!1}=n,l=ye(n,Eae),u=O.useContext(X1),c=F({},n,{component:a,hover:o,selected:s,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),f=Oae(c);return E.jsx(Nae,F({as:a,ref:r,className:Ce(f.root,i),role:a===cR?null:"row",ownerState:c},l))}),fR=zae;function Bae(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Fae(e,t,r,n={},i=()=>{}){const{ease:a=Bae,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 $ae=["onChange"],Vae={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Gae(e){const{onChange:t}=e,r=ye(e,$ae),n=O.useRef(),i=O.useRef(null),a=()=>{n.current=i.current.offsetHeight-i.current.clientHeight};return ho(()=>{const o=iv(()=>{const l=n.current;a(),l!==n.current&&t(n.current)}),s=Da(i.current);return s.addEventListener("resize",o),()=>{o.clear(),s.removeEventListener("resize",o)}},[t]),O.useEffect(()=>{a(),t(n.current)},[t]),E.jsx("div",F({style:Vae,ref:i},r))}function Hae(e){return Ue("MuiTabScrollButton",e)}const Wae=je("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Uae=Wae,jae=["className","slots","slotProps","direction","orientation","disabled"],Yae=e=>{const{classes:t,orientation:r,disabled:n}=e;return Ze({root:["root",r,n&&"disabled"]},Hae,t)},qae=ge(kf,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>F({width:40,flexShrink:0,opacity:.8,[`&.${Uae.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Xae=O.forwardRef(function(t,r){var n,i;const a=Ye({props:t,name:"MuiTabScrollButton"}),{className:o,slots:s={},slotProps:l={},direction:u}=a,c=ye(a,jae),d=Pf().direction==="rtl",h=F({isRtl:d},a),p=Yae(h),v=(n=s.StartScrollButtonIcon)!=null?n:kae,g=(i=s.EndScrollButtonIcon)!=null?i:Dae,m=Ra({elementType:v,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),y=Ra({elementType:g,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return E.jsx(qae,F({component:"div",className:Ce(p.root,o),ref:r,role:null,ownerState:h,tabIndex:null},c,{children:u==="left"?E.jsx(v,F({},m)):E.jsx(g,F({},y))}))}),Zae=Xae;function Kae(e){return Ue("MuiTabs",e)}const Qae=je("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),PS=Qae,Jae=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],dR=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,hR=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,ng=(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}}},eoe=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:i,scrollableY:a,centered:o,scrollButtonsHideMobile:s,classes:l}=e;return Ze({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"]},Kae,l)},toe=ge("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${PS.scrollButtons}`]:t.scrollButtons},{[`& .${PS.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>F({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${PS.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),roe=ge("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})=>F({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"})),noe=ge("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})=>F({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),ioe=ge("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>F({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})),aoe=ge(Gae)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),pR={},ooe=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTabs"}),i=Pf(),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=Zae,scrollButtons:y="auto",selectionFollowsFocus:x,slots:S={},slotProps:_={},TabIndicatorProps:b={},TabScrollButtonProps:w={},textColor:C="primary",value:A,variant:T="standard",visibleScrollbar:M=!1}=n,I=ye(n,Jae),P=T==="scrollable",k=g==="vertical",R=k?"scrollTop":"scrollLeft",z=k?"top":"left",$=k?"bottom":"right",N=k?"clientHeight":"clientWidth",V=k?"height":"width",L=F({},n,{component:d,allowScrollButtonsMobile:h,indicatorColor:p,orientation:g,vertical:k,scrollButtons:y,textColor:C,variant:T,visibleScrollbar:M,fixed:!P,hideScrollbar:P&&!M,scrollableX:P&&!k,scrollableY:P&&k,centered:u&&!P,scrollButtonsHideMobile:!h}),G=eoe(L),U=Ra({elementType:S.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:L}),B=Ra({elementType:S.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:L}),[j,X]=O.useState(!1),[W,ee]=O.useState(pR),[te,ie]=O.useState(!1),[re,Q]=O.useState(!1),[J,fe]=O.useState(!1),[de,ke]=O.useState({overflow:"hidden",scrollbarWidth:0}),We=new Map,Ge=O.useRef(null),at=O.useRef(null),ot=()=>{const pe=Ge.current;let De;if(pe){const yt=pe.getBoundingClientRect();De={clientWidth:pe.clientWidth,scrollLeft:pe.scrollLeft,scrollTop:pe.scrollTop,scrollLeftNormalized:lZ(pe,i.direction),scrollWidth:pe.scrollWidth,top:yt.top,bottom:yt.bottom,left:yt.left,right:yt.right}}let qe;if(pe&&A!==!1){const yt=at.current.children;if(yt.length>0){const $r=yt[We.get(A)];qe=$r?$r.getBoundingClientRect():null}}return{tabsMeta:De,tabMeta:qe}},It=ya(()=>{const{tabsMeta:pe,tabMeta:De}=ot();let qe=0,yt;if(k)yt="top",De&&pe&&(qe=De.top-pe.top+pe.scrollTop);else if(yt=a?"right":"left",De&&pe){const Io=a?pe.scrollLeftNormalized+pe.clientWidth-pe.scrollWidth:pe.scrollLeft;qe=(a?-1:1)*(De[yt]-pe[yt]+Io)}const $r={[yt]:qe,[V]:De?De[V]:0};if(isNaN(W[yt])||isNaN(W[V]))ee($r);else{const Io=Math.abs(W[yt]-$r[yt]),Lv=Math.abs(W[V]-$r[V]);(Io>=1||Lv>=1)&&ee($r)}}),Be=(pe,{animation:De=!0}={})=>{De?Fae(R,Ge.current,pe,{duration:i.transitions.duration.standard}):Ge.current[R]=pe},Pt=pe=>{let De=Ge.current[R];k?De+=pe:(De+=pe*(a?-1:1),De*=a&&MV()==="reverse"?-1:1),Be(De)},Yt=()=>{const pe=Ge.current[N];let De=0;const qe=Array.from(at.current.children);for(let yt=0;ytpe){yt===0&&(De=pe);break}De+=$r[N]}return De},kt=()=>{Pt(-1*Yt())},K=()=>{Pt(Yt())},le=O.useCallback(pe=>{ke({overflow:null,scrollbarWidth:pe})},[]),Re=()=>{const pe={};pe.scrollbarSizeListener=P?E.jsx(aoe,{onChange:le,className:Ce(G.scrollableX,G.hideScrollbar)}):null;const qe=P&&(y==="auto"&&(te||re)||y===!0);return pe.scrollButtonStart=qe?E.jsx(m,F({slots:{StartScrollButtonIcon:S.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:U},orientation:g,direction:a?"right":"left",onClick:kt,disabled:!te},w,{className:Ce(G.scrollButtons,w.className)})):null,pe.scrollButtonEnd=qe?E.jsx(m,F({slots:{EndScrollButtonIcon:S.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:B},orientation:g,direction:a?"left":"right",onClick:K,disabled:!re},w,{className:Ce(G.scrollButtons,w.className)})):null,pe},_e=ya(pe=>{const{tabsMeta:De,tabMeta:qe}=ot();if(!(!qe||!De)){if(qe[z]De[$]){const yt=De[R]+(qe[$]-De[$]);Be(yt,{animation:pe})}}}),he=ya(()=>{P&&y!==!1&&fe(!J)});O.useEffect(()=>{const pe=iv(()=>{Ge.current&&It()}),De=Da(Ge.current);De.addEventListener("resize",pe);let qe;return typeof ResizeObserver<"u"&&(qe=new ResizeObserver(pe),Array.from(at.current.children).forEach(yt=>{qe.observe(yt)})),()=>{pe.clear(),De.removeEventListener("resize",pe),qe&&qe.disconnect()}},[It]),O.useEffect(()=>{const pe=Array.from(at.current.children),De=pe.length;if(typeof IntersectionObserver<"u"&&De>0&&P&&y!==!1){const qe=pe[0],yt=pe[De-1],$r={root:Ge.current,threshold:.99},Io=qx=>{ie(!qx[0].isIntersecting)},Lv=new IntersectionObserver(Io,$r);Lv.observe(qe);const g7=qx=>{Q(!qx[0].isIntersecting)},qP=new IntersectionObserver(g7,$r);return qP.observe(yt),()=>{Lv.disconnect(),qP.disconnect()}}},[P,y,J,c==null?void 0:c.length]),O.useEffect(()=>{X(!0)},[]),O.useEffect(()=>{It()}),O.useEffect(()=>{_e(pR!==W)},[_e,W]),O.useImperativeHandle(l,()=>({updateIndicator:It,updateScrollButtons:he}),[It,he]);const Vt=E.jsx(ioe,F({},b,{className:Ce(G.indicator,b.className),ownerState:L,style:F({},W,b.style)}));let Sr=0;const Te=O.Children.map(c,pe=>{if(!O.isValidElement(pe))return null;const De=pe.props.value===void 0?Sr:pe.props.value;We.set(De,Sr);const qe=De===A;return Sr+=1,O.cloneElement(pe,F({fullWidth:T==="fullWidth",indicator:qe&&!j&&Vt,selected:qe,selectionFollowsFocus:x,onChange:v,textColor:C,value:De},Sr===1&&A===!1&&!pe.props.tabIndex?{tabIndex:0}:{}))}),ut=pe=>{const De=at.current,qe=on(De).activeElement;if(qe.getAttribute("role")!=="tab")return;let $r=g==="horizontal"?"ArrowLeft":"ArrowUp",Io=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&a&&($r="ArrowRight",Io="ArrowLeft"),pe.key){case $r:pe.preventDefault(),ng(De,qe,hR);break;case Io:pe.preventDefault(),ng(De,qe,dR);break;case"Home":pe.preventDefault(),ng(De,null,dR);break;case"End":pe.preventDefault(),ng(De,null,hR);break}},Rt=Re();return E.jsxs(toe,F({className:Ce(G.root,f),ownerState:L,ref:r,as:d},I,{children:[Rt.scrollButtonStart,Rt.scrollbarSizeListener,E.jsxs(roe,{className:G.scroller,ownerState:L,style:{overflow:de.overflow,[k?`margin${a?"Left":"Right"}`:"marginBottom"]:M?void 0:-de.scrollbarWidth},ref:Ge,children:[E.jsx(noe,{"aria-label":o,"aria-labelledby":s,"aria-orientation":g==="vertical"?"vertical":null,className:G.flexContainer,ownerState:L,onKeyDown:ut,ref:at,role:"tablist",children:Te}),j&&Vt]}),Rt.scrollButtonEnd]}))}),soe=ooe;function loe(e){return Ue("MuiTextField",e)}je("MuiTextField",["root"]);const uoe=["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"],coe={standard:C4,filled:S4,outlined:E4},foe=e=>{const{classes:t}=e;return Ze({root:["root"]},loe,t)},doe=ge(b4,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),hoe=O.forwardRef(function(t,r){const n=Ye({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:I,required:P=!1,rows:k,select:R=!1,SelectProps:z,type:$,value:N,variant:V="outlined"}=n,L=ye(n,uoe),G=F({},n,{autoFocus:a,color:l,disabled:c,error:f,fullWidth:h,multiline:w,required:P,select:R,variant:V}),U=foe(G),B={};V==="outlined"&&(g&&typeof g.shrink<"u"&&(B.notched=g.shrink),B.label=S),R&&((!z||!z.native)&&(B.id=void 0),B["aria-describedby"]=void 0);const j=TV(v),X=p&&j?`${j}-helper-text`:void 0,W=S&&j?`${j}-label`:void 0,ee=coe[V],te=E.jsx(ee,F({"aria-describedby":X,autoComplete:i,autoFocus:a,defaultValue:u,fullWidth:h,multiline:w,name:C,rows:k,maxRows:_,minRows:b,type:$,value:N,id:j,inputRef:x,onBlur:A,onChange:T,onFocus:M,placeholder:I,inputProps:m},B,y));return E.jsxs(doe,F({className:Ce(U.root,s),disabled:c,error:f,fullWidth:h,ref:r,required:P,color:l,variant:V,ownerState:G},L,{children:[S!=null&&S!==""&&E.jsx(T4,F({htmlFor:j,id:W},g,{children:S})),R?E.jsx(N4,F({"aria-describedby":X,id:j,labelId:W,value:N,input:te},z,{children:o})):te,p&&E.jsx(Nre,F({id:X},d,{children:p}))]}))}),Bl=hoe;var l2={},B4={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})(B4);var Z1=B4.exports,kS={};const poe=y7(IJ);var vR;function K1(){return vR||(vR=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=poe}(kS)),kS}var voe=Z1;Object.defineProperty(l2,"__esModule",{value:!0});var F4=l2.default=void 0,goe=voe(K1()),moe=E,yoe=(0,goe.default)((0,moe.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");F4=l2.default=yoe;function u2({open:e,onClose:t,children:r}){return E.jsx(m4,{onClose:t,open:e,children:E.jsxs(ht,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"md",display:"flex",flexDirection:"column",rowGap:2,bgcolor:"background.paper",boxShadow:24,borderRadius:2,p:4},children:[E.jsx(p4,{color:"inherit",onClick:t,sx:{position:"absolute",top:1,right:1},children:E.jsx(F4,{})}),r]})})}const Ef=fV,xoe=wV;function Qd(e){const t=xoe();return O.useCallback(r=>{t(e(r))},[e,t])}const Soe=[{name:"Carl Byström",website:"http://cgbystrom.com/",social:{handle:"@cgbystrom",link:"https://twitter.com/cgbystrom/"}},{name:"Jonatan Heyman",website:"http://heyman.info/",social:{handle:"@jonatanheyman",link:"https://twitter.com/jonatanheyman/"}},{name:"Joakim Hamrén",social:{handle:"@jahaaja",link:"https://twitter.com/Jahaaja/"}},{name:"ESN Social Software",website:"http://esn.me/",social:{handle:"@uprise_ea",link:"https://twitter.com/uprise_ea"}},{name:"Hugo Heyman",social:{handle:"@hugoheyman",link:"https://twitter.com/hugoheyman/"}}];function boe(){const[e,t]=O.useState(!1),r=Ef(({swarm:n})=>n.version);return E.jsxs(E.Fragment,{children:[E.jsx(ht,{sx:{display:"flex",justifyContent:"flex-end"},children:E.jsx(Cu,{color:"inherit",onClick:()=>t(!0),variant:"text",children:"About"})}),E.jsxs(u2,{onClose:()=>t(!1),open:e,children:[E.jsxs("div",{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"About"}),E.jsx(Xe,{component:"p",variant:"subtitle1",children:"The original idea for Locust was Carl Byström's who made a first proof of concept in June 2010. Jonatan Heyman picked up Locust in January 2011, implemented the current concept of Locust classes and made it work distributed across multiple machines."}),E.jsx(Xe,{component:"p",sx:{mt:2},variant:"subtitle1",children:"Jonatan, Carl and Joakim Hamrén has continued the development of Locust at their job, ESN Social Software, who have adopted Locust as an inhouse Open Source project."})]}),E.jsxs("div",{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"Authors and Copyright"}),E.jsx(ht,{sx:{display:"flex",flexDirection:"column",rowGap:.5},children:Soe.map(({name:n,website:i,social:{handle:a,link:o}},s)=>E.jsxs("div",{children:[i?E.jsx(si,{href:i,children:n}):n,E.jsxs(ht,{sx:{display:"inline",ml:.5},children:["(",E.jsx(si,{href:o,children:a}),")"]})]},`author-${s}`))})]}),E.jsxs("div",{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"License"}),E.jsx(Xe,{component:"p",variant:"subtitle1",children:"Open source licensed under the MIT license."})]}),E.jsxs("div",{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"Version"}),E.jsx(si,{href:`https://github.com/locustio/locust/releases/tag/${r}`,children:r})]}),E.jsxs("div",{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"Website"}),E.jsx(si,{href:"https://locust.io/",children:"https://locust.io"})]})]})]})}function _oe(){return E.jsx(ht,{component:"nav",sx:{position:"fixed",bottom:0,width:"100%"},children:E.jsx(Lf,{maxWidth:"xl",sx:{display:"flex",justifyContent:"flex-end"},children:E.jsx(boe,{})})})}var c2={},woe=Z1;Object.defineProperty(c2,"__esModule",{value:!0});var $4=c2.default=void 0,Coe=woe(K1()),Toe=E,Aoe=(0,Coe.default)((0,Toe.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");$4=c2.default=Aoe;var f2={},Moe=Z1;Object.defineProperty(f2,"__esModule",{value:!0});var V4=f2.default=void 0,Ioe=Moe(K1()),Poe=E,koe=(0,Ioe.default)((0,Poe.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");V4=f2.default=koe;const Ma={DARK:"dark",LIGHT:"light"},G4=localStorage.theme===Ma.DARK||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?Ma.DARK:Ma.LIGHT;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:Q1(e)?2:J1(e)?3:0}function gs(e,t){return As(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Pm(e,t){return As(e)===2?e.get(t):e[t]}function H4(e,t,r){var n=As(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function W4(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Q1(e){return zoe&&e instanceof Map}function J1(e){return Boe&&e instanceof Set}function Sl(e){return e.o||e.t}function d2(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=j4(e);delete t[Ft];for(var r=Uc(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=Roe),Object.freeze(e),t&&Ts(e,function(r,n){return h2(n,!0)},!0)),e}function Roe(){Rr(2)}function p2(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ia(e){var t=DC[e];return t||Rr(18,e),t}function U4(e,t){DC[e]||(DC[e]=t)}function IC(){return mp}function DS(e,t){t&&(Ia("Patches"),e.u=[],e.s=[],e.v=t)}function Ry(e){PC(e),e.p.forEach(Loe),e.p=null}function PC(e){e===mp&&(mp=e.l)}function gR(e){return mp={p:[],l:mp,h:e,m:!0,_:0}}function Loe(e){var t=e[Ft];t.i===0||t.i===1?t.j():t.g=!0}function RS(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||Ia("ES5").S(t,e,n),n?(r[Ft].P&&(Ry(t),Rr(4)),qi(e)&&(e=Ly(t,e),t.l||Ey(t,e)),t.u&&Ia("Patches").M(r[Ft].t,e,t.u,t.s)):e=Ly(t,r,[]),Ry(t),t.u&&t.v(t.u,t.s),e!==g2?e:void 0}function Ly(e,t,r){if(p2(t))return t;var n=t[Ft];if(!n)return Ts(t,function(s,l){return mR(e,n,t,s,l,r)},!0),t;if(n.A!==e)return t;if(!n.P)return Ey(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=d2(n.k):n.o,a=i,o=!1;n.i===3&&(a=new Set(i),i.clear(),o=!0),Ts(a,function(s,l){return mR(e,n,i,s,l,r,o)}),Ey(e,i,!1),r&&e.u&&Ia("Patches").N(n,r,e.u,e.s)}return n.o}function mR(e,t,r,n,i,a,o){if(Yi(i)){var s=Ly(e,i,a&&t&&t.i!==3&&!gs(t.R,n)?a.concat(n):void 0);if(H4(r,n,s),!Yi(s))return;e.m=!1}else o&&r.add(i);if(qi(i)&&!p2(i)){if(!e.h.D&&e._<1)return;Ly(e,i),t&&t.A.l||Ey(e,i)}}function Ey(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&h2(t,r)}function LS(e,t){var r=e[Ft];return(r?Sl(r):e)[t]}function yR(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 Zo(e){e.P||(e.P=!0,e.l&&Zo(e.l))}function ES(e){e.o||(e.o=d2(e.t))}function kC(e,t,r){var n=Q1(t)?Ia("MapSet").F(t,r):J1(t)?Ia("MapSet").T(t,r):e.O?function(i,a){var o=Array.isArray(i),s={i:o?1:0,A:a?a.A:IC(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},l=s,u=yp;o&&(l=[s],u=Jd);var c=Proxy.revocable(l,u),f=c.revoke,d=c.proxy;return s.k=d,s.j=f,d}(t,r):Ia("ES5").J(t,r);return(r?r.A:IC()).p.push(n),n}function Eoe(e){return Yi(e)||Rr(22,e),function t(r){if(!qi(r))return r;var n,i=r[Ft],a=As(r);if(i){if(!i.P&&(i.i<4||!Ia("ES5").K(i)))return i.t;i.I=!0,n=xR(r,a),i.I=!1}else n=xR(r,a);return Ts(n,function(o,s){i&&Pm(i.t,o)===s||H4(n,o,t(s))}),a===3?new Set(n):n}(e)}function xR(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return d2(e)}function Ooe(){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[Ft];return yp.get(l,a)},set:function(l){var u=this[Ft];yp.set(u,a,l)}},s}function t(a){for(var o=a.length-1;o>=0;o--){var s=a[o][Ft];if(!s.P)switch(s.i){case 5:n(s)&&Zo(s);break;case 4:r(s)&&Zo(s)}}}function r(a){for(var o=a.t,s=a.k,l=Uc(s),u=l.length-1;u>=0;u--){var c=l[u];if(c!==Ft){var f=o[c];if(f===void 0&&!gs(o,c))return!0;var d=s[c],h=d&&d[Ft];if(h?h.t!==f:!W4(d,f))return!0}}var p=!!o[Ft];return l.length!==Uc(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=Ia("Patches").$;return Yi(r)?o(r,n):this.produce(r,function(s){return o(s,n)})},e}(),Hn=new $oe,lv=Hn.produce,Y4=Hn.produceWithPatches.bind(Hn);Hn.setAutoFreeze.bind(Hn);Hn.setUseProxies.bind(Hn);var _R=Hn.applyPatches.bind(Hn);Hn.createDraft.bind(Hn);Hn.finishDraft.bind(Hn);function xp(e){"@babel/helpers - typeof";return xp=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},xp(e)}function Voe(e,t){if(xp(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(xp(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Goe(e){var t=Voe(e,"string");return xp(t)==="symbol"?t:String(t)}function Hoe(e,t,r){return t=Goe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wR(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 CR(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(jr(1));return r(q4)(e,t)}if(typeof e!="function")throw new Error(jr(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(jr(3));return a}function f(v){if(typeof v!="function")throw new Error(jr(4));if(l)throw new Error(jr(5));var g=!0;return u(),s.push(v),function(){if(g){if(l)throw new Error(jr(6));g=!1,u();var y=s.indexOf(v);s.splice(y,1),o=null}}}function d(v){if(!Woe(v))throw new Error(jr(7));if(typeof v.type>"u")throw new Error(jr(8));if(l)throw new Error(jr(9));try{l=!0,a=i(a,v)}finally{l=!1}for(var g=o=s,m=0;m"u")throw new Error(jr(12));if(typeof r(void 0,{type:Oy.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(jr(13))})}function m2(e){for(var t=Object.keys(e),r={},n=0;n"u")throw u&&u.type,new Error(jr(14));f[h]=g,c=c||g!==v}return c=c||a.length!==Object.keys(l).length,c?f:l}}function Ny(){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 zy}function i(s,l){n(s)===zy&&(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 Xoe=function(t,r){return t===r};function Zoe(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 uv(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function y2(){for(var e=[],t=0;t{e.isDarkMode=t}}}),Cse=tG.actions,Tse=tG.reducer;function Ase(){const e=Ef(({theme:{isDarkMode:n}})=>n),t=Qd(Cse.setIsDarkMode);O.useEffect(()=>{t(G4===Ma.DARK)},[]);const r=()=>{localStorage.theme=e?Ma.LIGHT:Ma.DARK,t(!e)};return E.jsx(p4,{color:"inherit",onClick:r,children:e?E.jsx(V4,{}):E.jsx($4,{})})}const li={READY:"ready",RUNNING:"running",STOPPED:"stopped",SPAWNING:"spawning",CLEANUP:"cleanup",STOPPING:"stopping",MISSING:"missing"};function Mse({isDistributed:e,state:t,host:r,totalRps:n,failRatio:i,userCount:a,workerCount:o}){return E.jsxs(ht,{sx:{display:"flex",columnGap:2},children:[E.jsxs(ht,{sx:{display:"flex",flexDirection:"column"},children:[E.jsx(Xe,{variant:"button",children:"Host"}),E.jsx(Xe,{children:r})]}),E.jsx(hd,{flexItem:!0,orientation:"vertical"}),E.jsxs(ht,{sx:{display:"flex",flexDirection:"column"},children:[E.jsx(Xe,{variant:"button",children:"Status"}),E.jsx(Xe,{variant:"button",children:t})]}),t===li.RUNNING&&E.jsxs(E.Fragment,{children:[E.jsx(hd,{flexItem:!0,orientation:"vertical"}),E.jsxs(ht,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[E.jsx(Xe,{variant:"button",children:"Users"}),E.jsx(Xe,{variant:"button",children:a})]})]}),e&&E.jsxs(E.Fragment,{children:[E.jsx(hd,{flexItem:!0,orientation:"vertical"}),E.jsxs(ht,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[E.jsx(Xe,{variant:"button",children:"Workers"}),E.jsx(Xe,{variant:"button",children:o})]})]}),E.jsx(hd,{flexItem:!0,orientation:"vertical"}),E.jsxs(ht,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[E.jsx(Xe,{variant:"button",children:"RPS"}),E.jsx(Xe,{variant:"button",children:n})]}),E.jsx(hd,{flexItem:!0,orientation:"vertical"}),E.jsxs(ht,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[E.jsx(Xe,{variant:"button",children:"Failures"}),E.jsx(Xe,{variant:"button",children:`${i}%`})]})]})}const Ise=({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}),Pse=qn(Ise)(Mse);function rG({children:e,onSubmit:t}){const r=O.useCallback(async n=>{n.preventDefault();const i=new FormData(n.target),a={};for(const[o,s]of i.entries())a.hasOwnProperty(o)?(Array.isArray(a[o])||(a[o]=[a[o]]),a[o].push(s)):a[o]=s;t(a)},[t]);return E.jsx("form",{onSubmit:r,children:e})}var By=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 Fse(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var OR=Ms;function aG(e,t){if(e===t||!(OR(e)&&OR(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},Vse=function(e){return/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"")};function zR(e){if(!Ms(e))return e;for(var t=ir({},e),r=0,n=Object.entries(t);r"u"&&s===NR&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),function(x,S){return Vy(t,null,function(){var _,b,w,C,A,T,M,I,P,k,R,z,$,N,V,L,G,U,B,j,X,W,ee,te,ie,re,Q,J,fe,de,ke,We,Ge,at,ot,It;return By(this,function(Be){switch(Be.label){case 0:return _=S.signal,b=S.getState,w=S.extra,C=S.endpoint,A=S.forced,T=S.type,I=typeof x=="string"?{url:x}:x,P=I.url,k=I.headers,R=k===void 0?new Headers(m.headers):k,z=I.params,$=z===void 0?void 0:z,N=I.responseHandler,V=N===void 0?v??"json":N,L=I.validateStatus,G=L===void 0?g??$se:L,U=I.timeout,B=U===void 0?p:U,j=LR(I,["url","headers","params","responseHandler","validateStatus","timeout"]),X=ir(xa(ir({},m),{signal:_}),j),R=new Headers(zR(R)),W=X,[4,a(R,{getState:b,extra:w,endpoint:C,forced:A,type:T})];case 1:W.headers=Be.sent()||R,ee=function(Pt){return typeof Pt=="object"&&(Ms(Pt)||Array.isArray(Pt)||typeof Pt.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)),$&&(te=~P.indexOf("?")?"&":"?",ie=l?l($):new URLSearchParams(zR($)),P+=te+ie),P=zse(n,P),re=new Request(P,X),Q=re.clone(),M={request:Q},fe=!1,de=B&&setTimeout(function(){fe=!0,S.abort()},B),Be.label=2;case 2:return Be.trys.push([2,4,5,6]),[4,s(re)];case 3:return J=Be.sent(),[3,6];case 4:return ke=Be.sent(),[2,{error:{status:fe?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(ke)},meta:M}];case 5:return de&&clearTimeout(de),[7];case 6:We=J.clone(),M.response=We,at="",Be.label=7;case 7:return Be.trys.push([7,9,,10]),[4,Promise.all([y(J,V).then(function(Pt){return Ge=Pt},function(Pt){return ot=Pt}),We.text().then(function(Pt){return at=Pt},function(){})])];case 8:if(Be.sent(),ot)throw ot;return[3,10];case 9:return It=Be.sent(),[2,{error:{status:"PARSING_ERROR",originalStatus:J.status,data:at,error:String(It)},meta:M}];case 10:return[2,G(J,Ge)?{data:Ge,meta:M}:{error:{status:J.status,data:Ge},meta:M}]}})})};function y(x,S){return Vy(this,null,function(){var _;return By(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 BR=function(){function e(t,r){r===void 0&&(r=void 0),this.value=t,this.meta=r}return e}(),S2=Tn("__rtkq/focused"),oG=Tn("__rtkq/unfocused"),b2=Tn("__rtkq/online"),sG=Tn("__rtkq/offline"),La;(function(e){e.query="query",e.mutation="mutation"})(La||(La={}));function lG(e){return e.type===La.query}function Hse(e){return e.type===La.mutation}function uG(e,t,r,n,i,a){return Wse(e)?e(t,r,n,i).map(OC).map(a):Array.isArray(e)?e.map(OC).map(a):[]}function Wse(e){return typeof e=="function"}function OC(e){return typeof e=="string"?{type:e}:e}function FS(e){return e!=null}var bp=Symbol("forceQueryFn"),NC=function(e){return typeof e[bp]=="function"};function Use(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. +`),ai.rippleVisible,pee,MC,({theme:e})=>e.transitions.easing.easeInOut,ai.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ai.child,ai.childLeaving,vee,MC,({theme:e})=>e.transitions.easing.easeInOut,ai.childPulsate,gee,({theme:e})=>e.transitions.easing.easeInOut),xee=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:o}=n,s=ye(n,dee),[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,E.jsx(yee,{classes:{ripple:Ce(a.ripple,ai.ripple),rippleVisible:Ce(a.rippleVisible,ai.rippleVisible),ripplePulsate:Ce(a.ripplePulsate,ai.ripplePulsate),child:Ce(a.child,ai.child),childLeaving:Ce(a.childLeaving,ai.childLeaving),childPulsate:Ce(a.childPulsate,ai.childPulsate)},timeout:MC,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 I,P,k;if(C||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)I=Math.round(M.width/2),P=Math.round(M.height/2);else{const{clientX:R,clientY:z}=S.touches&&S.touches.length>0?S.touches[0]:S;I=Math.round(R-M.left),P=Math.round(z-M.top)}if(C)k=Math.sqrt((2*M.width**2+M.height**2)/3),k%2===0&&(k+=1);else{const R=Math.max(Math.abs((T?T.clientWidth:0)-I),I)*2+2,z=Math.max(Math.abs((T?T.clientHeight:0)-P),P)*2+2;k=Math.sqrt(R**2+z**2)}S!=null&&S.touches?p.current===null&&(p.current=()=>{g({pulsate:w,rippleX:I,rippleY:P,rippleSize:k,cb:b})},h.current=setTimeout(()=>{p.current&&(p.current(),p.current=null)},hee)):g({pulsate:w,rippleX:I,rippleY:P,rippleSize:k,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]),E.jsx(mee,F({className:Ce(ai.root,a.root,o),ref:v},s,{children:E.jsx(FJ,{component:null,exit:!0,children:l})}))}),See=xee;function bee(e){return Ue("MuiButtonBase",e)}const _ee=je("MuiButtonBase",["root","disabled","focusVisible"]),wee=_ee,Cee=["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"],Tee=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,o=Ze({root:["root",t&&"disabled",r&&"focusVisible"]},bee,i);return r&&n&&(o.root+=` ${n}`),o},Aee=ge("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"},[`&.${wee.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Mee=O.forwardRef(function(t,r){const n=Ye({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:I=0,TouchRippleProps:P,touchRippleRef:k,type:R}=n,z=ye(n,Cee),$=O.useRef(null),N=O.useRef(null),V=Mr(N,k),{isFocusVisibleRef:L,onFocus:G,onBlur:U,ref:B}=GM(),[j,X]=O.useState(!1);u&&j&&X(!1),O.useImperativeHandle(i,()=>({focusVisible:()=>{X(!0),$.current.focus()}}),[]);const[W,ee]=O.useState(!1);O.useEffect(()=>{ee(!0)},[]);const te=W&&!c&&!u;O.useEffect(()=>{j&&d&&!c&&W&&N.current.pulsate()},[c,d,j,W]);function ie(he,Vt,Sr=f){return ya(Te=>(Vt&&Vt(Te),!Sr&&N.current&&N.current[he](Te),!0))}const re=ie("start",b),Q=ie("stop",g),J=ie("stop",m),fe=ie("stop",C),de=ie("stop",he=>{j&&he.preventDefault(),w&&w(he)}),ke=ie("start",M),We=ie("stop",A),Ge=ie("stop",T),at=ie("stop",he=>{U(he),L.current===!1&&X(!1),p&&p(he)},!1),ot=ya(he=>{$.current||($.current=he.currentTarget),G(he),L.current===!0&&(X(!0),x&&x(he)),y&&y(he)}),It=()=>{const he=$.current;return l&&l!=="button"&&!(he.tagName==="A"&&he.href)},Be=O.useRef(!1),Pt=ya(he=>{d&&!Be.current&&j&&N.current&&he.key===" "&&(Be.current=!0,N.current.stop(he,()=>{N.current.start(he)})),he.target===he.currentTarget&&It()&&he.key===" "&&he.preventDefault(),S&&S(he),he.target===he.currentTarget&&It()&&he.key==="Enter"&&!u&&(he.preventDefault(),v&&v(he))}),Yt=ya(he=>{d&&he.key===" "&&N.current&&j&&!he.defaultPrevented&&(Be.current=!1,N.current.stop(he,()=>{N.current.pulsate(he)})),_&&_(he),v&&he.target===he.currentTarget&&It()&&he.key===" "&&!he.defaultPrevented&&v(he)});let kt=l;kt==="button"&&(z.href||z.to)&&(kt=h);const K={};kt==="button"?(K.type=R===void 0?"button":R,K.disabled=u):(!z.href&&!z.to&&(K.role="button"),u&&(K["aria-disabled"]=u));const le=Mr(r,B,$),Re=F({},n,{centerRipple:a,component:l,disabled:u,disableRipple:c,disableTouchRipple:f,focusRipple:d,tabIndex:I,focusVisible:j}),_e=Tee(Re);return E.jsxs(Aee,F({as:kt,className:Ce(_e.root,s),ownerState:Re,onBlur:at,onClick:v,onContextMenu:Q,onFocus:ot,onKeyDown:Pt,onKeyUp:Yt,onMouseDown:re,onMouseLeave:de,onMouseUp:fe,onDragLeave:J,onTouchEnd:We,onTouchMove:Ge,onTouchStart:ke,ref:le,tabIndex:u?-1:I,type:R},K,z,{children:[o,te?E.jsx(See,F({ref:V,center:a},P)):null]}))}),Lf=Mee;function Iee(e){return Ue("MuiAccordionSummary",e)}const Pee=je("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),Oc=Pee,kee=["children","className","expandIcon","focusVisibleClassName","onClick"],Dee=e=>{const{classes:t,expanded:r,disabled:n,disableGutters:i}=e;return Ze({root:["root",r&&"expanded",n&&"disabled",!i&&"gutters"],focusVisible:["focusVisible"],content:["content",r&&"expanded",!i&&"contentGutters"],expandIconWrapper:["expandIconWrapper",r&&"expanded"]},Iee,t)},Ree=ge(Lf,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const r={duration:e.transitions.duration.shortest};return F({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],r),[`&.${Oc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Oc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${Oc.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${Oc.expanded}`]:{minHeight:64}})}),Lee=ge("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>F({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${Oc.expanded}`]:{margin:"20px 0"}})),Eee=ge("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}),[`&.${Oc.expanded}`]:{transform:"rotate(180deg)"}})),Oee=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiAccordionSummary"}),{children:i,className:a,expandIcon:o,focusVisibleClassName:s,onClick:l}=n,u=ye(n,kee),{disabled:c=!1,disableGutters:f,expanded:d,toggle:h}=O.useContext(f4),p=m=>{h&&h(m),l&&l(m)},v=F({},n,{expanded:d,disabled:c,disableGutters:f}),g=Dee(v);return E.jsxs(Ree,F({focusRipple:!1,disableRipple:!0,disabled:c,component:"div","aria-expanded":d,className:Ce(g.root,a),focusVisibleClassName:Ce(g.focusVisible,s),onClick:p,ref:r,ownerState:v},u,{children:[E.jsx(Lee,{className:g.content,ownerState:v,children:i}),o&&E.jsx(Eee,{className:g.expandIconWrapper,ownerState:v,children:o})]}))}),p4=Oee;function Nee(e){return Ue("MuiIconButton",e)}const zee=je("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Bee=zee,Fee=["edge","children","className","color","disabled","disableFocusRipple","size"],$ee=e=>{const{classes:t,disabled:r,color:n,edge:i,size:a}=e,o={root:["root",r&&"disabled",n!=="default"&&`color${Me(n)}`,i&&`edge${Me(i)}`,`size${Me(a)}`]};return Ze(o,Nee,t)},Vee=ge(Lf,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${Me(r.color)}`],r.edge&&t[`edge${Me(r.edge)}`],t[`size${Me(r.size)}`]]}})(({theme:e,ownerState:t})=>F({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})`:wr(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 F({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&F({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":F({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:wr(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)},{[`&.${Bee.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Gee=O.forwardRef(function(t,r){const n=Ye({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=ye(n,Fee),d=F({},n,{edge:i,color:s,disabled:l,disableFocusRipple:u,size:c}),h=$ee(d);return E.jsx(Vee,F({className:Ce(h.root,o),centerRipple:!0,focusRipple:!u,disabled:l,ref:r,ownerState:d},f,{children:a}))}),v4=Gee;function Hee(e){return Ue("MuiTypography",e)}je("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Wee=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Uee=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:a,classes:o}=e,s={root:["root",a,e.align!=="inherit"&&`align${Me(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return Ze(s,Hee,o)},jee=ge("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${Me(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>F({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})),UD={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Yee={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},qee=e=>Yee[e]||e,Xee=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTypography"}),i=qee(n.color),a=qV(F({},n,{color:i})),{align:o="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:f=!1,variant:d="body1",variantMapping:h=UD}=a,p=ye(a,Wee),v=F({},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]||UD[d])||"span",m=Uee(v);return E.jsx(jee,F({as:g,ref:r,ownerState:v,className:Ce(m.root,s)},p))}),Xe=Xee;function Zee(e){return Ue("MuiAppBar",e)}je("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const Kee=["className","color","enableColorOnDark","position"],Qee=e=>{const{color:t,position:r,classes:n}=e,i={root:["root",`color${Me(t)}`,`position${Me(r)}`]};return Ze(i,Zee,n)},rg=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Jee=ge(U1,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Me(r.position)}`],t[`color${Me(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return F({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&&F({},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"&&F({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&F({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:rg(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:rg(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:rg(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:rg(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"}))}),ete=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiAppBar"}),{className:i,color:a="primary",enableColorOnDark:o=!1,position:s="fixed"}=n,l=ye(n,Kee),u=F({},n,{color:a,position:s,enableColorOnDark:o}),c=Qee(u);return E.jsx(Jee,F({square:!0,component:"header",ownerState:u,elevation:4,className:Ce(c.root,i,s==="fixed"&&"mui-fixed"),ref:r},l))}),tte=ete;function vf(e){return typeof e=="string"}function rte(e,t,r){return e===void 0||vf(e)?t:F({},t,{ownerState:F({},t.ownerState,r)})}function g4(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 nte(e,t,r){return typeof e=="function"?e(t,r):e}function jD(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 ite(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:a}=e;if(!t){const h=Ce(i==null?void 0:i.className,n==null?void 0:n.className,a,r==null?void 0:r.className),p=F({},r==null?void 0:r.style,i==null?void 0:i.style,n==null?void 0:n.style),v=F({},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=g4(F({},i,n)),s=jD(n),l=jD(i),u=t(o),c=Ce(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=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=F({},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 ate=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ra(e){var t;const{elementType:r,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:a=!1}=e,o=ye(e,ate),s=a?{}:nte(n,i),{props:l,internalRef:u}=ite(F({},o,{externalSlotProps:s})),c=Mr(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return rte(r,F({},l,{ref:c}),i)}const ote=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ste(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 lte(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 ute(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||lte(e))}function cte(e){const t=[],r=[];return Array.from(e.querySelectorAll(ote)).forEach((n,i)=>{const a=ste(n);a===-1||!ute(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 fte(){return!0}function dte(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:a=cte,isEnabled:o=fte,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=on(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=on(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"),I=C[0],P=C[C.length-1];typeof I!="string"&&typeof P!="string"&&(M?P.focus():I.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 E.jsxs(O.Fragment,{children:[E.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelStart"}),O.cloneElement(t,{ref:v,onFocus:m}),E.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelEnd"})]})}function hte(e){return typeof e=="function"?e():e}const pte=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(ho(()=>{a||s(hte(i)||document.body)},[i,a]),ho(()=>{if(o&&!a)return Iy(r,o),()=>{Iy(r,null)}},[r,o,a]),a){if(O.isValidElement(n)){const u={ref:l};return O.cloneElement(n,u)}return E.jsx(O.Fragment,{children:n})}return E.jsx(O.Fragment,{children:o&&kf.createPortal(n,o)})});function vte(e){const t=on(e);return t.body===e?Da(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Mh(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function YD(e){return parseInt(Da(e).getComputedStyle(e).paddingRight,10)||0}function gte(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 qD(e,t,r,n,i){const a=[t,r,...n];[].forEach.call(e.children,o=>{const s=a.indexOf(o)===-1,l=!gte(o);s&&l&&Mh(o,i)})}function AS(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function mte(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(vte(n)){const o=MV(on(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${YD(n)+o}px`;const s=on(n).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${YD(l)+o}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=on(n).body;else{const o=n.parentElement,s=Da(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 yte(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class xte{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&&Mh(t.modalRef,!1);const i=yte(r);qD(r,t.mount,t.modalRef,i,!0);const a=AS(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=AS(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[n];i.restore||(i.restore=mte(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=AS(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&&Mh(t.modalRef,r),qD(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&&Mh(o.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Ste(e){return typeof e=="function"?e():e}function bte(e){return e?e.props.hasOwnProperty("in"):!1}const _te=new xte;function wte(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:i=_te,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=bte(l);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const S=()=>on(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=ya(()=>{const z=Ste(t)||S().body;i.add(_(),z),p.current&&b()}),C=O.useCallback(()=>i.isTopModal(_()),[i]),A=ya(z=>{h.current=z,z&&(c&&C()?b():p.current&&Mh(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=>$=>{var N;(N=z.onKeyDown)==null||N.call(z,$),!($.key!=="Escape"||!C())&&(r||($.stopPropagation(),u&&u($,"escapeKeyDown")))},I=z=>$=>{var N;(N=z.onClick)==null||N.call(z,$),$.target===$.currentTarget&&u&&u($,"backdropClick")};return{getRootProps:(z={})=>{const $=g4(e);delete $.onTransitionEnter,delete $.onTransitionExited;const N=F({},$,z);return F({role:"presentation"},N,{onKeyDown:M(N),ref:v})},getBackdropProps:(z={})=>{const $=z;return F({"aria-hidden":!0},$,{onClick:I($),open:c})},getTransitionProps:()=>{const z=()=>{m(!1),o&&o()},$=()=>{m(!0),s&&s(),a&&T()};return{onEnter:SC(z,l==null?void 0:l.props.onEnter),onExited:SC($,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:A,isTopModal:C,exited:g,hasTransition:y}}const Cte=["onChange","maxRows","minRows","style","value"];function ng(e){return parseInt(e,10)||0}const Tte={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function XD(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const Ate=O.forwardRef(function(t,r){const{onChange:n,maxRows:i,minRows:a=1,style:o,value:s}=t,l=ye(t,Cte),{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=Da(_).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=ng(w.paddingBottom)+ng(w.paddingTop),M=ng(w.borderBottomWidth)+ng(w.borderTopWidth),I=C.scrollHeight;C.value="x";const P=C.scrollHeight;let k=I;a&&(k=Math.max(Number(a)*P,k)),i&&(k=Math.min(Number(i)*P,k)),k=Math.max(k,P);const R=k+(A==="border-box"?T+M:0),z=Math.abs(k-I)<=1;return{outerHeightStyle:R,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();XD(_)||v(b=>m(b,_))},[g]),x=()=>{const _=g();XD(_)||kf.flushSync(()=>{v(b=>m(b,_))})};O.useEffect(()=>{const _=()=>{h.current=0,c.current&&x()},b=av(()=>{h.current=0,c.current&&x()});let w;const C=c.current,A=Da(C);return A.addEventListener("resize",b),typeof ResizeObserver<"u"&&(w=new ResizeObserver(_),w.observe(C)),()=>{b.clear(),A.removeEventListener("resize",b),w&&w.disconnect()}}),ho(()=>{y()}),O.useEffect(()=>{h.current=0},[s]);const S=_=>{h.current=0,u||y(),n&&n(_)};return E.jsxs(O.Fragment,{children:[E.jsx("textarea",F({value:s,onChange:S,ref:f,rows:a,style:F({height:p.outerHeightStyle,overflow:p.overflow?"hidden":void 0},o)},l)),E.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:d,tabIndex:-1,style:F({},Tte.shadow,o,{paddingTop:0,paddingBottom:0})})]})});function Ef({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 Mte=O.createContext(void 0),a2=Mte;function Of(){return O.useContext(a2)}function ZD(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Ly(e,t=!1){return e&&(ZD(e.value)&&e.value!==""||t&&ZD(e.defaultValue)&&e.defaultValue!=="")}function Ite(e){return e.startAdornment}function Pte(e){return Ue("MuiInputBase",e)}const kte=je("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),gf=kte,Dte=["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"],Y1=(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${Me(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},q1=(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]},Rte=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${Me(r)}`,n&&"disabled",i&&"error",l&&"fullWidth",o&&"focused",s&&"formControl",d&&d!=="medium"&&`size${Me(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 Ze(v,Pte,t)},X1=ge("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Y1})(({theme:e,ownerState:t})=>F({},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",[`&.${gf.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&F({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Z1=ge("input",{name:"MuiInputBase",slot:"Input",overridesResolver:q1})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=F({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 F({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] + .${gf.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},[`&.${gf.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"})}),Lte=E.jsx(i4,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Ete=O.forwardRef(function(t,r){var n;const i=Ye({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:I,onKeyUp:P,placeholder:k,readOnly:R,renderSuffix:z,rows:$,slotProps:N={},slots:V={},startAdornment:L,type:G="text",value:U}=i,B=ye(i,Dte),j=y.value!=null?y.value:U,{current:X}=O.useRef(j!=null),W=O.useRef(),ee=O.useCallback(_e=>{},[]),te=Mr(W,x,y.ref,ee),[ie,re]=O.useState(!1),Q=Of(),J=Ef({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 fe=Q&&Q.onFilled,de=Q&&Q.onEmpty,ke=O.useCallback(_e=>{Ly(_e)?fe&&fe():de&&de()},[fe,de]);ho(()=>{X&&ke({value:j})},[j,ke,X]);const We=_e=>{if(J.disabled){_e.stopPropagation();return}M&&M(_e),y.onFocus&&y.onFocus(_e),Q&&Q.onFocus?Q.onFocus(_e):re(!0)},Ge=_e=>{C&&C(_e),y.onBlur&&y.onBlur(_e),Q&&Q.onBlur?Q.onBlur(_e):re(!1)},at=(_e,...he)=>{if(!X){const Vt=_e.target||W.current;if(Vt==null)throw new Error(Cs(1));ke({value:Vt.value})}y.onChange&&y.onChange(_e,...he),A&&A(_e,...he)};O.useEffect(()=>{ke(W.current)},[]);const ot=_e=>{W.current&&_e.currentTarget===_e.target&&W.current.focus(),T&&T(_e)};let It=m,Be=y;b&&It==="input"&&($?Be=F({type:void 0,minRows:$,maxRows:$},Be):Be=F({type:void 0,maxRows:S,minRows:_},Be),It=Ate);const Pt=_e=>{ke(_e.animationName==="mui-auto-fill-cancel"?W.current:{value:"x"})};O.useEffect(()=>{Q&&Q.setAdornedStart(!!L)},[Q,L]);const Yt=F({},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:L,type:G}),kt=Rte(Yt),K=V.root||u.Root||X1,le=N.root||c.root||{},Re=V.input||u.Input||Z1;return Be=F({},Be,(n=N.input)!=null?n:c.input),E.jsxs(O.Fragment,{children:[!h&&Lte,E.jsxs(K,F({},le,!vf(K)&&{ownerState:F({},Yt,le.ownerState)},{ref:r,onClick:ot},B,{className:Ce(kt.root,le.className,l,R&&"MuiInputBase-readOnly"),children:[L,E.jsx(a2.Provider,{value:null,children:E.jsx(Re,F({ownerState:Yt,"aria-invalid":J.error,"aria-describedby":a,autoComplete:o,autoFocus:s,defaultValue:f,disabled:J.disabled,id:g,onAnimationStart:Pt,name:w,placeholder:k,readOnly:R,required:J.required,rows:$,value:j,onKeyDown:I,onKeyUp:P,type:G},Be,!vf(Re)&&{as:It,ownerState:F({},Yt,Be.ownerState)},{ref:te,className:Ce(kt.input,Be.className,R&&"MuiInputBase-readOnly"),onBlur:Ge,onChange:at,onFocus:We}))}),p,z?z(F({},J,{startAdornment:L})):null]}))]})}),o2=Ete;function Ote(e){return Ue("MuiInput",e)}const Nte=F({},gf,je("MuiInput",["root","underline","input"])),pd=Nte;function zte(e){return Ue("MuiOutlinedInput",e)}const Bte=F({},gf,je("MuiOutlinedInput",["root","notchedOutline","input"])),ko=Bte;function Fte(e){return Ue("MuiFilledInput",e)}const $te=F({},gf,je("MuiFilledInput",["root","underline","input"])),Us=$te,Vte=W1(E.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Gte=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Hte={entering:{opacity:1},entered:{opacity:1}},Wte=O.forwardRef(function(t,r){const n=Rf(),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=r2}=t,x=ye(t,Gte),S=O.useRef(null),_=Mr(S,s.ref,r),b=k=>R=>{if(k){const z=S.current;R===void 0?k(z):k(z,R)}},w=b(d),C=b((k,R)=>{u4(k);const z=pf({style:g,timeout:m,easing:l},{mode:"enter"});k.style.webkitTransition=n.transitions.create("opacity",z),k.style.transition=n.transitions.create("opacity",z),c&&c(k,R)}),A=b(f),T=b(v),M=b(k=>{const R=pf({style:g,timeout:m,easing:l},{mode:"exit"});k.style.webkitTransition=n.transitions.create("opacity",R),k.style.transition=n.transitions.create("opacity",R),h&&h(k)}),I=b(p),P=k=>{a&&a(S.current,k)};return E.jsx(y,F({appear:o,in:u,nodeRef:S,onEnter:C,onEntered:A,onEntering:w,onExit:M,onExited:I,onExiting:T,addEndListener:P,timeout:m},x,{children:(k,R)=>O.cloneElement(s,F({style:F({opacity:0,visibility:k==="exited"&&!u?"hidden":void 0},Hte[k],g,s.props.style),ref:_},R))}))}),Ute=Wte;function jte(e){return Ue("MuiBackdrop",e)}je("MuiBackdrop",["root","invisible"]);const Yte=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],qte=e=>{const{classes:t,invisible:r}=e;return Ze({root:["root",r&&"invisible"]},jte,t)},Xte=ge("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>F({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"})),Zte=O.forwardRef(function(t,r){var n,i,a;const o=Ye({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=Ute,transitionDuration:m}=o,y=ye(o,Yte),x=F({},o,{component:u,invisible:d}),S=qte(x),_=(n=p.root)!=null?n:f.root;return E.jsx(g,F({in:h,timeout:m},y,{children:E.jsx(Xte,F({"aria-hidden":!0},_,{as:(i=(a=v.root)!=null?a:c.Root)!=null?i:u,className:Ce(S.root,l,_==null?void 0:_.className),ownerState:F({},x,_==null?void 0:_.ownerState),classes:S,ref:r,children:s}))}))}),Kte=Zte,Qte=t2(),Jte=cQ({themeId:gu,defaultTheme:Qte,defaultClassName:"MuiBox-root",generateClassName:WM.generate}),ht=Jte;function ere(e){return Ue("MuiButton",e)}const tre=je("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"]),ig=tre,rre=O.createContext({}),nre=rre,ire=O.createContext(void 0),are=ire,ore=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],sre=e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:a,classes:o}=e,s={root:["root",a,`${a}${Me(t)}`,`size${Me(i)}`,`${a}Size${Me(i)}`,t==="inherit"&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Me(i)}`],endIcon:["endIcon",`iconSize${Me(i)}`]},l=Ze(s,ere,o);return F({},o,l)},m4=e=>F({},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}}),lre=ge(Lf,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Me(r.color)}`],t[`size${Me(r.size)}`],t[`${r.variant}Size${Me(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 F({},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":F({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:wr(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})`:wr(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})`:wr(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":F({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${ig.focusVisible}`]:F({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${ig.disabled}`]:F({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 ${wr(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"},[`&.${ig.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ig.disabled}`]:{boxShadow:"none"}}),ure=ge("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Me(r.size)}`]]}})(({ownerState:e})=>F({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},m4(e))),cre=ge("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Me(r.size)}`]]}})(({ownerState:e})=>F({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},m4(e))),fre=O.forwardRef(function(t,r){const n=O.useContext(nre),i=O.useContext(are),a=HM(n,t),o=Ye({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,_=ye(o,ore),b=F({},o,{color:l,component:u,disabled:f,disableElevation:d,disableFocusRipple:h,fullWidth:g,size:m,type:x,variant:S}),w=sre(b),C=y&&E.jsx(ure,{className:w.startIcon,ownerState:b,children:y}),A=p&&E.jsx(cre,{className:w.endIcon,ownerState:b,children:p}),T=i||"";return E.jsxs(lre,F({ownerState:b,className:Ce(n.className,w.root,c,T),component:u,disabled:f,focusRipple:!h,focusVisibleClassName:Ce(w.focusVisible,v),ref:r,type:x},_,{classes:w,children:[C,s,A]}))}),Au=fre,dre=BQ({createStyledComponent:ge("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Me(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Ye({props:e,name:"MuiContainer"})}),Nf=dre;function hre(e){return Ue("MuiModal",e)}je("MuiModal",["root","hidden","backdrop"]);const pre=["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"],vre=e=>{const{open:t,exited:r,classes:n}=e;return Ze({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},hre,n)},gre=ge("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})=>F({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),mre=ge(Kte,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),yre=O.forwardRef(function(t,r){var n,i,a,o,s,l;const u=Ye({name:"MuiModal",props:t}),{BackdropComponent:c=mre,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:I,slotProps:P,slots:k}=u,R=ye(u,pre),z=F({},u,{closeAfterTransition:h,disableAutoFocus:x,disableEnforceFocus:S,disableEscapeKeyDown:_,disablePortal:b,disableRestoreFocus:w,disableScrollLock:C,hideBackdrop:A,keepMounted:T}),{getRootProps:$,getBackdropProps:N,getTransitionProps:V,portalRef:L,isTopModal:G,exited:U,hasTransition:B}=wte(F({},z,{rootRef:r})),j=F({},z,{exited:U}),X=vre(j),W={};if(p.props.tabIndex===void 0&&(W.tabIndex="-1"),B){const{onEnter:fe,onExited:de}=V();W.onEnter=fe,W.onExited=de}const ee=(n=(i=k==null?void 0:k.root)!=null?i:m.Root)!=null?n:gre,te=(a=(o=k==null?void 0:k.backdrop)!=null?o:m.Backdrop)!=null?a:c,ie=(s=P==null?void 0:P.root)!=null?s:y.root,re=(l=P==null?void 0:P.backdrop)!=null?l:y.backdrop,Q=Ra({elementType:ee,externalSlotProps:ie,externalForwardedProps:R,getSlotProps:$,additionalProps:{ref:r,as:g},ownerState:j,className:Ce(d,ie==null?void 0:ie.className,X==null?void 0:X.root,!j.open&&j.exited&&(X==null?void 0:X.hidden))}),J=Ra({elementType:te,externalSlotProps:re,additionalProps:f,getSlotProps:fe=>N(F({},fe,{onClick:de=>{M&&M(de),fe!=null&&fe.onClick&&fe.onClick(de)}})),className:Ce(re==null?void 0:re.className,f==null?void 0:f.className,X==null?void 0:X.backdrop),ownerState:j});return!T&&!I&&(!B||U)?null:E.jsx(pte,{ref:L,container:v,disablePortal:b,children:E.jsxs(ee,F({},Q,{children:[!A&&c?E.jsx(te,F({},J)):null,E.jsx(dte,{disableEnforceFocus:S,disableAutoFocus:x,disableRestoreFocus:w,isEnabled:G,open:I,children:O.cloneElement(p,W)})]}))})}),y4=yre;function xre(e){return Ue("MuiDivider",e)}je("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Sre=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],bre=e=>{const{absolute:t,children:r,classes:n,flexItem:i,light:a,orientation:o,textAlign:s,variant:l}=e;return Ze({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"]},xre,n)},_re=ge("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})=>F({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)`:wr(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})=>F({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>F({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>F({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>F({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),wre=ge("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>F({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)`})),x4=O.forwardRef(function(t,r){const n=Ye({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=ye(n,Sre),v=F({},n,{absolute:i,component:s,flexItem:l,light:u,orientation:c,role:f,textAlign:d,variant:h}),g=bre(v);return E.jsx(_re,F({as:s,className:Ce(g.root,o),role:f,ref:r,ownerState:v},p,{children:a?E.jsx(wre,{className:g.wrapper,ownerState:v,children:a}):null}))});x4.muiSkipListHighlight=!0;const vd=x4,Cre=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Tre=e=>{const{classes:t,disableUnderline:r}=e,i=Ze({root:["root",!r&&"underline"],input:["input"]},Fte,t);return F({},t,i)},Are=ge(X1,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Y1(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 F({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}},[`&.${Us.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${Us.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"},[`&.${Us.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Us.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(.${Us.disabled}, .${Us.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Us.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&F({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),Mre=ge(Z1,{name:"MuiFilledInput",slot:"Input",overridesResolver:q1})(({theme:e,ownerState:t})=>F({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})),S4=O.forwardRef(function(t,r){var n,i,a,o;const s=Ye({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=ye(s,Cre),m=F({},s,{fullWidth:c,inputComponent:f,multiline:d,type:v}),y=Tre(s),x={root:{ownerState:m},input:{ownerState:m}},S=h??u?yi(h??u,x):x,_=(n=(i=p.root)!=null?i:l.Root)!=null?n:Are,b=(a=(o=p.input)!=null?o:l.Input)!=null?a:Mre;return E.jsx(o2,F({slots:{root:_,input:b},componentsProps:S,fullWidth:c,inputComponent:f,multiline:d,ref:r,type:v},g,{classes:y}))});S4.muiName="Input";const b4=S4;function Ire(e){return Ue("MuiFormControl",e)}je("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Pre=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],kre=e=>{const{classes:t,margin:r,fullWidth:n}=e,i={root:["root",r!=="none"&&`margin${Me(r)}`,n&&"fullWidth"]};return Ze(i,Ire,t)},Dre=ge("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>F({},t.root,t[`margin${Me(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>F({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%"})),Rre=O.forwardRef(function(t,r){const n=Ye({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=ye(n,Pre),y=F({},n,{color:o,component:s,disabled:l,error:u,fullWidth:f,hiddenLabel:d,margin:h,required:p,size:v,variant:g}),x=kre(y),[S,_]=O.useState(()=>{let P=!1;return i&&O.Children.forEach(i,k=>{if(!Ch(k,["Input","Select"]))return;const R=Ch(k,["Select"])?k.props.input:k;R&&Ite(R.props)&&(P=!0)}),P}),[b,w]=O.useState(()=>{let P=!1;return i&&O.Children.forEach(i,k=>{Ch(k,["Input","Select"])&&(Ly(k.props,!0)||Ly(k.props.inputProps,!0))&&(P=!0)}),P}),[C,A]=O.useState(!1);l&&C&&A(!1);const T=c!==void 0&&!l?c:C;let M;const I=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 E.jsx(a2.Provider,{value:I,children:E.jsx(Dre,F({as:s,ownerState:y,className:Ce(x.root,a),ref:r},m,{children:i}))})}),_4=Rre;function Lre(e){return Ue("MuiFormHelperText",e)}const Ere=je("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),KD=Ere;var QD;const Ore=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Nre=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${Me(n)}`,r&&"contained",s&&"focused",o&&"filled",l&&"required"]};return Ze(u,Lre,t)},zre=ge("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${Me(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>F({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${KD.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${KD.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Bre=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:o="p"}=n,s=ye(n,Ore),l=Of(),u=Ef({props:n,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=F({},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=Nre(c);return E.jsx(zre,F({as:o,ownerState:c,className:Ce(f.root,a),ref:r},s,{children:i===" "?QD||(QD=E.jsx("span",{className:"notranslate",children:"​"})):i}))}),Fre=Bre;function $re(e){return Ue("MuiFormLabel",e)}const Vre=je("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ih=Vre,Gre=["children","className","color","component","disabled","error","filled","focused","required"],Hre=e=>{const{classes:t,color:r,focused:n,disabled:i,error:a,filled:o,required:s}=e,l={root:["root",`color${Me(r)}`,i&&"disabled",a&&"error",o&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return Ze(l,$re,t)},Wre=ge("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>F({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>F({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Ih.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Ih.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ih.error}`]:{color:(e.vars||e).palette.error.main}})),Ure=ge("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ih.error}`]:{color:(e.vars||e).palette.error.main}})),jre=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiFormLabel"}),{children:i,className:a,component:o="label"}=n,s=ye(n,Gre),l=Of(),u=Ef({props:n,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=F({},n,{color:u.color||"primary",component:o,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=Hre(c);return E.jsxs(Wre,F({as:o,ownerState:c,className:Ce(f.root,a),ref:r},s,{children:[i,u.required&&E.jsxs(Ure,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),Yre=jre,qre=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function IC(e){return`scale(${e}, ${e**2})`}const Xre={entering:{opacity:1,transform:IC(1)},entered:{opacity:1,transform:"none"}},MS=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),w4=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=r2}=t,m=ye(t,qre),y=O.useRef(),x=O.useRef(),S=Rf(),_=O.useRef(null),b=Mr(_,a.ref,r),w=R=>z=>{if(R){const $=_.current;z===void 0?R($):R($,z)}},C=w(c),A=w((R,z)=>{u4(R);const{duration:$,delay:N,easing:V}=pf({style:p,timeout:v,easing:o},{mode:"enter"});let L;v==="auto"?(L=S.transitions.getAutoHeightDuration(R.clientHeight),x.current=L):L=$,R.style.transition=[S.transitions.create("opacity",{duration:L,delay:N}),S.transitions.create("transform",{duration:MS?L:L*.666,delay:N,easing:V})].join(","),l&&l(R,z)}),T=w(u),M=w(h),I=w(R=>{const{duration:z,delay:$,easing:N}=pf({style:p,timeout:v,easing:o},{mode:"exit"});let V;v==="auto"?(V=S.transitions.getAutoHeightDuration(R.clientHeight),x.current=V):V=z,R.style.transition=[S.transitions.create("opacity",{duration:V,delay:$}),S.transitions.create("transform",{duration:MS?V:V*.666,delay:MS?$:$||V*.333,easing:N})].join(","),R.style.opacity=0,R.style.transform=IC(.75),f&&f(R)}),P=w(d),k=R=>{v==="auto"&&(y.current=setTimeout(R,x.current||0)),n&&n(_.current,R)};return O.useEffect(()=>()=>{clearTimeout(y.current)},[]),E.jsx(g,F({appear:i,in:s,nodeRef:_,onEnter:A,onEntered:T,onEntering:C,onExit:I,onExited:P,onExiting:M,addEndListener:k,timeout:v==="auto"?null:v},m,{children:(R,z)=>O.cloneElement(a,F({style:F({opacity:0,transform:IC(.75),visibility:R==="exited"&&!s?"hidden":void 0},Xre[R],p,a.props.style),ref:b},z))}))});w4.muiSupportAuto=!0;const Zre=w4,Kre=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Qre=e=>{const{classes:t,disableUnderline:r}=e,i=Ze({root:["root",!r&&"underline"],input:["input"]},Ote,t);return F({},t,i)},Jre=ge(X1,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Y1(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})`),F({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"},[`&.${pd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${pd.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(.${pd.disabled}, .${pd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${pd.disabled}:before`]:{borderBottomStyle:"dotted"}})}),ene=ge(Z1,{name:"MuiInput",slot:"Input",overridesResolver:q1})({}),C4=O.forwardRef(function(t,r){var n,i,a,o;const s=Ye({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=ye(s,Kre),y=Qre(s),S={root:{ownerState:{disableUnderline:l}}},_=p??c?yi(p??c,S):S,b=(n=(i=v.root)!=null?i:u.Root)!=null?n:Jre,w=(a=(o=v.input)!=null?o:u.Input)!=null?a:ene;return E.jsx(o2,F({slots:{root:b,input:w},slotProps:_,fullWidth:f,inputComponent:d,multiline:h,ref:r,type:g},m,{classes:y}))});C4.muiName="Input";const T4=C4;function tne(e){return Ue("MuiInputLabel",e)}je("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const rne=["disableAnimation","margin","shrink","variant","className"],nne=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${Me(n)}`,o],asterisk:[s&&"asterisk"]},u=Ze(l,tne,t);return F({},t,u)},ine=ge(Yre,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Ih.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})=>F({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"&&F({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&&F({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"&&F({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)"}))),ane=O.forwardRef(function(t,r){const n=Ye({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:a,className:o}=n,s=ye(n,rne),l=Of();let u=a;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=Ef({props:n,muiFormControl:l,states:["size","variant","required"]}),f=F({},n,{disableAnimation:i,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required}),d=nne(f);return E.jsx(ine,F({"data-shrink":u,ownerState:f,ref:r,className:Ce(d.root,o)},s,{classes:d}))}),A4=ane;function one(e){return Ue("MuiLink",e)}const sne=je("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),lne=sne,M4={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},une=e=>M4[e]||e,cne=({theme:e,ownerState:t})=>{const r=une(t.color),n=hf(e,`palette.${r}`,!1)||t.color,i=hf(e,`palette.${r}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:wr(n,.4)},fne=cne,dne=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],hne=e=>{const{classes:t,component:r,focusVisible:n,underline:i}=e,a={root:["root",`underline${Me(i)}`,r==="button"&&"button",n&&"focusVisible"]};return Ze(a,one,t)},pne=ge(Xe,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Me(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>F({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&F({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:fne({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"},[`&.${lne.focusVisible}`]:{outline:"auto"}})),vne=O.forwardRef(function(t,r){const n=Ye({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=ye(n,dne),{isFocusVisibleRef:p,onBlur:v,onFocus:g,ref:m}=GM(),[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=F({},n,{color:a,component:o,focusVisible:y,underline:c,variant:f}),C=hne(w);return E.jsx(pne,F({color:a,className:Ce(C.root,i),classes:u,component:o,onBlur:_,onFocus:b,ref:S,ownerState:w,variant:f,sx:[...Object.keys(M4).includes(a)?[]:[{color:a}],...Array.isArray(d)?d:[d]]},h))}),li=vne,gne=O.createContext({}),Ph=gne;function mne(e){return Ue("MuiList",e)}je("MuiList",["root","padding","dense","subheader"]);const yne=["children","className","component","dense","disablePadding","subheader"],xne=e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return Ze({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},mne,t)},Sne=ge("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})=>F({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),bne=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiList"}),{children:i,className:a,component:o="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=n,c=ye(n,yne),f=O.useMemo(()=>({dense:s}),[s]),d=F({},n,{component:o,dense:s,disablePadding:l}),h=xne(d);return E.jsx(Ph.Provider,{value:f,children:E.jsxs(Sne,F({as:o,className:Ce(h.root,a),ref:r,ownerState:d},c,{children:[u,i]}))})}),I4=bne;function _ne(e){return Ue("MuiListItem",e)}const wne=je("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),gc=wne,Cne=je("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Tne=Cne;function Ane(e){return Ue("MuiListItemSecondaryAction",e)}je("MuiListItemSecondaryAction",["root","disableGutters"]);const Mne=["className"],Ine=e=>{const{disableGutters:t,classes:r}=e;return Ze({root:["root",t&&"disableGutters"]},Ane,r)},Pne=ge("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})(({ownerState:e})=>F({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),P4=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=n,a=ye(n,Mne),o=O.useContext(Ph),s=F({},n,{disableGutters:o.disableGutters}),l=Ine(s);return E.jsx(Pne,F({className:Ce(l.root,i),ownerState:s,ref:r},a))});P4.muiName="ListItemSecondaryAction";const kne=P4,Dne=["className"],Rne=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Lne=(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]},Ene=e=>{const{alignItems:t,button:r,classes:n,dense:i,disabled:a,disableGutters:o,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return Ze({root:["root",i&&"dense",!o&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",r&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},_ne,n)},One=ge("div",{name:"MuiListItem",slot:"Root",overridesResolver:Lne})(({theme:e,ownerState:t})=>F({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&F({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Tne.root}`]:{paddingRight:48}},{[`&.${gc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${gc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:wr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${gc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:wr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${gc.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"}},[`&.${gc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:wr(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})`:wr(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Nne=ge("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),zne=O.forwardRef(function(t,r){const n=Ye({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=ye(n.ContainerProps,Dne),A=ye(n,Rne),T=O.useContext(Ph),M=O.useMemo(()=>({dense:p||T.dense||!1,alignItems:i,disableGutters:g}),[i,T.dense,p,g]),I=O.useRef(null);ho(()=>{a&&I.current&&I.current.focus()},[a]);const P=O.Children.toArray(s),k=P.length&&Ch(P[P.length-1],["ListItemSecondaryAction"]),R=F({},n,{alignItems:i,autoFocus:a,button:o,dense:M.dense,disabled:v,disableGutters:g,disablePadding:m,divider:y,hasSecondaryAction:k,selected:_}),z=Ene(R),$=Mr(I,r),N=w.root||c.Root||One,V=b.root||f.root||{},L=F({className:Ce(z.root,V.className,l),disabled:v},A);let G=u||"li";return o&&(L.component=u||"div",L.focusVisibleClassName=Ce(gc.focusVisible,x),G=Lf),k?(G=!L.component&&!u?"div":G,d==="li"&&(G==="li"?G="div":L.component==="li"&&(L.component="div")),E.jsx(Ph.Provider,{value:M,children:E.jsxs(Nne,F({as:d,className:Ce(z.container,h),ref:$,ownerState:R},C,{children:[E.jsx(N,F({},V,!vf(N)&&{as:G,ownerState:F({},R,V.ownerState)},L,{children:P})),P.pop()]}))})):E.jsx(Ph.Provider,{value:M,children:E.jsxs(N,F({},V,{as:G,ref:$},!vf(N)&&{ownerState:F({},R,V.ownerState)},L,{children:[P,S&&E.jsx(kne,{children:S})]}))})}),ju=zne,Bne=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function IS(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function JD(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function k4(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 gd(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")||!k4(s,a)||l)s=i(e,s,r);else return s.focus(),!0}return!1}const Fne=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=ye(t,Bne),h=O.useRef(null),p=O.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ho(()=>{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=on(S).activeElement;if(_==="ArrowDown")x.preventDefault(),gd(S,b,u,l,IS);else if(_==="ArrowUp")x.preventDefault(),gd(S,b,u,l,JD);else if(_==="Home")x.preventDefault(),gd(S,null,u,l,IS);else if(_==="End")x.preventDefault(),gd(S,null,u,l,JD);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&&k4(b,w);w.previousKeyMatched&&(T||gd(S,b,!1,l,IS,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 E.jsx(I4,F({role:"menu",ref:g,className:s,onKeyDown:v,tabIndex:i?0:-1},d,{children:y}))}),$ne=Fne;function Vne(e){return Ue("MuiPopover",e)}je("MuiPopover",["root","paper"]);const Gne=["onEntering"],Hne=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Wne=["slotProps"];function eR(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function tR(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function rR(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function PS(e){return typeof e=="function"?e():e}const Une=e=>{const{classes:t}=e;return Ze({root:["root"],paper:["paper"]},Vne,t)},jne=ge(y4,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),D4=ge(U1,{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}),Yne=O.forwardRef(function(t,r){var n,i,a;const o=Ye({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=Zre,transitionDuration:w="auto",TransitionProps:{onEntering:C}={},disableScrollLock:A=!1}=o,T=ye(o.TransitionProps,Gne),M=ye(o,Hne),I=(n=S==null?void 0:S.paper)!=null?n:y,P=O.useRef(),k=Mr(P,I.ref),R=F({},o,{anchorOrigin:u,anchorReference:f,elevation:v,marginThreshold:g,externalPaperSlotProps:I,transformOrigin:_,TransitionComponent:b,transitionDuration:w,TransitionProps:T}),z=Une(R),$=O.useCallback(()=>{if(f==="anchorPosition")return c;const fe=PS(l),ke=(fe&&fe.nodeType===1?fe:on(P.current).body).getBoundingClientRect();return{top:ke.top+eR(ke,u.vertical),left:ke.left+tR(ke,u.horizontal)}},[l,u.horizontal,u.vertical,c,f]),N=O.useCallback(fe=>({vertical:eR(fe,_.vertical),horizontal:tR(fe,_.horizontal)}),[_.horizontal,_.vertical]),V=O.useCallback(fe=>{const de={width:fe.offsetWidth,height:fe.offsetHeight},ke=N(de);if(f==="none")return{top:null,left:null,transformOrigin:rR(ke)};const We=$();let Ge=We.top-ke.vertical,at=We.left-ke.horizontal;const ot=Ge+de.height,It=at+de.width,Be=Da(PS(l)),Pt=Be.innerHeight-g,Yt=Be.innerWidth-g;if(g!==null&&GePt){const kt=ot-Pt;Ge-=kt,ke.vertical+=kt}if(g!==null&&atYt){const kt=It-Yt;at-=kt,ke.horizontal+=kt}return{top:`${Math.round(Ge)}px`,left:`${Math.round(at)}px`,transformOrigin:rR(ke)}},[l,f,$,N,g]),[L,G]=O.useState(m),U=O.useCallback(()=>{const fe=P.current;if(!fe)return;const de=V(fe);de.top!==null&&(fe.style.top=de.top),de.left!==null&&(fe.style.left=de.left),fe.style.transformOrigin=de.transformOrigin,G(!0)},[V]);O.useEffect(()=>(A&&window.addEventListener("scroll",U),()=>window.removeEventListener("scroll",U)),[l,A,U]);const B=(fe,de)=>{C&&C(fe,de),U()},j=()=>{G(!1)};O.useEffect(()=>{m&&U()}),O.useImperativeHandle(s,()=>m?{updatePosition:()=>{U()}}:null,[m,U]),O.useEffect(()=>{if(!m)return;const fe=av(()=>{U()}),de=Da(l);return de.addEventListener("resize",fe),()=>{fe.clear(),de.removeEventListener("resize",fe)}},[l,m,U]);let X=w;w==="auto"&&!b.muiSupportAuto&&(X=void 0);const W=p||(l?on(PS(l)).body:void 0),ee=(i=x==null?void 0:x.root)!=null?i:jne,te=(a=x==null?void 0:x.paper)!=null?a:D4,ie=Ra({elementType:te,externalSlotProps:F({},I,{style:L?I.style:F({},I.style,{opacity:0})}),additionalProps:{elevation:v,ref:k},ownerState:R,className:Ce(z.paper,I==null?void 0:I.className)}),re=Ra({elementType:ee,externalSlotProps:(S==null?void 0:S.root)||{},externalForwardedProps:M,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:W,open:m},ownerState:R,className:Ce(z.root,h)}),{slotProps:Q}=re,J=ye(re,Wne);return E.jsx(ee,F({},J,!vf(ee)&&{slotProps:Q,disableScrollLock:A},{children:E.jsx(b,F({appear:!0,in:m,onEntering:B,onExited:j,timeout:X},T,{children:E.jsx(te,F({},ie,{children:d}))}))}))}),qne=Yne;function Xne(e){return Ue("MuiMenu",e)}je("MuiMenu",["root","paper","list"]);const Zne=["onEntering"],Kne=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Qne={vertical:"top",horizontal:"right"},Jne={vertical:"top",horizontal:"left"},eie=e=>{const{classes:t}=e;return Ze({root:["root"],paper:["paper"],list:["list"]},Xne,t)},tie=ge(qne,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),rie=ge(D4,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),nie=ge($ne,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),iie=O.forwardRef(function(t,r){var n,i;const a=Ye({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=ye(a.TransitionProps,Zne),_=ye(a,Kne),b=Rf(),w=b.direction==="rtl",C=F({},a,{autoFocus:o,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:h,transitionDuration:v,TransitionProps:S,variant:m}),A=eie(C),T=o&&!u&&d,M=O.useRef(null),I=(V,L)=>{M.current&&M.current.adjustStyleForScrollbar(V,b),g&&g(V,L)},P=V=>{V.key==="Tab"&&(V.preventDefault(),f&&f(V,"tabKeyDown"))};let k=-1;O.Children.map(s,(V,L)=>{O.isValidElement(V)&&(V.props.disabled||(m==="selectedMenu"&&V.props.selected||k===-1)&&(k=L))});const R=(n=y.paper)!=null?n:rie,z=(i=x.paper)!=null?i:h,$=Ra({elementType:y.root,externalSlotProps:x.root,ownerState:C,className:[A.root,l]}),N=Ra({elementType:R,externalSlotProps:z,ownerState:C,className:A.paper});return E.jsx(tie,F({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Qne:Jne,slots:{paper:R,root:y.root},slotProps:{root:$,paper:N},open:d,ref:r,transitionDuration:v,TransitionProps:F({onEntering:I},S),ownerState:C},_,{classes:p,children:E.jsx(nie,F({onKeyDown:P,actions:M,autoFocus:o&&(k===-1||u),autoFocusItem:T,variant:m},c,{className:Ce(A.list,c.className),children:s}))}))}),aie=iie;function oie(e){return Ue("MuiNativeSelect",e)}const sie=je("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),s2=sie,lie=["className","disabled","error","IconComponent","inputRef","variant"],uie=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${Me(r)}`,a&&"iconOpen",n&&"disabled"]};return Ze(s,oie,t)},R4=({ownerState:e,theme:t})=>F({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":F({},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"},[`&.${s2.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}}),cie=ge("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:wo,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${s2.multiple}`]:t.multiple}]}})(R4),L4=({ownerState:e,theme:t})=>F({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${s2.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),fie=ge("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Me(r.variant)}`],r.open&&t.iconOpen]}})(L4),die=O.forwardRef(function(t,r){const{className:n,disabled:i,error:a,IconComponent:o,inputRef:s,variant:l="standard"}=t,u=ye(t,lie),c=F({},t,{disabled:i,variant:l,error:a}),f=uie(c);return E.jsxs(O.Fragment,{children:[E.jsx(cie,F({ownerState:c,className:Ce(f.select,n),disabled:i,ref:s||r},u)),t.multiple?null:E.jsx(fie,{as:o,ownerState:c,className:f.icon})]})}),hie=die;var nR;const pie=["children","classes","className","label","notched"],vie=ge("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%"}),gie=ge("legend")(({ownerState:e,theme:t})=>F({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&&F({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 mie(e){const{className:t,label:r,notched:n}=e,i=ye(e,pie),a=r!=null&&r!=="",o=F({},e,{notched:n,withLabel:a});return E.jsx(vie,F({"aria-hidden":!0,className:t,ownerState:o},i,{children:E.jsx(gie,{ownerState:o,children:a?E.jsx("span",{children:r}):nR||(nR=E.jsx("span",{className:"notranslate",children:"​"}))})}))}const yie=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],xie=e=>{const{classes:t}=e,n=Ze({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},zte,t);return F({},t,n)},Sie=ge(X1,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Y1})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return F({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ko.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ko.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${ko.focused} .${ko.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ko.error} .${ko.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ko.disabled} .${ko.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&F({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),bie=ge(mie,{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}}),_ie=ge(Z1,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:q1})(({theme:e,ownerState:t})=>F({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})),E4=O.forwardRef(function(t,r){var n,i,a,o,s;const l=Ye({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=ye(l,yie),y=xie(l),x=Of(),S=Ef({props:l,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=F({},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:Sie,w=(a=(o=v.input)!=null?o:u.Input)!=null?a:_ie;return E.jsx(o2,F({slots:{root:b,input:w},renderSuffix:C=>E.jsx(bie,{ownerState:_,className:y.notchedOutline,label:d!=null&&d!==""&&S.required?s||(s=E.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:F({},y,{notchedOutline:null})}))});E4.muiName="Input";const O4=E4;function wie(e){return Ue("MuiSelect",e)}const Cie=je("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),md=Cie;var iR;const Tie=["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"],Aie=ge("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${md.select}`]:t.select},{[`&.${md.select}`]:t[r.variant]},{[`&.${md.error}`]:t.error},{[`&.${md.multiple}`]:t.multiple}]}})(R4,{[`&.${md.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Mie=ge("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Me(r.variant)}`],r.open&&t.iconOpen]}})(L4),Iie=ge("input",{shouldForwardProp:e=>_J(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 aR(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Pie(e){return e==null||typeof e=="string"&&!e.trim()}const kie=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${Me(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Ze(s,wie,t)},Die=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:I,SelectDisplayProps:P={},tabIndex:k,value:R,variant:z="standard"}=t,$=ye(t,Tie),[N,V]=Py({controlled:R,default:f,name:"Select"}),[L,G]=Py({controlled:T,default:c,name:"Select"}),U=O.useRef(null),B=O.useRef(null),[j,X]=O.useState(null),{current:W}=O.useRef(T!=null),[ee,te]=O.useState(),ie=Mr(r,g),re=O.useCallback(Te=>{B.current=Te,Te&&X(Te)},[]),Q=j==null?void 0:j.parentNode;O.useImperativeHandle(ie,()=>({focus:()=>{B.current.focus()},node:U.current,value:N}),[N]),O.useEffect(()=>{c&&L&&j&&!W&&(te(s?null:Q.clientWidth),B.current.focus())},[j,s]),O.useEffect(()=>{o&&B.current.focus()},[o]),O.useEffect(()=>{if(!m)return;const Te=on(B.current).getElementById(m);if(Te){const ut=()=>{getSelection().isCollapsed&&B.current.focus()};return Te.addEventListener("click",ut),()=>{Te.removeEventListener("click",ut)}}},[m]);const J=(Te,ut)=>{Te?A&&A(ut):w&&w(ut),W||(te(s?null:Q.clientWidth),G(Te))},fe=Te=>{Te.button===0&&(Te.preventDefault(),B.current.focus(),J(!0,Te))},de=Te=>{J(!1,Te)},ke=O.Children.toArray(l),We=Te=>{const ut=ke.find(Rt=>Rt.props.value===Te.target.value);ut!==void 0&&(V(ut.props.value),b&&b(Te,ut))},Ge=Te=>ut=>{let Rt;if(ut.currentTarget.hasAttribute("tabindex")){if(x){Rt=Array.isArray(N)?N.slice():[];const pe=N.indexOf(Te.props.value);pe===-1?Rt.push(Te.props.value):Rt.splice(pe,1)}else Rt=Te.props.value;if(Te.props.onClick&&Te.props.onClick(ut),N!==Rt&&(V(Rt),b)){const pe=ut.nativeEvent||ut,De=new pe.constructor(pe.type,pe);Object.defineProperty(De,"target",{writable:!0,value:{value:Rt,name:S}}),b(De,Te)}x||J(!1,ut)}},at=Te=>{M||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Te.key)!==-1&&(Te.preventDefault(),J(!0,Te))},ot=j!==null&&L,It=Te=>{!ot&&_&&(Object.defineProperty(Te,"target",{writable:!0,value:{value:N,name:S}}),_(Te))};delete $["aria-invalid"];let Be,Pt;const Yt=[];let kt=!1;(Ly({value:N})||h)&&(I?Be=I(N):kt=!0);const K=ke.map(Te=>{if(!O.isValidElement(Te))return null;let ut;if(x){if(!Array.isArray(N))throw new Error(Cs(2));ut=N.some(Rt=>aR(Rt,Te.props.value)),ut&&kt&&Yt.push(Te.props.children)}else ut=aR(N,Te.props.value),ut&&kt&&(Pt=Te.props.children);return O.cloneElement(Te,{"aria-selected":ut?"true":"false",onClick:Ge(Te),onKeyUp:Rt=>{Rt.key===" "&&Rt.preventDefault(),Te.props.onKeyUp&&Te.props.onKeyUp(Rt)},role:"option",selected:ut,value:void 0,"data-value":Te.props.value})});kt&&(x?Yt.length===0?Be=null:Be=Yt.reduce((Te,ut,Rt)=>(Te.push(ut),Rt{const{classes:t}=e;return t},l2={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>wo(e)&&e!=="variant",slot:"Root"},Nie=ge(T4,l2)(""),zie=ge(O4,l2)(""),Bie=ge(b4,l2)(""),N4=O.forwardRef(function(t,r){const n=Ye({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:o={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=Vte,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=ye(n,Lie),T=y?hie:Rie,M=Of(),I=Ef({props:n,muiFormControl:M,states:["variant","error"]}),P=I.variant||C,k=F({},n,{variant:P,classes:o}),R=Oie(k),z=ye(R,Eie),$=d||{standard:E.jsx(Nie,{ownerState:k}),outlined:E.jsx(zie,{label:p,ownerState:k}),filled:E.jsx(Bie,{ownerState:k})}[P],N=Mr(r,$.ref);return E.jsx(O.Fragment,{children:O.cloneElement($,F({inputComponent:T,inputProps:F({children:a,error:I.error,IconComponent:c,variant:P,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:F({id:f},w)},h,{classes:h?yi(z,h.classes):z},d?d.props.inputProps:{})},m&&y&&P==="outlined"?{notched:!0}:{},{ref:N,className:Ce($.props.className,s,R.root)},!d&&{variant:P},A))})});N4.muiName="Select";const z4=N4;function Fie(e){return Ue("MuiTab",e)}const $ie=je("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),js=$ie,Vie=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Gie=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${Me(r)}`,n&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Ze(u,Fie,t)},Hie=ge(Lf,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${Me(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>F({},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,[`& > .${js.iconWrapper}`]:F({},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,[`&.${js.selected}`]:{opacity:1},[`&.${js.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${js.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${js.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${js.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${js.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)})),Wie=O.forwardRef(function(t,r){const n=Ye({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=ye(n,Vie),_=F({},n,{disabled:a,disableFocusRipple:o,selected:v,icon:!!l,iconPosition:u,label:!!f,fullWidth:s,textColor:m,wrapped:x}),b=Gie(_),w=l&&f&&O.isValidElement(l)?O.cloneElement(l,{className:Ce(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 E.jsxs(Hie,F({focusRipple:!o,className:Ce(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"?E.jsxs(O.Fragment,{children:[w,f]}):E.jsxs(O.Fragment,{children:[f,w]}),c]}))}),Uie=Wie,jie=O.createContext(),B4=jie;function Yie(e){return Ue("MuiTable",e)}je("MuiTable",["root","stickyHeader"]);const qie=["className","component","padding","size","stickyHeader"],Xie=e=>{const{classes:t,stickyHeader:r}=e;return Ze({root:["root",r&&"stickyHeader"]},Yie,t)},Zie=ge("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>F({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":F({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),oR="table",Kie=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTable"}),{className:i,component:a=oR,padding:o="normal",size:s="medium",stickyHeader:l=!1}=n,u=ye(n,qie),c=F({},n,{component:a,padding:o,size:s,stickyHeader:l}),f=Xie(c),d=O.useMemo(()=>({padding:o,size:s,stickyHeader:l}),[o,s,l]);return E.jsx(B4.Provider,{value:d,children:E.jsx(Zie,F({as:a,role:a===oR?null:"table",ref:r,className:Ce(f.root,i),ownerState:c},u))})}),Qie=Kie,Jie=O.createContext(),K1=Jie;function eae(e){return Ue("MuiTableBody",e)}je("MuiTableBody",["root"]);const tae=["className","component"],rae=e=>{const{classes:t}=e;return Ze({root:["root"]},eae,t)},nae=ge("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),iae={variant:"body"},sR="tbody",aae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableBody"}),{className:i,component:a=sR}=n,o=ye(n,tae),s=F({},n,{component:a}),l=rae(s);return E.jsx(K1.Provider,{value:iae,children:E.jsx(nae,F({className:Ce(l.root,i),as:a,ref:r,role:a===sR?null:"rowgroup",ownerState:s},o))})}),oae=aae;function sae(e){return Ue("MuiTableCell",e)}const lae=je("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),uae=lae,cae=["align","className","component","padding","scope","size","sortDirection","variant"],fae=e=>{const{classes:t,variant:r,align:n,padding:i,size:a,stickyHeader:o}=e,s={root:["root",r,o&&"stickyHeader",n!=="inherit"&&`align${Me(n)}`,i!=="normal"&&`padding${Me(i)}`,`size${Me(a)}`]};return Ze(s,sae,t)},dae=ge("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Me(r.size)}`],r.padding!=="normal"&&t[`padding${Me(r.padding)}`],r.align!=="inherit"&&t[`align${Me(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>F({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?e4(wr(e.palette.divider,1),.88):JV(wr(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",[`&.${uae.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})),hae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:o,padding:s,scope:l,size:u,sortDirection:c,variant:f}=n,d=ye(n,cae),h=O.useContext(B4),p=O.useContext(K1),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=F({},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=fae(x);let _=null;return c&&(_=c==="asc"?"ascending":"descending"),E.jsx(dae,F({as:g,ref:r,className:Ce(S.root,a),"aria-sort":_,scope:m,ownerState:x},d))}),lR=hae;function pae(e){return Ue("MuiTableContainer",e)}je("MuiTableContainer",["root"]);const vae=["className","component"],gae=e=>{const{classes:t}=e;return Ze({root:["root"]},pae,t)},mae=ge("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),yae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableContainer"}),{className:i,component:a="div"}=n,o=ye(n,vae),s=F({},n,{component:a}),l=gae(s);return E.jsx(mae,F({ref:r,as:a,className:Ce(l.root,i),ownerState:s},o))}),xae=yae;function Sae(e){return Ue("MuiTableHead",e)}je("MuiTableHead",["root"]);const bae=["className","component"],_ae=e=>{const{classes:t}=e;return Ze({root:["root"]},Sae,t)},wae=ge("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Cae={variant:"head"},uR="thead",Tae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableHead"}),{className:i,component:a=uR}=n,o=ye(n,bae),s=F({},n,{component:a}),l=_ae(s);return E.jsx(K1.Provider,{value:Cae,children:E.jsx(wae,F({as:a,className:Ce(l.root,i),ref:r,role:a===uR?null:"rowgroup",ownerState:s},o))})}),Aae=Tae;function Mae(e){return Ue("MuiToolbar",e)}je("MuiToolbar",["root","gutters","regular","dense"]);const Iae=["className","component","disableGutters","variant"],Pae=e=>{const{classes:t,disableGutters:r,variant:n}=e;return Ze({root:["root",!r&&"gutters",n]},Mae,t)},kae=ge("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})=>F({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),Dae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiToolbar"}),{className:i,component:a="div",disableGutters:o=!1,variant:s="regular"}=n,l=ye(n,Iae),u=F({},n,{component:a,disableGutters:o,variant:s}),c=Pae(u);return E.jsx(kae,F({as:a,className:Ce(c.root,i),ref:r,ownerState:u},l))}),Rae=Dae,Lae=W1(E.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Eae=W1(E.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Oae(e){return Ue("MuiTableRow",e)}const Nae=je("MuiTableRow",["root","selected","hover","head","footer"]),cR=Nae,zae=["className","component","hover","selected"],Bae=e=>{const{classes:t,selected:r,hover:n,head:i,footer:a}=e;return Ze({root:["root",r&&"selected",n&&"hover",i&&"head",a&&"footer"]},Oae,t)},Fae=ge("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,[`&.${cR.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${cR.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:wr(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}))`:wr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),fR="tr",$ae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableRow"}),{className:i,component:a=fR,hover:o=!1,selected:s=!1}=n,l=ye(n,zae),u=O.useContext(K1),c=F({},n,{component:a,hover:o,selected:s,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),f=Bae(c);return E.jsx(Fae,F({as:a,ref:r,className:Ce(f.root,i),role:a===fR?null:"row",ownerState:c},l))}),dR=$ae;function Vae(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Gae(e,t,r,n={},i=()=>{}){const{ease:a=Vae,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 Hae=["onChange"],Wae={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Uae(e){const{onChange:t}=e,r=ye(e,Hae),n=O.useRef(),i=O.useRef(null),a=()=>{n.current=i.current.offsetHeight-i.current.clientHeight};return ho(()=>{const o=av(()=>{const l=n.current;a(),l!==n.current&&t(n.current)}),s=Da(i.current);return s.addEventListener("resize",o),()=>{o.clear(),s.removeEventListener("resize",o)}},[t]),O.useEffect(()=>{a(),t(n.current)},[t]),E.jsx("div",F({style:Wae,ref:i},r))}function jae(e){return Ue("MuiTabScrollButton",e)}const Yae=je("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),qae=Yae,Xae=["className","slots","slotProps","direction","orientation","disabled"],Zae=e=>{const{classes:t,orientation:r,disabled:n}=e;return Ze({root:["root",r,n&&"disabled"]},jae,t)},Kae=ge(Lf,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>F({width:40,flexShrink:0,opacity:.8,[`&.${qae.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Qae=O.forwardRef(function(t,r){var n,i;const a=Ye({props:t,name:"MuiTabScrollButton"}),{className:o,slots:s={},slotProps:l={},direction:u}=a,c=ye(a,Xae),d=Rf().direction==="rtl",h=F({isRtl:d},a),p=Zae(h),v=(n=s.StartScrollButtonIcon)!=null?n:Lae,g=(i=s.EndScrollButtonIcon)!=null?i:Eae,m=Ra({elementType:v,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),y=Ra({elementType:g,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return E.jsx(Kae,F({component:"div",className:Ce(p.root,o),ref:r,role:null,ownerState:h,tabIndex:null},c,{children:u==="left"?E.jsx(v,F({},m)):E.jsx(g,F({},y))}))}),Jae=Qae;function eoe(e){return Ue("MuiTabs",e)}const toe=je("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),kS=toe,roe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],hR=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,pR=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,ag=(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}}},noe=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:i,scrollableY:a,centered:o,scrollButtonsHideMobile:s,classes:l}=e;return Ze({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"]},eoe,l)},ioe=ge("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${kS.scrollButtons}`]:t.scrollButtons},{[`& .${kS.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>F({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${kS.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),aoe=ge("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})=>F({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"})),ooe=ge("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})=>F({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),soe=ge("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>F({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})),loe=ge(Uae)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),vR={},uoe=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTabs"}),i=Rf(),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=Jae,scrollButtons:y="auto",selectionFollowsFocus:x,slots:S={},slotProps:_={},TabIndicatorProps:b={},TabScrollButtonProps:w={},textColor:C="primary",value:A,variant:T="standard",visibleScrollbar:M=!1}=n,I=ye(n,roe),P=T==="scrollable",k=g==="vertical",R=k?"scrollTop":"scrollLeft",z=k?"top":"left",$=k?"bottom":"right",N=k?"clientHeight":"clientWidth",V=k?"height":"width",L=F({},n,{component:d,allowScrollButtonsMobile:h,indicatorColor:p,orientation:g,vertical:k,scrollButtons:y,textColor:C,variant:T,visibleScrollbar:M,fixed:!P,hideScrollbar:P&&!M,scrollableX:P&&!k,scrollableY:P&&k,centered:u&&!P,scrollButtonsHideMobile:!h}),G=noe(L),U=Ra({elementType:S.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:L}),B=Ra({elementType:S.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:L}),[j,X]=O.useState(!1),[W,ee]=O.useState(vR),[te,ie]=O.useState(!1),[re,Q]=O.useState(!1),[J,fe]=O.useState(!1),[de,ke]=O.useState({overflow:"hidden",scrollbarWidth:0}),We=new Map,Ge=O.useRef(null),at=O.useRef(null),ot=()=>{const pe=Ge.current;let De;if(pe){const yt=pe.getBoundingClientRect();De={clientWidth:pe.clientWidth,scrollLeft:pe.scrollLeft,scrollTop:pe.scrollTop,scrollLeftNormalized:fZ(pe,i.direction),scrollWidth:pe.scrollWidth,top:yt.top,bottom:yt.bottom,left:yt.left,right:yt.right}}let qe;if(pe&&A!==!1){const yt=at.current.children;if(yt.length>0){const $r=yt[We.get(A)];qe=$r?$r.getBoundingClientRect():null}}return{tabsMeta:De,tabMeta:qe}},It=ya(()=>{const{tabsMeta:pe,tabMeta:De}=ot();let qe=0,yt;if(k)yt="top",De&&pe&&(qe=De.top-pe.top+pe.scrollTop);else if(yt=a?"right":"left",De&&pe){const Io=a?pe.scrollLeftNormalized+pe.clientWidth-pe.scrollWidth:pe.scrollLeft;qe=(a?-1:1)*(De[yt]-pe[yt]+Io)}const $r={[yt]:qe,[V]:De?De[V]:0};if(isNaN(W[yt])||isNaN(W[V]))ee($r);else{const Io=Math.abs(W[yt]-$r[yt]),Ov=Math.abs(W[V]-$r[V]);(Io>=1||Ov>=1)&&ee($r)}}),Be=(pe,{animation:De=!0}={})=>{De?Gae(R,Ge.current,pe,{duration:i.transitions.duration.standard}):Ge.current[R]=pe},Pt=pe=>{let De=Ge.current[R];k?De+=pe:(De+=pe*(a?-1:1),De*=a&&IV()==="reverse"?-1:1),Be(De)},Yt=()=>{const pe=Ge.current[N];let De=0;const qe=Array.from(at.current.children);for(let yt=0;ytpe){yt===0&&(De=pe);break}De+=$r[N]}return De},kt=()=>{Pt(-1*Yt())},K=()=>{Pt(Yt())},le=O.useCallback(pe=>{ke({overflow:null,scrollbarWidth:pe})},[]),Re=()=>{const pe={};pe.scrollbarSizeListener=P?E.jsx(loe,{onChange:le,className:Ce(G.scrollableX,G.hideScrollbar)}):null;const qe=P&&(y==="auto"&&(te||re)||y===!0);return pe.scrollButtonStart=qe?E.jsx(m,F({slots:{StartScrollButtonIcon:S.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:U},orientation:g,direction:a?"right":"left",onClick:kt,disabled:!te},w,{className:Ce(G.scrollButtons,w.className)})):null,pe.scrollButtonEnd=qe?E.jsx(m,F({slots:{EndScrollButtonIcon:S.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:B},orientation:g,direction:a?"left":"right",onClick:K,disabled:!re},w,{className:Ce(G.scrollButtons,w.className)})):null,pe},_e=ya(pe=>{const{tabsMeta:De,tabMeta:qe}=ot();if(!(!qe||!De)){if(qe[z]De[$]){const yt=De[R]+(qe[$]-De[$]);Be(yt,{animation:pe})}}}),he=ya(()=>{P&&y!==!1&&fe(!J)});O.useEffect(()=>{const pe=av(()=>{Ge.current&&It()}),De=Da(Ge.current);De.addEventListener("resize",pe);let qe;return typeof ResizeObserver<"u"&&(qe=new ResizeObserver(pe),Array.from(at.current.children).forEach(yt=>{qe.observe(yt)})),()=>{pe.clear(),De.removeEventListener("resize",pe),qe&&qe.disconnect()}},[It]),O.useEffect(()=>{const pe=Array.from(at.current.children),De=pe.length;if(typeof IntersectionObserver<"u"&&De>0&&P&&y!==!1){const qe=pe[0],yt=pe[De-1],$r={root:Ge.current,threshold:.99},Io=Xx=>{ie(!Xx[0].isIntersecting)},Ov=new IntersectionObserver(Io,$r);Ov.observe(qe);const x7=Xx=>{Q(!Xx[0].isIntersecting)},XP=new IntersectionObserver(x7,$r);return XP.observe(yt),()=>{Ov.disconnect(),XP.disconnect()}}},[P,y,J,c==null?void 0:c.length]),O.useEffect(()=>{X(!0)},[]),O.useEffect(()=>{It()}),O.useEffect(()=>{_e(vR!==W)},[_e,W]),O.useImperativeHandle(l,()=>({updateIndicator:It,updateScrollButtons:he}),[It,he]);const Vt=E.jsx(soe,F({},b,{className:Ce(G.indicator,b.className),ownerState:L,style:F({},W,b.style)}));let Sr=0;const Te=O.Children.map(c,pe=>{if(!O.isValidElement(pe))return null;const De=pe.props.value===void 0?Sr:pe.props.value;We.set(De,Sr);const qe=De===A;return Sr+=1,O.cloneElement(pe,F({fullWidth:T==="fullWidth",indicator:qe&&!j&&Vt,selected:qe,selectionFollowsFocus:x,onChange:v,textColor:C,value:De},Sr===1&&A===!1&&!pe.props.tabIndex?{tabIndex:0}:{}))}),ut=pe=>{const De=at.current,qe=on(De).activeElement;if(qe.getAttribute("role")!=="tab")return;let $r=g==="horizontal"?"ArrowLeft":"ArrowUp",Io=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&a&&($r="ArrowRight",Io="ArrowLeft"),pe.key){case $r:pe.preventDefault(),ag(De,qe,pR);break;case Io:pe.preventDefault(),ag(De,qe,hR);break;case"Home":pe.preventDefault(),ag(De,null,hR);break;case"End":pe.preventDefault(),ag(De,null,pR);break}},Rt=Re();return E.jsxs(ioe,F({className:Ce(G.root,f),ownerState:L,ref:r,as:d},I,{children:[Rt.scrollButtonStart,Rt.scrollbarSizeListener,E.jsxs(aoe,{className:G.scroller,ownerState:L,style:{overflow:de.overflow,[k?`margin${a?"Left":"Right"}`:"marginBottom"]:M?void 0:-de.scrollbarWidth},ref:Ge,children:[E.jsx(ooe,{"aria-label":o,"aria-labelledby":s,"aria-orientation":g==="vertical"?"vertical":null,className:G.flexContainer,ownerState:L,onKeyDown:ut,ref:at,role:"tablist",children:Te}),j&&Vt]}),Rt.scrollButtonEnd]}))}),coe=uoe;function foe(e){return Ue("MuiTextField",e)}je("MuiTextField",["root"]);const doe=["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"],hoe={standard:T4,filled:b4,outlined:O4},poe=e=>{const{classes:t}=e;return Ze({root:["root"]},foe,t)},voe=ge(_4,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),goe=O.forwardRef(function(t,r){const n=Ye({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:I,required:P=!1,rows:k,select:R=!1,SelectProps:z,type:$,value:N,variant:V="outlined"}=n,L=ye(n,doe),G=F({},n,{autoFocus:a,color:l,disabled:c,error:f,fullWidth:h,multiline:w,required:P,select:R,variant:V}),U=poe(G),B={};V==="outlined"&&(g&&typeof g.shrink<"u"&&(B.notched=g.shrink),B.label=S),R&&((!z||!z.native)&&(B.id=void 0),B["aria-describedby"]=void 0);const j=AV(v),X=p&&j?`${j}-helper-text`:void 0,W=S&&j?`${j}-label`:void 0,ee=hoe[V],te=E.jsx(ee,F({"aria-describedby":X,autoComplete:i,autoFocus:a,defaultValue:u,fullWidth:h,multiline:w,name:C,rows:k,maxRows:_,minRows:b,type:$,value:N,id:j,inputRef:x,onBlur:A,onChange:T,onFocus:M,placeholder:I,inputProps:m},B,y));return E.jsxs(voe,F({className:Ce(U.root,s),disabled:c,error:f,fullWidth:h,ref:r,required:P,color:l,variant:V,ownerState:G},L,{children:[S!=null&&S!==""&&E.jsx(A4,F({htmlFor:j,id:W},g,{children:S})),R?E.jsx(z4,F({"aria-describedby":X,id:j,labelId:W,value:N,input:te},z,{children:o})):te,p&&E.jsx(Fre,F({id:X},d,{children:p}))]}))}),Fl=goe;var u2={},F4={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})(F4);var Q1=F4.exports,DS={};const moe=b7(DJ);var gR;function J1(){return gR||(gR=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=moe}(DS)),DS}var yoe=Q1;Object.defineProperty(u2,"__esModule",{value:!0});var $4=u2.default=void 0,xoe=yoe(J1()),Soe=E,boe=(0,xoe.default)((0,Soe.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");$4=u2.default=boe;function c2({open:e,onClose:t,children:r}){return E.jsx(y4,{onClose:t,open:e,children:E.jsxs(ht,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"md",display:"flex",flexDirection:"column",rowGap:2,bgcolor:"background.paper",boxShadow:24,borderRadius:2,p:4},children:[E.jsx(v4,{color:"inherit",onClick:t,sx:{position:"absolute",top:1,right:1},children:E.jsx($4,{})}),r]})})}const Vs=dV,_oe=CV;function $l(e){const t=_oe();return O.useCallback(r=>{t(e(r))},[e,t])}const woe=[{name:"Carl Byström",website:"http://cgbystrom.com/",social:{handle:"@cgbystrom",link:"https://twitter.com/cgbystrom/"}},{name:"Jonatan Heyman",website:"http://heyman.info/",social:{handle:"@jonatanheyman",link:"https://twitter.com/jonatanheyman/"}},{name:"Joakim Hamrén",social:{handle:"@jahaaja",link:"https://twitter.com/Jahaaja/"}},{name:"ESN Social Software",website:"http://esn.me/",social:{handle:"@uprise_ea",link:"https://twitter.com/uprise_ea"}},{name:"Hugo Heyman",social:{handle:"@hugoheyman",link:"https://twitter.com/hugoheyman/"}}];function Coe(){const[e,t]=O.useState(!1),r=Vs(({swarm:n})=>n.version);return E.jsxs(E.Fragment,{children:[E.jsx(ht,{sx:{display:"flex",justifyContent:"flex-end"},children:E.jsx(Au,{color:"inherit",onClick:()=>t(!0),variant:"text",children:"About"})}),E.jsxs(c2,{onClose:()=>t(!1),open:e,children:[E.jsxs("div",{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"About"}),E.jsx(Xe,{component:"p",variant:"subtitle1",children:"The original idea for Locust was Carl Byström's who made a first proof of concept in June 2010. Jonatan Heyman picked up Locust in January 2011, implemented the current concept of Locust classes and made it work distributed across multiple machines."}),E.jsx(Xe,{component:"p",sx:{mt:2},variant:"subtitle1",children:"Jonatan, Carl and Joakim Hamrén has continued the development of Locust at their job, ESN Social Software, who have adopted Locust as an inhouse Open Source project."})]}),E.jsxs("div",{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"Authors and Copyright"}),E.jsx(ht,{sx:{display:"flex",flexDirection:"column",rowGap:.5},children:woe.map(({name:n,website:i,social:{handle:a,link:o}},s)=>E.jsxs("div",{children:[i?E.jsx(li,{href:i,children:n}):n,E.jsxs(ht,{sx:{display:"inline",ml:.5},children:["(",E.jsx(li,{href:o,children:a}),")"]})]},`author-${s}`))})]}),E.jsxs("div",{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"License"}),E.jsx(Xe,{component:"p",variant:"subtitle1",children:"Open source licensed under the MIT license."})]}),E.jsxs("div",{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"Version"}),E.jsx(li,{href:`https://github.com/locustio/locust/releases/tag/${r}`,children:r})]}),E.jsxs("div",{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"Website"}),E.jsx(li,{href:"https://locust.io/",children:"https://locust.io"})]})]})]})}function Toe(){return E.jsx(ht,{component:"nav",sx:{position:"fixed",bottom:0,width:"100%"},children:E.jsx(Nf,{maxWidth:"xl",sx:{display:"flex",justifyContent:"flex-end"},children:E.jsx(Coe,{})})})}var f2={},Aoe=Q1;Object.defineProperty(f2,"__esModule",{value:!0});var V4=f2.default=void 0,Moe=Aoe(J1()),Ioe=E,Poe=(0,Moe.default)((0,Ioe.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");V4=f2.default=Poe;var d2={},koe=Q1;Object.defineProperty(d2,"__esModule",{value:!0});var G4=d2.default=void 0,Doe=koe(J1()),Roe=E,Loe=(0,Doe.default)((0,Roe.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");G4=d2.default=Loe;const Ma={DARK:"dark",LIGHT:"light"},H4=localStorage.theme===Ma.DARK||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?Ma.DARK:Ma.LIGHT;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:ex(e)?2:tx(e)?3:0}function gs(e,t){return As(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Dm(e,t){return As(e)===2?e.get(t):e[t]}function W4(e,t,r){var n=As(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function U4(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function ex(e){return $oe&&e instanceof Map}function tx(e){return Voe&&e instanceof Set}function bl(e){return e.o||e.t}function h2(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Y4(e);delete t[Ft];for(var r=qc(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=Ooe),Object.freeze(e),t&&Ts(e,function(r,n){return p2(n,!0)},!0)),e}function Ooe(){Rr(2)}function v2(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ia(e){var t=RC[e];return t||Rr(18,e),t}function j4(e,t){RC[e]||(RC[e]=t)}function PC(){return yp}function RS(e,t){t&&(Ia("Patches"),e.u=[],e.s=[],e.v=t)}function Ey(e){kC(e),e.p.forEach(Noe),e.p=null}function kC(e){e===yp&&(yp=e.l)}function mR(e){return yp={p:[],l:yp,h:e,m:!0,_:0}}function Noe(e){var t=e[Ft];t.i===0||t.i===1?t.j():t.g=!0}function LS(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||Ia("ES5").S(t,e,n),n?(r[Ft].P&&(Ey(t),Rr(4)),qi(e)&&(e=Oy(t,e),t.l||Ny(t,e)),t.u&&Ia("Patches").M(r[Ft].t,e,t.u,t.s)):e=Oy(t,r,[]),Ey(t),t.u&&t.v(t.u,t.s),e!==m2?e:void 0}function Oy(e,t,r){if(v2(t))return t;var n=t[Ft];if(!n)return Ts(t,function(s,l){return yR(e,n,t,s,l,r)},!0),t;if(n.A!==e)return t;if(!n.P)return Ny(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=h2(n.k):n.o,a=i,o=!1;n.i===3&&(a=new Set(i),i.clear(),o=!0),Ts(a,function(s,l){return yR(e,n,i,s,l,r,o)}),Ny(e,i,!1),r&&e.u&&Ia("Patches").N(n,r,e.u,e.s)}return n.o}function yR(e,t,r,n,i,a,o){if(Yi(i)){var s=Oy(e,i,a&&t&&t.i!==3&&!gs(t.R,n)?a.concat(n):void 0);if(W4(r,n,s),!Yi(s))return;e.m=!1}else o&&r.add(i);if(qi(i)&&!v2(i)){if(!e.h.D&&e._<1)return;Oy(e,i),t&&t.A.l||Ny(e,i)}}function Ny(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&p2(t,r)}function ES(e,t){var r=e[Ft];return(r?bl(r):e)[t]}function xR(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 Zo(e){e.P||(e.P=!0,e.l&&Zo(e.l))}function OS(e){e.o||(e.o=h2(e.t))}function DC(e,t,r){var n=ex(t)?Ia("MapSet").F(t,r):tx(t)?Ia("MapSet").T(t,r):e.O?function(i,a){var o=Array.isArray(i),s={i:o?1:0,A:a?a.A:PC(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},l=s,u=xp;o&&(l=[s],u=eh);var c=Proxy.revocable(l,u),f=c.revoke,d=c.proxy;return s.k=d,s.j=f,d}(t,r):Ia("ES5").J(t,r);return(r?r.A:PC()).p.push(n),n}function zoe(e){return Yi(e)||Rr(22,e),function t(r){if(!qi(r))return r;var n,i=r[Ft],a=As(r);if(i){if(!i.P&&(i.i<4||!Ia("ES5").K(i)))return i.t;i.I=!0,n=SR(r,a),i.I=!1}else n=SR(r,a);return Ts(n,function(o,s){i&&Dm(i.t,o)===s||W4(n,o,t(s))}),a===3?new Set(n):n}(e)}function SR(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return h2(e)}function Boe(){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[Ft];return xp.get(l,a)},set:function(l){var u=this[Ft];xp.set(u,a,l)}},s}function t(a){for(var o=a.length-1;o>=0;o--){var s=a[o][Ft];if(!s.P)switch(s.i){case 5:n(s)&&Zo(s);break;case 4:r(s)&&Zo(s)}}}function r(a){for(var o=a.t,s=a.k,l=qc(s),u=l.length-1;u>=0;u--){var c=l[u];if(c!==Ft){var f=o[c];if(f===void 0&&!gs(o,c))return!0;var d=s[c],h=d&&d[Ft];if(h?h.t!==f:!U4(d,f))return!0}}var p=!!o[Ft];return l.length!==qc(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=Ia("Patches").$;return Yi(r)?o(r,n):this.produce(r,function(s){return o(s,n)})},e}(),Wn=new Hoe,uv=Wn.produce,q4=Wn.produceWithPatches.bind(Wn);Wn.setAutoFreeze.bind(Wn);Wn.setUseProxies.bind(Wn);var wR=Wn.applyPatches.bind(Wn);Wn.createDraft.bind(Wn);Wn.finishDraft.bind(Wn);function Sp(e){"@babel/helpers - typeof";return Sp=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},Sp(e)}function Woe(e,t){if(Sp(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Sp(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Uoe(e){var t=Woe(e,"string");return Sp(t)==="symbol"?t:String(t)}function joe(e,t,r){return t=Uoe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CR(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 TR(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(jr(1));return r(X4)(e,t)}if(typeof e!="function")throw new Error(jr(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(jr(3));return a}function f(v){if(typeof v!="function")throw new Error(jr(4));if(l)throw new Error(jr(5));var g=!0;return u(),s.push(v),function(){if(g){if(l)throw new Error(jr(6));g=!1,u();var y=s.indexOf(v);s.splice(y,1),o=null}}}function d(v){if(!Yoe(v))throw new Error(jr(7));if(typeof v.type>"u")throw new Error(jr(8));if(l)throw new Error(jr(9));try{l=!0,a=i(a,v)}finally{l=!1}for(var g=o=s,m=0;m"u")throw new Error(jr(12));if(typeof r(void 0,{type:zy.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(jr(13))})}function y2(e){for(var t=Object.keys(e),r={},n=0;n"u")throw u&&u.type,new Error(jr(14));f[h]=g,c=c||g!==v}return c=c||a.length!==Object.keys(l).length,c?f:l}}function By(){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 Fy}function i(s,l){n(s)===Fy&&(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 Qoe=function(t,r){return t===r};function Joe(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 cv(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function x2(){for(var e=[],t=0;t{e.isDarkMode=t}}}),Mse=rG.actions,Ise=rG.reducer;function Pse(){const e=Vs(({theme:{isDarkMode:n}})=>n),t=$l(Mse.setIsDarkMode);O.useEffect(()=>{t(H4===Ma.DARK)},[]);const r=()=>{localStorage.theme=e?Ma.LIGHT:Ma.DARK,t(!e)};return E.jsx(v4,{color:"inherit",onClick:r,children:e?E.jsx(G4,{}):E.jsx(V4,{})})}const En={READY:"ready",RUNNING:"running",STOPPED:"stopped",SPAWNING:"spawning",CLEANUP:"cleanup",STOPPING:"stopping",MISSING:"missing"};function kse({isDistributed:e,state:t,host:r,totalRps:n,failRatio:i,userCount:a,workerCount:o}){return E.jsxs(ht,{sx:{display:"flex",columnGap:2},children:[E.jsxs(ht,{sx:{display:"flex",flexDirection:"column"},children:[E.jsx(Xe,{variant:"button",children:"Host"}),E.jsx(Xe,{children:r})]}),E.jsx(vd,{flexItem:!0,orientation:"vertical"}),E.jsxs(ht,{sx:{display:"flex",flexDirection:"column"},children:[E.jsx(Xe,{variant:"button",children:"Status"}),E.jsx(Xe,{variant:"button",children:t})]}),t===En.RUNNING&&E.jsxs(E.Fragment,{children:[E.jsx(vd,{flexItem:!0,orientation:"vertical"}),E.jsxs(ht,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[E.jsx(Xe,{variant:"button",children:"Users"}),E.jsx(Xe,{variant:"button",children:a})]})]}),e&&E.jsxs(E.Fragment,{children:[E.jsx(vd,{flexItem:!0,orientation:"vertical"}),E.jsxs(ht,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[E.jsx(Xe,{variant:"button",children:"Workers"}),E.jsx(Xe,{variant:"button",children:o})]})]}),E.jsx(vd,{flexItem:!0,orientation:"vertical"}),E.jsxs(ht,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[E.jsx(Xe,{variant:"button",children:"RPS"}),E.jsx(Xe,{variant:"button",children:n})]}),E.jsx(vd,{flexItem:!0,orientation:"vertical"}),E.jsxs(ht,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[E.jsx(Xe,{variant:"button",children:"Failures"}),E.jsx(Xe,{variant:"button",children:`${i}%`})]})]})}const Dse=({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}),Rse=Xn(Dse)(kse);function nG({children:e,onSubmit:t}){const r=O.useCallback(async n=>{n.preventDefault();const i=new FormData(n.target),a={};for(const[o,s]of i.entries())a.hasOwnProperty(o)?(Array.isArray(a[o])||(a[o]=[a[o]]),a[o].push(s)):a[o]=s;t(a)},[t]);return E.jsx("form",{onSubmit:r,children:e})}var $y=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 Gse(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var NR=Ms;function oG(e,t){if(e===t||!(NR(e)&&NR(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},Wse=function(e){return/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"")};function BR(e){if(!Ms(e))return e;for(var t=ir({},e),r=0,n=Object.entries(t);r"u"&&s===zR&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),function(x,S){return Hy(t,null,function(){var _,b,w,C,A,T,M,I,P,k,R,z,$,N,V,L,G,U,B,j,X,W,ee,te,ie,re,Q,J,fe,de,ke,We,Ge,at,ot,It;return $y(this,function(Be){switch(Be.label){case 0:return _=S.signal,b=S.getState,w=S.extra,C=S.endpoint,A=S.forced,T=S.type,I=typeof x=="string"?{url:x}:x,P=I.url,k=I.headers,R=k===void 0?new Headers(m.headers):k,z=I.params,$=z===void 0?void 0:z,N=I.responseHandler,V=N===void 0?v??"json":N,L=I.validateStatus,G=L===void 0?g??Hse:L,U=I.timeout,B=U===void 0?p:U,j=ER(I,["url","headers","params","responseHandler","validateStatus","timeout"]),X=ir(xa(ir({},m),{signal:_}),j),R=new Headers(BR(R)),W=X,[4,a(R,{getState:b,extra:w,endpoint:C,forced:A,type:T})];case 1:W.headers=Be.sent()||R,ee=function(Pt){return typeof Pt=="object"&&(Ms(Pt)||Array.isArray(Pt)||typeof Pt.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)),$&&(te=~P.indexOf("?")?"&":"?",ie=l?l($):new URLSearchParams(BR($)),P+=te+ie),P=$se(n,P),re=new Request(P,X),Q=re.clone(),M={request:Q},fe=!1,de=B&&setTimeout(function(){fe=!0,S.abort()},B),Be.label=2;case 2:return Be.trys.push([2,4,5,6]),[4,s(re)];case 3:return J=Be.sent(),[3,6];case 4:return ke=Be.sent(),[2,{error:{status:fe?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(ke)},meta:M}];case 5:return de&&clearTimeout(de),[7];case 6:We=J.clone(),M.response=We,at="",Be.label=7;case 7:return Be.trys.push([7,9,,10]),[4,Promise.all([y(J,V).then(function(Pt){return Ge=Pt},function(Pt){return ot=Pt}),We.text().then(function(Pt){return at=Pt},function(){})])];case 8:if(Be.sent(),ot)throw ot;return[3,10];case 9:return It=Be.sent(),[2,{error:{status:"PARSING_ERROR",originalStatus:J.status,data:at,error:String(It)},meta:M}];case 10:return[2,G(J,Ge)?{data:Ge,meta:M}:{error:{status:J.status,data:Ge},meta:M}]}})})};function y(x,S){return Hy(this,null,function(){var _;return $y(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 FR=function(){function e(t,r){r===void 0&&(r=void 0),this.value=t,this.meta=r}return e}(),b2=Tn("__rtkq/focused"),sG=Tn("__rtkq/unfocused"),_2=Tn("__rtkq/online"),lG=Tn("__rtkq/offline"),La;(function(e){e.query="query",e.mutation="mutation"})(La||(La={}));function uG(e){return e.type===La.query}function jse(e){return e.type===La.mutation}function cG(e,t,r,n,i,a){return Yse(e)?e(t,r,n,i).map(NC).map(a):Array.isArray(e)?e.map(NC).map(a):[]}function Yse(e){return typeof e=="function"}function NC(e){return typeof e=="string"?{type:e}:e}function $S(e){return e!=null}var _p=Symbol("forceQueryFn"),zC=function(e){return typeof e[_p]=="function"};function qse(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 Fy(Fy([],S(o)),S(s)).filter(FS)}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(FS)}}function m(){return function(S){return Object.values(s.get(S)||{}).filter(FS)}}function y(S,_){var b=function(w,C){var A=C===void 0?{}:C,T=A.subscribe,M=T===void 0?!0:T,I=A.forceRefetch,P=A.subscriptionOptions,k=bp,R=A[k];return function(z,$){var N,V,L=t({queryArgs:w,endpointDefinition:_,endpointName:S}),G=r((N={type:"query",subscribe:M,forceRefetch:I,subscriptionOptions:P,endpointName:S,originalArgs:w,queryCacheKey:L},N[bp]=R,N)),U=i.endpoints[S].select(w),B=z(G),j=U($()),X=B.requestId,W=B.abort,ee=j.requestId!==X,te=(V=o.get(z))==null?void 0:V[L],ie=function(){return U($())},re=Object.assign(R?B.then(ie):ee&&!te?Promise.resolve(j):Promise.all([te,B]).then(ie),{arg:w,requestId:X,subscriptionOptions:P,queryCacheKey:L,abort:W,unwrap:function(){return Vy(this,null,function(){var J;return By(this,function(fe){switch(fe.label){case 0:return[4,re];case 1:if(J=fe.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:L,requestId:X}))},updateSubscriptionOptions:function(J){re.subscriptionOptions=J,z(f({endpointName:S,requestId:X,queryCacheKey:L,options:J}))}});if(!te&&!ee&&!R){var Q=o.get(z)||{};Q[L]=re,o.set(z,Q),re.then(function(){delete Q[L],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,I){var P=n({type:"mutation",endpointName:S,originalArgs:_,track:A,fixedCacheKey:T}),k=M(P),R=k.requestId,z=k.abort,$=k.unwrap,N=k.unwrap().then(function(U){return{data:U}}).catch(function(U){return{error:U}}),V=function(){M(c({requestId:R,fixedCacheKey:T}))},L=Object.assign(N,{arg:k.arg,requestId:R,abort:z,unwrap:$,unsubscribe:V,reset:V}),G=s.get(M)||{};return s.set(M,G),G[R]=L,L.then(function(){delete G[R],Object.keys(G).length||s.delete(M)}),T&&(G[T]=L,L.then(function(){G[T]===L&&(delete G[T],Object.keys(G).length||s.delete(M))})),L}}}}function FR(e){return e}function jse(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(qi(T.data)){var I=Y4(T.data,_),P=I[1],k=I[2];(C=M.patches).push.apply(C,P),(A=M.inversePatches).push.apply(A,k)}else{var R=_(T.data);M.patches.push({op:"replace",path:[],value:R}),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[bp]=function(){return{data:_}},w)))}},c=function(x,S){return Vy(t,[x,S],function(_,b){var w,C,A,T,M,I,P,k,R,z,$,N,V,L,G,U,B,j,X=b.signal,W=b.abort,ee=b.rejectWithValue,te=b.fulfillWithValue,ie=b.dispatch,re=b.getState,Q=b.extra;return By(this,function(J){switch(J.label){case 0:w=i[_.endpointName],J.label=1;case 1:return J.trys.push([1,8,,13]),C=FR,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"?_[bp]: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(fe){return n(fe,T,w.extraOptions)})];case 5:A=J.sent(),J.label=6;case 6:if(typeof process<"u",A.error)throw new BR(A.error,A.meta);return $=te,[4,C(A.data,A.meta,_.originalArgs)];case 7:return[2,$.apply(void 0,[J.sent(),(B={fulfilledTimeStamp:Date.now(),baseQueryMeta:A.meta},B[eh]=!0,B)])];case 8:if(N=J.sent(),V=N,!(V instanceof BR))return[3,12];L=FR,w.query&&w.transformErrorResponse&&(L=w.transformErrorResponse),J.label=9;case 9:return J.trys.push([9,11,,12]),G=ee,[4,L(V.value,V.meta,_.originalArgs)];case 10:return[2,G.apply(void 0,[J.sent(),(j={baseQueryMeta:V.meta},j[eh]=!0,j)])];case 11:return U=J.sent(),V=U,[3,12];case 12:throw typeof process<"u",console.error(V),V;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,I=(C=x.forceRefetch)!=null?C:x.subscribe&&T;return I?I===!0||(Number(new Date)-Number(M))/1e3>=I:!1}var d=kR(r+"/executeQuery",c,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[eh]=!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,I=x.originalArgs,P=T==null?void 0:T.originalArgs,k=i[x.endpointName];return NC(x)?!0:(T==null?void 0:T.status)==="pending"?!1:f(x,A)||lG(k)&&((C=k==null?void 0:k.forceRefetch)!=null&&C.call(k,{currentArg:I,previousArg:P,endpointState:T,state:A}))?!0:!M},dispatchConditionRejection:!0}),h=kR(r+"/executeMutation",c,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[eh]=!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(k){return k===void 0&&(k=!0),o.endpoints[x].initiate(S,{forceRefetch:k})},M=o.endpoints[x].select(S)(w());if(C)b(T());else if(A){var I=M==null?void 0:M.fulfilledTimeStamp;if(!I){b(T());return}var P=(Number(new Date)-Number(new Date(I)))/1e3>=A;P&&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:Dh(y2(x),m(S)),matchFulfilled:Dh(Tu(x),m(S)),matchRejected:Dh(Sp(x),m(S))}}return{queryThunk:d,mutationThunk:h,prefetch:g,updateQueryData:l,upsertQueryData:u,patchQueryData:s,buildMatchThunkActions:y}}function cG(e,t,r,n){return uG(r[e.meta.arg.endpointName][t],Tu(e)?e.payload:void 0,tx(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function ig(e,t,r){var n=e[t];n&&r(n)}function _p(e){var t;return(t="arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)!=null?t:e.requestId}function $R(e,t,r){var n=e[_p(t)];n&&r(n)}var gd={};function Yse(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=Tn(t+"/resetApiState"),d=Bi({name:t+"/queries",initialState:gd,reducers:{removeQueryResult:{reducer:function(_,b){var w=b.payload.queryCacheKey;delete _[w]},prepare:BS()},queryResultPatched:function(_,b){var w=b.payload,C=w.queryCacheKey,A=w.patches;ig(_,C,function(T){T.data=_R(T.data,A.concat())})}},extraReducers:function(_){_.addCase(r.pending,function(b,w){var C=w.meta,A=w.meta.arg,T,M,I=NC(A);(A.subscribe||I)&&((M=b[T=A.queryCacheKey])!=null||(b[T]={status:Ht.uninitialized,endpointName:A.endpointName})),ig(b,A.queryCacheKey,function(P){P.status=Ht.pending,P.requestId=I&&P.requestId?P.requestId:C.requestId,A.originalArgs!==void 0&&(P.originalArgs=A.originalArgs),P.startedTimeStamp=C.startedTimeStamp})}).addCase(r.fulfilled,function(b,w){var C=w.meta,A=w.payload;ig(b,C.arg.queryCacheKey,function(T){var M;if(!(T.requestId!==C.requestId&&!NC(C.arg))){var I=a[C.arg.endpointName].merge;if(T.status=Ht.fulfilled,I)if(T.data!==void 0){var P=C.fulfilledTimeStamp,k=C.arg,R=C.baseQueryMeta,z=C.requestId,$=lv(T.data,function(N){return I(N,A,{arg:k.originalArgs,baseQueryMeta:R,fulfilledTimeStamp:P,requestId:z})});T.data=$}else T.data=A;else T.data=(M=a[C.arg.endpointName].structuralSharing)==null||M?aG(Yi(T.data)?Doe(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,I=w.error,P=w.payload;ig(b,T.queryCacheKey,function(k){if(!A){if(k.requestId!==M)return;k.status=Ht.rejected,k.error=P??I}})}).addMatcher(l,function(b,w){for(var C=s(w).queries,A=0,T=Object.entries(C);AArray.isArray(e)?e.length:Object.keys(e).length,Ale=e=>Tle(e)===0;function Mle(e,t){return{...e,...t}}const Ile=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},rx=(e,t)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:[...r[n]||[],i]}),e);function dG(e,t,r){return t&&(Array.isArray(t)?t.map(n=>dG(e,n,r)):typeof t=="object"?_2(t,r):t)}const _2=(e,t)=>Object.entries(e).reduce((r,[n,i])=>({...r,[t(n)]:dG(e,i,t)}),{}),hG=e=>e.replace(/_([a-z0-9])/g,(t,r)=>r.toUpperCase()),Ple=e=>e[0]===e[0].toUpperCase()?e:e.replace(/([a-z0-9])([A-Z0-9])/g,"$1_$2").toLowerCase(),$l=e=>_2(e,hG),kle=e=>_2(e,Ple),Dle=e=>e.replace(/([a-z0-9])([A-Z0-9])/g,"$1 $2").replace(/^./,t=>t.toUpperCase()),Rle=e=>Object.fromEntries(new URLSearchParams(e).entries()),Lle=(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]},zC=Cle({baseQuery:Gse(),endpoints:e=>({getStats:e.query({query:()=>"stats/requests",transformResponse:$l}),getTasks:e.query({query:()=>"tasks",transformResponse:$l}),getExceptions:e.query({query:()=>"exceptions",transformResponse:$l}),getLogs:e.query({query:()=>"logs",transformResponse:$l}),startSwarm:e.mutation({query:t=>({url:"swarm",method:"POST",body:Ile(kle(t)),headers:{"content-type":"application/x-www-form-urlencoded"}})})})}),{useGetStatsQuery:Ele,useGetTasksQuery:Ole,useGetExceptionsQuery:Nle,useGetLogsQuery:zle,useStartSwarmMutation:pG}=zC;function Ble({onSubmit:e,spawnRate:t,userCount:r}){const[n]=pG(),i=a=>{e(),n(a)};return E.jsxs(Lf,{maxWidth:"md",sx:{my:2},children:[E.jsx(Xe,{component:"h2",noWrap:!0,variant:"h6",children:"Edit running load test"}),E.jsx(rG,{onSubmit:i,children:E.jsxs(ht,{sx:{my:2,display:"flex",flexDirection:"column",rowGap:4},children:[E.jsx(Bl,{defaultValue:r||1,label:"Number of users (peak concurrency)",name:"userCount"}),E.jsx(Bl,{defaultValue:t||1,label:"Ramp Up (users started/second)",name:"spawnRate"}),E.jsx(Cu,{size:"large",type:"submit",variant:"contained",children:"Update Swarm"})]})})]})}const Fle=({swarm:{spawnRate:e,userCount:t}})=>({spawnRate:e,userCount:t}),$le=qn(Fle)(Ble);function Vle(){const[e,t]=O.useState(!1);return E.jsxs(E.Fragment,{children:[E.jsx(Cu,{color:"secondary",onClick:()=>t(!0),type:"button",variant:"contained",children:"Edit"}),E.jsx(u2,{onClose:()=>t(!1),open:e,children:E.jsx($le,{onSubmit:()=>t(!1)})})]})}var w2={},Gle=Z1;Object.defineProperty(w2,"__esModule",{value:!0});var C2=w2.default=void 0,Hle=Gle(K1()),Wle=E,Ule=(0,Hle.default)((0,Wle.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");C2=w2.default=Ule;function BC({label:e,name:t,options:r,multiple:n=!1,defaultValue:i,sx:a}){return E.jsxs(b4,{sx:a,children:[E.jsx(T4,{htmlFor:t,shrink:!0,children:e}),E.jsx(N4,{defaultValue:i||n&&r||r[0],id:t,label:e,multiple:n,name:t,native:!0,children:r.map((o,s)=>E.jsx("option",{value:o,children:o},`option-${o}-${s}`))})]})}const ZR=e=>e.defaultValue!==null&&typeof e.defaultValue!="boolean";function jle({label:e,defaultValue:t,choices:r,helpText:n,isSecret:i}){const a=Dle(e),o=n?`${a} (${n})`:a;return r?E.jsx(BC,{defaultValue:t,label:o,name:e,options:r,sx:{width:"100%"}}):E.jsx(Bl,{defaultValue:t,label:o,name:e,sx:{width:"100%"},type:i?"password":"text"})}function Yle({extraOptions:e}){const t=O.useMemo(()=>Object.entries(e).reduce((n,[i,a])=>ZR(a)?[...n,{label:i,...a}]:n,[]),[e]),r=O.useMemo(()=>Object.keys(e).reduce((n,i)=>ZR(e[i])?n:[...n,i],[]),[e]);return E.jsxs(f4,{children:[E.jsx(h4,{expandIcon:E.jsx(C2,{}),children:E.jsx(Xe,{children:"Custom parameters"})}),E.jsx(d4,{children:E.jsxs(ht,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[t.map((n,i)=>E.jsx(jle,{...n},`valid-parameter-${i}`)),E.jsx(ht,{children:r&&E.jsxs(E.Fragment,{children:[E.jsx(Xe,{children:"The following custom parameters can't be set in the Web UI, because it is a boolean or None type:"}),E.jsx("ul",{children:r.map((n,i)=>E.jsx("li",{children:E.jsx(Xe,{children:n})},`invalid-parameter-${i}`))})]})})]})})]})}function nx(e,{payload:t}){return Mle(e,t)}const qle=$l(window.templateArgs),vG=Bi({name:"swarm",initialState:qle,reducers:{setSwarm:nx}}),gG=vG.actions,Xle=vG.reducer;function Zle({availableShapeClasses:e,availableUserClasses:t,host:r,extraOptions:n,isShape:i,numUsers:a,overrideHostWarning:o,runTime:s,setSwarm:l,showUserclassPicker:u,spawnRate:c}){const[f]=pG(),d=h=>{l({state:li.RUNNING,host:h.host||r}),f(h)};return E.jsxs(Lf,{maxWidth:"md",sx:{my:2},children:[E.jsx(Xe,{component:"h2",noWrap:!0,variant:"h6",children:"Start new load test"}),E.jsx(rG,{onSubmit:d,children:E.jsxs(ht,{sx:{my:2,display:"flex",flexDirection:"column",rowGap:4},children:[u&&E.jsxs(E.Fragment,{children:[E.jsx(BC,{label:"User Classes",multiple:!0,name:"userClasses",options:t}),E.jsx(BC,{label:"Shape Class",name:"shapeClass",options:e})]}),E.jsx(Bl,{defaultValue:i&&"-"||a||1,disabled:!!i,label:"Number of users (peak concurrency)",name:"userCount"}),E.jsx(Bl,{defaultValue:i&&"-"||c||1,disabled:!!i,label:"Ramp Up (users started/second)",name:"spawnRate",title:"Disabled for tests using LoadTestShape class"}),E.jsx(Bl,{defaultValue:r,label:`Host ${o?"(setting this will override the host for the User classes)":""}`,name:"host",title:"Disabled for tests using LoadTestShape class"}),E.jsxs(f4,{children:[E.jsx(h4,{expandIcon:E.jsx(C2,{}),children:E.jsx(Xe,{children:"Advanced options"})}),E.jsx(d4,{children:E.jsx(Bl,{defaultValue:s,label:"Run time (e.g. 20, 20s, 3m, 2h, 1h20m, 3h30m10s, etc.)",name:"runTime",sx:{width:"100%"}})})]}),!Ale(n)&&E.jsx(Yle,{extraOptions:n}),E.jsx(Cu,{size:"large",type:"submit",variant:"contained",children:"Start Swarm"})]})})]})}const Kle=({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}),Qle={setSwarm:gG.setSwarm},mG=qn(Kle,Qle)(Zle);function Jle(){const[e,t]=O.useState(!1);return E.jsxs(E.Fragment,{children:[E.jsx(Cu,{color:"success",onClick:()=>t(!0),type:"button",variant:"contained",children:"New"}),E.jsx(u2,{onClose:()=>t(!1),open:e,children:E.jsx(mG,{})})]})}function eue(){const e=()=>{fetch("stats/reset")};return E.jsx(Cu,{color:"warning",onClick:e,type:"button",variant:"contained",children:"Reset"})}function tue(){const[e,t]=O.useState(!1);O.useEffect(()=>{t(!1)},[]);const r=()=>{fetch("stop"),t(!0)};return E.jsx(Cu,{color:"error",disabled:e,onClick:r,type:"button",variant:"contained",children:e?"Loading":"Stop"})}function rue(){const e=Ef(({swarm:t})=>t.state);return e===li.READY?null:e===li.STOPPED?E.jsx(Jle,{}):E.jsxs(ht,{sx:{display:"flex",columnGap:2},children:[E.jsx(Vle,{}),E.jsx(tue,{}),E.jsx(eue,{})]})}function nue(){return E.jsx(Qee,{position:"static",children:E.jsx(Lf,{maxWidth:"xl",children:E.jsxs(Pae,{sx:{display:"flex",justifyContent:"space-between"},children:[E.jsxs(si,{color:"inherit",href:"/",sx:{display:"flex",alignItems:"center",columnGap:2},underline:"none",children:[E.jsx("img",{height:"52",src:"/assets/logo.png",width:"52"}),E.jsx(Xe,{component:"h1",noWrap:!0,sx:{fontWeight:700,display:"flex",alignItems:"center"},variant:"h3",children:"Locust"})]}),E.jsxs(ht,{sx:{display:"flex",columnGap:6},children:[E.jsx(Pse,{}),E.jsx(rue,{}),E.jsx(Ase,{})]})]})})})}function iue({children:e}){return E.jsxs(E.Fragment,{children:[E.jsx(nue,{}),E.jsx("main",{children:e}),E.jsx(_oe,{})]})}function aue(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const oue=/[ \t\n\f\r]/g;function sue(e){return typeof e=="object"?e.type==="text"?KR(e.value):!1:KR(e)}function KR(e){return e.replace(oue,"")===""}class cv{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}}cv.prototype.property={};cv.prototype.normal={};cv.prototype.space=null;function yG(e,t){const r={},n={};let i=-1;for(;++i4&&r.slice(0,4)==="data"&&due.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(JR,gue);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!JR.test(a)){let o=a.replace(hue,vue);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=T2}return new i(n,t)}function vue(e){return"-"+e.toLowerCase()}function gue(e){return e.charAt(1).toUpperCase()}const mue={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"},yue=yG([bG,SG,CG,TG,cue],"html"),AG=yG([bG,SG,CG,TG,fue],"svg");function xue(e){return e.join(" ").trim()}var A2={exports:{}},eL=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Sue=/\n/g,bue=/^\s*/,_ue=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,wue=/^:\s*/,Cue=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Tue=/^[;\s]*/,Aue=/^\s+|\s+$/g,Mue=` -`,tL="/",rL="*",Pl="",Iue="comment",Pue="declaration",kue=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(Sue);v&&(r+=v.length);var g=p.lastIndexOf(Mue);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(bue)}function c(p){var v;for(p=p||[];v=f();)v!==!1&&p.push(v);return p}function f(){var p=a();if(!(tL!=e.charAt(0)||rL!=e.charAt(1))){for(var v=2;Pl!=e.charAt(v)&&(rL!=e.charAt(v)||tL!=e.charAt(v+1));)++v;if(v+=2,Pl===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:Iue,comment:g})}}function d(){var p=a(),v=l(_ue);if(v){if(f(),!l(wue))return s("property missing ':'");var g=l(Cue),m=p({type:Pue,property:nL(v[0].replace(eL,Pl)),value:g?nL(g[0].replace(eL,Pl)):Pl});return l(Tue),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 nL(e){return e?e.replace(Aue,Pl):Pl}var Due=kue;function MG(e,t){var r=null;if(!e||typeof e!="string")return r;for(var n,i=Due(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 Eue(e){const t=M2(e),r=IG(e);if(t&&r)return{start:t,end:r}}function Rh(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?iL(e.position):"start"in e||"end"in e?iL(e):"line"in e||"column"in e?VC(e):""}function VC(e){return aL(e&&e.line)+":"+aL(e&&e.column)}function iL(e){return VC(e&&e.start)+"-"+VC(e&&e.end)}function aL(e){return e&&typeof e=="number"?e:1}class dn 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=Rh(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}}dn.prototype.file="";dn.prototype.name="";dn.prototype.reason="";dn.prototype.message="";dn.prototype.stack="";dn.prototype.column=void 0;dn.prototype.line=void 0;dn.prototype.ancestors=void 0;dn.prototype.cause=void 0;dn.prototype.fatal=void 0;dn.prototype.place=void 0;dn.prototype.ruleId=void 0;dn.prototype.source=void 0;const I2={}.hasOwnProperty,Oue=new Map,Nue=/[A-Z]/g,zue=/-([a-z])/g,Bue=new Set(["table","tbody","thead","tfoot","tr"]),Fue=new Set(["td","th"]);function $ue(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=Gue(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=Vue(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"?AG:yue,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=kG(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function kG(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=AG,e.schema=i),e.ancestors.push(t);let a=Hue(e,t);const o=Wue(e,e.ancestors);let s=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(a&&Bue.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!sue(l):!0})),I2.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 Vue(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 Gue(e,t){return r;function r(n,i,a,o){const s=Array.isArray(a.children),l=M2(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 Hue(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:Oue;for(;++n-1&&e.test(String.fromCharCode(r))}}const rce={'"':"quot","&":"amp","<":"lt",">":"gt"};function nce(e){return e.replace(/["&<>]/g,t);function t(r){return"&"+rce[r]+";"}}function ice(e,t){const r=nce(Mu(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 Mu(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 ace={};function oce(e,t){const r=t||ace,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return RG(e,n,i)}function RG(e,t,r){if(sce(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 oL(e.children,t,r)}return Array.isArray(e)?oL(e,t,r):""}function oL(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?(Ea(e,e.length,0,t),e):t}const lL={}.hasOwnProperty;function lce(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 Yc(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 vce(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 cL(e){if(e===null||An(e)||tce(e))return 1;if(ece(e))return 2}function k2(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);fL(f,-l),fL(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=ui(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=ui(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),u=ui(u,k2(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=ui(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=ui(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,Ea(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||Ve(b)?e.check(dL,v,S)(b):(e.enter("codeFlowValue"),x(b))}function x(b){return b===null||Ve(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(R){return b.enter("lineEnding"),b.consume(R),b.exit("lineEnding"),M}function M(R){return b.enter("codeFencedFence"),mt(R)?Nt(b,I,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):I(R)}function I(R){return R===s?(b.enter("codeFencedFenceSequence"),P(R)):C(R)}function P(R){return R===s?(A++,b.consume(R),P):A>=o?(b.exit("codeFencedFenceSequence"),mt(R)?Nt(b,k,"whitespace")(R):k(R)):C(R)}function k(R){return R===null||Ve(R)?(b.exit("codeFencedFence"),w(R)):C(R)}}}function Mce(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 US={name:"codeIndented",tokenize:Pce},Ice={tokenize:kce,partial:!0};function Pce(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):Ve(u)?e.attempt(Ice,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||Ve(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function kce(e,t,r){const n=this;return i;function i(o){return n.parser.lazy[n.now().line]?r(o):Ve(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):Ve(o)?i(o):r(o)}}const Dce={name:"codeText",tokenize:Ece,resolve:Rce,previous:Lce};function Rce(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 BG(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||GC(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||Ve(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||An(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):Ve(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||Ve(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 $G(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):Ve(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||Ve(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 Lh(e,t){let r;return n;function n(i){return Ve(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 Vce={name:"definition",tokenize:Hce},Gce={tokenize:Wce,partial:!0};function Hce(e,t,r){const n=this;let i;return a;function a(h){return e.enter("definition"),o(h)}function o(h){return FG.call(n,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=Yc(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 An(h)?Lh(e,u)(h):u(h)}function u(h){return BG(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(Gce,f,f)(h)}function f(h){return mt(h)?Nt(e,d,"whitespace")(h):d(h)}function d(h){return h===null||Ve(h)?(e.exit("definition"),n.parser.defined.push(i),t(h)):r(h)}}function Wce(e,t,r){return n;function n(s){return An(s)?Lh(e,i)(s):r(s)}function i(s){return $G(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||Ve(s)?t(s):r(s)}}const Uce={name:"hardBreakEscape",tokenize:jce};function jce(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Ve(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const Yce={name:"headingAtx",tokenize:Xce,resolve:qce};function qce(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"},Ea(e,n,r-n+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function Xce(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||An(c)?(e.exit("atxHeadingSequence"),s(c)):r(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||Ve(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||An(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const Zce=["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"],pL=["pre","script","style","textarea"],Kce={name:"htmlFlow",tokenize:tfe,resolveTo:efe,concrete:!0},Qce={tokenize:nfe,partial:!0},Jce={tokenize:rfe,partial:!0};function efe(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 tfe(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:L):pa(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):pa(B)?(e.consume(B),i=4,n.interrupt?t:L):r(B)}function h(B){return B===45?(e.consume(B),n.interrupt?t:L):r(B)}function p(B){const j="CDATA[";return B===j.charCodeAt(s++)?(e.consume(B),s===j.length?n.interrupt?t:I:p):r(B)}function v(B){return pa(B)?(e.consume(B),o=String.fromCharCode(B),g):r(B)}function g(B){if(B===null||B===47||B===62||An(B)){const j=B===47,X=o.toLowerCase();return!j&&!a&&pL.includes(X)?(i=1,n.interrupt?t(B):I(B)):Zce.includes(o.toLowerCase())?(i=6,j?(e.consume(B),m):n.interrupt?t(B):I(B)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(B):a?y(B):x(B))}return B===45||zn(B)?(e.consume(B),o+=String.fromCharCode(B),g):r(B)}function m(B){return B===62?(e.consume(B),n.interrupt?t:I):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||pa(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||zn(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||Ve(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||An(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||Ve(B)?I(B):mt(B)?(e.consume(B),M):r(B)}function I(B){return B===45&&i===2?(e.consume(B),z):B===60&&i===1?(e.consume(B),$):B===62&&i===4?(e.consume(B),G):B===63&&i===3?(e.consume(B),L):B===93&&i===5?(e.consume(B),V):Ve(B)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Qce,U,P)(B)):B===null||Ve(B)?(e.exit("htmlFlowData"),P(B)):(e.consume(B),I)}function P(B){return e.check(Jce,k,U)(B)}function k(B){return e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),R}function R(B){return B===null||Ve(B)?P(B):(e.enter("htmlFlowData"),I(B))}function z(B){return B===45?(e.consume(B),L):I(B)}function $(B){return B===47?(e.consume(B),o="",N):I(B)}function N(B){if(B===62){const j=o.toLowerCase();return pL.includes(j)?(e.consume(B),G):I(B)}return pa(B)&&o.length<8?(e.consume(B),o+=String.fromCharCode(B),N):I(B)}function V(B){return B===93?(e.consume(B),L):I(B)}function L(B){return B===62?(e.consume(B),G):B===45&&i===2?(e.consume(B),L):I(B)}function G(B){return B===null||Ve(B)?(e.exit("htmlFlowData"),U(B)):(e.consume(B),G)}function U(B){return e.exit("htmlFlow"),t(B)}}function rfe(e,t,r){const n=this;return i;function i(o){return Ve(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 nfe(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(ix,t,r)}}const ife={name:"htmlText",tokenize:afe};function afe(e,t,r){const n=this;let i,a,o;return s;function s(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),l}function l(L){return L===33?(e.consume(L),u):L===47?(e.consume(L),_):L===63?(e.consume(L),x):pa(L)?(e.consume(L),C):r(L)}function u(L){return L===45?(e.consume(L),c):L===91?(e.consume(L),a=0,p):pa(L)?(e.consume(L),y):r(L)}function c(L){return L===45?(e.consume(L),h):r(L)}function f(L){return L===null?r(L):L===45?(e.consume(L),d):Ve(L)?(o=f,$(L)):(e.consume(L),f)}function d(L){return L===45?(e.consume(L),h):f(L)}function h(L){return L===62?z(L):L===45?d(L):f(L)}function p(L){const G="CDATA[";return L===G.charCodeAt(a++)?(e.consume(L),a===G.length?v:p):r(L)}function v(L){return L===null?r(L):L===93?(e.consume(L),g):Ve(L)?(o=v,$(L)):(e.consume(L),v)}function g(L){return L===93?(e.consume(L),m):v(L)}function m(L){return L===62?z(L):L===93?(e.consume(L),m):v(L)}function y(L){return L===null||L===62?z(L):Ve(L)?(o=y,$(L)):(e.consume(L),y)}function x(L){return L===null?r(L):L===63?(e.consume(L),S):Ve(L)?(o=x,$(L)):(e.consume(L),x)}function S(L){return L===62?z(L):x(L)}function _(L){return pa(L)?(e.consume(L),b):r(L)}function b(L){return L===45||zn(L)?(e.consume(L),b):w(L)}function w(L){return Ve(L)?(o=w,$(L)):mt(L)?(e.consume(L),w):z(L)}function C(L){return L===45||zn(L)?(e.consume(L),C):L===47||L===62||An(L)?A(L):r(L)}function A(L){return L===47?(e.consume(L),z):L===58||L===95||pa(L)?(e.consume(L),T):Ve(L)?(o=A,$(L)):mt(L)?(e.consume(L),A):z(L)}function T(L){return L===45||L===46||L===58||L===95||zn(L)?(e.consume(L),T):M(L)}function M(L){return L===61?(e.consume(L),I):Ve(L)?(o=M,$(L)):mt(L)?(e.consume(L),M):A(L)}function I(L){return L===null||L===60||L===61||L===62||L===96?r(L):L===34||L===39?(e.consume(L),i=L,P):Ve(L)?(o=I,$(L)):mt(L)?(e.consume(L),I):(e.consume(L),k)}function P(L){return L===i?(e.consume(L),i=void 0,R):L===null?r(L):Ve(L)?(o=P,$(L)):(e.consume(L),P)}function k(L){return L===null||L===34||L===39||L===60||L===61||L===96?r(L):L===47||L===62||An(L)?A(L):(e.consume(L),k)}function R(L){return L===47||L===62||An(L)?A(L):r(L)}function z(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),t):r(L)}function $(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),N}function N(L){return mt(L)?Nt(e,V,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):V(L)}function V(L){return e.enter("htmlTextData"),o(L)}}const D2={name:"labelEnd",tokenize:ffe,resolveTo:cfe,resolveAll:ufe},ofe={tokenize:dfe},sfe={tokenize:hfe},lfe={tokenize:pfe};function ufe(e){let t=-1;for(;++t=3&&(u===null||Ve(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 vn={name:"list",tokenize:wfe,continuation:{tokenize:Cfe},exit:Afe},bfe={tokenize:Mfe,partial:!0},_fe={tokenize:Tfe,partial:!0};function wfe(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:HC(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(Dm,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 HC(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(ix,n.interrupt?r:c,e.attempt(bfe,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 Cfe(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(ix,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(_fe,t,o)(s))}function o(s){return n.containerState._closeFlow=!0,n.interrupt=void 0,Nt(e,e.attempt(vn,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function Tfe(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 Afe(e){e.exit(this.containerState.type)}function Mfe(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 vL={name:"setextUnderline",tokenize:Pfe,resolveTo:Ife};function Ife(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 Pfe(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||Ve(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const kfe={tokenize:Dfe};function Dfe(e){const t=this,r=e.attempt(ix,n,e.attempt(this.parser.constructs.flowInitial,i,Nt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Nce,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 Rfe={resolveAll:GG()},Lfe=VG("string"),Efe=VG("text");function VG(e){return{tokenize:t,resolveAll:GG(e==="text"?Ofe: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 Bfe(e,t){let r=-1;const n=[];let i;for(;++r=I:!1}var d=DR(r+"/executeQuery",c,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[th]=!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,I=x.originalArgs,P=T==null?void 0:T.originalArgs,k=i[x.endpointName];return zC(x)?!0:(T==null?void 0:T.status)==="pending"?!1:f(x,A)||uG(k)&&((C=k==null?void 0:k.forceRefetch)!=null&&C.call(k,{currentArg:I,previousArg:P,endpointState:T,state:A}))?!0:!M},dispatchConditionRejection:!0}),h=DR(r+"/executeMutation",c,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[th]=!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(k){return k===void 0&&(k=!0),o.endpoints[x].initiate(S,{forceRefetch:k})},M=o.endpoints[x].select(S)(w());if(C)b(T());else if(A){var I=M==null?void 0:M.fulfilledTimeStamp;if(!I){b(T());return}var P=(Number(new Date)-Number(new Date(I)))/1e3>=A;P&&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:Rh(x2(x),m(S)),matchFulfilled:Rh(Mu(x),m(S)),matchRejected:Rh(bp(x),m(S))}}return{queryThunk:d,mutationThunk:h,prefetch:g,updateQueryData:l,upsertQueryData:u,patchQueryData:s,buildMatchThunkActions:y}}function fG(e,t,r,n){return cG(r[e.meta.arg.endpointName][t],Mu(e)?e.payload:void 0,nx(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function og(e,t,r){var n=e[t];n&&r(n)}function wp(e){var t;return(t="arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)!=null?t:e.requestId}function VR(e,t,r){var n=e[wp(t)];n&&r(n)}var yd={};function Zse(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=Tn(t+"/resetApiState"),d=ui({name:t+"/queries",initialState:yd,reducers:{removeQueryResult:{reducer:function(_,b){var w=b.payload.queryCacheKey;delete _[w]},prepare:FS()},queryResultPatched:function(_,b){var w=b.payload,C=w.queryCacheKey,A=w.patches;og(_,C,function(T){T.data=wR(T.data,A.concat())})}},extraReducers:function(_){_.addCase(r.pending,function(b,w){var C=w.meta,A=w.meta.arg,T,M,I=zC(A);(A.subscribe||I)&&((M=b[T=A.queryCacheKey])!=null||(b[T]={status:Ht.uninitialized,endpointName:A.endpointName})),og(b,A.queryCacheKey,function(P){P.status=Ht.pending,P.requestId=I&&P.requestId?P.requestId:C.requestId,A.originalArgs!==void 0&&(P.originalArgs=A.originalArgs),P.startedTimeStamp=C.startedTimeStamp})}).addCase(r.fulfilled,function(b,w){var C=w.meta,A=w.payload;og(b,C.arg.queryCacheKey,function(T){var M;if(!(T.requestId!==C.requestId&&!zC(C.arg))){var I=a[C.arg.endpointName].merge;if(T.status=Ht.fulfilled,I)if(T.data!==void 0){var P=C.fulfilledTimeStamp,k=C.arg,R=C.baseQueryMeta,z=C.requestId,$=uv(T.data,function(N){return I(N,A,{arg:k.originalArgs,baseQueryMeta:R,fulfilledTimeStamp:P,requestId:z})});T.data=$}else T.data=A;else T.data=(M=a[C.arg.endpointName].structuralSharing)==null||M?oG(Yi(T.data)?Eoe(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,I=w.error,P=w.payload;og(b,T.queryCacheKey,function(k){if(!A){if(k.requestId!==M)return;k.status=Ht.rejected,k.error=P??I}})}).addMatcher(l,function(b,w){for(var C=s(w).queries,A=0,T=Object.entries(C);AArray.isArray(e)?e.length:Object.keys(e).length,Ile=e=>mc(e)===0;function Ple(e,t){return{...e,...t}}const kle=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},ix=(e,t)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:[...r[n]||[],i]}),e);function hG(e,t,r){return t&&(Array.isArray(t)?t.map(n=>hG(e,n,r)):typeof t=="object"?w2(t,r):t)}const w2=(e,t)=>Object.entries(e).reduce((r,[n,i])=>({...r,[t(n)]:hG(e,i,t)}),{}),pG=e=>e.replace(/_([a-z0-9])/g,(t,r)=>r.toUpperCase()),Dle=e=>e[0]===e[0].toUpperCase()?e:e.replace(/([a-z0-9])([A-Z0-9])/g,"$1_$2").toLowerCase(),Gl=e=>w2(e,pG),Rle=e=>w2(e,Dle),Lle=e=>e.replace(/([a-z0-9])([A-Z0-9])/g,"$1 $2").replace(/^./,t=>t.toUpperCase()),Ele=e=>Object.fromEntries(new URLSearchParams(e).entries()),Ole=(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]},BC=Mle({baseQuery:Use(),endpoints:e=>({getStats:e.query({query:()=>"stats/requests",transformResponse:Gl}),getTasks:e.query({query:()=>"tasks",transformResponse:Gl}),getExceptions:e.query({query:()=>"exceptions",transformResponse:Gl}),getLogs:e.query({query:()=>"logs",transformResponse:Gl}),startSwarm:e.mutation({query:t=>({url:"swarm",method:"POST",body:kle(Rle(t)),headers:{"content-type":"application/x-www-form-urlencoded"}})})})}),{useGetStatsQuery:Nle,useGetTasksQuery:zle,useGetExceptionsQuery:Ble,useGetLogsQuery:Fle,useStartSwarmMutation:vG}=BC;function $le({onSubmit:e,spawnRate:t,userCount:r}){const[n]=vG(),i=a=>{e(),n(a)};return E.jsxs(Nf,{maxWidth:"md",sx:{my:2},children:[E.jsx(Xe,{component:"h2",noWrap:!0,variant:"h6",children:"Edit running load test"}),E.jsx(nG,{onSubmit:i,children:E.jsxs(ht,{sx:{my:2,display:"flex",flexDirection:"column",rowGap:4},children:[E.jsx(Fl,{defaultValue:r||1,label:"Number of users (peak concurrency)",name:"userCount"}),E.jsx(Fl,{defaultValue:t||1,label:"Ramp Up (users started/second)",name:"spawnRate"}),E.jsx(Au,{size:"large",type:"submit",variant:"contained",children:"Update Swarm"})]})})]})}const Vle=({swarm:{spawnRate:e,userCount:t}})=>({spawnRate:e,userCount:t}),Gle=Xn(Vle)($le);function Hle(){const[e,t]=O.useState(!1);return E.jsxs(E.Fragment,{children:[E.jsx(Au,{color:"secondary",onClick:()=>t(!0),type:"button",variant:"contained",children:"Edit"}),E.jsx(c2,{onClose:()=>t(!1),open:e,children:E.jsx(Gle,{onSubmit:()=>t(!1)})})]})}var C2={},Wle=Q1;Object.defineProperty(C2,"__esModule",{value:!0});var T2=C2.default=void 0,Ule=Wle(J1()),jle=E,Yle=(0,Ule.default)((0,jle.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");T2=C2.default=Yle;function FC({label:e,name:t,options:r,multiple:n=!1,defaultValue:i,sx:a}){return E.jsxs(_4,{sx:a,children:[E.jsx(A4,{htmlFor:t,shrink:!0,children:e}),E.jsx(z4,{defaultValue:i||n&&r||r[0],id:t,label:e,multiple:n,name:t,native:!0,children:r.map((o,s)=>E.jsx("option",{value:o,children:o},`option-${o}-${s}`))})]})}const KR=e=>e.defaultValue!==null&&typeof e.defaultValue!="boolean";function qle({label:e,defaultValue:t,choices:r,helpText:n,isSecret:i}){const a=Lle(e),o=n?`${a} (${n})`:a;return r?E.jsx(FC,{defaultValue:t,label:o,name:e,options:r,sx:{width:"100%"}}):E.jsx(Fl,{defaultValue:t,label:o,name:e,sx:{width:"100%"},type:i?"password":"text"})}function Xle({extraOptions:e}){const t=O.useMemo(()=>Object.entries(e).reduce((n,[i,a])=>KR(a)?[...n,{label:i,...a}]:n,[]),[e]),r=O.useMemo(()=>Object.keys(e).reduce((n,i)=>KR(e[i])?n:[...n,i],[]),[e]);return E.jsxs(d4,{children:[E.jsx(p4,{expandIcon:E.jsx(T2,{}),children:E.jsx(Xe,{children:"Custom parameters"})}),E.jsx(h4,{children:E.jsxs(ht,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[t.map((n,i)=>E.jsx(qle,{...n},`valid-parameter-${i}`)),E.jsx(ht,{children:r&&E.jsxs(E.Fragment,{children:[E.jsx(Xe,{children:"The following custom parameters can't be set in the Web UI, because it is a boolean or None type:"}),E.jsx("ul",{children:r.map((n,i)=>E.jsx("li",{children:E.jsx(Xe,{children:n})},`invalid-parameter-${i}`))})]})})]})})]})}function fv(e,{payload:t}){return Ple(e,t)}const Zle=Gl(window.templateArgs),gG=ui({name:"swarm",initialState:Zle,reducers:{setSwarm:fv}}),mG=gG.actions,Kle=gG.reducer;function Qle({availableShapeClasses:e,availableUserClasses:t,host:r,extraOptions:n,isShape:i,numUsers:a,overrideHostWarning:o,runTime:s,setSwarm:l,showUserclassPicker:u,spawnRate:c}){const[f]=vG(),d=h=>{l({state:En.RUNNING,host:h.host||r}),f(h)};return E.jsxs(Nf,{maxWidth:"md",sx:{my:2},children:[E.jsx(Xe,{component:"h2",noWrap:!0,variant:"h6",children:"Start new load test"}),E.jsx(nG,{onSubmit:d,children:E.jsxs(ht,{sx:{my:2,display:"flex",flexDirection:"column",rowGap:4},children:[u&&E.jsxs(E.Fragment,{children:[E.jsx(FC,{label:"User Classes",multiple:!0,name:"userClasses",options:t}),E.jsx(FC,{label:"Shape Class",name:"shapeClass",options:e})]}),E.jsx(Fl,{defaultValue:i&&"-"||a||1,disabled:!!i,label:"Number of users (peak concurrency)",name:"userCount"}),E.jsx(Fl,{defaultValue:i&&"-"||c||1,disabled:!!i,label:"Ramp Up (users started/second)",name:"spawnRate",title:"Disabled for tests using LoadTestShape class"}),E.jsx(Fl,{defaultValue:r,label:`Host ${o?"(setting this will override the host for the User classes)":""}`,name:"host",title:"Disabled for tests using LoadTestShape class"}),E.jsxs(d4,{children:[E.jsx(p4,{expandIcon:E.jsx(T2,{}),children:E.jsx(Xe,{children:"Advanced options"})}),E.jsx(h4,{children:E.jsx(Fl,{defaultValue:s,label:"Run time (e.g. 20, 20s, 3m, 2h, 1h20m, 3h30m10s, etc.)",name:"runTime",sx:{width:"100%"}})})]}),!Ile(n)&&E.jsx(Xle,{extraOptions:n}),E.jsx(Au,{size:"large",type:"submit",variant:"contained",children:"Start Swarm"})]})})]})}const Jle=({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}),eue={setSwarm:mG.setSwarm},yG=Xn(Jle,eue)(Qle);function tue(){const[e,t]=O.useState(!1);return E.jsxs(E.Fragment,{children:[E.jsx(Au,{color:"success",onClick:()=>t(!0),type:"button",variant:"contained",children:"New"}),E.jsx(c2,{onClose:()=>t(!1),open:e,children:E.jsx(yG,{})})]})}function rue(){const e=()=>{fetch("stats/reset")};return E.jsx(Au,{color:"warning",onClick:e,type:"button",variant:"contained",children:"Reset"})}function nue(){const[e,t]=O.useState(!1);O.useEffect(()=>{t(!1)},[]);const r=()=>{fetch("stop"),t(!0)};return E.jsx(Au,{color:"error",disabled:e,onClick:r,type:"button",variant:"contained",children:e?"Loading":"Stop"})}function iue(){const e=Vs(({swarm:t})=>t.state);return e===En.READY?null:e===En.STOPPED?E.jsx(tue,{}):E.jsxs(ht,{sx:{display:"flex",columnGap:2},children:[E.jsx(Hle,{}),E.jsx(nue,{}),E.jsx(rue,{})]})}function aue(){return E.jsx(tte,{position:"static",children:E.jsx(Nf,{maxWidth:"xl",children:E.jsxs(Rae,{sx:{display:"flex",justifyContent:"space-between"},children:[E.jsxs(li,{color:"inherit",href:"/",sx:{display:"flex",alignItems:"center",columnGap:2},underline:"none",children:[E.jsx("img",{height:"52",src:"/assets/logo.png",width:"52"}),E.jsx(Xe,{component:"h1",noWrap:!0,sx:{fontWeight:700,display:"flex",alignItems:"center"},variant:"h3",children:"Locust"})]}),E.jsxs(ht,{sx:{display:"flex",columnGap:6},children:[E.jsx(Rse,{}),E.jsx(iue,{}),E.jsx(Pse,{})]})]})})})}function oue({children:e}){return E.jsxs(E.Fragment,{children:[E.jsx(aue,{}),E.jsx("main",{children:e}),E.jsx(Toe,{})]})}function rh(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 sue={},xG=ui({name:"notification",initialState:sue,reducers:{setNotification:fv}}),lue=xG.actions,uue=xG.reducer;function cue(e,{key:t}){const r=$l(lue.setNotification),n=Vs(({url:{query:a}})=>a&&a.tab),i=`${t}Notification`;O.useEffect(()=>{mc(e)>0&&mc(e)(localStorage[i]||0)&&(!n||n!==t)&&(r({[t]:!0}),localStorage[i]=mc(e))},[e])}const fue={logs:[]},SG=ui({name:"logViewer",initialState:fue,reducers:{setLogs:fv}}),due=SG.actions,hue=SG.reducer;function pue(){const e=Vs(({swarm:a})=>a),t=$l(due.setLogs),{data:r,refetch:n}=Fle(),i=r?r.logs:[];return rh(n,5e3,{shouldRunInterval:e.state===En.SPAWNING||e.state==En.RUNNING}),cue(i,{key:"logViewer"}),O.useEffect(()=>{t({logs:i})},[i]),i}function vue(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const gue=/[ \t\n\f\r]/g;function mue(e){return typeof e=="object"?e.type==="text"?QR(e.value):!1:QR(e)}function QR(e){return e.replace(gue,"")===""}class dv{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}}dv.prototype.property={};dv.prototype.normal={};dv.prototype.space=null;function bG(e,t){const r={},n={};let i=-1;for(;++i4&&r.slice(0,4)==="data"&&_ue.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(eL,Aue);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!eL.test(a)){let o=a.replace(wue,Tue);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=A2}return new i(n,t)}function Tue(e){return"-"+e.toLowerCase()}function Aue(e){return e.charAt(1).toUpperCase()}const Mue={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"},Iue=bG([CG,wG,MG,IG,Sue],"html"),PG=bG([CG,wG,MG,IG,bue],"svg");function Pue(e){return e.join(" ").trim()}var M2={exports:{}},tL=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,kue=/\n/g,Due=/^\s*/,Rue=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Lue=/^:\s*/,Eue=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Oue=/^[;\s]*/,Nue=/^\s+|\s+$/g,zue=` +`,rL="/",nL="*",kl="",Bue="comment",Fue="declaration",$ue=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(kue);v&&(r+=v.length);var g=p.lastIndexOf(zue);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(Due)}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)||nL!=e.charAt(1))){for(var v=2;kl!=e.charAt(v)&&(nL!=e.charAt(v)||rL!=e.charAt(v+1));)++v;if(v+=2,kl===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:Bue,comment:g})}}function d(){var p=a(),v=l(Rue);if(v){if(f(),!l(Lue))return s("property missing ':'");var g=l(Eue),m=p({type:Fue,property:iL(v[0].replace(tL,kl)),value:g?iL(g[0].replace(tL,kl)):kl});return l(Oue),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 iL(e){return e?e.replace(Nue,kl):kl}var Vue=$ue;function kG(e,t){var r=null;if(!e||typeof e!="string")return r;for(var n,i=Vue(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 Wue(e){const t=I2(e),r=DG(e);if(t&&r)return{start:t,end:r}}function Lh(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?aL(e.position):"start"in e||"end"in e?aL(e):"line"in e||"column"in e?GC(e):""}function GC(e){return oL(e&&e.line)+":"+oL(e&&e.column)}function aL(e){return GC(e&&e.start)+"-"+GC(e&&e.end)}function oL(e){return e&&typeof e=="number"?e:1}class dn 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=Lh(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}}dn.prototype.file="";dn.prototype.name="";dn.prototype.reason="";dn.prototype.message="";dn.prototype.stack="";dn.prototype.column=void 0;dn.prototype.line=void 0;dn.prototype.ancestors=void 0;dn.prototype.cause=void 0;dn.prototype.fatal=void 0;dn.prototype.place=void 0;dn.prototype.ruleId=void 0;dn.prototype.source=void 0;const P2={}.hasOwnProperty,Uue=new Map,jue=/[A-Z]/g,Yue=/-([a-z])/g,que=new Set(["table","tbody","thead","tfoot","tr"]),Xue=new Set(["td","th"]);function Zue(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=Que(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=Kue(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"?PG:Iue,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=LG(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function LG(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=PG,e.schema=i),e.ancestors.push(t);let a=Jue(e,t);const o=ece(e,e.ancestors);let s=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(a&&que.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!mue(l):!0})),P2.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 Kue(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 Que(e,t){return r;function r(n,i,a,o){const s=Array.isArray(a.children),l=I2(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 Jue(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:Uue;for(;++n-1&&e.test(String.fromCharCode(r))}}const dce={'"':"quot","&":"amp","<":"lt",">":"gt"};function hce(e){return e.replace(/["&<>]/g,t);function t(r){return"&"+dce[r]+";"}}function pce(e,t){const r=hce(Pu(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 Pu(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 vce={};function gce(e,t){const r=t||vce,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return OG(e,n,i)}function OG(e,t,r){if(mce(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 sL(e.children,t,r)}return Array.isArray(e)?sL(e,t,r):""}function sL(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?(Ea(e,e.length,0,t),e):t}const uL={}.hasOwnProperty;function yce(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 Zc(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 Tce(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 fL(e){if(e===null||An(e)||fce(e))return 1;if(cce(e))return 2}function D2(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);dL(f,-l),dL(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=ci(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=ci(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),u=ci(u,D2(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=ci(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=ci(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,Ea(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||Ve(b)?e.check(hL,v,S)(b):(e.enter("codeFlowValue"),x(b))}function x(b){return b===null||Ve(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(R){return b.enter("lineEnding"),b.consume(R),b.exit("lineEnding"),M}function M(R){return b.enter("codeFencedFence"),mt(R)?Nt(b,I,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):I(R)}function I(R){return R===s?(b.enter("codeFencedFenceSequence"),P(R)):C(R)}function P(R){return R===s?(A++,b.consume(R),P):A>=o?(b.exit("codeFencedFenceSequence"),mt(R)?Nt(b,k,"whitespace")(R):k(R)):C(R)}function k(R){return R===null||Ve(R)?(b.exit("codeFencedFence"),w(R)):C(R)}}}function zce(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 jS={name:"codeIndented",tokenize:Fce},Bce={tokenize:$ce,partial:!0};function Fce(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):Ve(u)?e.attempt(Bce,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||Ve(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function $ce(e,t,r){const n=this;return i;function i(o){return n.parser.lazy[n.now().line]?r(o):Ve(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):Ve(o)?i(o):r(o)}}const Vce={name:"codeText",tokenize:Wce,resolve:Gce,previous:Hce};function Gce(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 VG(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||HC(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||Ve(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||An(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):Ve(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||Ve(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 HG(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):Ve(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||Ve(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 Eh(e,t){let r;return n;function n(i){return Ve(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 Kce={name:"definition",tokenize:Jce},Qce={tokenize:efe,partial:!0};function Jce(e,t,r){const n=this;let i;return a;function a(h){return e.enter("definition"),o(h)}function o(h){return GG.call(n,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=Zc(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 An(h)?Eh(e,u)(h):u(h)}function u(h){return VG(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(Qce,f,f)(h)}function f(h){return mt(h)?Nt(e,d,"whitespace")(h):d(h)}function d(h){return h===null||Ve(h)?(e.exit("definition"),n.parser.defined.push(i),t(h)):r(h)}}function efe(e,t,r){return n;function n(s){return An(s)?Eh(e,i)(s):r(s)}function i(s){return HG(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||Ve(s)?t(s):r(s)}}const tfe={name:"hardBreakEscape",tokenize:rfe};function rfe(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Ve(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const nfe={name:"headingAtx",tokenize:afe,resolve:ife};function ife(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"},Ea(e,n,r-n+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function afe(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||An(c)?(e.exit("atxHeadingSequence"),s(c)):r(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||Ve(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||An(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const ofe=["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"],vL=["pre","script","style","textarea"],sfe={name:"htmlFlow",tokenize:ffe,resolveTo:cfe,concrete:!0},lfe={tokenize:hfe,partial:!0},ufe={tokenize:dfe,partial:!0};function cfe(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 ffe(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:L):pa(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):pa(B)?(e.consume(B),i=4,n.interrupt?t:L):r(B)}function h(B){return B===45?(e.consume(B),n.interrupt?t:L):r(B)}function p(B){const j="CDATA[";return B===j.charCodeAt(s++)?(e.consume(B),s===j.length?n.interrupt?t:I:p):r(B)}function v(B){return pa(B)?(e.consume(B),o=String.fromCharCode(B),g):r(B)}function g(B){if(B===null||B===47||B===62||An(B)){const j=B===47,X=o.toLowerCase();return!j&&!a&&vL.includes(X)?(i=1,n.interrupt?t(B):I(B)):ofe.includes(o.toLowerCase())?(i=6,j?(e.consume(B),m):n.interrupt?t(B):I(B)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(B):a?y(B):x(B))}return B===45||Bn(B)?(e.consume(B),o+=String.fromCharCode(B),g):r(B)}function m(B){return B===62?(e.consume(B),n.interrupt?t:I):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||pa(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||Bn(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||Ve(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||An(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||Ve(B)?I(B):mt(B)?(e.consume(B),M):r(B)}function I(B){return B===45&&i===2?(e.consume(B),z):B===60&&i===1?(e.consume(B),$):B===62&&i===4?(e.consume(B),G):B===63&&i===3?(e.consume(B),L):B===93&&i===5?(e.consume(B),V):Ve(B)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(lfe,U,P)(B)):B===null||Ve(B)?(e.exit("htmlFlowData"),P(B)):(e.consume(B),I)}function P(B){return e.check(ufe,k,U)(B)}function k(B){return e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),R}function R(B){return B===null||Ve(B)?P(B):(e.enter("htmlFlowData"),I(B))}function z(B){return B===45?(e.consume(B),L):I(B)}function $(B){return B===47?(e.consume(B),o="",N):I(B)}function N(B){if(B===62){const j=o.toLowerCase();return vL.includes(j)?(e.consume(B),G):I(B)}return pa(B)&&o.length<8?(e.consume(B),o+=String.fromCharCode(B),N):I(B)}function V(B){return B===93?(e.consume(B),L):I(B)}function L(B){return B===62?(e.consume(B),G):B===45&&i===2?(e.consume(B),L):I(B)}function G(B){return B===null||Ve(B)?(e.exit("htmlFlowData"),U(B)):(e.consume(B),G)}function U(B){return e.exit("htmlFlow"),t(B)}}function dfe(e,t,r){const n=this;return i;function i(o){return Ve(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 hfe(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(ax,t,r)}}const pfe={name:"htmlText",tokenize:vfe};function vfe(e,t,r){const n=this;let i,a,o;return s;function s(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),l}function l(L){return L===33?(e.consume(L),u):L===47?(e.consume(L),_):L===63?(e.consume(L),x):pa(L)?(e.consume(L),C):r(L)}function u(L){return L===45?(e.consume(L),c):L===91?(e.consume(L),a=0,p):pa(L)?(e.consume(L),y):r(L)}function c(L){return L===45?(e.consume(L),h):r(L)}function f(L){return L===null?r(L):L===45?(e.consume(L),d):Ve(L)?(o=f,$(L)):(e.consume(L),f)}function d(L){return L===45?(e.consume(L),h):f(L)}function h(L){return L===62?z(L):L===45?d(L):f(L)}function p(L){const G="CDATA[";return L===G.charCodeAt(a++)?(e.consume(L),a===G.length?v:p):r(L)}function v(L){return L===null?r(L):L===93?(e.consume(L),g):Ve(L)?(o=v,$(L)):(e.consume(L),v)}function g(L){return L===93?(e.consume(L),m):v(L)}function m(L){return L===62?z(L):L===93?(e.consume(L),m):v(L)}function y(L){return L===null||L===62?z(L):Ve(L)?(o=y,$(L)):(e.consume(L),y)}function x(L){return L===null?r(L):L===63?(e.consume(L),S):Ve(L)?(o=x,$(L)):(e.consume(L),x)}function S(L){return L===62?z(L):x(L)}function _(L){return pa(L)?(e.consume(L),b):r(L)}function b(L){return L===45||Bn(L)?(e.consume(L),b):w(L)}function w(L){return Ve(L)?(o=w,$(L)):mt(L)?(e.consume(L),w):z(L)}function C(L){return L===45||Bn(L)?(e.consume(L),C):L===47||L===62||An(L)?A(L):r(L)}function A(L){return L===47?(e.consume(L),z):L===58||L===95||pa(L)?(e.consume(L),T):Ve(L)?(o=A,$(L)):mt(L)?(e.consume(L),A):z(L)}function T(L){return L===45||L===46||L===58||L===95||Bn(L)?(e.consume(L),T):M(L)}function M(L){return L===61?(e.consume(L),I):Ve(L)?(o=M,$(L)):mt(L)?(e.consume(L),M):A(L)}function I(L){return L===null||L===60||L===61||L===62||L===96?r(L):L===34||L===39?(e.consume(L),i=L,P):Ve(L)?(o=I,$(L)):mt(L)?(e.consume(L),I):(e.consume(L),k)}function P(L){return L===i?(e.consume(L),i=void 0,R):L===null?r(L):Ve(L)?(o=P,$(L)):(e.consume(L),P)}function k(L){return L===null||L===34||L===39||L===60||L===61||L===96?r(L):L===47||L===62||An(L)?A(L):(e.consume(L),k)}function R(L){return L===47||L===62||An(L)?A(L):r(L)}function z(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),t):r(L)}function $(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),N}function N(L){return mt(L)?Nt(e,V,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):V(L)}function V(L){return e.enter("htmlTextData"),o(L)}}const R2={name:"labelEnd",tokenize:bfe,resolveTo:Sfe,resolveAll:xfe},gfe={tokenize:_fe},mfe={tokenize:wfe},yfe={tokenize:Cfe};function xfe(e){let t=-1;for(;++t=3&&(u===null||Ve(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 vn={name:"list",tokenize:Lfe,continuation:{tokenize:Efe},exit:Nfe},Dfe={tokenize:zfe,partial:!0},Rfe={tokenize:Ofe,partial:!0};function Lfe(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:WC(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(Lm,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 WC(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(ax,n.interrupt?r:c,e.attempt(Dfe,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 Efe(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(ax,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(Rfe,t,o)(s))}function o(s){return n.containerState._closeFlow=!0,n.interrupt=void 0,Nt(e,e.attempt(vn,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function Ofe(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 Nfe(e){e.exit(this.containerState.type)}function zfe(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 gL={name:"setextUnderline",tokenize:Ffe,resolveTo:Bfe};function Bfe(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 Ffe(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||Ve(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const $fe={tokenize:Vfe};function Vfe(e){const t=this,r=e.attempt(ax,n,e.attempt(this.parser.constructs.flowInitial,i,Nt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(jce,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 Gfe={resolveAll:UG()},Hfe=WG("string"),Wfe=WG("text");function WG(e){return{tokenize:t,resolveAll:UG(e==="text"?Ufe: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 qfe(e,t){let r=-1;const n=[];let i;for(;++r0){const Vt=Re.tokenStack[Re.tokenStack.length-1];(Vt[1]||mL).call(Re,void 0,Vt[0])}for(le.position={start:Ro(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:Ro(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},he=-1;++he1?"-"+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 fde(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 dde(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function UG(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 hde(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return UG(e,t);const i={src:Mu(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 pde(e,t){const r={src:Mu(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 vde(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 gde(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return UG(e,t);const i={href:Mu(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 mde(e,t){const r={href:Mu(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 yde(e,t,r){const n=e.all(t),i=r?xde(r):jG(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]||yL).call(Re,void 0,Vt[0])}for(le.position={start:Ro(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:Ro(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},he=-1;++he1?"-"+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 bde(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 _de(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function qG(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 wde(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return qG(e,t);const i={src:Pu(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 Cde(e,t){const r={src:Pu(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 Tde(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 Ade(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return qG(e,t);const i={href:Pu(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 Mde(e,t){const r={href:Pu(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 Ide(e,t,r){const n=e.all(t),i=r?Pde(r):XG(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 Sde(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=M2(t.children[1]),l=IG(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 Tde(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(SL(t.slice(i),i>0,!1)),a.join("")}function SL(e,t,r){let n=0,i=e.length;if(t){let a=e.codePointAt(n);for(;a===yL||a===xL;)n++,a=e.codePointAt(n)}if(r){let a=e.codePointAt(i-1);for(;a===yL||a===xL;)i--,a=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}function Ide(e,t){const r={type:"text",value:Mde(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function Pde(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const kde={blockquote:ade,break:ode,code:sde,delete:lde,emphasis:ude,footnoteReference:cde,heading:fde,html:dde,imageReference:hde,image:pde,inlineCode:vde,linkReference:gde,link:mde,listItem:yde,list:Sde,paragraph:bde,root:_de,strong:wde,table:Cde,tableCell:Ade,tableRow:Tde,text:Ide,thematicBreak:Pde,toml:lg,yaml:lg,definition:lg,footnoteDefinition:lg};function lg(){}const YG=-1,ax=0,Hy=1,Wy=2,R2=3,L2=4,E2=5,O2=6,qG=7,XG=8,bL=typeof self=="object"?self:globalThis,Dde=(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 ax:case YG:return r(o,i);case Hy:{const s=r([],i);for(const l of o)s.push(n(l));return s}case Wy:{const s=r({},i);for(const[l,u]of o)s[n(l)]=n(u);return s}case R2:return r(new Date(o),i);case L2:{const{source:s,flags:l}=o;return r(new RegExp(s,l),i)}case E2:{const s=r(new Map,i);for(const[l,u]of o)s.set(n(l),n(u));return s}case O2:{const s=r(new Set,i);for(const l of o)s.add(n(l));return s}case qG:{const{name:s,message:l}=o;return r(new bL[s](l),i)}case XG:return r(BigInt(o),i);case"BigInt":return r(Object(BigInt(o)),i)}return r(new bL[a](o),i)};return n},_L=e=>Dde(new Map,e)(0),Uu="",{toString:Rde}={},{keys:Lde}=Object,md=e=>{const t=typeof e;if(t!=="object"||!e)return[ax,t];const r=Rde.call(e).slice(8,-1);switch(r){case"Array":return[Hy,Uu];case"Object":return[Wy,Uu];case"Date":return[R2,Uu];case"RegExp":return[L2,Uu];case"Map":return[E2,Uu];case"Set":return[O2,Uu]}return r.includes("Array")?[Hy,r]:r.includes("Error")?[qG,r]:[Wy,r]},ug=([e,t])=>e===ax&&(t==="function"||t==="symbol"),Ede=(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 ax:{let c=o;switch(l){case"bigint":s=XG,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([YG],o)}return i([s,c],o)}case Hy:{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 Wy:{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 Lde(o))(e||!ug(md(o[d])))&&c.push([a(d),a(o[d])]);return f}case R2:return i([s,o.toISOString()],o);case L2:{const{source:c,flags:f}=o;return i([s,{source:c,flags:f}],o)}case E2:{const c=[],f=i([s,c],o);for(const[d,h]of o)(e||!(ug(md(d))||ug(md(h))))&&c.push([a(d),a(h)]);return f}case O2:{const c=[],f=i([s,c],o);for(const d of o)(e||!ug(md(d)))&&c.push(a(d));return f}}const{message:u}=o;return i([s,{name:l,message:u}],o)};return a},wL=(e,{json:t,lossy:r}={})=>{const n=[];return Ede(!(t||r),!!t,new Map,n)(e),n},Uy=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?_L(wL(e,t)):structuredClone(e):(e,t)=>_L(wL(e,t));function Ode(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 Nde(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function zde(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||Ode,n=e.options.footnoteBackLabel||Nde,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:{...Uy(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 Pde(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let n=-1;for(;!t&&++n1}function kde(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=I2(t.children[1]),l=DG(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 Ode(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(bL(t.slice(i),i>0,!1)),a.join("")}function bL(e,t,r){let n=0,i=e.length;if(t){let a=e.codePointAt(n);for(;a===xL||a===SL;)n++,a=e.codePointAt(n)}if(r){let a=e.codePointAt(i-1);for(;a===xL||a===SL;)i--,a=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}function Bde(e,t){const r={type:"text",value:zde(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function Fde(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const $de={blockquote:vde,break:gde,code:mde,delete:yde,emphasis:xde,footnoteReference:Sde,heading:bde,html:_de,imageReference:wde,image:Cde,inlineCode:Tde,linkReference:Ade,link:Mde,listItem:Ide,list:kde,paragraph:Dde,root:Rde,strong:Lde,table:Ede,tableCell:Nde,tableRow:Ode,text:Bde,thematicBreak:Fde,toml:cg,yaml:cg,definition:cg,footnoteDefinition:cg};function cg(){}const ZG=-1,ox=0,Uy=1,jy=2,L2=3,E2=4,O2=5,N2=6,KG=7,QG=8,_L=typeof self=="object"?self:globalThis,Vde=(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 ox:case ZG:return r(o,i);case Uy:{const s=r([],i);for(const l of o)s.push(n(l));return s}case jy:{const s=r({},i);for(const[l,u]of o)s[n(l)]=n(u);return s}case L2:return r(new Date(o),i);case E2:{const{source:s,flags:l}=o;return r(new RegExp(s,l),i)}case O2:{const s=r(new Map,i);for(const[l,u]of o)s.set(n(l),n(u));return s}case N2:{const s=r(new Set,i);for(const l of o)s.add(n(l));return s}case KG:{const{name:s,message:l}=o;return r(new _L[s](l),i)}case QG:return r(BigInt(o),i);case"BigInt":return r(Object(BigInt(o)),i)}return r(new _L[a](o),i)};return n},wL=e=>Vde(new Map,e)(0),Yu="",{toString:Gde}={},{keys:Hde}=Object,xd=e=>{const t=typeof e;if(t!=="object"||!e)return[ox,t];const r=Gde.call(e).slice(8,-1);switch(r){case"Array":return[Uy,Yu];case"Object":return[jy,Yu];case"Date":return[L2,Yu];case"RegExp":return[E2,Yu];case"Map":return[O2,Yu];case"Set":return[N2,Yu]}return r.includes("Array")?[Uy,r]:r.includes("Error")?[KG,r]:[jy,r]},fg=([e,t])=>e===ox&&(t==="function"||t==="symbol"),Wde=(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]=xd(o);switch(s){case ox:{let c=o;switch(l){case"bigint":s=QG,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([ZG],o)}return i([s,c],o)}case Uy:{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 jy:{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 Hde(o))(e||!fg(xd(o[d])))&&c.push([a(d),a(o[d])]);return f}case L2:return i([s,o.toISOString()],o);case E2:{const{source:c,flags:f}=o;return i([s,{source:c,flags:f}],o)}case O2:{const c=[],f=i([s,c],o);for(const[d,h]of o)(e||!(fg(xd(d))||fg(xd(h))))&&c.push([a(d),a(h)]);return f}case N2:{const c=[],f=i([s,c],o);for(const d of o)(e||!fg(xd(d)))&&c.push(a(d));return f}}const{message:u}=o;return i([s,{name:l,message:u}],o)};return a},CL=(e,{json:t,lossy:r}={})=>{const n=[];return Wde(!(t||r),!!t,new Map,n)(e),n},Yy=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?wL(CL(e,t)):structuredClone(e):(e,t)=>wL(CL(e,t));function Ude(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 jde(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Yde(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||Ude,n=e.options.footnoteBackLabel||jde,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:{...Yy(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 ZG=function(e){if(e==null)return Vde;if(typeof e=="function")return ox(e);if(typeof e=="object")return Array.isArray(e)?Bde(e):Fde(e);if(typeof e=="string")return $de(e);throw new Error("Expected function, string, or object as test")};function Bde(e){const t=[];let r=-1;for(;++r":""))+")"})}return d;function d(){let h=KG,p,v,g;if((!t||a(l,u,c[c.length-1]||void 0))&&(h=jde(r(l,c)),h[0]===CL))return h;if("children"in l&&l.children){const m=l;if(m.children&&h[0]!==Wde)for(v=(n?m.children.length:-1)+o,g=c.concat(m);v>-1&&v":""))+")"})}return d;function d(){let h=eH,p,v,g;if((!t||a(l,u,c[c.length-1]||void 0))&&(h=rhe(r(l,c)),h[0]===TL))return h;if("children"in l&&l.children){const m=l;if(m.children&&h[0]!==ehe)for(v=(n?m.children.length:-1)+o,g=c.concat(m);v>-1&&v0&&r.push({type:"text",value:` -`}),r}function TL(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function AL(e,t){const r=qde(e,t),n=r.one(e,void 0),i=zde(r),a=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` -`},i),a}function Jde(e,t){return e&&"run"in e?async function(r,n){const i=AL(r,t);await e.run(i,n)}:function(r){return AL(r,t||e)}}function ML(e){if(e)throw e}var Rm=Object.prototype.hasOwnProperty,JG=Object.prototype.toString,IL=Object.defineProperty,PL=Object.getOwnPropertyDescriptor,kL=function(t){return typeof Array.isArray=="function"?Array.isArray(t):JG.call(t)==="[object Array]"},DL=function(t){if(!t||JG.call(t)!=="[object Object]")return!1;var r=Rm.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&Rm.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;var i;for(i in t);return typeof i>"u"||Rm.call(t,i)},RL=function(t,r){IL&&r.name==="__proto__"?IL(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},LL=function(t,r){if(r==="__proto__")if(Rm.call(t,r)){if(PL)return PL(t,r).value}else return;return t[r]},ehe=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 la={basename:nhe,dirname:ihe,extname:ahe,join:ohe,sep:"/"};function nhe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');fv(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 ihe(e){if(fv(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 ahe(e){fv(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 ohe(...e){let t=-1,r;for(;++t0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function lhe(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 fv(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const uhe={cwd:che};function che(){return"/"}function YC(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function fhe(e){if(typeof e=="string")e=new URL(e);else if(!YC(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 dhe(e)}function dhe(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];jC(v)&&jC(h)&&(h=YS(!0,v,h)),n[d]=[u,h,...p]}}}}const ghe=new N2().freeze();function KS(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function QS(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function JS(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 OL(e){if(!jC(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function NL(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function cg(e){return mhe(e)?e:new eH(e)}function mhe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function yhe(e){return typeof e=="string"||xhe(e)}function xhe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const zL={}.hasOwnProperty,She="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",BL=[],FL={allowDangerousHtml:!0},bhe=/^(https?|ircs?|mailto|xmpp)$/i,_he=[{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 whe(e){const t=e.allowedElements,r=e.allowElement,n=e.children||"",i=e.className,a=e.components,o=e.disallowedElements,s=e.rehypePlugins||BL,l=e.remarkPlugins||BL,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...FL}:FL,c=e.skipHtml,f=e.unwrapDisallowed,d=e.urlTransform||Che,h=ghe().use(ide).use(l).use(Jde,u).use(s),p=new eH;typeof n=="string"&&(p.value=n);for(const y of _he)Object.hasOwn(e,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+She+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]}),QG(g,m),$ue(g,{Fragment:E.Fragment,components:a,ignoreInvalidStyle:!0,jsx:E.jsx,jsxs:E.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 WS)if(zL.call(WS,_)&&zL.call(y.properties,_)){const b=y.properties[_],w=WS[_];(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 Che(e){return ice(e,bhe)}const Lm=(e,t=0)=>{const r=Math.pow(10,t);return Math.round(e*r)/r};function The({content:e,formatter:t,round:r,markdown:n}){return t?t(e):r?Lm(e,r):n?E.jsx(whe,{skipHtml:!1,children:e}):e}function zf({rows:e,structure:t,onTableHeadClick:r,currentSortField:n}){return E.jsx(gae,{component:H1,children:E.jsxs(Xie,{children:[E.jsx(wae,{children:E.jsx(fR,{children:t.map(({title:i,key:a})=>E.jsx(sR,{"data-sortkey":a,onClick:r,sx:{cursor:r?"pointer":"default",color:n===a?"primary.main":"text.primary"},children:i},`table-head-${a}`))})}),E.jsx(nae,{children:e.map((i,a)=>E.jsx(fR,{children:t.map(({key:o,...s},l)=>E.jsx(sR,{children:E.jsx(The,{content:i[o],...s})},`table-row=${l}`))},`${i.name}-${a}`))})]})})}function Ahe({rows:e,tableStructure:t}){return t?E.jsx(zf,{rows:e,structure:t}):null}const Mhe=({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:hG(a),...o})):null,rows:i?i.data:[]}},Ihe=qn(Mhe)(Ahe),Phe=[{key:"count",title:"# occurrences"},{key:"traceback",title:"Traceback"}];function tH({exceptions:e}){return E.jsx(zf,{rows:e,structure:Phe})}const khe=({ui:{exceptions:e}})=>({exceptions:e}),Dhe=qn(khe)(tH);function Rhe(e,t){const r=t?-1:1;return function(n,i){const a=n[e],o=i[e];return ao?r*1:0}}function z2(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(Rhe(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,i(e);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,sortedStats:n,currentSortField:s.current}}const Lhe=[{key:"occurrences",title:"# Failures"},{key:"method",title:"Method"},{key:"name",title:"Name"},{key:"error",title:"Message",markdown:!0}];function rH({errors:e}){const{onTableHeadClick:t,sortedStats:r,currentSortField:n}=z2(e);return E.jsx(zf,{currentSortField:n,onTableHeadClick:t,rows:r,structure:Lhe})}const Ehe=({ui:{errors:e}})=>({errors:e}),Ohe=qn(Ehe)(rH);function th(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])}function Nhe(){const e=Ef(({swarm:n})=>n),{data:t,refetch:r}=zle();return th(r,5e3,{shouldRunInterval:e.state!==li.STOPPED}),E.jsxs(ht,{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"Logs"}),E.jsx("ul",{children:t&&t.logs.map((n,i)=>E.jsx("li",{children:n},`log-${i}`))})]})}function zhe({extendedCsvFiles:e,statsHistoryEnabled:t}){const r=Ef(({theme:{isDarkMode:n}})=>n);return E.jsxs(M4,{sx:{display:"flex",flexDirection:"column"},children:[E.jsx(Wu,{children:E.jsx(si,{href:"/stats/requests/csv",children:"Download requests CSV"})}),t&&E.jsx(Wu,{children:E.jsx(si,{href:"/stats/requests_full_history/csv",children:"Download full request statistics history CSV"})}),E.jsx(Wu,{children:E.jsx(si,{href:"/stats/failures/csv",children:"Download failures CSV"})}),E.jsx(Wu,{children:E.jsx(si,{href:"/exceptions/csv",children:"Download exceptions CSV"})}),E.jsx(Wu,{children:E.jsx(si,{href:`/stats/report?theme=${r?Ma.DARK:Ma.LIGHT}`,target:"_blank",children:"Download Report"})}),e&&e.map(({href:n,title:i},a)=>E.jsx(Wu,{children:E.jsx(si,{href:n,children:i})},`extended-csv-${a}`))]})}const Bhe=({swarm:{extendedCsvFiles:e,statsHistoryEnabled:t}})=>({extendedCsvFiles:e,statsHistoryEnabled:t}),Fhe=qn(Bhe)(zhe),$he=[{key:"method",title:"Type"},{key:"name",title:"Name"},{key:"numRequests",title:"# Requests"},{key:"numFailures",title:"# Fails"},{key:"medianResponseTime",title:"Median (ms)",round:2},{key:"ninetiethResponseTime",title:"90%ile (ms)"},{key:"ninetyNinthResponseTime",title:"99%ile (ms)"},{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 nH({stats:e}){const{onTableHeadClick:t,sortedStats:r,currentSortField:n}=z2(e,{hasTotalRow:!0});return E.jsx(zf,{currentSortField:n,onTableHeadClick:t,rows:r,structure:$he})}const Vhe=({ui:{stats:e}})=>({stats:e}),Ghe=qn(Vhe)(nH);/*! ***************************************************************************** +`}),r}function AL(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function ML(e,t){const r=ihe(e,t),n=r.one(e,void 0),i=Yde(r),a=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` +`},i),a}function uhe(e,t){return e&&"run"in e?async function(r,n){const i=ML(r,t);await e.run(i,n)}:function(r){return ML(r,t||e)}}function IL(e){if(e)throw e}var Em=Object.prototype.hasOwnProperty,rH=Object.prototype.toString,PL=Object.defineProperty,kL=Object.getOwnPropertyDescriptor,DL=function(t){return typeof Array.isArray=="function"?Array.isArray(t):rH.call(t)==="[object Array]"},RL=function(t){if(!t||rH.call(t)!=="[object Object]")return!1;var r=Em.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&Em.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;var i;for(i in t);return typeof i>"u"||Em.call(t,i)},LL=function(t,r){PL&&r.name==="__proto__"?PL(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},EL=function(t,r){if(r==="__proto__")if(Em.call(t,r)){if(kL)return kL(t,r).value}else return;return t[r]},che=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 la={basename:hhe,dirname:phe,extname:vhe,join:ghe,sep:"/"};function hhe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');hv(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 phe(e){if(hv(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 vhe(e){hv(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 ghe(...e){let t=-1,r;for(;++t0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function yhe(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 hv(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const xhe={cwd:She};function She(){return"/"}function qC(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function bhe(e){if(typeof e=="string")e=new URL(e);else if(!qC(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 _he(e)}function _he(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];YC(v)&&YC(h)&&(h=qS(!0,v,h)),n[d]=[u,h,...p]}}}}const Ahe=new z2().freeze();function QS(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function JS(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function eb(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 NL(e){if(!YC(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function zL(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function dg(e){return Mhe(e)?e:new nH(e)}function Mhe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Ihe(e){return typeof e=="string"||Phe(e)}function Phe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const BL={}.hasOwnProperty,khe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",FL=[],$L={allowDangerousHtml:!0},Dhe=/^(https?|ircs?|mailto|xmpp)$/i,Rhe=[{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 Lhe(e){const t=e.allowedElements,r=e.allowElement,n=e.children||"",i=e.className,a=e.components,o=e.disallowedElements,s=e.rehypePlugins||FL,l=e.remarkPlugins||FL,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...$L}:$L,c=e.skipHtml,f=e.unwrapDisallowed,d=e.urlTransform||Ehe,h=Ahe().use(pde).use(l).use(uhe,u).use(s),p=new nH;typeof n=="string"&&(p.value=n);for(const y of Rhe)Object.hasOwn(e,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+khe+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]}),tH(g,m),Zue(g,{Fragment:E.Fragment,components:a,ignoreInvalidStyle:!0,jsx:E.jsx,jsxs:E.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 US)if(BL.call(US,_)&&BL.call(y.properties,_)){const b=y.properties[_],w=US[_];(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 Ehe(e){return pce(e,Dhe)}const Om=(e,t=0)=>{const r=Math.pow(10,t);return Math.round(e*r)/r};function Ohe({content:e,formatter:t,round:r,markdown:n}){return t?t(e):r?Om(e,r):n?E.jsx(Lhe,{skipHtml:!1,children:e}):e}function Ff({rows:e,structure:t,onTableHeadClick:r,currentSortField:n}){return E.jsx(xae,{component:U1,children:E.jsxs(Qie,{children:[E.jsx(Aae,{children:E.jsx(dR,{children:t.map(({title:i,key:a})=>E.jsx(lR,{"data-sortkey":a,onClick:r,sx:{cursor:r?"pointer":"default",color:n===a?"primary.main":"text.primary"},children:i},`table-head-${a}`))})}),E.jsx(oae,{children:e.map((i,a)=>E.jsx(dR,{children:t.map(({key:o,...s},l)=>E.jsx(lR,{children:E.jsx(Ohe,{content:i[o],...s})},`table-row=${l}`))},`${i.name}-${a}`))})]})})}function Nhe({rows:e,tableStructure:t}){return t?E.jsx(Ff,{rows:e,structure:t}):null}const zhe=({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:pG(a),...o})):null,rows:i?i.data:[]}},Bhe=Xn(zhe)(Nhe),Fhe=[{key:"count",title:"# occurrences"},{key:"traceback",title:"Traceback"}];function iH({exceptions:e}){return E.jsx(Ff,{rows:e,structure:Fhe})}const $he=({ui:{exceptions:e}})=>({exceptions:e}),Vhe=Xn($he)(iH);function Ghe(e,t){const r=t?-1:1;return function(n,i){const a=n[e],o=i[e];return ao?r*1:0}}function B2(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(Ghe(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,i(e);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,sortedStats:n,currentSortField:s.current}}const Hhe=[{key:"occurrences",title:"# Failures"},{key:"method",title:"Method"},{key:"name",title:"Name"},{key:"error",title:"Message",markdown:!0}];function aH({errors:e}){const{onTableHeadClick:t,sortedStats:r,currentSortField:n}=B2(e);return E.jsx(Ff,{currentSortField:n,onTableHeadClick:t,rows:r,structure:Hhe})}const Whe=({ui:{errors:e}})=>({errors:e}),Uhe=Xn(Whe)(aH);function jhe(){const e=Vs(({logViewer:{logs:t}})=>t);return E.jsxs(ht,{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"Logs"}),E.jsx("ul",{children:e.map((t,r)=>E.jsx("li",{children:t},`log-${r}`))})]})}function Yhe({extendedCsvFiles:e,statsHistoryEnabled:t}){const r=Vs(({theme:{isDarkMode:n}})=>n);return E.jsxs(I4,{sx:{display:"flex",flexDirection:"column"},children:[E.jsx(ju,{children:E.jsx(li,{href:"/stats/requests/csv",children:"Download requests CSV"})}),t&&E.jsx(ju,{children:E.jsx(li,{href:"/stats/requests_full_history/csv",children:"Download full request statistics history CSV"})}),E.jsx(ju,{children:E.jsx(li,{href:"/stats/failures/csv",children:"Download failures CSV"})}),E.jsx(ju,{children:E.jsx(li,{href:"/exceptions/csv",children:"Download exceptions CSV"})}),E.jsx(ju,{children:E.jsx(li,{href:`/stats/report?theme=${r?Ma.DARK:Ma.LIGHT}`,target:"_blank",children:"Download Report"})}),e&&e.map(({href:n,title:i},a)=>E.jsx(ju,{children:E.jsx(li,{href:n,children:i})},`extended-csv-${a}`))]})}const qhe=({swarm:{extendedCsvFiles:e,statsHistoryEnabled:t}})=>({extendedCsvFiles:e,statsHistoryEnabled:t}),Xhe=Xn(qhe)(Yhe),Zhe=[{key:"method",title:"Type"},{key:"name",title:"Name"},{key:"numRequests",title:"# Requests"},{key:"numFailures",title:"# Fails"},{key:"medianResponseTime",title:"Median (ms)",round:2},{key:"ninetiethResponseTime",title:"90%ile (ms)"},{key:"ninetyNinthResponseTime",title:"99%ile (ms)"},{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 oH({stats:e}){const{onTableHeadClick:t,sortedStats:r,currentSortField:n}=B2(e,{hasTotalRow:!0});return E.jsx(Ff,{currentSortField:n,onTableHeadClick:t,rows:r,structure:Zhe})}const Khe=({ui:{stats:e}})=>({stats:e}),Qhe=Xn(Khe)(oH);/*! ***************************************************************************** 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 qC=function(e,t){return qC=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])},qC(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");qC(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Hhe=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),Whe=function(){function e(){this.browser=new Hhe,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}(),bl=new Whe;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(bl.wxa=!0,bl.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?bl.worker=!0:typeof navigator>"u"?(bl.node=!0,bl.svgSupported=!0):Uhe(navigator.userAgent,bl);function Uhe(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=bl;var B2=12,iH="sans-serif",Is=B2+"px "+iH,jhe=20,Yhe=100,qhe="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Xhe(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"?_l.worker=!0:typeof navigator>"u"?(_l.node=!0,_l.svgSupported=!0):tpe(navigator.userAgent,_l);function tpe(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=_l;var F2=12,sH="sans-serif",Is=F2+"px "+sH,rpe=20,npe=100,ipe="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function ape(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 ype(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?HL(s,o):HL(o,s))}function fH(e){return e.nodeName.toUpperCase()==="CANVAS"}var xpe=/([&<>"'])/g,Spe={"&":"&","<":"<",">":">",'"':""","'":"'"};function mn(e){return e==null?"":(e+"").replace(xpe,function(t,r){return Spe[r]})}var bpe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,tb=[],_pe=tt.browser.firefox&&+tt.browser.version.split(".")[0]<39;function rT(e,t,r,n){return r=r||{},n?UL(e,t,r):_pe&&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):UL(e,t,r),r}function UL(e,t,r){if(tt.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(fH(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(tT(tb,e,n,i)){r.zrX=tb[0],r.zrY=tb[1];return}}r.zrX=r.zrY=0}function U2(e){return e||window.event}function ei(e,t,r){if(t=U2(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&&rT(e,o,t,r)}else{rT(e,t,t,r);var a=wpe(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&bpe.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function wpe(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 nT(e,t,r,n){e.addEventListener(t,r,n)}function Cpe(e,t,r,n){e.removeEventListener(t,r,n)}var vo=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function jL(e){return e.which===2||e.which===3}var Tpe=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=YL(n)/YL(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Ape(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function bi(){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 j2(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 no(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 Na(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 Pu(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 Y2(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 $f(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 Mpe(e){var t=bi();return j2(t,e),t}var Ipe=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=Ipe;var dg=Math.min,hg=Math.max,js=new Le,Ys=new Le,qs=new Le,Xs=new Le,yd=new Le,xd=new Le,Ppe=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=dg(t.x,this.x),n=dg(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=hg(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=hg(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=bi();return Na(a,a,[-r.x,-r.y]),Y2(a,a,[n,i]),Na(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}js.x=qs.x=r.x,js.y=Xs.y=r.y,Ys.x=Xs.x=r.x+r.width,Ys.y=qs.y=r.y+r.height,js.transform(n),Xs.transform(n),Ys.transform(n),qs.transform(n),t.x=dg(js.x,Ys.x,qs.x,Xs.x),t.y=dg(js.y,Ys.y,qs.y,Xs.y);var l=hg(js.x,Ys.x,qs.x,Xs.x),u=hg(js.y,Ys.y,qs.y,Xs.y);t.width=l-t.x,t.height=u-t.y},e}();const Ne=Ppe;var dH="silent";function kpe(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:Dpe}}function Dpe(){vo(this.event)}var Rpe=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}(Ti),Sd=function(){function e(t,r){this.x=t,this.y=r}return e}(),Lpe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],nb=new Ne(0,0,0,0),hH=function(e){Dt(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new Sd(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new Rpe,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new hpe(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(D(Lpe,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=pH(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 Sd(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 Sd(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=kpe(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 Sd(r,n);if(qL(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)&&(nb.copy(d.getBoundingRect()),d.transform&&nb.applyTransform(d.transform),nb.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 Epe(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?dH:!0}return!1}function qL(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=Epe(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==dH)){t.target=o;break}}}function pH(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const Ope=hH;var vH=32,bd=7;function Npe(e){for(var t=0;e>=vH;)t|=e&1,e>>=1;return e+t}function XL(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 zpe(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 ib(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 ab(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 Bpe(e,t){var r=bd,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]=bd||w>=bd);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-ib(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=bd||A>=bd);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),ZL(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 On=1,rh=2,vc=4,KL=!1;function ob(){KL||(KL=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function QL(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Fpe=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=QL}return e.prototype.traverse=function(t,r){for(var n=0;n0&&(c.__clipPaths=[]),isNaN(c.z)&&(ob(),c.z=0),isNaN(c.z2)&&(ob(),c.z2=0),isNaN(c.zlevel)&&(ob(),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 $pe=Fpe;var gH;gH=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 iT=gH;var Bm={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-Bm.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?Bm.bounceIn(e*2)*.5:Bm.bounceOut(e*2-1)*.5+.5}};const mH=Bm;var pg=Math.pow,ys=Math.sqrt,qy=1e-8,yH=1e-4,JL=ys(3),vg=1/3,va=Iu(),ci=Iu(),qc=Iu();function rs(e){return e>-qy&&eqy||e<-qy}function vr(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 eE(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function Xy(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(rs(c)&&rs(f))if(rs(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(rs(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=ys(v),x=c*s+1.5*o*(-f+y),S=c*s+1.5*o*(-f-y);x<0?x=-pg(-x,vg):x=pg(x,vg),S<0?S=-pg(-S,vg):S=pg(S,vg);var p=(-s-(x+S))/(3*o);p>=0&&p<=1&&(a[h++]=p)}else{var _=(2*c*s-3*o*f)/(2*ys(c*c*c)),b=Math.acos(_)/3,w=ys(c),C=Math.cos(b),p=(-s-2*w*C)/(3*o),m=(-s+w*(C+JL*Math.sin(b)))/(3*o),A=(-s+w*(C-JL*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 SH(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(rs(o)){if(xH(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(rs(c))i[0]=-a/(2*o);else if(c>0){var f=ys(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 ks(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 bH(e,t,r,n,i,a,o,s,l,u,c){var f,d=.005,h=1/0,p,v,g,m;va[0]=l,va[1]=u;for(var y=0;y<1;y+=.05)ci[0]=vr(e,r,i,o,y),ci[1]=vr(t,n,a,s,y),g=Ql(va,ci),g=0&&g=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(rs(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=ys(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 _H(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function Tp(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 wH(e,t,r,n,i,a,o,s,l){var u,c=.005,f=1/0;va[0]=o,va[1]=s;for(var d=0;d<1;d+=.05){ci[0]=_r(e,r,i,d),ci[1]=_r(t,n,a,d);var h=Ql(va,ci);h=0&&h=1?1:Xy(0,n,a,1,l,s)&&vr(0,i,o,1,s[0])}}}var Upe=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=me(t)?t:mH[t]||q2(t)},e}();const jpe=Upe;var CH=function(){function e(t){this.value=t}return e}(),Ype=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new CH(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}(),qpe=function(){function e(t){this._list=new Ype,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 CH(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 dv=qpe;var tE={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 Wi(e){return e=Math.round(e),e<0?0:e>255?255:e}function Xpe(e){return e=Math.round(e),e<0?0:e>360?360:e}function Ap(e){return e<0?0:e>1?1:e}function sb(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Wi(parseFloat(t)/100*255):Wi(parseInt(t,10))}function Jl(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Ap(parseFloat(t)/100):Ap(parseFloat(t))}function lb(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 ns(e,t,r){return e+(t-e)*r}function Jn(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function oT(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var TH=new dv(20),gg=null;function Yu(e,t){gg&&oT(gg,t),gg=TH.put(e,gg||t.slice())}function $n(e,t){if(e){t=t||[];var r=TH.get(e);if(r)return oT(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in tE)return oT(t,tE[n]),Yu(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)){Jn(t,0,0,0,1);return}return Jn(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),Yu(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Jn(t,0,0,0,1);return}return Jn(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Yu(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?Jn(t,+u[0],+u[1],+u[2],1):Jn(t,0,0,0,1);c=Jl(u.pop());case"rgb":if(u.length>=3)return Jn(t,sb(u[0]),sb(u[1]),sb(u[2]),u.length===3?c:Jl(u[3])),Yu(e,t),t;Jn(t,0,0,0,1);return;case"hsla":if(u.length!==4){Jn(t,0,0,0,1);return}return u[3]=Jl(u[3]),sT(u,t),Yu(e,t),t;case"hsl":if(u.length!==3){Jn(t,0,0,0,1);return}return sT(u,t),Yu(e,t),t;default:return}}Jn(t,0,0,0,1)}}function sT(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Jl(e[1]),i=Jl(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],Jn(t,Wi(lb(o,a,r+1/3)*255),Wi(lb(o,a,r)*255),Wi(lb(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Zpe(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 lT(e,t){var r=$n(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 io(r,r.length===4?"rgba":"rgb")}}function ub(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]=Wi(ns(o[0],s[0],l)),r[1]=Wi(ns(o[1],s[1],l)),r[2]=Wi(ns(o[2],s[2],l)),r[3]=Ap(ns(o[3],s[3],l)),r}}function Kpe(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=$n(t[i]),s=$n(t[a]),l=n-i,u=io([Wi(ns(o[0],s[0],l)),Wi(ns(o[1],s[1],l)),Wi(ns(o[2],s[2],l)),Ap(ns(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function Oh(e,t,r,n){var i=$n(e);if(e)return i=Zpe(i),t!=null&&(i[0]=Xpe(t)),r!=null&&(i[1]=Jl(r)),n!=null&&(i[2]=Jl(n)),io(sT(i),"rgba")}function Zy(e,t){var r=$n(e);if(r&&t!=null)return r[3]=Ap(t),io(r,"rgba")}function io(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 Ky(e,t){var r=$n(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var Qy=Math.round;function Mp(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=$n(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var rE=1e-4;function is(e){return e-rE}function mg(e){return Qy(e*1e3)/1e3}function uT(e){return Qy(e*1e4)/1e4}function Qpe(e){return"matrix("+mg(e[0])+","+mg(e[1])+","+mg(e[2])+","+mg(e[3])+","+uT(e[4])+","+uT(e[5])+")"}var Jpe={left:"start",right:"end",center:"middle",middle:"middle"};function eve(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function tve(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function rve(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 AH(e){return e&&!!e.image}function nve(e){return e&&!!e.svgElement}function X2(e){return AH(e)||nve(e)}function MH(e){return e.type==="linear"}function IH(e){return e.type==="radial"}function PH(e){return e&&(e.type==="linear"||e.type==="radial")}function fx(e){return"url(#"+e+")"}function kH(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 DH(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*Em,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("+Qy(o*Em)+"deg, "+Qy(s*Em)+"deg)"),l.join(" ")}var ive=function(){return tt.hasGlobalWindow&&me(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 qa(e,t,r){return(t-e)*r+e}function cb(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=iE,l=r;if(Zr(r)){var u=lve(r);s=u,(u===1&&!nt(r[0])||u===2&&!nt(r[0][0]))&&(o=!0)}else if(nt(r)&&!Cp(r))s=xg;else if(oe(r))if(!isNaN(+r))s=xg;else{var c=$n(r);c&&(l=c,s=nh)}else if(lx(r)){var f=Y({},l);f.colorStops=Z(r.colorStops,function(h){return{offset:h.offset,color:$n(h.color)}}),MH(r)?s=fT:IH(r)&&(s=dT),l=f}a===0?this.valType=s:(s!==this.valType||s===iE)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=me(n)?n:mH[n]||q2(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=Sg(i),u=aE(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?_d:t[l];if((Sg(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?h.rawValue:p.rawValue;else if(Sg(a))a===$m?cb(y,h[i],p[i],m):ave(y,h[i],p[i],m);else if(aE(a)){var x=h[i],S=p[i],_=a===fT;t[l]={type:_?"linear":"radial",x:qa(x.x,S.x,m),y:qa(x.y,S.y,m),colorStops:Z(x.colorStops,function(w,C){var A=S.colorStops[C];return{offset:qa(w.offset,A.offset,m),color:Fm(cb([],w.color,A.color,m))}}),global:S.global},_?(t[l].x2=qa(x.x2,S.x2,m),t[l].y2=qa(x.y2,S.y2,m)):t[l].r=qa(x.r,S.r,m)}else if(u)cb(y,h[i],p[i],m),n||(t[l]=Fm(y));else{var b=qa(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===xg?t[n]=t[n]+i:r===nh?($n(t[n],_d),yg(_d,_d,i,1),t[n]=Fm(_d)):r===$m?yg(t[n],t[n],i,1):r===RH&&nE(t[n],t[n],i,1)},e}(),Z2=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){V2("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,He(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o0&&l.addKeyframe(0,Nh(u),i),this._trackKeys.push(s)}l.addKeyframe(t,Nh(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 Lc(){return new Date().getTime()}var cve=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=Lc()-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&&(iT(n),!r._paused&&r.update())}iT(n)},t.prototype.start=function(){this._running||(this._time=Lc(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Lc(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Lc()-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 Z2(r,n.loop);return this.addAnimator(i),i},t}(Ti);const fve=cve;var dve=300,fb=tt.domSupported,db=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}}(),oE={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},sE=!1;function hT(e){var t=e.pointerType;return t==="pen"||t==="touch"}function hve(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 hb(e){e&&(e.zrByTouch=!0)}function pve(e,t){return ei(e.dom,new vve(e,t),!0)}function LH(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 vve=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}(),Ri={mousedown:function(e){e=ei(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=ei(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=ei(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=ei(this.dom,e);var t=e.toElement||e.relatedTarget;LH(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){sE=!0,e=ei(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){sE||(e=ei(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=ei(this.dom,e),hb(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Ri.mousemove.call(this,e),Ri.mousedown.call(this,e)},touchmove:function(e){e=ei(this.dom,e),hb(e),this.handler.processGesture(e,"change"),Ri.mousemove.call(this,e)},touchend:function(e){e=ei(this.dom,e),hb(e),this.handler.processGesture(e,"end"),Ri.mouseup.call(this,e),+new Date-+this.__lastTouchMomentcE||e<-cE}var Ks=[],qu=[],vb=bi(),gb=Math.abs,bve=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 Zs(this.rotation)||Zs(this.x)||Zs(this.y)||Zs(this.scaleX-1)||Zs(this.scaleY-1)||Zs(this.skewX)||Zs(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(uE(n),this.invTransform=null);return}n=n||bi(),r?this.getLocalTransform(n):uE(n),t&&(r?no(n,t,n):j2(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Ks);var n=Ks[0]<0?-1:1,i=Ks[1]<0?-1:1,a=((Ks[0]-n)*r+n)/Ks[0]||0,o=((Ks[1]-i)*r+i)/Ks[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||bi(),$f(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&&(no(qu,t.invTransform,r),r=qu);var n=this.originX,i=this.originY;(n||i)&&(vb[4]=n,vb[5]=i,no(qu,r,vb),qu[4]-=n,qu[5]-=i,r=qu),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&&gb(t[0]-1)>1e-10&&gb(t[3]-1)>1e-10?Math.sqrt(gb(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){OH(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&&Pu(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}(),za=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function OH(e,t){for(var r=0;r=0?parseFloat(e)/100*t:parseFloat(e):e}function e0(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+=Xi(n[0],r.width),u+=Xi(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 mb="__zr_normal__",yb=za.concat(["ignore"]),_ve=Oa(za,function(e,t){return e[t]=!0,e},{ignore:!1}),Xu={},wve=new Ne(0,0,0,0),K2=function(){function e(t){this.id=sH(),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=wve;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Xu,n,c):e0(Xu,n,c),a.x=Xu.x,a.y=Xu.y,o=Xu.align,s=Xu.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=Xi(f[0],c.width),h=Xi(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|=On,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()?mT:gT},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&$n(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,io(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||{},Y(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(Se(t))for(var n=t,i=He(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(mb,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===mb,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){V2("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&=~On),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&=~On)}},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 Ipe(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?WL(s,o):WL(o,s))}function pH(e){return e.nodeName.toUpperCase()==="CANVAS"}var Ppe=/([&<>"'])/g,kpe={"&":"&","<":"<",">":">",'"':""","'":"'"};function mn(e){return e==null?"":(e+"").replace(Ppe,function(t,r){return kpe[r]})}var Dpe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,rb=[],Rpe=tt.browser.firefox&&+tt.browser.version.split(".")[0]<39;function nT(e,t,r,n){return r=r||{},n?jL(e,t,r):Rpe&&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):jL(e,t,r),r}function jL(e,t,r){if(tt.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(pH(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(rT(rb,e,n,i)){r.zrX=rb[0],r.zrY=rb[1];return}}r.zrX=r.zrY=0}function j2(e){return e||window.event}function ti(e,t,r){if(t=j2(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&&nT(e,o,t,r)}else{nT(e,t,t,r);var a=Lpe(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Dpe.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Lpe(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 iT(e,t,r,n){e.addEventListener(t,r,n)}function Epe(e,t,r,n){e.removeEventListener(t,r,n)}var vo=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function YL(e){return e.which===2||e.which===3}var Ope=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=qL(n)/qL(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Npe(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function _i(){return[1,0,0,1,0,0]}function fx(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Y2(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 no(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 Na(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 Du(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 q2(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 Gf(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 zpe(e){var t=_i();return Y2(t,e),t}var Bpe=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=Bpe;var pg=Math.min,vg=Math.max,Ys=new Le,qs=new Le,Xs=new Le,Zs=new Le,Sd=new Le,bd=new Le,Fpe=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=pg(t.x,this.x),n=pg(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=vg(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=vg(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=_i();return Na(a,a,[-r.x,-r.y]),q2(a,a,[n,i]),Na(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}Ys.x=Xs.x=r.x,Ys.y=Zs.y=r.y,qs.x=Zs.x=r.x+r.width,qs.y=Xs.y=r.y+r.height,Ys.transform(n),Zs.transform(n),qs.transform(n),Xs.transform(n),t.x=pg(Ys.x,qs.x,Xs.x,Zs.x),t.y=pg(Ys.y,qs.y,Xs.y,Zs.y);var l=vg(Ys.x,qs.x,Xs.x,Zs.x),u=vg(Ys.y,qs.y,Xs.y,Zs.y);t.width=l-t.x,t.height=u-t.y},e}();const Ne=Fpe;var vH="silent";function $pe(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:Vpe}}function Vpe(){vo(this.event)}var Gpe=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}(Ai),_d=function(){function e(t,r){this.x=t,this.y=r}return e}(),Hpe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ib=new Ne(0,0,0,0),gH=function(e){Dt(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new _d(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new Gpe,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new wpe(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(D(Hpe,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=mH(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 _d(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 _d(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=$pe(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 _d(r,n);if(XL(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)&&(ib.copy(d.getBoundingRect()),d.transform&&ib.applyTransform(d.transform),ib.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 Wpe(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?vH:!0}return!1}function XL(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=Wpe(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==vH)){t.target=o;break}}}function mH(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const Upe=gH;var yH=32,wd=7;function jpe(e){for(var t=0;e>=yH;)t|=e&1,e>>=1;return e+t}function ZL(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 Ype(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 ab(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 ob(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 qpe(e,t){var r=wd,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]=wd||w>=wd);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-ab(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=wd||A>=wd);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),KL(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 Nn=1,nh=2,yc=4,QL=!1;function sb(){QL||(QL=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function JL(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Xpe=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=JL}return e.prototype.traverse=function(t,r){for(var n=0;n0&&(c.__clipPaths=[]),isNaN(c.z)&&(sb(),c.z=0),isNaN(c.z2)&&(sb(),c.z2=0),isNaN(c.zlevel)&&(sb(),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 Zpe=Xpe;var xH;xH=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 aT=xH;var $m={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-$m.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?$m.bounceIn(e*2)*.5:$m.bounceOut(e*2-1)*.5+.5}};const SH=$m;var gg=Math.pow,ys=Math.sqrt,Zy=1e-8,bH=1e-4,eE=ys(3),mg=1/3,va=ku(),fi=ku(),Kc=ku();function rs(e){return e>-Zy&&eZy||e<-Zy}function vr(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 tE(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function Ky(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(rs(c)&&rs(f))if(rs(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(rs(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=ys(v),x=c*s+1.5*o*(-f+y),S=c*s+1.5*o*(-f-y);x<0?x=-gg(-x,mg):x=gg(x,mg),S<0?S=-gg(-S,mg):S=gg(S,mg);var p=(-s-(x+S))/(3*o);p>=0&&p<=1&&(a[h++]=p)}else{var _=(2*c*s-3*o*f)/(2*ys(c*c*c)),b=Math.acos(_)/3,w=ys(c),C=Math.cos(b),p=(-s-2*w*C)/(3*o),m=(-s+w*(C+eE*Math.sin(b)))/(3*o),A=(-s+w*(C-eE*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 wH(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(rs(o)){if(_H(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(rs(c))i[0]=-a/(2*o);else if(c>0){var f=ys(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 ks(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;va[0]=l,va[1]=u;for(var y=0;y<1;y+=.05)fi[0]=vr(e,r,i,o,y),fi[1]=vr(t,n,a,s,y),g=eu(va,fi),g=0&&g=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(rs(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=ys(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 TH(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function Ap(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 AH(e,t,r,n,i,a,o,s,l){var u,c=.005,f=1/0;va[0]=o,va[1]=s;for(var d=0;d<1;d+=.05){fi[0]=_r(e,r,i,d),fi[1]=_r(t,n,a,d);var h=eu(va,fi);h=0&&h=1?1:Ky(0,n,a,1,l,s)&&vr(0,i,o,1,s[0])}}}var tve=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=me(t)?t:SH[t]||X2(t)},e}();const rve=tve;var MH=function(){function e(t){this.value=t}return e}(),nve=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new MH(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}(),ive=function(){function e(t){this._list=new nve,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 MH(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 pv=ive;var rE={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 Wi(e){return e=Math.round(e),e<0?0:e>255?255:e}function ave(e){return e=Math.round(e),e<0?0:e>360?360:e}function Mp(e){return e<0?0:e>1?1:e}function lb(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Wi(parseFloat(t)/100*255):Wi(parseInt(t,10))}function tu(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Mp(parseFloat(t)/100):Mp(parseFloat(t))}function ub(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 ns(e,t,r){return e+(t-e)*r}function ei(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 IH=new pv(20),yg=null;function Xu(e,t){yg&&sT(yg,t),yg=IH.put(e,yg||t.slice())}function Vn(e,t){if(e){t=t||[];var r=IH.get(e);if(r)return sT(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in rE)return sT(t,rE[n]),Xu(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)){ei(t,0,0,0,1);return}return ei(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),Xu(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){ei(t,0,0,0,1);return}return ei(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Xu(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?ei(t,+u[0],+u[1],+u[2],1):ei(t,0,0,0,1);c=tu(u.pop());case"rgb":if(u.length>=3)return ei(t,lb(u[0]),lb(u[1]),lb(u[2]),u.length===3?c:tu(u[3])),Xu(e,t),t;ei(t,0,0,0,1);return;case"hsla":if(u.length!==4){ei(t,0,0,0,1);return}return u[3]=tu(u[3]),lT(u,t),Xu(e,t),t;case"hsl":if(u.length!==3){ei(t,0,0,0,1);return}return lT(u,t),Xu(e,t),t;default:return}}ei(t,0,0,0,1)}}function lT(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=tu(e[1]),i=tu(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],ei(t,Wi(ub(o,a,r+1/3)*255),Wi(ub(o,a,r)*255),Wi(ub(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function ove(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 uT(e,t){var r=Vn(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 io(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]=Wi(ns(o[0],s[0],l)),r[1]=Wi(ns(o[1],s[1],l)),r[2]=Wi(ns(o[2],s[2],l)),r[3]=Mp(ns(o[3],s[3],l)),r}}function sve(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=Vn(t[i]),s=Vn(t[a]),l=n-i,u=io([Wi(ns(o[0],s[0],l)),Wi(ns(o[1],s[1],l)),Wi(ns(o[2],s[2],l)),Mp(ns(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function Nh(e,t,r,n){var i=Vn(e);if(e)return i=ove(i),t!=null&&(i[0]=ave(t)),r!=null&&(i[1]=tu(r)),n!=null&&(i[2]=tu(n)),io(lT(i),"rgba")}function Qy(e,t){var r=Vn(e);if(r&&t!=null)return r[3]=Mp(t),io(r,"rgba")}function io(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 Jy(e,t){var r=Vn(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var e0=Math.round;function Ip(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=Vn(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var nE=1e-4;function is(e){return e-nE}function xg(e){return e0(e*1e3)/1e3}function cT(e){return e0(e*1e4)/1e4}function lve(e){return"matrix("+xg(e[0])+","+xg(e[1])+","+xg(e[2])+","+xg(e[3])+","+cT(e[4])+","+cT(e[5])+")"}var uve={left:"start",right:"end",center:"middle",middle:"middle"};function cve(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function fve(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function dve(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 PH(e){return e&&!!e.image}function hve(e){return e&&!!e.svgElement}function Z2(e){return PH(e)||hve(e)}function kH(e){return e.type==="linear"}function DH(e){return e.type==="radial"}function RH(e){return e&&(e.type==="linear"||e.type==="radial")}function dx(e){return"url(#"+e+")"}function LH(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 EH(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*Nm,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("+e0(o*Nm)+"deg, "+e0(s*Nm)+"deg)"),l.join(" ")}var pve=function(){return tt.hasGlobalWindow&&me(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}}(),fT=Array.prototype.slice;function qa(e,t,r){return(t-e)*r+e}function fb(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=aE,l=r;if(Zr(r)){var u=yve(r);s=u,(u===1&&!nt(r[0])||u===2&&!nt(r[0][0]))&&(o=!0)}else if(nt(r)&&!Tp(r))s=bg;else if(oe(r))if(!isNaN(+r))s=bg;else{var c=Vn(r);c&&(l=c,s=ih)}else if(ux(r)){var f=Y({},l);f.colorStops=Z(r.colorStops,function(h){return{offset:h.offset,color:Vn(h.color)}}),kH(r)?s=dT:DH(r)&&(s=hT),l=f}a===0?this.valType=s:(s!==this.valType||s===aE)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=me(n)?n:SH[n]||X2(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=_g(i),u=oE(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?Cd:t[l];if((_g(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?h.rawValue:p.rawValue;else if(_g(a))a===Gm?fb(y,h[i],p[i],m):vve(y,h[i],p[i],m);else if(oE(a)){var x=h[i],S=p[i],_=a===dT;t[l]={type:_?"linear":"radial",x:qa(x.x,S.x,m),y:qa(x.y,S.y,m),colorStops:Z(x.colorStops,function(w,C){var A=S.colorStops[C];return{offset:qa(w.offset,A.offset,m),color:Vm(fb([],w.color,A.color,m))}}),global:S.global},_?(t[l].x2=qa(x.x2,S.x2,m),t[l].y2=qa(x.y2,S.y2,m)):t[l].r=qa(x.r,S.r,m)}else if(u)fb(y,h[i],p[i],m),n||(t[l]=Vm(y));else{var b=qa(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===bg?t[n]=t[n]+i:r===ih?(Vn(t[n],Cd),Sg(Cd,Cd,i,1),t[n]=Vm(Cd)):r===Gm?Sg(t[n],t[n],i,1):r===OH&&iE(t[n],t[n],i,1)},e}(),K2=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){G2("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,He(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o0&&l.addKeyframe(0,zh(u),i),this._trackKeys.push(s)}l.addKeyframe(t,zh(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 Nc(){return new Date().getTime()}var Sve=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=Nc()-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&&(aT(n),!r._paused&&r.update())}aT(n)},t.prototype.start=function(){this._running||(this._time=Nc(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Nc(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Nc()-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 K2(r,n.loop);return this.addAnimator(i),i},t}(Ai);const bve=Sve;var _ve=300,db=tt.domSupported,hb=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}}(),sE={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},lE=!1;function pT(e){var t=e.pointerType;return t==="pen"||t==="touch"}function wve(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 pb(e){e&&(e.zrByTouch=!0)}function Cve(e,t){return ti(e.dom,new Tve(e,t),!0)}function NH(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 Tve=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}(),Li={mousedown:function(e){e=ti(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=ti(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=ti(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=ti(this.dom,e);var t=e.toElement||e.relatedTarget;NH(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){lE=!0,e=ti(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){lE||(e=ti(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=ti(this.dom,e),pb(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Li.mousemove.call(this,e),Li.mousedown.call(this,e)},touchmove:function(e){e=ti(this.dom,e),pb(e),this.handler.processGesture(e,"change"),Li.mousemove.call(this,e)},touchend:function(e){e=ti(this.dom,e),pb(e),this.handler.processGesture(e,"end"),Li.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<_ve&&Li.click.call(this,e)},pointerdown:function(e){Li.mousedown.call(this,e)},pointermove:function(e){pT(e)||Li.mousemove.call(this,e)},pointerup:function(e){Li.mouseup.call(this,e)},pointerout:function(e){pT(e)||Li.mouseout.call(this,e)}};D(["click","dblclick","contextmenu"],function(e){Li[e]=function(t){t=ti(this.dom,t),this.trigger(e,t)}});var vT={pointermove:function(e){pT(e)||vT.mousemove.call(this,e)},pointerup:function(e){vT.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function Ave(e,t){var r=t.domHandlers;tt.pointerEventsSupported?D(hb.pointer,function(n){Hm(t,n,function(i){r[n].call(e,i)})}):(tt.touchEventsSupported&&D(hb.touch,function(n){Hm(t,n,function(i){r[n].call(e,i),wve(t)})}),D(hb.mouse,function(n){Hm(t,n,function(i){i=j2(i),t.touching||r[n].call(e,i)})}))}function Mve(e,t){tt.pointerEventsSupported?D(sE.pointer,r):tt.touchEventsSupported||D(sE.mouse,r);function r(n){function i(a){a=j2(a),NH(e,a.target)||(a=Cve(e,a),t.domHandlers[n].call(e,a))}Hm(t,n,i,{capture:!0})}}function Hm(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,iT(e.domTarget,t,r,n)}function vb(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&Epe(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var uE=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),Ive=function(e){Dt(t,e);function t(r,n){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new uE(r,Li),db&&(i._globalHandlerScope=new uE(document,vT)),Ave(i,i._localHandlerScope),i}return t.prototype.dispose=function(){vb(this._localHandlerScope),db&&vb(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,db&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?Mve(this,n):vb(n)}},t}(Ai);const Pve=Ive;var zH=1;tt.hasGlobalWindow&&(zH=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var t0=zH,gT=.4,mT="#333",yT="#ccc",kve="#eee",cE=fx,fE=5e-5;function Ks(e){return e>fE||e<-fE}var Qs=[],Zu=[],gb=_i(),mb=Math.abs,Dve=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 Ks(this.rotation)||Ks(this.x)||Ks(this.y)||Ks(this.scaleX-1)||Ks(this.scaleY-1)||Ks(this.skewX)||Ks(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(cE(n),this.invTransform=null);return}n=n||_i(),r?this.getLocalTransform(n):cE(n),t&&(r?no(n,t,n):Y2(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Qs);var n=Qs[0]<0?-1:1,i=Qs[1]<0?-1:1,a=((Qs[0]-n)*r+n)/Qs[0]||0,o=((Qs[1]-i)*r+i)/Qs[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||_i(),Gf(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&&(no(Zu,t.invTransform,r),r=Zu);var n=this.originX,i=this.originY;(n||i)&&(gb[4]=n,gb[5]=i,no(Zu,r,gb),Zu[4]-=n,Zu[5]-=i,r=Zu),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&&mb(t[0]-1)>1e-10&&mb(t[3]-1)>1e-10?Math.sqrt(mb(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){BH(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&&Du(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}(),za=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function BH(e,t){for(var r=0;r=0?parseFloat(e)/100*t:parseFloat(e):e}function r0(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+=Xi(n[0],r.width),u+=Xi(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 yb="__zr_normal__",xb=za.concat(["ignore"]),Rve=Oa(za,function(e,t){return e[t]=!0,e},{ignore:!1}),Ku={},Lve=new Ne(0,0,0,0),Q2=function(){function e(t){this.id=cH(),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=Lve;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ku,n,c):r0(Ku,n,c),a.x=Ku.x,a.y=Ku.y,o=Ku.align,s=Ku.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=Xi(f[0],c.width),h=Xi(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|=Nn,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()?yT:mT},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Vn(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,io(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||{},Y(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(Se(t))for(var n=t,i=He(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(yb,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===yb,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){G2("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&=~Nn),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&=~Nn)}},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)?Rve(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),$H),e=(+e).toFixed(t),r?e:+e}function vi(e){return e.sort(function(t,r){return t-r}),e}function Sa(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 Lve(e)}function Lve(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 VH(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 Eve(e,t){var r=Oa(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=Oa(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 Ove(e,t){var r=Math.max(Sa(e),Sa(t)),n=e+t;return r>$H?n:Xt(n,r)}var vE=9007199254740991;function GH(e){var t=Math.PI*2;return(e%t+t)%t}function t0(e){return e>-pE&&e=10&&t++,t}function HH(e,t){var r=Q2(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 bb(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 gE(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 sge=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],lge=mu(sge),uge=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return lge(this,t,r)},e}(),xT=new dv(50);function cge(e){if(typeof e=="string"){var t=xT.get(e);return t&&t.image}else return e}function rI(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=xT.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!px(t)&&a.pending.push(o)):(t=Ps.loadImage(e,SE,SE),t.__zrImageSrc=e,xT.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function SE(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;l++)s-=o;var u=Vn(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 r6(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=Vn(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?dge(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=Vn(e,n)}return e===""&&(e=t.placeholder),e}function dge(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=t6(c,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;gs&&wb(r,e.substring(s,u),t,o),wb(r,l[2],t,o,l[1]),s=_b.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 I=w.width,P=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")b.percentWidth=I,c.push(b),b.contentWidth=Vn(b.text,T);else{if(P){var k=w.backgroundColor,R=k&&k.image;R&&(R=cge(R),px(R)&&(b.width=Math.max(b.width,R.width*M/R.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=n6(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 yge=Oa(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function xge(e){return mge(e)?!!yge[e]:!0}function n6(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 ST="__zr_style_"+Math.round(Math.random()*10),eu={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},vx={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};eu[ST]=!0;var _E=["z","z2","invisible"],Sge=["invisible"],bge=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=He(r),i=0;i1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(bg[0]=Mb(i)*r+e,bg[1]=Ab(i)*n+t,_g[0]=Mb(a)*r+e,_g[1]=Ab(a)*n+t,u(s,bg,_g),c(l,bg,_g),i=i%Js,i<0&&(i=i+Js),a=a%Js,a<0&&(a=a+Js),i>a&&!o?a+=Js:ii&&(wg[0]=Mb(h)*r+e,wg[1]=Ab(h)*n+t,u(s,wg,s),c(l,wg,l))}var xt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},el=[],tl=[],ea=[],Lo=[],ta=[],ra=[],Ib=Math.min,Pb=Math.max,rl=Math.cos,nl=Math.sin,Ha=Math.abs,bT=Math.PI,Go=bT*2,kb=typeof Float32Array<"u",wd=[];function Db(e){var t=Math.round(e/bT*1e8)/1e8;return t%2*bT}function i6(e,t){var r=Db(e[0]);r<0&&(r+=Go);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=Go?i=r+Go:t&&r-i>=Go?i=r-Go:!t&&r>i?i=r+(Go-Db(r-i)):t&&r0&&(this._ux=Ha(n/Jy/t)||0,this._uy=Ha(n/Jy/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=Ha(t-this._xi),i=Ha(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(),wd[0]=i,wd[1]=a,i6(wd,o),i=wd[0],a=wd[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=rl(a)*n+t,this._yi=nl(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)&&kb&&(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(){ea[0]=ea[1]=ta[0]=ta[1]=Number.MAX_VALUE,Lo[0]=Lo[1]=ra[0]=ra[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;on||Ha(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=Vpe(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=Hpe(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++],I=t[d++],P=t[d++],k=P+I;d+=1,t[d++],p&&(s=rl(I)*T+C,l=nl(I)*M+A),v=Pb(T,M)*Ib(Go,Math.abs(P)),a=rl(k)*T+C,o=nl(k)*M+A;break;case xt.R:{s=a=t[d++],l=o=t[d++];var R=t[d++],z=t[d++];v=R*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=Ha(f-u),T=Ha(d-c);if(A>i||T>a){if(h){var M=p[m++];if(g+M>y){var I=(y-g)/M;t.lineTo(u*(1-I)+f*I,c*(1-I)+d*I);break e}g+=M}t.lineTo(f,d),u=f,c=d,x=0}else{var P=A*A+T*T;P>x&&(S=f,_=d,x=P)}break}case xt.C:{var k=n[b++],R=n[b++],z=n[b++],$=n[b++],N=n[b++],V=n[b++];if(h){var M=p[m++];if(g+M>y){var I=(y-g)/M;ks(u,k,z,N,I,el),ks(c,R,$,V,I,tl),t.bezierCurveTo(el[1],tl[1],el[2],tl[2],el[3],tl[3]);break e}g+=M}t.bezierCurveTo(k,R,z,$,N,V),u=N,c=V;break}case xt.Q:{var k=n[b++],R=n[b++],z=n[b++],$=n[b++];if(h){var M=p[m++];if(g+M>y){var I=(y-g)/M;Tp(u,k,z,I,el),Tp(c,R,$,I,tl),t.quadraticCurveTo(el[1],tl[1],el[2],tl[2]);break e}g+=M}t.quadraticCurveTo(k,R,z,$),u=z,c=$;break}case xt.A:var L=n[b++],G=n[b++],U=n[b++],B=n[b++],j=n[b++],X=n[b++],W=n[b++],ee=!n[b++],te=U>B?U:B,ie=Ha(U-B)>.001,re=j+X,Q=!1;if(h){var M=p[m++];g+M>y&&(re=j+X*(y-g)/M,Q=!0),g+=M}if(ie&&t.ellipse?t.ellipse(L,G,U,B,W,j,re,ee):t.arc(L,G,te,j,re,ee),Q)break e;C&&(s=rl(j)*U+L,l=nl(j)*B+G),u=rl(re)*U+L,c=nl(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++],fe=n[b++];if(h){var M=p[m++];if(g+M>y){var de=y-g;t.moveTo(f,d),t.lineTo(f+Ib(de,J),d),de-=J,de>0&&t.lineTo(f+J,d+Ib(de,fe)),de-=fe,de>0&&t.lineTo(f+Pb(J-de,0),d+fe),de-=J,de>0&&t.lineTo(f,d+Pb(fe-de,0));break e}g+=M}t.rect(f,d,J,fe);break;case xt.Z:if(h){var M=p[m++];if(g+M>y){var I=(y-g)/M;t.lineTo(u*(1-I)+s*I,c*(1-I)+l*I);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 Fa=Age;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+=Cd);var d=Math.atan2(l,s);return d<0&&(d+=Cd),d>=n&&d<=i||d+Cd>=n&&d+Cd<=i}function Xa(e,t,r,n,i,a){if(a>t&&a>n||ai?s:0}var Eo=Fa.CMD,il=Math.PI*2,Pge=1e-4;function kge(e,t){return Math.abs(e-t)t&&u>n&&u>a&&u>s||u1&&Dge(),h=vr(t,n,a,s,ri[0]),d>1&&(p=vr(t,n,a,s,ri[1]))),d===2?gt&&s>n&&s>a||s=0&&u<=1){for(var c=0,f=_r(t,n,a,u),d=0;dr||s<-r)return 0;var l=Math.sqrt(r*r-s*s);rn[0]=-l,rn[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=il-1e-4){n=0,i=il;var c=a?1:-1;return o>=rn[0]+e&&o<=rn[1]+e?c:0}if(n>i){var f=n;n=i,i=f}n<0&&(n+=il,i+=il);for(var d=0,h=0;h<2;h++){var p=rn[h];if(p+e>o){var v=Math.atan2(s,p),c=a?1:-1;v<0&&(v=il+v),(v>=n&&v<=i||v+il>=n&&v+il<=i)&&(v>Math.PI/2&&v1&&(r||(s+=Xa(l,u,c,f,n,i))),g&&(l=a[p],u=a[p+1],c=l,f=u),v){case Eo.M:c=a[p++],f=a[p++],l=c,u=f;break;case Eo.L:if(r){if(jo(l,u,a[p],a[p+1],t,n,i))return!0}else s+=Xa(l,u,a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case Eo.C:if(r){if(Mge(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],t,n,i))return!0}else s+=Rge(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 Eo.Q:if(r){if(a6(l,u,a[p++],a[p++],a[p],a[p+1],t,n,i))return!0}else s+=Lge(l,u,a[p++],a[p++],a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case Eo.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+=Xa(l,u,d,h,n,i);var C=(n-m)*S/x+m;if(r){if(Ige(m,y,S,_,_+b,w,t,C,i))return!0}else s+=Ege(m,y,S,_,_+b,w,C,i);l=Math.cos(_+b)*x+m,u=Math.sin(_+b)*S+y;break;case Eo.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+=Xa(d,f,d,h,n,i),s+=Xa(c,h,c,f,n,i);break;case Eo.Z:if(r){if(jo(l,u,c,f,t,n,i))return!0}else s+=Xa(l,u,c,f,n,i);l=c,u=f;break}}return!r&&!kge(u,f)&&(s+=Xa(l,u,c,f,n,i)||0),s!==0}function Oge(e,t,r){return o6(e,0,!1,t,r)}function Nge(e,t,r,n){return o6(e,t,!0,r,n)}var r0=xe({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},eu),zge={style:xe({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},vx.style)},Rb=za.concat(["invisible","culling","z","z2","zlevel","parent"]),Bge=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?gT:n>.2?Sve:mT}else if(r)return mT}return gT},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(oe(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Ky(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&vc)&&(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)),Nge(s,l/u,r,n)))return!0}if(this.hasFill())return Oge(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=vc,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:Y(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&vc)},t.prototype.createStyle=function(r){return ux(r0,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=Y({},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=Y({},i.shape),Y(u,n.shape)):(u=Y({},a?this.shape:i.shape),Y(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=Y({},this.shape);for(var c={},f=He(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 ux(Fge,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=hv(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}(_i);s6.prototype.type="tspan";const Pp=s6;var $ge=xe({x:0,y:0},eu),Vge={style:xe({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},vx.style)};function Gge(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var l6=function(e){Dt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return ux($ge,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=Gge(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 Vge},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}(_i);l6.prototype.type="image";const Fr=l6;function Hge(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 Ec=Math.round;function u6(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&&(Ec(n*2)===Ec(i*2)&&(e.x1=e.x2=Gl(n,s,!0)),Ec(a*2)===Ec(o*2)&&(e.y1=e.y2=Gl(a,s,!0))),e}}function c6(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=Gl(n,s,!0),e.y=Gl(i,s,!0),e.width=Math.max(Gl(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Gl(i+o,s,!1)-e.y,o===0?0:1)),e}}function Gl(e,t,r){if(!t)return e;var n=Ec(e*2);return(n+Ec(t))%2===0?n/2:(n+(r?1:-1))/2}var Wge=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Uge={},f6=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Wge},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=c6(Uge,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?Hge(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}($e);f6.prototype.type="rect";const Qe=f6;var ME={fill:"#000"},IE=2,jge={style:xe({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},vx.style)},d6=function(e){Dt(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=ME,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,I=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),P=o.calculatedLineHeight,k=0;k=0&&(k=b[P],k.align==="right");)this._placeToken(k,r,C,m,I,"right",x),A-=k.width,I-=k.width,P--;for(M+=(a-(M-g)-(y-I)-A)/2;T<=P;)k=b[T],this._placeToken(k,r,C,m,M+k.width/2,"center",x),M+=k.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&&Lb(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=EE(o,s,p),f-=r.height/2-p[0]-r.innerHeight/2);var v=this._getOrCreateChild(Pp),g=v.createStyle();v.useStyle(g);var m=this._defaultStyle,y=!1,x=0,S=LE("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),_=RE("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!m.autoStroke||y)?(x=IE,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||Is,g.opacity=Pa(u.opacity,n.opacity,1),kE(g,u),_&&(g.lineWidth=Pa(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(ih(g.x,w,g.textAlign),gc(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(Fr),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=Pa(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return p6(r)&&(n=[r.fontStyle,r.fontWeight,h6(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Fi(n)||r.textFont||r.font},t}(_i),Yge={left:!0,right:1,center:1},qge={top:1,bottom:1,middle:1},PE=["fontStyle","fontWeight","fontSize","fontFamily"];function h6(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?B2+"px":e+"px"}function kE(e,t){for(var r=0;r=0,a=!1;if(e instanceof $e){var o=v6(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Zu(s)||Zu(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=Y({},n),u=Y({},u),u.fill=s):!Zu(u.fill)&&Zu(s)?(a=!0,n=Y({},n),u=Y({},u),u.fill=FE(s)):!Zu(u.stroke)&&Zu(l)&&(a||(n=Y({},n),u=Y({},u)),u.stroke=FE(l)),n.style=u}}if(n&&n.z2==null){a||(n=Y({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??Gf)}return n}function tme(e,t,r){if(r&&r.z2==null){r=Y({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??Zge)}return r}function rme(e,t,r){var n=ze(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:Jge(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=Y({},r),o=Y({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Eb(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return eme(this,e,t,r);if(e==="blur")return rme(this,e,r);if(e==="select")return tme(this,e,r)}return r}function yu(e){e.stateProxy=Eb;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Eb),r&&(r.stateProxy=Eb)}function VE(e,t){!_6(e,t)&&!e.__highByOuter&&To(e,g6)}function GE(e,t){!_6(e,t)&&!e.__highByOuter&&To(e,m6)}function mo(e,t){e.__highByOuter|=1<<(t||0),To(e,g6)}function yo(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&To(e,m6)}function x6(e){To(e,aI)}function oI(e){To(e,y6)}function S6(e){To(e,Kge)}function b6(e){To(e,Qge)}function _6(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function w6(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=nI(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){y6(u)}),s&&r.push(a)),o.isBlured=!1}),D(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function wT(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 ru(e,t,r){Hl(e,!0),To(e,yu),TT(e,t,r)}function lme(e){Hl(e,!1)}function Ut(e,t,r,n){n?lme(e):ru(e,t,r)}function TT(e,t,r){var n=Ie(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var WE=["emphasis","blur","select"],ume={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function zr(e,t,r,n){r=r||"itemStyle";for(var i=0;i1&&(o*=Ob(p),s*=Ob(p));var v=(i===a?-1:1)*Ob((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+Tg(f)*g-Cg(f)*m,x=(t+n)/2+Cg(f)*g+Tg(f)*m,S=qE([1,0],[(d-g)/o,(h-m)/s]),_=[(d-g)/o,(h-m)/s],b=[(-1*d-g)/o,(-1*h-m)/s],w=qE(_,b);if(MT(_,b)<=-1&&(w=Td),MT(_,b)>=1&&(w=0),w<0){var C=Math.round(w/Td*1e6)/1e6;w=Td*2+C%2*Td}c.addData(u,y,x,o,s,S,w,f,a)}var vme=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,gme=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function mme(e){var t=new Fa;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=Fa.CMD,l=e.match(vme);if(!l)return t;for(var u=0;uk*k+R*R&&(C=T,A=M),{cx:C,cy:A,x0:-c,y0:-f,x1:C*(i/_-1),y1:A*(i/_-1)}}function Cme(e){var t;if(q(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 Tme(e,t){var r,n=ah(t.r,0),i=ah(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=ZE(u-l),p=h>Nb&&h%Nb;if(p>Di&&(h=p),!(n>Di))e.moveTo(c,f);else if(h>Nb-Di)e.moveTo(c+n*Qu(l),f+n*al(l)),e.arc(c,f,n,l,u,!d),i>Di&&(e.moveTo(c+i*Qu(u),f+i*al(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,I=void 0,P=void 0,k=void 0,R=n*Qu(l),z=n*al(l),$=i*Qu(u),N=i*al(u),V=h>Di;if(V){var L=t.cornerRadius;L&&(r=Cme(L),v=r[0],g=r[1],m=r[2],y=r[3]);var G=ZE(n-i)/2;if(x=na(G,m),S=na(G,y),_=na(G,v),b=na(G,g),A=w=ah(x,S),T=C=ah(_,b),(w>Di||C>Di)&&(M=n*Qu(u),I=n*al(u),P=i*Qu(l),k=i*al(l),hDi){var ie=na(m,A),re=na(y,A),Q=Ag(P,k,R,z,n,ie,d),J=Ag(M,I,$,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+R,f+z),e.arc(c,f,n,l,u,!d);if(!(i>Di)||!V)e.lineTo(c+$,f+N);else if(T>Di){var ie=na(v,T),re=na(g,T),Q=Ag($,N,M,I,i,-re,d),J=Ag(R,z,P,k,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+$,f+N),e.arc(c,f,i,u,l,d)}e.closePath()}}}var Ame=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}(),R6=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Ame},t.prototype.buildPath=function(r,n){Tme(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}($e);R6.prototype.type="sector";const In=R6;var Mme=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),L6=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Mme},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}($e);L6.prototype.type="ring";const xx=L6;function Ime(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=Ime(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;ssl[1]){if(s=!1,a)return s;var c=Math.abs(sl[0]-ol[1]),f=Math.abs(ol[0]-sl[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 it(e,t,r,n,i,a){dI("update",e,t,r,n,i,a)}function Lt(e,t,r,n,i,a){dI("enter",e,t,r,n,i,a)}function Xc(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 JE(e){return!e.isGroup}function qme(e){return e.shape!=null}function mv(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){JE(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return qme(o)&&(s.shape=Y({},o.shape)),s}var a=n(e);t.traverse(function(o){if(JE(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),it(o,l,r,Ie(o).dataIndex)}}})}function j6(e,t){return Z(e,function(r){var n=r[0];n=a0(n,t.x),n=o0(n,t.x+t.width);var i=r[1];return i=a0(i,t.y),i=o0(i,t.y+t.height),[n,i]})}function Xme(e,t){var r=a0(e.x,t.x),n=o0(e.x+e.width,t.x+t.width),i=a0(e.y,t.y),a=o0(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 yv(e,t,r){var n=Y({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),xe(i,r),new Fr(n)):bx(e.replace("path://",""),n,r,"center")}function oh(e,t,r,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var g=zb(h,p,c,f)/d;return!(g<0||g>1)}function zb(e,t,r,n){return e*n-r*t}function Zme(e){return e<=1e-6&&e>=-1e-6}function Wf(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&&D(He(l),function(c){ce(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Ie(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:xe({content:n,formatterParams:s},i)}}function eO(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Gs(e,t){if(e)if(q(e))for(var r=0;r=0&&s.push(l)}),s}}function Hs(e,t){return Oe(Oe({},e,!0),t,!0)}const uye={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:". "}}}},cye={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 l0="ZH",pI="EN",Lp=pI,jm={},vI={},eW=tt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(l0)>-1?l0:Lp}():Lp;function tW(e,t){e=e.toUpperCase(),vI[e]=new wt(t),jm[e]=t}function fye(e){if(oe(e)){var t=jm[e.toUpperCase()]||{};return e===l0||e===pI?we(t):Oe(we(t),we(jm[Lp]),!1)}else return Oe(we(e),we(jm[Lp]),!1)}function kT(e){return vI[e]}function dye(){return vI[Lp]}tW(pI,uye);tW(l0,cye);var gI=1e3,mI=gI*60,Gh=mI*60,hi=Gh*24,aO=hi*365,sh={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}"},Pg="{yyyy}-{MM}-{dd}",oO={year:"{yyyy}",month:"{yyyy}-{MM}",day:Pg,hour:Pg+" "+sh.hour,minute:Pg+" "+sh.minute,second:Pg+" "+sh.second,millisecond:sh.none},$b=["year","month","day","hour","minute","second","millisecond"],rW=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Oo(e,t){return e+="","0000".substr(0,t-e.length)+e}function Zc(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 hye(e){return e===Zc(e)}function pye(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Tx(e,t,r,n){var i=Ba(e),a=i[yI(r)](),o=i[Kc(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[Ax(r)](),u=i["get"+(r?"UTC":"")+"Day"](),c=i[Ep(r)](),f=(c-1)%12+1,d=i[Mx(r)](),h=i[Ix(r)](),p=i[Px(r)](),v=n instanceof wt?n:kT(n||eW)||dye(),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,Oo(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Oo(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Oo(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Oo(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Oo(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Oo(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Oo(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Oo(p,3)).replace(/{S}/g,p+"")}function vye(e,t,r,n,i){var a=null;if(oe(r))a=r;else if(me(r))a=r(e.value,t,{level:e.level});else{var o=Y({},sh);if(e.level>0)for(var s=0;s<$b.length;++s)o[$b[s]]="{primary|"+o[$b[s]]+"}";var l=r?r.inherit===!1?r:xe(r,o):o,u=nW(e.value,i);if(l[u])a=l[u];else if(l.inherit){for(var c=rW.indexOf(u),s=c-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(q(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 Tx(new Date(e.value),a,i,n)}function nW(e,t){var r=Ba(e),n=r[Kc(t)]()+1,i=r[Ax(t)](),a=r[Ep(t)](),o=r[Mx(t)](),s=r[Ix(t)](),l=r[Px(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 sO(e,t,r){var n=nt(e)?Ba(e):e;switch(t=t||nW(e,r),t){case"year":return n[yI(r)]();case"half-year":return n[Kc(r)]()>=6?1:0;case"quarter":return Math.floor((n[Kc(r)]()+1)/4);case"month":return n[Kc(r)]();case"day":return n[Ax(r)]();case"half-day":return n[Ep(r)]()/24;case"hour":return n[Ep(r)]();case"minute":return n[Mx(r)]();case"second":return n[Ix(r)]();case"millisecond":return n[Px(r)]()}}function yI(e){return e?"getUTCFullYear":"getFullYear"}function Kc(e){return e?"getUTCMonth":"getMonth"}function Ax(e){return e?"getUTCDate":"getDate"}function Ep(e){return e?"getUTCHours":"getHours"}function Mx(e){return e?"getUTCMinutes":"getMinutes"}function Ix(e){return e?"getUTCSeconds":"getSeconds"}function Px(e){return e?"getUTCMilliseconds":"getMilliseconds"}function gye(e){return e?"setUTCFullYear":"setFullYear"}function iW(e){return e?"setUTCMonth":"setMonth"}function aW(e){return e?"setUTCDate":"setDate"}function oW(e){return e?"setUTCHours":"setHours"}function sW(e){return e?"setUTCMinutes":"setMinutes"}function lW(e){return e?"setUTCSeconds":"setSeconds"}function uW(e){return e?"setUTCMilliseconds":"setMilliseconds"}function cW(e){if(!WH(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 fW(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 Yf=W2;function DT(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Fi(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?Ba(e):e;if(isNaN(+l)){if(s)return"-"}else return Tx(l,n,r)}if(t==="ordinal")return XC(e)?i(e):nt(e)&&a(e)?e+"":"-";var u=go(e);return a(u)?cW(u):XC(e)?i(e):typeof e=="boolean"?e+"":"-"}var lO=["a","b","c","d","e","f","g"],Vb=function(e,t){return"{"+e+(t??"")+"}"};function dW(e,t,r){q(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 xu(e,t){return t=t||"transparent",oe(e)?e:Se(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function u0(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var Ym=D,hW=["left","right","top","bottom","width","height"],Wl=[["width","left","right"],["height","top","bottom"]];function xI(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 iu=xI;Pe(xI,"vertical");Pe(xI,"horizontal");function xye(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=Yf(r||0),{width:Math.max(s-a-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function hr(e,t,r){r=Yf(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 kx(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=hr(xe({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 Sye(e,t){return e[Wl[t][0]]!=null||e[Wl[t][1]]!=null&&e[Wl[t][2]]!=null}function Op(e){var t=e.layoutMode||e.constructor.layoutMode;return Se(t)?t:t?{type:t}:null}function Rs(e,t,r){var n=r&&r.ignoreSize;!q(n)&&(n=[n,n]);var i=o(Wl[0],0),a=o(Wl[1],1);u(Wl[0],e,i),u(Wl[1],e,a);function o(c,f){var d={},h=0,p={},v=0,g=2;if(Ym(c,function(x){p[x]=e[x]}),Ym(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);e6(Xf,wt);hx(Xf);sye(Xf);lye(Xf,_ye);function _ye(e){var t=[];return D(Xf.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=Z(t,function(r){return ba(r).main}),e!=="dataset"&&ze(t,"dataset")<=0&&t.unshift("dataset"),t}const et=Xf;var vW="";typeof navigator<"u"&&(vW=navigator.platform||"");var Ju="rgba(0, 0, 0, 0.2)";const wye={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Ju,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ju,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ju,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ju,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ju,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ju,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:vW.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 gW=ve(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Ai="original",Kr="arrayRows",Mi="objectRows",Va="keyedColumns",xs="typedArray",mW="unknown",ka="column",Zf="row",kr={Must:1,Might:2,Not:3},yW=Je();function Cye(e){yW(e).datasetMap=ve()}function xW(e,t,r){var n={},i=bI(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=yW(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),D(e,function(v,g){var m=Se(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});D(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 _W(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:Pye(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 kye(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var kg,Ad,cO,fO="\0_ec_inner",Dye=1,wW=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=pO(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,pO(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"?cO(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&&D(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=ve(),u=n&&n.replaceMergeMainTypeMap;Cye(this),D(r,function(f,d){f!=null&&(et.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?we(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=Mye(this,f,pt(r[f])),h=a.get(f),p=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",v=XH(h,d,p);jve(v,f,et),i[f]=null,a.set(f,null),o.set(f,0);var g=[],m=[],y=0,x;D(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=Y({componentIndex:_},S.keyInfo);b=new A(w,this,this,T),Y(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"&&kg(this)}this._seriesIndices||kg(this)},t.prototype.getOption=function(){var r=we(this.option);return D(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]&&!Ip(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[fO],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 Gye(e,t){return e.join(",")===t.join(",")}const Hye=Bye;var Pi=D,Np=Se,vO=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Hb(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=vO.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=Ove(d,y),v=y;break}}}return n[0]=d,n[1]=v,n})})}var Dx=function(){function e(t){this.data=t.data||(t.sourceFormat===Va?{}:[]),this.sourceFormat=t.sourceFormat||mW,this.seriesLayoutBy=t.seriesLayoutBy||ka,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};_O=(t={},t[Kr+"_"+ka]={pure:!0,appendData:a},t[Kr+"_"+Zf]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Mi]={pure:!0,appendData:a},t[Va]={pure:!0,appendData:function(o){var s=this._data;D(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[Ai]={appendData:a},t[xs]={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 gf(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function AO(e){var t,r;return Se(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Hh(e){return new o0e(e)}var o0e=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}},l0e=function(){function e(t,r){if(!nt(r)){var n="";st(n)}this._opFn=OW[t],this._rvalFloat=go(r)}return e.prototype.evaluate=function(t){return nt(t)?this._opFn(t,this._rvalFloat):this._opFn(go(t),this._rvalFloat)},e}(),NW=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:go(t),i=nt(r)?r:go(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}(),u0e=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=go(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=go(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function c0e(e,t){return e==="eq"||e==="ne"?new u0e(e==="eq",t):ce(OW,e)?new l0e(e,t):null}var f0e=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 Ss(t,r)},e}();function d0e(e,t){var r=new f0e,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==ka&&st(o);var s=[],l={},u=e.dimensionsDefine;if(u)D(u,function(v,g){var m=v.name,y={index:g,name:m,displayName:v.displayName};if(s.push(y),m!=null){var x="";ce(l,m)&&st(x),l[m]=y}});else for(var c=0;c65535?S0e:b0e}function ec(){return[1/0,-1/0]}function _0e(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function PO(e,t,r,n,i){var a=FW[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(Id(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 Ss(r[a],this._dimensions[a])}jb={arrayRows:t,objectRows:function(r,n,i,a){return Ss(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Ss(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),$W=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(Dg(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=Wn(s)?xs:Ai,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?[ET(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=[ET(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&&DO(a)}var o,s=[],l=[];return D(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&DO(f),s.push(c),l.push(u._getVersionSign())}),n?o=y0e(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[Jye(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)?Gve(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),HH),e=(+e).toFixed(t),r?e:+e}function gi(e){return e.sort(function(t,r){return t-r}),e}function Sa(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 Hve(e)}function Hve(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 WH(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 Wve(e,t){var r=Oa(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=Oa(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 Uve(e,t){var r=Math.max(Sa(e),Sa(t)),n=e+t;return r>HH?n:Xt(n,r)}var gE=9007199254740991;function UH(e){var t=Math.PI*2;return(e%t+t)%t}function n0(e){return e>-vE&&e=10&&t++,t}function jH(e,t){var r=J2(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 _b(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 mE(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 mge=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],yge=xu(mge),xge=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return yge(this,t,r)},e}(),ST=new pv(50);function Sge(e){if(typeof e=="string"){var t=ST.get(e);return t&&t.image}else return e}function nI(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=ST.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!vx(t)&&a.pending.push(o)):(t=Ps.loadImage(e,bE,bE),t.__zrImageSrc=e,ST.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function bE(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;l++)s-=o;var u=Gn(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 a6(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=Gn(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?_ge(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=Gn(e,n)}return e===""&&(e=t.placeholder),e}function _ge(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=i6(c,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;gs&&Cb(r,e.substring(s,u),t,o),Cb(r,l[2],t,o,l[1]),s=wb.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 I=w.width,P=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")b.percentWidth=I,c.push(b),b.contentWidth=Gn(b.text,T);else{if(P){var k=w.backgroundColor,R=k&&k.image;R&&(R=Sge(R),vx(R)&&(b.width=Math.max(b.width,R.width*M/R.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=o6(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 Ige=Oa(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Pge(e){return Mge(e)?!!Ige[e]:!0}function o6(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 bT="__zr_style_"+Math.round(Math.random()*10),ru={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},gx={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ru[bT]=!0;var wE=["z","z2","invisible"],kge=["invisible"],Dge=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=He(r),i=0;i1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(wg[0]=Ib(i)*r+e,wg[1]=Mb(i)*n+t,Cg[0]=Ib(a)*r+e,Cg[1]=Mb(a)*n+t,u(s,wg,Cg),c(l,wg,Cg),i=i%el,i<0&&(i=i+el),a=a%el,a<0&&(a=a+el),i>a&&!o?a+=el:ii&&(Tg[0]=Ib(h)*r+e,Tg[1]=Mb(h)*n+t,u(s,Tg,s),c(l,Tg,l))}var xt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},tl=[],rl=[],ea=[],Lo=[],ta=[],ra=[],Pb=Math.min,kb=Math.max,nl=Math.cos,il=Math.sin,Ha=Math.abs,_T=Math.PI,Go=_T*2,Db=typeof Float32Array<"u",Td=[];function Rb(e){var t=Math.round(e/_T*1e8)/1e8;return t%2*_T}function s6(e,t){var r=Rb(e[0]);r<0&&(r+=Go);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=Go?i=r+Go:t&&r-i>=Go?i=r-Go:!t&&r>i?i=r+(Go-Rb(r-i)):t&&r0&&(this._ux=Ha(n/t0/t)||0,this._uy=Ha(n/t0/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=Ha(t-this._xi),i=Ha(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(),Td[0]=i,Td[1]=a,s6(Td,o),i=Td[0],a=Td[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=nl(a)*n+t,this._yi=il(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)&&Db&&(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(){ea[0]=ea[1]=ta[0]=ta[1]=Number.MAX_VALUE,Lo[0]=Lo[1]=ra[0]=ra[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;on||Ha(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=Kpe(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=Jpe(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++],I=t[d++],P=t[d++],k=P+I;d+=1,t[d++],p&&(s=nl(I)*T+C,l=il(I)*M+A),v=kb(T,M)*Pb(Go,Math.abs(P)),a=nl(k)*T+C,o=il(k)*M+A;break;case xt.R:{s=a=t[d++],l=o=t[d++];var R=t[d++],z=t[d++];v=R*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=Ha(f-u),T=Ha(d-c);if(A>i||T>a){if(h){var M=p[m++];if(g+M>y){var I=(y-g)/M;t.lineTo(u*(1-I)+f*I,c*(1-I)+d*I);break e}g+=M}t.lineTo(f,d),u=f,c=d,x=0}else{var P=A*A+T*T;P>x&&(S=f,_=d,x=P)}break}case xt.C:{var k=n[b++],R=n[b++],z=n[b++],$=n[b++],N=n[b++],V=n[b++];if(h){var M=p[m++];if(g+M>y){var I=(y-g)/M;ks(u,k,z,N,I,tl),ks(c,R,$,V,I,rl),t.bezierCurveTo(tl[1],rl[1],tl[2],rl[2],tl[3],rl[3]);break e}g+=M}t.bezierCurveTo(k,R,z,$,N,V),u=N,c=V;break}case xt.Q:{var k=n[b++],R=n[b++],z=n[b++],$=n[b++];if(h){var M=p[m++];if(g+M>y){var I=(y-g)/M;Ap(u,k,z,I,tl),Ap(c,R,$,I,rl),t.quadraticCurveTo(tl[1],rl[1],tl[2],rl[2]);break e}g+=M}t.quadraticCurveTo(k,R,z,$),u=z,c=$;break}case xt.A:var L=n[b++],G=n[b++],U=n[b++],B=n[b++],j=n[b++],X=n[b++],W=n[b++],ee=!n[b++],te=U>B?U:B,ie=Ha(U-B)>.001,re=j+X,Q=!1;if(h){var M=p[m++];g+M>y&&(re=j+X*(y-g)/M,Q=!0),g+=M}if(ie&&t.ellipse?t.ellipse(L,G,U,B,W,j,re,ee):t.arc(L,G,te,j,re,ee),Q)break e;C&&(s=nl(j)*U+L,l=il(j)*B+G),u=nl(re)*U+L,c=il(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++],fe=n[b++];if(h){var M=p[m++];if(g+M>y){var de=y-g;t.moveTo(f,d),t.lineTo(f+Pb(de,J),d),de-=J,de>0&&t.lineTo(f+J,d+Pb(de,fe)),de-=fe,de>0&&t.lineTo(f+kb(J-de,0),d+fe),de-=J,de>0&&t.lineTo(f,d+kb(fe-de,0));break e}g+=M}t.rect(f,d,J,fe);break;case xt.Z:if(h){var M=p[m++];if(g+M>y){var I=(y-g)/M;t.lineTo(u*(1-I)+s*I,c*(1-I)+l*I);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 Fa=Nge;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+=Ad);var d=Math.atan2(l,s);return d<0&&(d+=Ad),d>=n&&d<=i||d+Ad>=n&&d+Ad<=i}function Xa(e,t,r,n,i,a){if(a>t&&a>n||ai?s:0}var Eo=Fa.CMD,al=Math.PI*2,Fge=1e-4;function $ge(e,t){return Math.abs(e-t)t&&u>n&&u>a&&u>s||u1&&Vge(),h=vr(t,n,a,s,ni[0]),d>1&&(p=vr(t,n,a,s,ni[1]))),d===2?gt&&s>n&&s>a||s=0&&u<=1){for(var c=0,f=_r(t,n,a,u),d=0;dr||s<-r)return 0;var l=Math.sqrt(r*r-s*s);rn[0]=-l,rn[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=al-1e-4){n=0,i=al;var c=a?1:-1;return o>=rn[0]+e&&o<=rn[1]+e?c:0}if(n>i){var f=n;n=i,i=f}n<0&&(n+=al,i+=al);for(var d=0,h=0;h<2;h++){var p=rn[h];if(p+e>o){var v=Math.atan2(s,p),c=a?1:-1;v<0&&(v=al+v),(v>=n&&v<=i||v+al>=n&&v+al<=i)&&(v>Math.PI/2&&v1&&(r||(s+=Xa(l,u,c,f,n,i))),g&&(l=a[p],u=a[p+1],c=l,f=u),v){case Eo.M:c=a[p++],f=a[p++],l=c,u=f;break;case Eo.L:if(r){if(jo(l,u,a[p],a[p+1],t,n,i))return!0}else s+=Xa(l,u,a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case Eo.C:if(r){if(zge(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],t,n,i))return!0}else s+=Gge(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 Eo.Q:if(r){if(l6(l,u,a[p++],a[p++],a[p],a[p+1],t,n,i))return!0}else s+=Hge(l,u,a[p++],a[p++],a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case Eo.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+=Xa(l,u,d,h,n,i);var C=(n-m)*S/x+m;if(r){if(Bge(m,y,S,_,_+b,w,t,C,i))return!0}else s+=Wge(m,y,S,_,_+b,w,C,i);l=Math.cos(_+b)*x+m,u=Math.sin(_+b)*S+y;break;case Eo.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+=Xa(d,f,d,h,n,i),s+=Xa(c,h,c,f,n,i);break;case Eo.Z:if(r){if(jo(l,u,c,f,t,n,i))return!0}else s+=Xa(l,u,c,f,n,i);l=c,u=f;break}}return!r&&!$ge(u,f)&&(s+=Xa(l,u,c,f,n,i)||0),s!==0}function Uge(e,t,r){return u6(e,0,!1,t,r)}function jge(e,t,r,n){return u6(e,t,!0,r,n)}var i0=xe({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ru),Yge={style:xe({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},gx.style)},Lb=za.concat(["invisible","culling","z","z2","zlevel","parent"]),qge=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?mT:n>.2?kve:yT}else if(r)return yT}return mT},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(oe(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Jy(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&yc)&&(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)),jge(s,l/u,r,n)))return!0}if(this.hasFill())return Uge(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=yc,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:Y(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&yc)},t.prototype.createStyle=function(r){return cx(i0,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=Y({},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=Y({},i.shape),Y(u,n.shape)):(u=Y({},a?this.shape:i.shape),Y(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=Y({},this.shape);for(var c={},f=He(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 cx(Xge,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=vv(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}(wi);c6.prototype.type="tspan";const kp=c6;var Zge=xe({x:0,y:0},ru),Kge={style:xe({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},gx.style)};function Qge(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var f6=function(e){Dt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return cx(Zge,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=Qge(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 Kge},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}(wi);f6.prototype.type="image";const Fr=f6;function Jge(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 zc=Math.round;function d6(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&&(zc(n*2)===zc(i*2)&&(e.x1=e.x2=Wl(n,s,!0)),zc(a*2)===zc(o*2)&&(e.y1=e.y2=Wl(a,s,!0))),e}}function h6(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=Wl(n,s,!0),e.y=Wl(i,s,!0),e.width=Math.max(Wl(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Wl(i+o,s,!1)-e.y,o===0?0:1)),e}}function Wl(e,t,r){if(!t)return e;var n=zc(e*2);return(n+zc(t))%2===0?n/2:(n+(r?1:-1))/2}var eme=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),tme={},p6=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new eme},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=h6(tme,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?Jge(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}($e);p6.prototype.type="rect";const Qe=p6;var IE={fill:"#000"},PE=2,rme={style:xe({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},gx.style)},v6=function(e){Dt(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=IE,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,I=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),P=o.calculatedLineHeight,k=0;k=0&&(k=b[P],k.align==="right");)this._placeToken(k,r,C,m,I,"right",x),A-=k.width,I-=k.width,P--;for(M+=(a-(M-g)-(y-I)-A)/2;T<=P;)k=b[T],this._placeToken(k,r,C,m,M+k.width/2,"center",x),M+=k.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&&Eb(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=OE(o,s,p),f-=r.height/2-p[0]-r.innerHeight/2);var v=this._getOrCreateChild(kp),g=v.createStyle();v.useStyle(g);var m=this._defaultStyle,y=!1,x=0,S=EE("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),_=LE("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!m.autoStroke||y)?(x=PE,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||Is,g.opacity=Pa(u.opacity,n.opacity,1),DE(g,u),_&&(g.lineWidth=Pa(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(ah(g.x,w,g.textAlign),xc(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(Fr),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=Pa(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return m6(r)&&(n=[r.fontStyle,r.fontWeight,g6(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Fi(n)||r.textFont||r.font},t}(wi),nme={left:!0,right:1,center:1},ime={top:1,bottom:1,middle:1},kE=["fontStyle","fontWeight","fontSize","fontFamily"];function g6(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?F2+"px":e+"px"}function DE(e,t){for(var r=0;r=0,a=!1;if(e instanceof $e){var o=y6(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Qu(s)||Qu(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=Y({},n),u=Y({},u),u.fill=s):!Qu(u.fill)&&Qu(s)?(a=!0,n=Y({},n),u=Y({},u),u.fill=$E(s)):!Qu(u.stroke)&&Qu(l)&&(a||(n=Y({},n),u=Y({},u)),u.stroke=$E(l)),n.style=u}}if(n&&n.z2==null){a||(n=Y({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??Wf)}return n}function fme(e,t,r){if(r&&r.z2==null){r=Y({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??ome)}return r}function dme(e,t,r){var n=ze(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:ume(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=Y({},r),o=Y({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Ob(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return cme(this,e,t,r);if(e==="blur")return dme(this,e,r);if(e==="select")return fme(this,e,r)}return r}function Su(e){e.stateProxy=Ob;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Ob),r&&(r.stateProxy=Ob)}function GE(e,t){!T6(e,t)&&!e.__highByOuter&&To(e,x6)}function HE(e,t){!T6(e,t)&&!e.__highByOuter&&To(e,S6)}function mo(e,t){e.__highByOuter|=1<<(t||0),To(e,x6)}function yo(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&To(e,S6)}function _6(e){To(e,oI)}function sI(e){To(e,b6)}function w6(e){To(e,sme)}function C6(e){To(e,lme)}function T6(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function A6(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=iI(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){b6(u)}),s&&r.push(a)),o.isBlured=!1}),D(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function CT(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 iu(e,t,r){Ul(e,!0),To(e,Su),AT(e,t,r)}function yme(e){Ul(e,!1)}function Ut(e,t,r,n){n?yme(e):iu(e,t,r)}function AT(e,t,r){var n=Ie(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var UE=["emphasis","blur","select"],xme={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function zr(e,t,r,n){r=r||"itemStyle";for(var i=0;i1&&(o*=Nb(p),s*=Nb(p));var v=(i===a?-1:1)*Nb((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+Mg(f)*g-Ag(f)*m,x=(t+n)/2+Ag(f)*g+Mg(f)*m,S=XE([1,0],[(d-g)/o,(h-m)/s]),_=[(d-g)/o,(h-m)/s],b=[(-1*d-g)/o,(-1*h-m)/s],w=XE(_,b);if(IT(_,b)<=-1&&(w=Md),IT(_,b)>=1&&(w=0),w<0){var C=Math.round(w/Md*1e6)/1e6;w=Md*2+C%2*Md}c.addData(u,y,x,o,s,S,w,f,a)}var Tme=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Ame=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Mme(e){var t=new Fa;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=Fa.CMD,l=e.match(Tme);if(!l)return t;for(var u=0;uk*k+R*R&&(C=T,A=M),{cx:C,cy:A,x0:-c,y0:-f,x1:C*(i/_-1),y1:A*(i/_-1)}}function Eme(e){var t;if(q(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 Ome(e,t){var r,n=oh(t.r,0),i=oh(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=KE(u-l),p=h>zb&&h%zb;if(p>Ri&&(h=p),!(n>Ri))e.moveTo(c,f);else if(h>zb-Ri)e.moveTo(c+n*ec(l),f+n*ol(l)),e.arc(c,f,n,l,u,!d),i>Ri&&(e.moveTo(c+i*ec(u),f+i*ol(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,I=void 0,P=void 0,k=void 0,R=n*ec(l),z=n*ol(l),$=i*ec(u),N=i*ol(u),V=h>Ri;if(V){var L=t.cornerRadius;L&&(r=Eme(L),v=r[0],g=r[1],m=r[2],y=r[3]);var G=KE(n-i)/2;if(x=na(G,m),S=na(G,y),_=na(G,v),b=na(G,g),A=w=oh(x,S),T=C=oh(_,b),(w>Ri||C>Ri)&&(M=n*ec(u),I=n*ol(u),P=i*ec(l),k=i*ol(l),hRi){var ie=na(m,A),re=na(y,A),Q=Ig(P,k,R,z,n,ie,d),J=Ig(M,I,$,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+R,f+z),e.arc(c,f,n,l,u,!d);if(!(i>Ri)||!V)e.lineTo(c+$,f+N);else if(T>Ri){var ie=na(v,T),re=na(g,T),Q=Ig($,N,M,I,i,-re,d),J=Ig(R,z,P,k,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+$,f+N),e.arc(c,f,i,u,l,d)}e.closePath()}}}var Nme=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}(),O6=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Nme},t.prototype.buildPath=function(r,n){Ome(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}($e);O6.prototype.type="sector";const In=O6;var zme=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),N6=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new zme},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}($e);N6.prototype.type="ring";const Sx=N6;function Bme(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=Bme(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;sll[1]){if(s=!1,a)return s;var c=Math.abs(ll[0]-sl[1]),f=Math.abs(sl[0]-ll[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 it(e,t,r,n,i,a){hI("update",e,t,r,n,i,a)}function Lt(e,t,r,n,i,a){hI("enter",e,t,r,n,i,a)}function Qc(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 eO(e){return!e.isGroup}function iye(e){return e.shape!=null}function xv(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){eO(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return iye(o)&&(s.shape=Y({},o.shape)),s}var a=n(e);t.traverse(function(o){if(eO(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),it(o,l,r,Ie(o).dataIndex)}}})}function X6(e,t){return Z(e,function(r){var n=r[0];n=s0(n,t.x),n=l0(n,t.x+t.width);var i=r[1];return i=s0(i,t.y),i=l0(i,t.y+t.height),[n,i]})}function aye(e,t){var r=s0(e.x,t.x),n=l0(e.x+e.width,t.x+t.width),i=s0(e.y,t.y),a=l0(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 Sv(e,t,r){var n=Y({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),xe(i,r),new Fr(n)):_x(e.replace("path://",""),n,r,"center")}function sh(e,t,r,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var g=Bb(h,p,c,f)/d;return!(g<0||g>1)}function Bb(e,t,r,n){return e*n-r*t}function oye(e){return e<=1e-6&&e>=-1e-6}function jf(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&&D(He(l),function(c){ce(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Ie(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:xe({content:n,formatterParams:s},i)}}function tO(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Hs(e,t){if(e)if(q(e))for(var r=0;r=0&&s.push(l)}),s}}function Ws(e,t){return Oe(Oe({},e,!0),t,!0)}const xye={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:". "}}}},Sye={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",vI="EN",Ep=vI,qm={},gI={},nW=tt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(c0)>-1?c0:Ep}():Ep;function iW(e,t){e=e.toUpperCase(),gI[e]=new wt(t),qm[e]=t}function bye(e){if(oe(e)){var t=qm[e.toUpperCase()]||{};return e===c0||e===vI?we(t):Oe(we(t),we(qm[Ep]),!1)}else return Oe(we(e),we(qm[Ep]),!1)}function DT(e){return gI[e]}function _ye(){return gI[Ep]}iW(vI,xye);iW(c0,Sye);var mI=1e3,yI=mI*60,Hh=yI*60,pi=Hh*24,oO=pi*365,lh={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}"},Dg="{yyyy}-{MM}-{dd}",sO={year:"{yyyy}",month:"{yyyy}-{MM}",day:Dg,hour:Dg+" "+lh.hour,minute:Dg+" "+lh.minute,second:Dg+" "+lh.second,millisecond:lh.none},Vb=["year","month","day","hour","minute","second","millisecond"],aW=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Oo(e,t){return e+="","0000".substr(0,t-e.length)+e}function Jc(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 wye(e){return e===Jc(e)}function Cye(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Ax(e,t,r,n){var i=Ba(e),a=i[xI(r)](),o=i[ef(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[Mx(r)](),u=i["get"+(r?"UTC":"")+"Day"](),c=i[Op(r)](),f=(c-1)%12+1,d=i[Ix(r)](),h=i[Px(r)](),p=i[kx(r)](),v=n instanceof wt?n:DT(n||nW)||_ye(),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,Oo(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Oo(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Oo(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Oo(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Oo(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Oo(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Oo(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Oo(p,3)).replace(/{S}/g,p+"")}function Tye(e,t,r,n,i){var a=null;if(oe(r))a=r;else if(me(r))a=r(e.value,t,{level:e.level});else{var o=Y({},lh);if(e.level>0)for(var s=0;s=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(q(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 Ax(new Date(e.value),a,i,n)}function oW(e,t){var r=Ba(e),n=r[ef(t)]()+1,i=r[Mx(t)](),a=r[Op(t)](),o=r[Ix(t)](),s=r[Px(t)](),l=r[kx(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 lO(e,t,r){var n=nt(e)?Ba(e):e;switch(t=t||oW(e,r),t){case"year":return n[xI(r)]();case"half-year":return n[ef(r)]()>=6?1:0;case"quarter":return Math.floor((n[ef(r)]()+1)/4);case"month":return n[ef(r)]();case"day":return n[Mx(r)]();case"half-day":return n[Op(r)]()/24;case"hour":return n[Op(r)]();case"minute":return n[Ix(r)]();case"second":return n[Px(r)]();case"millisecond":return n[kx(r)]()}}function xI(e){return e?"getUTCFullYear":"getFullYear"}function ef(e){return e?"getUTCMonth":"getMonth"}function Mx(e){return e?"getUTCDate":"getDate"}function Op(e){return e?"getUTCHours":"getHours"}function Ix(e){return e?"getUTCMinutes":"getMinutes"}function Px(e){return e?"getUTCSeconds":"getSeconds"}function kx(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Aye(e){return e?"setUTCFullYear":"setFullYear"}function sW(e){return e?"setUTCMonth":"setMonth"}function lW(e){return e?"setUTCDate":"setDate"}function uW(e){return e?"setUTCHours":"setHours"}function cW(e){return e?"setUTCMinutes":"setMinutes"}function fW(e){return e?"setUTCSeconds":"setSeconds"}function dW(e){return e?"setUTCMilliseconds":"setMilliseconds"}function hW(e){if(!YH(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 pW(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 Xf=U2;function RT(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Fi(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?Ba(e):e;if(isNaN(+l)){if(s)return"-"}else return Ax(l,n,r)}if(t==="ordinal")return ZC(e)?i(e):nt(e)&&a(e)?e+"":"-";var u=go(e);return a(u)?hW(u):ZC(e)?i(e):typeof e=="boolean"?e+"":"-"}var uO=["a","b","c","d","e","f","g"],Gb=function(e,t){return"{"+e+(t??"")+"}"};function vW(e,t,r){q(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 bu(e,t){return t=t||"transparent",oe(e)?e:Se(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function f0(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var Xm=D,gW=["left","right","top","bottom","width","height"],jl=[["width","left","right"],["height","top","bottom"]];function SI(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 ou=SI;Pe(SI,"vertical");Pe(SI,"horizontal");function Pye(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=Xf(r||0),{width:Math.max(s-a-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function hr(e,t,r){r=Xf(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 Dx(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=hr(xe({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 kye(e,t){return e[jl[t][0]]!=null||e[jl[t][1]]!=null&&e[jl[t][2]]!=null}function Np(e){var t=e.layoutMode||e.constructor.layoutMode;return Se(t)?t:t?{type:t}:null}function Rs(e,t,r){var n=r&&r.ignoreSize;!q(n)&&(n=[n,n]);var i=o(jl[0],0),a=o(jl[1],1);u(jl[0],e,i),u(jl[1],e,a);function o(c,f){var d={},h=0,p={},v=0,g=2;if(Xm(c,function(x){p[x]=e[x]}),Xm(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 gv(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);n6(Kf,wt);px(Kf);mye(Kf);yye(Kf,Rye);function Rye(e){var t=[];return D(Kf.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=Z(t,function(r){return ba(r).main}),e!=="dataset"&&ze(t,"dataset")<=0&&t.unshift("dataset"),t}const et=Kf;var yW="";typeof navigator<"u"&&(yW=navigator.platform||"");var tc="rgba(0, 0, 0, 0.2)";const Lye={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:tc,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:tc,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:tc,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:tc,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:tc,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:tc,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:yW.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 xW=ve(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Mi="original",Kr="arrayRows",Ii="objectRows",Va="keyedColumns",xs="typedArray",SW="unknown",ka="column",Qf="row",kr={Must:1,Might:2,Not:3},bW=Je();function Eye(e){bW(e).datasetMap=ve()}function _W(e,t,r){var n={},i=_I(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=bW(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),D(e,function(v,g){var m=Se(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});D(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 TW(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:Fye(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 $ye(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Rg,Id,fO,dO="\0_ec_inner",Vye=1,AW=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=vO(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,vO(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"?fO(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&&D(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=ve(),u=n&&n.replaceMergeMainTypeMap;Eye(this),D(r,function(f,d){f!=null&&(et.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?we(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=zye(this,f,pt(r[f])),h=a.get(f),p=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",v=QH(h,d,p);rge(v,f,et),i[f]=null,a.set(f,null),o.set(f,0);var g=[],m=[],y=0,x;D(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=Y({componentIndex:_},S.keyInfo);b=new A(w,this,this,T),Y(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"&&Rg(this)}this._seriesIndices||Rg(this)},t.prototype.getOption=function(){var r=we(this.option);return D(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]&&!Pp(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[dO],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 Qye(e,t){return e.join(",")===t.join(",")}const Jye=qye;var ki=D,zp=Se,gO=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Wb(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=gO.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=Uve(d,y),v=y;break}}}return n[0]=d,n[1]=v,n})})}var Rx=function(){function e(t){this.data=t.data||(t.sourceFormat===Va?{}:[]),this.sourceFormat=t.sourceFormat||SW,this.seriesLayoutBy=t.seriesLayoutBy||ka,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};wO=(t={},t[Kr+"_"+ka]={pure:!0,appendData:a},t[Kr+"_"+Qf]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Ii]={pure:!0,appendData:a},t[Va]={pure:!0,appendData:function(o){var s=this._data;D(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[Mi]={appendData:a},t[xs]={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 xf(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function MO(e){var t,r;return Se(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Wh(e){return new g0e(e)}var g0e=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}},y0e=function(){function e(t,r){if(!nt(r)){var n="";st(n)}this._opFn=BW[t],this._rvalFloat=go(r)}return e.prototype.evaluate=function(t){return nt(t)?this._opFn(t,this._rvalFloat):this._opFn(go(t),this._rvalFloat)},e}(),FW=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:go(t),i=nt(r)?r:go(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}(),x0e=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=go(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=go(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function S0e(e,t){return e==="eq"||e==="ne"?new x0e(e==="eq",t):ce(BW,e)?new y0e(e,t):null}var b0e=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 Ss(t,r)},e}();function _0e(e,t){var r=new b0e,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==ka&&st(o);var s=[],l={},u=e.dimensionsDefine;if(u)D(u,function(v,g){var m=v.name,y={index:g,name:m,displayName:v.displayName};if(s.push(y),m!=null){var x="";ce(l,m)&&st(x),l[m]=y}});else for(var c=0;c65535?k0e:D0e}function rc(){return[1/0,-1/0]}function R0e(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function kO(e,t,r,n,i){var a=GW[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(kd(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 Ss(r[a],this._dimensions[a])}Yb={arrayRows:t,objectRows:function(r,n,i,a){return Ss(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Ss(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),HW=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(Lg(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=Un(s)?xs:Mi,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?[OT(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=[OT(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&&RO(a)}var o,s=[],l=[];return D(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&RO(f),s.push(c),l.push(u._getVersionSign())}),n?o=I0e(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[u0e(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 D(e.blocks,function(i){var a=WW(i);a>=t&&(t=a+ +(n&&(!a||NT(i)&&!i.noHeader)))}),t}return 0}function T0e(e,t,r,n){var i=t.noHeader,a=M0e(WW(t)),o=[],s=t.blocks||[];ln(!s||q(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ce(u,l)){var c=new NW(u[l],null);s.sort(function(p,v){return c.evaluate(p.sortParam,v.sortParam)})}else l==="seriesDesc"&&s.reverse()}D(s,function(p,v){var g=t.valueFormatter,m=HW(p)(g?Y(Y({},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):zT(o.join(""),i?r:a.html);if(i)return f;var d=DT(t.header,"ordinal",e.useUTC),h=GW(n,e.renderMode).nameStyle;return e.renderMode==="richText"?UW(e,d,h)+a.richText+f:zT('
'+mn(d)+"
"+f,r)}function A0e(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=q(S)?S:[S],Z(S,function(_,b){return DT(_,q(h)?h[b]:h,u)})};if(!(a&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),d=a?"":DT(l,"ordinal",u),h=t.valueType,p=o?[]:c(t.value),v=!s||!a,g=!s&&a,m=GW(n,i),y=m.nameStyle,x=m.valueStyle;return i==="richText"?(s?"":f)+(a?"":UW(e,d,y))+(o?"":k0e(e,p,v,g,x)):zT((s?"":f)+(a?"":I0e(d,!s,y))+(o?"":P0e(p,v,g,x)),r)}}function RO(e,t,r,n,i,a){if(e){var o=HW(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function M0e(e){return{html:w0e[e],richText:C0e[e]}}function zT(e,t){var r='
',n="margin: "+t+"px 0 0";return'
'+e+r+"
"}function I0e(e,t,r){var n=t?"margin-left:2px":"";return''+mn(e)+""}function P0e(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=q(e)?e:[e],''+Z(e,function(o){return mn(o)}).join("  ")+""}function UW(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function k0e(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(q(t)?t.join(" "):t,a)}function jW(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return xu(n)}function YW(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var Yb=function(){function e(){this.richTextStyles={},this._nextStyleNameId=UH()}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=yye({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={};q(r)?D(r,function(a){return Y(n,a)}):Y(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function qW(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=q(s),u=jW(t,r),c,f,d,h;if(o>1||l&&!o){var p=D0e(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=gf(i,r,a[0]),f=v.type}else h=c=l?s[0]:s;var g=J2(t),m=g&&t.name||"",y=i.getName(r),x=n?m:y;return xr("section",{header:m,noHeader:n||!g,sortParam:h,blocks:[xr("nameValue",{markerType:"item",markerColor:u,name:x,noName:!Fi(x),value:c,valueType:f})].concat(d||[])})}function D0e(e,t,r,n,i){var a=t.getData(),o=Oa(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?D(n,function(f){c(gf(a,r,f),f)}):D(e,c);function c(f,d){var h=a.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(xr("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 No=Je();function Rg(e,t){return e.getName(t)||e.getId(t)}var qm="__universalTransitionEnabled",Lx=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=Hh({count:L0e,reset:E0e}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=No(this).sourceManager=new $W(this);a.prepareSource();var o=this.getInitialData(r,i);EO(o,this),this.dataTask.context.data=o,No(this).dataBeforeProcessed=o,LO(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Op(this),a=i?qf(r):{},o=this.subType;et.hasClass(o)&&(o+="Series"),Oe(r,n.getTheme().get(this.subType)),Oe(r,this.getDefaultOption()),vu(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Rs(r,a,i)},t.prototype.mergeOption=function(r,n){r=Oe(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Op(this);i&&Rs(this.option,r,i);var a=No(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);EO(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,No(this).dataBeforeProcessed=o,LO(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!Wn(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=_I.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[Rg(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[qm])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"){Se(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);lr(Lx,AI);lr(Lx,_I);e6(Lx,et);function LO(e){var t=e.name;J2(e)||(e.name=R0e(e)||t)}function R0e(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return D(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function L0e(e){return e.model.getRawData().count()}function E0e(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),O0e}function O0e(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function EO(e,t){D(Yy(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Pe(N0e,t))})}function N0e(e,t){var r=BT(e);return r&&r.setOutputEnd((t||this).count()),t}function BT(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=Lx;var II=function(){function e(){this.group=new Ae,this.uid=jf("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}();tI(II);hx(II);const jt=II;function Kf(){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 XW=Je(),z0e=Kf(),PI=function(){function e(){this.group=new Ae,this.uid=jf("viewChart"),this.renderTask=Hh({plan:B0e,reset:F0e}),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&&NO(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&NO(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){Gs(this.group,t)},e.markUpdateMethod=function(t,r){XW(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function OO(e,t,r){e&&Dp(e)&&(t==="emphasis"?mo:yo)(e,r)}function NO(e,t,r){var n=gu(e,t),i=t&&t.highlightKey!=null?fme(t.highlightKey):null;n!=null?D(pt(n),function(a){OO(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){OO(a,r,i)})}tI(PI);hx(PI);function B0e(e){return z0e(e.model)}function F0e(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&XW(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),$0e[l]}var $0e={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=PI;var c0="\0__throttleOriginMethod",zO="\0__throttleRate",BO="\0__throttleType";function kI(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 Qf(e,t,r,n){var i=e[t];if(i){var a=i[c0]||i,o=i[BO],s=i[zO];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=kI(a,r,n==="debounce"),i[c0]=a,i[BO]=n,i[zO]=r}return i}}function zp(e,t){var r=e[t];r&&r[c0]&&(r.clear&&r.clear(),e[t]=r[c0])}var FO=Je(),$O={itemStyle:mu(J6,!0),lineStyle:mu(Q6,!0)},V0e={lineStyle:"stroke",itemStyle:"fill"};function ZW(e,t){var r=e.visualStyleMapper||$O[t];return r||(console.warn("Unknown style type '"+t+"'."),$O.itemStyle)}function KW(e,t){var r=e.visualDrawType||V0e[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var G0e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=ZW(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=KW(e,n),u=o[l],c=me(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"||me(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||me(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=Y({},o);g[l]=c(v),h.setItemVisual(p,"style",g)}}}},Pd=new wt,H0e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=ZW(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Pd.option=l[n];var u=i(Pd),c=o.ensureUniqueItemVisual(s,"style");Y(c,u),Pd.option.decal&&(o.setItemVisual(s,"decal",Pd.option.decal),Pd.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},W0e={performRawSeries:!0,overallReset:function(e){var t=ve();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)),FO(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=FO(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=KW(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)}})}})}},Lg=Math.PI;function U0e(e,t){t=t||{},xe(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 Ae,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 cI({shape:{startAngle:-Lg/2,endAngle:-Lg/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:Lg*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Lg*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 j0e=function(){function e(t,r,n,i){this._stageTaskMap=ve(),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=ve();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;D(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";ln(!(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;D(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=ve(),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)||Hh({plan:K0e,reset:Q0e,count:e1e}));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||Hh({reset:Y0e});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=ve(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,h="";ln(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,p):c?c(n,i).each(p):(f=!1,D(n.getSeries(),p));function p(v){var g=v.uid,m=l.set(g,s&&s.get(g)||(d=!0,Hh({reset:q0e,onDirty:Z0e})));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 me(t)&&(t={overallReset:t,seriesType:t1e(t)}),t.uid=jf("stageHandler"),r&&(t.visualType=r),t},e}();function Y0e(e){e.overallReset(e.ecModel,e.api,e.payload)}function q0e(e){return e.overallProgress&&X0e}function X0e(){this.agent.dirty(),this.getDownstream().dirty()}function Z0e(){this.agent&&this.agent.dirty()}function K0e(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Q0e(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 QW(n)}):J0e}var J0e=QW(0);function QW(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}(),FT=["symbol","symbolSize","symbolRotate","symbolOffset"],WO=FT.concat(["symbolKeepAspect"]),a1e={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&&jl(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function $T(e,t,r){for(var n=t.type==="radial"?b1e(e,t,r):S1e(e,t,r),i=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:nt(e)?[e]:q(e)?e:null}function RI(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&w1e(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 C1e=new Fa(!0);function h0(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function UO(e){return typeof e=="string"&&e!=="none"}function p0(e){var t=e.fill;return t!=null&&t!=="none"}function jO(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 YO(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 VT(e,t,r){var n=rI(t.image,t.__image,r);if(px(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)*Em),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function T1e(e,t,r,n){var i,a=h0(r),o=p0(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||C1e,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?$T(e,d,b):t.__canvasFillGradient,t.__canvasFillGradient=y),v&&(x=f?$T(e,h,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=x),g&&(S=f||!t.__canvasFillPattern?VT(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=S),m&&(_=f||!t.__canvasStrokePattern?VT(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=RI(t),C=i[0],A=i[1]);var T=!0;(u||f&vc)&&(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&&YO(e,r),o&&jO(e,r)):(o&&jO(e,r),a&&YO(e,r))),C&&e.setLineDash([])}function A1e(e,t,r){var n=t.__image=rI(r.image,t.__image,t,t.onload);if(!(!n||!px(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 M1e(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||Is,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=RI(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(h0(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),h0(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var qO=["shadowBlur","shadowOffsetX","shadowOffsetY"],XO=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function aU(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){Sn(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?eu.opacity:o}(n||t.blend!==r.blend)&&(a||(Sn(e,i),a=!0),e.globalCompositeOperation=t.blend||eu.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(Se(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 Hye(this._api),u=this._theme,c=this._model=new CW;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},HT);var f={seriesTransition:s,optionChanged:!0};if(i)this[pn]={silent:a,updateParams:f},this[Wr]=!1,this.getZr().wakeUp();else{try{rc(this),zo.update.call(this,null,f)}catch(d){throw this[pn]=null,this[Wr]=!1,d}this._ssr||this._zr.flush(),this[pn]=null,this[Wr]=!1,kd.call(this,a),Dd.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 D(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;D(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 D(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(UT[i]){var l=s,u=s,c=-s,f=-s,d=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();D(Qc,function(x,S){if(x.group===i){var _=n?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(we(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=Ps.createCanvas(),m=hE(g,{renderer:n?"svg":"canvas"});if(m.resize({width:p,height:v}),n){var y="";return D(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}})),D(d,function(x){var S=new Fr({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 Qb(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return Qb(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Bh(i,r);return D(o,function(s,l){l.indexOf("Models")>=0&&D(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=Bh(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?DI(s,l,n):bv(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;D(J1e,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Ul(s,function(p){var v=Ie(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=Y({},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)}),D(Wh,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),D(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),s1e(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&&KH(this.getDom(),OI,"");var n=this,i=n._api,a=n._model;D(n._componentsViews,function(o){o.dispose(a,i)}),D(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 Qc[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[pn]&&(a==null&&(a=this[pn].silent),i=!0,this[pn]=null),this[Wr]=!0;try{i&&rc(this),zo.update.call(this,{type:"resize",animation:Y({duration:0},r&&r.animation)})}catch(o){throw this[Wr]=!1,o}this[Wr]=!1,kd.call(this,a),Dd.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(Se(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!WT[r]){var i=WT[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=Y({},r);return n.type=Wh[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(Se(n)||(n={silent:!!n}),!!g0[r.type]&&this._model){if(this[Wr]){this._pendingActions.push(r);return}var i=n.silent;e_.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&tt.browser.weChat&&this._throttledZrFlush(),kd.call(this,i),Dd.call(this,i)}},t.prototype.updateLabelLayout=function(){Li.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(){rc=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),Kb(f,!0),Kb(f,!1),d.plan()},Kb=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(Xc(m))return;if(m instanceof $e&&dme(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)}})}lN=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){mo(p,v),Xn(f)},h.prototype.leaveEmphasis=function(p,v){yo(p,v),Xn(f)},h.prototype.enterBlur=function(p){x6(p),Xn(f)},h.prototype.leaveBlur=function(p){oI(p),Xn(f)},h.prototype.enterSelect=function(p){S6(p),Xn(f)},h.prototype.leaveSelect=function(p){b6(p),Xn(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}(TW))(f)},SU=function(f){function d(h,p){for(var v=0;v=0)){cN.push(r);var a=tU.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function TU(e,t){WT[e]=t}function uxe(e,t,r){var n=B1e("registerMap");n&&n(e,t,r)}var cxe=m0e;Ru(LI,G0e);Ru(Ex,H0e);Ru(Ex,W0e);Ru(LI,a1e);Ru(Ex,o1e);Ru(pU,O1e);wU(MW);CU(V1e,Kye);TU("default",U0e);Ga({type:tu,event:tu,update:tu},rr);Ga({type:Hm,event:Hm,update:Hm},rr);Ga({type:Fh,event:Fh,update:Fh},rr);Ga({type:Wm,event:Wm,update:Wm},rr);Ga({type:$h,event:$h,update:$h},rr);NI("light",r1e);NI("dark",n1e);var fN=[],fxe={registerPreprocessor:wU,registerProcessor:CU,registerPostInit:axe,registerPostUpdate:oxe,registerUpdateLifecycle:zI,registerAction:Ga,registerCoordinateSystem:sxe,registerLayout:lxe,registerVisual:Ru,registerTransform:cxe,registerLoading:TU,registerMap:uxe,registerImpl:z1e,PRIORITY:Z1e,ComponentModel:et,ComponentView:jt,SeriesModel:zt,ChartView:Tt,registerComponentModel:function(e){et.registerClass(e)},registerComponentView:function(e){jt.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){Dve(e,t)}};function Fe(e){if(q(e)){D(e,function(t){Fe(t)});return}ze(fN,e)>=0||(fN.push(e),me(e)&&(e={install:e}),e.install(fxe))}function Rd(e){return e==null?0:e.length||1}function dN(e){return e}var dxe=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||dN,this._newKeyGetter=i||dN,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 Ld=Se,Bo=Z,xxe=typeof Int32Array>"u"?Array:Int32Array,Sxe="e\0\0",hN=-1,bxe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],_xe=["_approximateExtent"],pN,Bg,Ed,Od,n_,Fg,i_,wxe=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;MU(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===Ai;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),q(a)?a=a.slice():Ld(a)&&(a=Y({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Ld(r)?Y(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Ld(t)?Y(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?Y(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;_T(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){D(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Bo(this.dimensions,this._getDimInfo,this),this.hostModel)),n_(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];me(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(H2(arguments)))})},e.internalField=function(){pN=function(t){var r=t._invertedIndicesMap;D(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new xxe(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),i[r]=l}}}(),e}();const sn=wxe;function _v(e,t){wI(e)||(e=CI(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=ve(),a=[],o=Txe(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&kU(o),l=n===e.dimensionsDefine,u=l?PU(e):IU(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=ve(c),d=new BW(o),h=0;h0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function Txe(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return D(t,function(a){var o;Se(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function Axe(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 Mxe=function(){function e(t){this.coordSysDims=[],this.axisMap=ve(),this.categoryAxisMap=ve(),this.coordSysName=t}return e}();function Ixe(e){var t=e.get("coordinateSystem"),r=new Mxe(t),n=Pxe[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var Pxe={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",or).models[0],a=e.getReferringComponents("yAxis",or).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),nc(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),nc(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",or).models[0];t.coordSysDims=["single"],r.set("single",i),nc(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",or).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),nc(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),nc(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();D(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];r.set(c,u),nc(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function nc(e){return e.get("type")==="category"}function kxe(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;Dxe(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(D(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;D(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 Dxe(e){return!MU(e.schema)}function Ls(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function DU(e,t){return Ls(e,t)?e.getCalculationInfo("stackResultDimension"):t}function Rxe(e,t){var r=e.get("coordinateSystem"),n=Sv.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=y0(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function Lxe(e,t,r){var n,i;return r&&D(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 Ao(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=CI(e)):(i=n.getSource(),a=i.sourceFormat===Ai);var o=Ixe(t),s=Rxe(t,o),l=r.useEncodeDefaulter,u=me(l)?l:l?Pe(xW,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=_v(i,c),d=Lxe(f.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(f),p=kxe(t,{schema:f,store:h}),v=new sn(f,t);v.setCalculationInfo(p);var g=d!=null&&Exe(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 Exe(e){if(e.sourceFormat===Ai){var t=Oxe(e.data||[]);return!q(Vf(t))}}function Oxe(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}();hx(RU);const Mo=RU;var Nxe=0,zxe=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Nxe}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&Z(n,Bxe);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=ve(this.categories))},e}();function Bxe(e){return Se(e)&&e.value!=null?e.value:e+""}const jT=zxe;function YT(e){return e.type==="interval"||e.type==="log"}function Fxe(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=HH(a/t,!0);r!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=LU(o),l=i.niceTickExtent=[Xt(Math.ceil(e[0]/o)*o,s),Xt(Math.floor(e[1]/o)*o,s)];return $xe(l,e),i}function a_(e){var t=Math.pow(10,Q2(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Xt(r*t)}function LU(e){return Sa(e)+2}function vN(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function $xe(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),vN(e,0,t),vN(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function Ox(e,t){return e>=t[0]&&e<=t[1]}function Nx(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 EU=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 jT({})),q(i)&&(i=new jT({categories:Z(i,function(a){return Se(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),Ox(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),Nx(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}(Mo);Mo.registerClass(EU);const FI=EU;var fl=Xt,OU=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 Ox(r,this._extent)},t.prototype.normalize=function(r){return Nx(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=LU(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:fl(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 BU(e){var t=Hxe(e),r=[];return D(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")||(HU(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:VI(a),stackId:$I(n)})}),FU(r)}function FU(e){var t={};D(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 D(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=He(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),D(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;D(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;D(a,function(m,y){r[i][y]=r[i][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+c)})}),r}function Wxe(e,t,r){if(e&&t){var n=e[VI(t)];return n!=null&&r!=null?n[$I(r)]:n}}function $U(e,t){var r=zU(e,t),n=BU(r);D(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=$I(i),u=n[VI(s)][l],c=u.offset,f=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function VU(e){return{seriesType:e,plan:Kf(),reset:function(t){if(GU(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=Ls(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=a.isHorizontal(),h=Uxe(i,a),p=HU(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&&_a(_*3),w=p&&l&&_a(_*3),C=p&&_a(_),A=n.master.getRect(),T=d?A.width:A.height,M,I=S.getStore(),P=0;(M=x.next())!=null;){var k=I.get(f?g:o,M),R=I.get(s,M),z=h,$=void 0;f&&($=+k-I.get(o,M));var N=void 0,V=void 0,L=void 0,G=void 0;if(d){var U=n.dataToPoint([k,R]);if(f){var B=n.dataToPoint([$,R]);z=B[0]}N=z,V=U[1]+y,L=U[0]-z,G=m,Math.abs(L)>>1;e[i][1]i&&(this._approxInterval=i);var s=$g.length,l=Math.min(jxe($g,this._approxInterval,0,s),s-1);this._interval=$g[l][1],this._minLevelUnit=$g[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return nt(r)?r:+Ba(r)},t.prototype.contain=function(r){return Ox(this.parse(r),this._extent)},t.prototype.normalize=function(r){return Nx(this.parse(r),this._extent)},t.prototype.scale=function(r){return zx(r,this._extent)},t.type="time",t}(Es),$g=[["second",gI],["minute",mI],["hour",Gh],["quarter-day",Gh*6],["half-day",Gh*12],["day",hi*1.2],["half-week",hi*3.5],["week",hi*7],["month",hi*31],["quarter",hi*95],["half-year",aO/2],["year",aO]];function Yxe(e,t,r,n){var i=Ba(t),a=Ba(r),o=function(p){return sO(i,p,n)===sO(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 qxe(e,t){return e/=hi,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Xxe(e){var t=30*hi;return e/=t,e>6?6:e>3?3:e>2?2:1}function Zxe(e){return e/=Gh,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function gN(e,t){return e/=t?mI:gI,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Kxe(e){return HH(e,!0)}function Qxe(e,t,r){var n=new Date(e);switch(Zc(t)){case"year":case"month":n[iW(r)](0);case"day":n[aW(r)](1);case"hour":n[oW(r)](0);case"minute":n[sW(r)](0);case"second":n[lW(r)](0),n[uW(r)](0)}return n.getTime()}function Jxe(e,t,r,n){var i=1e4,a=rW,o=0;function s(T,M,I,P,k,R,z){for(var $=new Date(M),N=M,V=$[P]();N1&&R===0&&I.unshift({value:I[0].value-N})}}for(var R=0;R=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=ft(Z(u,function(T){return ft(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(rSe(n[0]/a)*a),Xt(tSe(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){Uh.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=ki(r)/ki(this.base),Ox(r,this._extent)},t.prototype.normalize=function(r){return r=ki(r)/ki(this.base),Nx(r,this._extent)},t.prototype.scale=function(r){return r=zx(r,this._extent),Vg(this.base,r)},t.type="log",t}(Mo),jU=GI.prototype;jU.getMinorTicks=Uh.getMinorTicks;jU.getLabel=Uh.getLabel;function Gg(e,t){return eSe(e,Sa(t))}Mo.registerClass(GI);const nSe=GI;var iSe=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[oSe[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=aSe[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),aSe={min:"_determinedMin",max:"_determinedMax"},oSe={min:"_dataMin",max:"_dataMax"};function YU(e,t,r){var n=e.rawExtentInfo;return n||(n=new iSe(e,t,r),e.rawExtentInfo=n,n)}function Hg(e,t){return t==null?null:Cp(t)?NaN:e.parse(t)}function qU(e,t){var r=e.type,n=YU(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=zU("bar",o),l=!1;if(D(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=BU(s),c=sSe(i,a,t,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function sSe(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=Wxe(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;D(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;D(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 yf(e,t){var r=t,n=qU(e,r),i=n.extent,a=r.get("splitNumber");e instanceof nSe&&(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 Bx(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 UU({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Mo.getClass(t)||Es)}}function lSe(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function wv(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):me(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(HI(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function HI(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function uSe(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=wv(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;ce[1]&&(e[1]=i[1])})}var Cv=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),dSe=1e-8;function yN(e,t){return Math.abs(e-t)i&&(n=o,i=l)}if(n)return pSe(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 D(o,function(s){s.type==="polygon"?xN(s.exterior,i,a,r):D(s.points,function(l){xN(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 mSe(e,t){return e=gSe(e),Z(ft(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 SN(o[0],o.slice(1)));break;case"MultiPolygon":D(i.coordinates,function(l){l[0]&&a.push(new SN(l[0],l.slice(1)))});break;case"LineString":a.push(new bN([i.coordinates]));break;case"MultiLineString":a.push(new bN(i.coordinates))}var s=new KU(n[t||"name"],a,n.cp);return s.properties=n,s})}var $p=Je();function ySe(e){return e.type==="category"?SSe(e):_Se(e)}function xSe(e,t){return e.type==="category"?bSe(e,t):{ticks:Z(e.scale.getTicks(),function(r){return r.value})}}function SSe(e){var t=e.getLabelModel(),r=JU(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function JU(e,t){var r=ej(e,"labels"),n=WI(t),i=tj(r,n);if(i)return i;var a,o;return me(n)?a=ij(e,n):(o=n==="auto"?wSe(e):n,a=nj(e,o)),rj(r,n,{labels:a,labelCategoryInterval:o})}function bSe(e,t){var r=ej(e,"ticks"),n=WI(t),i=tj(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),me(n))a=ij(e,n,!0);else if(n==="auto"){var s=JU(e,e.getLabelModel());o=s.labelCategoryInterval,a=Z(s.labels,function(l){return l.tickValue})}else o=n,a=nj(e,o,!0);return rj(r,n,{ticks:a,tickCategoryInterval:o})}function _Se(e){var t=e.scale.getTicks(),r=wv(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 ej(e,t){return $p(e)[t]||($p(e)[t]=[])}function tj(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=hv(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=$p(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 TSe(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 nj(e,t,r){var n=wv(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=XU(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 ij(e,t,r){var n=e.scale,i=wv(e),a=[];return D(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 _N=[0,1],ASe=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 VH(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(),wN(n,i.count())),ct(t,_N,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),wN(n,i.count()));var a=ct(t,n,_N,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=xSe(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 MSe(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 ySe(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 CSe(this)},e}();function wN(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function MSe(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;D(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+=Nd);var h=Math.atan2(s,o);if(h<0&&(h+=Nd),h>=n&&h<=i||h+Nd>=n&&h+Nd<=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,Vi.fromArray(e[0]),bt.fromArray(e[1]),tr.fromArray(e[2]),Le.sub(wa,Vi,bt),Le.sub(ga,tr,bt);var r=wa.len(),n=ga.len();if(!(r<.001||n<.001)){wa.scale(1/r),ga.scale(1/n);var i=wa.dot(ga),a=Math.cos(t);if(a1&&Le.copy(nn,tr),nn.toArray(e[1])}}}}function LSe(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,Vi.fromArray(e[0]),bt.fromArray(e[1]),tr.fromArray(e[2]),Le.sub(wa,bt,Vi),Le.sub(ga,tr,bt);var n=wa.len(),i=ga.len();if(!(n<.001||i<.001)){wa.scale(1/n),ga.scale(1/i);var a=wa.dot(t),o=Math.cos(r);if(a=l)Le.copy(nn,tr);else{nn.scaleAndAdd(ga,s/Math.tan(Math.PI/2-c));var f=tr.x!==bt.x?(nn.x-bt.x)/(tr.x-bt.x):(nn.y-bt.y)/(tr.y-bt.y);if(isNaN(f))return;f<0?Le.copy(nn,bt):f>1&&Le.copy(nn,tr)}nn.toArray(e[1])}}}}function TN(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 ESe(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=Jo(n[0],n[1]),a=Jo(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=Nm([],n[1],n[0],o/i),l=Nm([],n[1],n[2],o/a),u=Nm([],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 I=M+C;I<0&&b(-I*T,1)}else b(-C*T,1)}}function _(C,A,T){C!==0&&(u=!0);for(var M=A;M0)for(var I=0;I0;I--){var z=T[I-1]*R;_(-z,I,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 OSe(e,t,r,n){return lj(e,"x","width",t,r,n)}function uj(e,t,r,n){return lj(e,"y","height",t,r,n)}function cj(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)),it(n,u,r,l)}else if(n.attr(u),!Uf(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={};Wg(h,u,Ug),Wg(h,n.states.select,Ug)}if(n.states.emphasis){var p=a.oldLayoutEmphasis={};Wg(p,u,Ug),Wg(p,n.states.emphasis,Ug)}K6(n,l,c,r,r)}if(i&&!i.ignore&&!i.invisible){var a=BSe(i),o=a.oldLayout,v={points:i.shape.points};o?(i.attr({shape:o}),it(i,{shape:v},r)):(i.setShape(v),i.style.strokePercent=0,Lt(i,{style:{strokePercent:1}},r)),a.oldLayout=v}},e}();const $Se=FSe;var u_=Je();function VSe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=u_(r).labelManager;i||(i=u_(r).labelManager=new $Se),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var i=u_(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}var c_=Math.sin,f_=Math.cos,fj=Math.PI,hl=Math.PI*2,GSe=180/fj,HSe=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=is(f-hl)||(c?u>=hl:-u>=hl),h=u>0?u%hl:u%hl+hl,p=!1;d?p=!0:is(f)?p=!1:p=h>=fj==!!c;var v=t+n*f_(o),g=r+i*c_(o);this._start&&this._add("M",v,g);var m=Math.round(a*GSe);if(d){var y=1/this._p,x=(c?1:-1)*(hl-y);this._add("A",n,i,m,1,+c,t+n*f_(o+x),r+i*c_(o+x)),y>.01&&this._add("A",n,i,m,0,+c,v,g)}else{var S=t+n*f_(s),_=r+i*c_(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 QSe(e){return""}function YI(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 KSe(o,s)+(o!=="style"?mn(l):l||"")+(a?""+r+Z(a,function(u){return n(u)}).join(r)+r:"")+QSe(o)}return n(e)}function JSe(e,t,r){r=r||{};var n=r.newline?` -`:"",i=" {"+n,a=n+"}",o=Z(He(e),function(l){return l+i+Z(He(e[l]),function(u){return u+":"+e[l][u]+";"}).join(n)+a}).join(n),s=Z(He(t),function(l){return"@keyframes "+l+i+Z(He(t[l]),function(u){return u+i+Z(He(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 ZT(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function MN(e,t,r,n){return mr("svg","root",{width:e,height:t,xmlns:hj,"xmlns:xlink":pj,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+e+" "+t:!1},r)}var IN={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"},_l="transform-origin";function ebe(e,t,r){var n=Y({},e.shape);Y(n,t),e.buildPath(r,n);var i=new dj;return i.reset(kH(e)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function tbe(e,t){var r=t.originX,n=t.originY;(r||n)&&(e[_l]=r+"px "+n+"px")}var rbe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function gj(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function nbe(e,t,r){var n=e.shape.paths,i={},a,o;if(D(n,function(l){var u=ZT(r.zrId);u.animation=!0,Fx(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=He(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=gj(i,r);return a.replace(o,s)}}function PN(e){return oe(e)?IN[e]?"cubic-bezier("+IN[e]+")":q2(e)?e:"":""}function Fx(e,t,r,n){var i=e.animators,a=i.length,o=[];if(e instanceof fI){var s=nbe(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=gj(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 Vp=Math.round;function mj(e){return e&&oe(e.src)}function yj(e){return e&&me(e.toDataURL)}function qI(e,t,r,n){qSe(function(i,a){var o=i==="fill"||i==="stroke";o&&PH(a)?Sj(t,e,i,n):o&&X2(a)?bj(r,e,i,n):e[i]=a},t,r,!1),cbe(r,e,n)}function kN(e){return is(e[0]-1)&&is(e[1])&&is(e[2])&&is(e[3]-1)}function ibe(e){return is(e[4])&&is(e[5])}function XI(e,t,r){if(t&&!(ibe(t)&&kN(t))){var n=r?10:1e4;e.transform=kN(t)?"translate("+Vp(t[4]*n)/n+" "+Vp(t[5]*n)/n+")":Qpe(t)}}function DN(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.";ln(d,g),ln(h,g)}else if(d==null||h==null){var m=function(T,M){if(T){var I=T.elm,P=d||M.width,k=h||M.height;T.tag==="pattern"&&(u?(k=1,P/=a.width):c&&(P=1,k/=a.height)),T.attrs.width=P,T.attrs.height=k,I&&(I.setAttribute("width",P),I.setAttribute("height",k))}},y=rI(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=mr("image","img",{href:p,width:d,height:h}),o.width=d,o.height=h}else i.svgElement&&(f=we(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 _=DH(i);_&&(o.patternTransform=_);var b=mr("pattern","",o,[f]),w=YI(b),C=n.patternCache,A=C[w];A||(A=n.zrId+"-p"+n.patternIdx++,C[w]=A,o.id=A,b=n.defs[A]=mr("pattern",A,o,[f])),t[r]=fx(A)}}function fbe(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]=mr("clipPath",a,o,[xj(e,r)])}t["clip-path"]=fx(a)}function EN(e){return document.createTextNode(e)}function Dl(e,t,r){e.insertBefore(t,r)}function ON(e,t){e.removeChild(t)}function NN(e,t){e.appendChild(t)}function _j(e){return e.parentNode}function wj(e){return e.nextSibling}function d_(e,t){e.textContent=t}var zN=58,dbe=120,hbe=mr("","");function KT(e){return e===void 0}function ua(e){return e!==void 0}function pbe(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 uh(e,t){var r=e.key===t.key,n=e.tag===t.tag;return n&&r}function Gp(e){var t,r=e.children,n=e.tag;if(ua(n)){var i=e.elm=vj(n);if(ZI(hbe,e),q(r))for(t=0;ta?(p=r[l+1]==null?null:r[l+1].elm,Cj(e,p,r,i,l)):_0(e,t,n,a))}function mc(e,t){var r=t.elm=e.elm,n=e.children,i=t.children;e!==t&&(ZI(e,t),KT(t.text)?ua(n)&&ua(i)?n!==i&&vbe(r,n,i):ua(i)?(ua(e.text)&&d_(r,""),Cj(r,null,i,0,i.length-1)):ua(n)?_0(r,n,0,n.length-1):ua(e.text)&&d_(r,""):e.text!==t.text&&(ua(n)&&_0(r,n,0,n.length-1),d_(r,t.text)))}function gbe(e,t){if(uh(e,t))mc(e,t);else{var r=e.elm,n=_j(r);Gp(t),n!==null&&(Dl(n,t.elm,wj(r)),_0(n,[e],0,0))}return t}var mbe=0,ybe=function(){function e(t,r,n){if(this.type="svg",this.refreshHover=BN(),this.configLayer=BN(),this.storage=r,this._opts=n=Y({},n),this.root=t,this._id="zr"+mbe++,this._oldVNode=MN(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=vj("svg");ZI(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",gbe(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return LN(t,ZT(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=ZT(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress;var o=[],s=this._bgVNode=xbe(n,i,this._backgroundColor,a);s&&o.push(s);var l=t.compress?null:this._mainVNode=mr("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=Z(He(a.defs),function(d){return a.defs[d]});if(u.length&&o.push(mr("defs","defs",{},u)),t.animation){var c=JSe(a.cssNodes,a.cssAnims,{newline:!0});if(c){var f=mr("style","stl",{},[],c);o.push(f)}}return MN(n,i,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},YI(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}}k.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?jg:0),this._needsManuallyCompositing),c.__builtin__||V2("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&On&&!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,D(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 kbe=Pbe;function xf(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=gf(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 Dbe=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=sr(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=Rbe,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(){mo(this.childAt(0))},t.prototype.downplay=function(){yo(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):it(d,h,s,n),Zi(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=yr(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 _=Du(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 Fr){var C=s.style;s.useStyle(Y({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},b))}else s.__isEmptyBrush?s.useStyle(Y({},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:I,inheritColor:w,defaultOpacity:b.opacity});function I(R){return M?r.getName(R):xf(r,R)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var P=s.ensureState("emphasis");P.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var k=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;P.scaleX=this._sizeX*k,P.scaleY=this._sizeY*k,this.setSymbolScale(1),Ut(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=Ie(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&Ds(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Ds(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return Jf(r.getItemVisual(n,"symbolSize"))},t}(Ae);function Rbe(e,t){this.parent.drift(e,t)}const Tv=Dbe;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 VN(e){return e!=null&&!Se(e)&&(e={isIgnore:e}),e||{}}function GN(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:yr(t),cursorStyle:t.get("cursor")}}var Lbe=function(){function e(t){this.group=new Ae,this._SymbolCtor=t||Tv}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=VN(r);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=GN(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):it(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=GN(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=VN(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 Mj(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 Obe(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 Nbe(e,t,r,n,i,a,o,s){for(var l=Obe(e,t),u=[],c=[],f=[],d=[],h=[],p=[],v=[],g=Aj(i,t,o),m=e.getLayout("points")||[],y=t.getLayout("points")||[],x=0;x=i||v<0)break;if(au(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||au(b,w))h=m,p=y;else{T=b-u,M=w-c;var k=m-u,R=b-m,z=y-c,$=w-y,N=void 0,V=void 0;if(s==="x"){N=Math.abs(k),V=Math.abs(R);var L=T>0?1:-1;h=m-L*N*o,p=y,I=m+L*V*o,P=y}else if(s==="y"){N=Math.abs(z),V=Math.abs($);var G=M>0?1:-1;h=m,p=y-G*N*o,I=m,P=y+G*V*o}else N=Math.sqrt(k*k+z*z),V=Math.sqrt(R*R+$*$),A=V/(V+N),h=m-T*o*(1-A),p=y-M*o*(1-A),I=m+T*o*A,P=y+M*o*A,I=Fo(I,$o(b,m)),P=Fo(P,$o(w,y)),I=$o(I,Fo(b,m)),P=$o(P,Fo(w,y)),T=I-m,M=P-y,h=m-T*N/V,p=y-M*N/V,h=Fo(h,$o(u,m)),p=Fo(p,$o(c,y)),h=$o(h,Fo(u,m)),p=$o(p,Fo(c,y)),T=m-h,M=y-p,I=m+T*V/N,P=y+M*V/N}e.bezierCurveTo(f,d,h,p,m,y),f=I,d=P}else e.lineTo(m,y)}u=m,c=y,v+=a}return g}var Ij=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),zbe=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 Ij},t.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&au(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?Xy(s,h,v,m,r,c):Xy(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?vr(l,p,g,y,w):vr(s,h,v,m,w);return u?[r,S]:[S,r]}}s=m,l=y;break}}},t}($e),Bbe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Ij),Pj=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 Bbe},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&&au(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 Vbe(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=$be(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";D(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 gv(0,0,0,0,d,!0);return y[i]=v,y[i+"2"]=g,y}}}function Gbe(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&Hbe(a,t))){var o=t.mapDimension(a.dim),s={};return D(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function Hbe(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 Wbe(e,t){return isNaN(e)||isNaN(t)}function Ube(e){for(var t=e.length/2;t>0&&Wbe(e[t*2-2],e[t*2-1]);t--);return t-1}function YN(e,t){return[e[t*2],e[t*2+1]]}function jbe(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 Rj(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var L=v.getState("emphasis").style;L.lineWidth=+v.style.lineWidth+1}Ie(v).seriesIndex=r.seriesIndex,Ut(v,$,N,V);var G=jN(r.get("smooth")),U=r.get("smoothMonotone");if(v.setShape({smooth:G,smoothMonotone:U,connectNulls:C}),g){var B=l.getCalculationInfo("stackedOnSeries"),j=0;g.useStyle(xe(c.getAreaStyle(),{fill:P,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),B&&(j=jN(B.get("smooth"))),g.setShape({smooth:G,stackedOnSmooth:j,smoothMonotone:U,connectNulls:C}),zr(g,r,"areaStyle"),Ie(g).seriesIndex=r.seriesIndex,Ut(g,$,N,V)}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){Ie(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=gu(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 Tv(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=gu(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;n0(this._polyline,r),n&&n0(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new zbe({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 Pj({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");me(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=me(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=me(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(Rj(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=Ube(l);c>=0&&(Br(s,yr(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?Tj(o,h):xf(o,f)},enableTextSetter:!0},Ybe(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=jbe(f,S,w),A=C.range,T=A[1]-A[0],M=void 0;if(T>=1){if(T>1&&!h){var I=YN(f,A[0]);u.attr({x:I[0]+_,y:I[1]+b}),o&&(M=d.getRawValue(A[0]))}else{var I=c.getPointOn(S,w);I&&u.attr({x:I[0]+_,y:I[1]+b});var P=d.getRawValue(A[0]),k=d.getRawValue(A[1]);o&&(M=QH(i,p,P,k,C.t))}a.lastFrameIndex=A[0]}else{var R=r===1||a.lastFrameIndex>0?A[0]:0,I=YN(f,R);o&&(M=d.getRawValue(R)),u.attr({x:I[0]+_,y:I[1]+b})}if(o){var z=Uf(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=Nbe(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=Vo(d.current,i,o,l),p=Vo(d.stackedOnCurrent,i,o,l),v=Vo(d.next,i,o,l),g=Vo(d.stackedOnNext,i,o,l)),UN(h,v)>3e3||c&&UN(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(),it(u,m,f),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),it(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=Zbe[a]:me(a)&&(p=a),p&&t.setData(i.downSample(i.mapDimension(u.dim),1/h,p,Kbe))}}}}}function Qbe(e){e.registerChartView(Xbe),e.registerSeriesModel(kbe),e.registerLayout(Mv("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,Lj("line"))}var Ej=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 Ao(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)D(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(Ej);const w0=Ej;var Jbe=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 Ao(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=Hs(w0.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}(w0);const e_e=Jbe;var t_e=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),r_e=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 t_e},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,f=n.endAngle,d=n.clockwise,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){Rp(a,r,Ie(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),qN={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=g_(t.x,e.x),s=m_(t.x+t.width,i),l=g_(t.y,e.y),u=m_(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=m_(t.r,e.r),a=g_(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}},XN={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new Qe({shape:Y({},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?C0:In,c=new u({shape:n,z2:1});c.name="item";var f=Oj(i);if(c.calculateTextPosition=n_e(f,{isRoundCap:u===C0}),a){var d=c.shape,h=i?"r":"endAngle",p={};d[h]=i?n.r0:n.startAngle,p[h]=n[h],(s?it:Lt)(c,{shape:p},a)}return c}};function s_e(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function ZN(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?it:Lt)(r,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(o?it:Lt)(r,{shape:u},c,i)}function KN(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 c_e(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function Oj(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 JN(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=ql(n.getModel("itemStyle"),c,!0);Y(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=yr(n);Br(e,p,{labelFetcher:a,labelDataIndex:r,defaultText:xf(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,i_e(e,g==="outside"?h:g,Oj(o),n.get(["label","rotate"]))}Z6(v,p,a.getRawValue(r),function(y){return Tj(t,y)});var m=n.getModel(["emphasis"]);Ut(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),zr(e,n),c_e(i)&&(e.style.fill="none",e.style.stroke="none",D(e.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function f_e(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var d_e=function(){function e(){}return e}(),ez=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 d_e},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?r:null},30,!1);function h_e(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=a.length/3;c=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function Nj(e,t,r){if(Lu(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 p_e(e,t,r){var n=e.type==="polar"?In:Qe;return new n({shape:Nj(t,r,e),silent:!0,z2:0})}const v_e=o_e;function g_e(e){e.registerChartView(v_e),e.registerSeriesModel(e_e),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Pe($U,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,VU("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Lj("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 Zg=Math.PI*2,nz=Math.PI/180;function zj(e,t){return hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Bj(e,t){var r=zj(e,t),n=e.get("center"),i=e.get("radius");q(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 q(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 m_e(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=zj(n,r),s=Bj(n,r),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-n.get("startAngle")*nz,h=n.get("minAngle")*nz,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 _=Zg,b=0,w=d,C=m?1:-1;if(i.setLayout({viewRect:o,r:c}),i.each(a,function(T,M){var I;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"?I=v===0&&x?g:T*g:I=Zg/p,Ir?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 y_(e){return e.position==="center"}function S_e(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*y_e,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),I=M.getModel("label"),P=I.get("position")||M.get(["emphasis","label","position"]),k=I.get("distanceToLabelLine"),R=I.get("alignTo"),z=ne(I.get("edgeDistance"),u),$=I.get("bleedMargin"),N=M.getModel("labelLine"),V=N.get("length");V=ne(V,u);var L=N.get("length2");if(L=ne(L,u),Math.abs(C.endAngle-C.startAngle)0?"right":"left":U>0?"left":"right"}var ke=Math.PI,We=0,Ge=I.get("rotate");if(nt(Ge))We=Ge*(ke/180);else if(P==="center")We=0;else if(Ge==="radial"||Ge===!0){var at=U<0?-G+ke:-G;We=at}else if(Ge==="tangential"&&P!=="outside"&&P!=="outer"){var ot=Math.atan2(U,B);ot<0&&(ot=ke*2+ot);var It=B>0;It&&(ot=ke+ot),We=ot-ke}if(a=!!We,A.x=j,A.y=X,A.rotation=We,A.setStyle({verticalAlign:"middle"}),te){A.setStyle({align:ee});var Yt=A.states.select;Yt&&(Yt.x+=A.x,Yt.y+=A.y)}else{var Be=A.getBoundingRect().clone();Be.applyTransform(A.getComputedTransform());var Pt=(A.style.margin||0)+2.1;Be.y-=Pt/2,Be.height+=Pt,r.push({label:A,labelLine:T,position:P,len:V,len2:L,minTurnAngle:N.get("minTurnAngle"),maxSurfaceAngle:N.get("maxSurfaceAngle"),surfaceNormal:new Le(U,B),linePoints:W,textAlign:ee,labelDistance:k,labelAlignTo:R,edgeDistance:z,bleedMargin:$,rect:Be,unconstrainedWidth:Be.width,labelStyleWidth:A.style.width})}w.setTextConfig({inside:te})}}),!a&&e.get("avoidLabelOverlap")&&x_e(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 w_e=__e;function ed(e,t,r){t=q(t)&&{coordDimensions:t}||Y({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=_v(n,t).dimensions,a=new sn(i,e);return a.initData(n,r),a}var C_e=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 Pv=C_e;var T_e=Je(),A_e=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 Pv(ue(this.getData,this),ue(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return ed(this,{coordDimensions:["value"],encodeDefaulter:Pe(SI,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=T_e(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=Eve(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){vu(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 M_e=A_e;function I_e(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(nt(o)&&!isNaN(o)&&o<0)})}}}function P_e(e){e.registerChartView(w_e),e.registerSeriesModel(M_e),iU("pie",e.registerAction),e.registerLayout(Pe(m_e,"pie")),e.registerProcessor(Iv("pie")),e.registerProcessor(I_e("pie"))}var k_e=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 Ao(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 D_e=k_e;var $j=4,R_e=function(){function e(){}return e}(),L_e=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 R_e},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(r,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&a[0]<$j,c=this.softClipShape,f;if(u){this._ctx=l;return}for(this._ctx=null,f=this._off;f=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 O_e=E_e;var N_e=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=Mv("").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 O_e:new Av,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 z_e=N_e;var B_e=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 F_e=B_e;var JT=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",or).models[0]},t.type="cartesian2dAxis",t}(et);lr(JT,Cv);var Vj={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)"]}}},$_e=Oe({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Vj),KI=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}}},Vj),V_e=Oe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},KI),G_e=xe({logBase:10},KI);const Gj={category:$_e,value:KI,time:V_e,log:G_e};var H_e={value:1,category:1,time:1,log:1};function Sf(e,t,r,n){D(H_e,function(i,a){var o=Oe(Oe({},Gj[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=Op(this),h=d?qf(c):{},p=f.getTheme();Oe(c,p.get(a+"Axis")),Oe(c,this.getDefaultOption()),c.type=az(c),d&&Rs(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=jT.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",az)}function az(e){return e.type||(e.data?"category":"value")}var W_e=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return Z(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),ft(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 U_e=W_e;var eA=["x","y"];function oz(e){return e.type==="interval"||e.type==="time"}var j_e=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=eA,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!oz(r)||!oz(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=$f([],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}(U_e),Y_e=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}(Qi);const q_e=Y_e;function tA(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 sz(e){return e.get("coordinateSystem")==="cartesian2d"}function lz(e){var t={xAxisModel:null,yAxisModel:null};return D(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,or).models[0];t[n]=a}),t}var x_=Math.log;function Hj(e,t,r){var n=Es.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=qU(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=x_(e.base);u=[x_(u[0])/d,x_(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=a_(p),v=u[1]-p*o;else{var m=e.getTicks().length-1;m>o&&(p=a_(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 X_e=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=eA,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=He(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;YT(v)&&p.get("alignTicks")&&p.get("interval")==null?c.push(h):(yf(v,p),YT(v)&&(s=h))}c.length&&(s||(s=c.pop(),yf(s.scale,s.model)),D(c,function(g){Hj(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};D(n.x,function(o){uz(n,"y",o,a)}),D(n.y,function(o){uz(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=hr(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(D(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=uSe(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()),D(this._coordsList,function(u){u.calcAffineTransform()});function l(){D(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]),Z_e(u,c?o.x:o.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}Se(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):t0(i-as)?(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}(),fz={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=Y({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});vf(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=Du(t.get(["axisLine","symbolOffset"])||0,h),v=h[0],g=h[1];D([{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=sr(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=ewe(r,n,t,e),a=rwe(r,n,t,e);if(J_e(t,a,i),twe(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=sj(Z(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));cj(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,hz(a)?e.labelOffset+o*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*as/180);var p;hz(a)?d=ou.innerTextLayout(e.rotation,h??e.rotation,o):(d=Q_e(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:ou.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(Wf({el:x,componentModel:t,itemName:i}),x.__fullText=i,x.anid="name",t.get("triggerEvent")){var S=ou.makeAxisEventDataBase(t);S.targetType="axisName",S.name=i,Ie(x).eventData=S}n.add(x),x.updateTransform(),r.add(x),x.decomposeTransform()}}};function Q_e(e,t,r,n){var i=GH(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return t0(i-as/2)?(o=l?"bottom":"top",a="center"):t0(i-as*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",ias/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function J_e(e,t,r){if(!XU(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?(Zn(a),Zn(u)):dz(a,o)&&(n?(Zn(o),Zn(c)):(Zn(a),Zn(u))),i===!1?(Zn(s),Zn(f)):dz(l,s)&&(i?(Zn(l),Zn(d)):(Zn(s),Zn(f)))}}function Zn(e){e&&(e.ignore=!0)}function dz(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=cx([]);return Pu(i,i,-e.rotation),r.applyTransform(no([],i,e.getLocalTransform())),n.applyTransform(no([],i,t.getLocalTransform())),r.intersect(n)}}function hz(e){return e==="middle"||e==="center"}function Wj(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l=0||e===t}function lwe(e){var t=QI(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=rA(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=xe({color:p.color},l));var g=Oe(we(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 me(c)&&(g.name=c(g.name,g));var y=new wt(g,null,this.ecModel);return lr(y,Cv.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"}},zd.axisLine),axisLabel:Kg(zd.axisLabel,!1),axisTick:Kg(zd.axisTick,!1),splitLine:Kg(zd.splitLine,!0),splitArea:Kg(zd.splitArea,!0),indicator:[]},t}(et);const Cwe=wwe;var Twe=["axisLine","axisTickLabel","axisName"],Awe=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 So(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});D(a,function(o){D(Twe,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=q(d)?d:[d],v=q(h)?h:[h],g=[],m=[];function y(R,z,$){var N=$%z.length;return R[N]=R[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;__(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);__(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!xz(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;__(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(Ti);function __(e,t,r,n,i){e.pointerChecker&&e.pointerChecker(n,i.originX,i.originY)&&(vo(n.event),Zj(e,t,r,n,i))}function Zj(e,t,r,n,i){i.isAvailableBehavior=ue(Zm,null,r,n),e.trigger(t,i)}function Zm(e,t,r){var n=r[e];return!e||n&&(!oe(n)||t.event[n+"Key"])}const kv=Nwe;function eP(e,t,r){var n=e.target;n.x+=t,n.y+=r,n.dirty()}function tP(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 zwe={axisPointer:1,tooltip:1,brush:1};function Vx(e,t,r){var n=t.getComponentByElement(e.topTarget),i=n&&n.coordinateSystem;return n&&n!==r&&!zwe.hasOwnProperty(n.mainType)&&i&&i.model!==r}function Kj(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 w_,T0={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"},Sz=He(T0),A0={"alignment-baseline":"textBaseline","stop-color":"stopColor"},bz=He(A0),Bwe=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,r){r=r||{};var n=Kj(t);this._defsUsePending=[];var i=new Ae;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),Dn(n,i,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;Vwe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var d=Gx(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=Jj(c,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var h=i;i=new Ae,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=w_[s];if(c&&ce(w_,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=_z[s];if(h&&ce(_z,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 Pp({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Kn(r,n),Dn(t,n,this._defsUsePending,!1,!1),Fwe(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(){w_={g:function(t,r){var n=new Ae;return Kn(r,n),Dn(t,n,this._defsUsePending,!1,!1),n},rect:function(t,r){var n=new Qe;return Kn(r,n),Dn(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 $a;return Kn(r,n),Dn(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 Kn(r,n),Dn(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 uI;return Kn(r,n),Dn(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=Tz(n));var a=new Pn({shape:{points:i||[]},silent:!0});return Kn(r,a),Dn(t,a,this._defsUsePending,!1,!1),a},polyline:function(t,r){var n=t.getAttribute("points"),i;n&&(i=Tz(n));var a=new kn({shape:{points:i||[]},silent:!0});return Kn(r,a),Dn(t,a,this._defsUsePending,!1,!1),a},image:function(t,r){var n=new Fr;return Kn(r,n),Dn(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 Ae;return Kn(r,s),Dn(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 Ae;return Kn(r,s),Dn(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=I6(n);return Kn(r,i),Dn(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),e}(),_z={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 gv(t,r,n,i);return wz(e,a),Cz(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 V6(t,r,n);return wz(e,i),Cz(e,i),i}};function wz(e,t){var r=e.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(t.global=!0)}function Cz(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={};Qj(r,a,a);var o=a.stopColor||r.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}r=r.nextSibling}}function Kn(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),xe(t.__inheritedStyle,e.__inheritedStyle))}function Tz(e){for(var t=Gx(e),r=[],n=0;n0;a-=2){var o=n[a],s=n[a-1],l=Gx(o);switch(i=i||bi(),s){case"translate":Na(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Y2(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Pu(i,i,-parseFloat(l[0])*C_);break;case"skewX":var u=Math.tan(parseFloat(l[0])*C_);no(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*C_);no(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 Mz=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Qj(e,t,r){var n=e.getAttribute("style");if(n){Mz.lastIndex=0;for(var i;(i=Mz.exec(n))!=null;){var a=i[1],o=ce(T0,a)?T0[a]:null;o&&(t[o]=i[2]);var s=ce(A0,a)?A0[a]:null;s&&(r[s]=i[2])}}}function Uwe(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=ve(),n=ve(),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,yr(n),{labelFetcher:d,labelDataIndex:f,defaultText:r},h);var p=t.getTextContent();if(p&&(e8(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 Rz(e,t,r,n,i,a){e.data?e.data.setItemGraphicEl(a,t):Ie(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:r,region:n&&n.option||{}}}function Lz(e,t,r,n,i){e.data||Wf({el:t,componentModel:i,itemName:r,itemTooltipOption:n.get("tooltip")})}function Ez(e,t,r,n,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var a=n.getModel("emphasis"),o=a.get("focus");return Ut(t,o,a.get("blurScope"),a.get("disabled")),e.isGeo&&cme(t,i,r),o}function Oz(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(),D(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 hCe=dCe;function pCe(e,t){var r={};return D(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=hr(_,{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 xCe(e,t){D(t.get("geoCoord"),function(r,n){e.addGeoCoord(n,r)})}var SCe=function(){function e(){this.dimensions=r8}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 Fz(l+s,l,Y({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=$z,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)}}),D(a,function(o,s){var l=Z(o,function(c){return c.get("nameMap")}),u=new Fz(s,s,Y({nameMap:G2(l)},i(o[0])));u.zoomLimit=Cr.apply(null,Z(o,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=$z,u.resize(o[0],r),D(o,function(c){c.coordinateSystem=u,xCe(u,c)})}),n},e.prototype.getFilledRegions=function(t,r,n,i){for(var a=(t||[]).slice(),o=ve(),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 PCe(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){RCe(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=LCe(e,i,e.parentNode.hierNode.defaultAncestor||n[0],t)}function kCe(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function Gz(e){return arguments.length?e:NCe}function ch(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function DCe(e,t){return hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function RCe(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 LCe(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=T_(s),a=A_(a),s&&a;){i=T_(i),o=A_(o),i.hierNode.ancestor=e;var d=s.hierNode.prelim+f-a.hierNode.prelim-u+n(s,a);d>0&&(OCe(ECe(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&&!T_(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=f-l),a&&!A_(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,r=e)}return r}function T_(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function A_(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function ECe(e,t,r){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:r}function OCe(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 NCe(e,t){return e.parentNode===t.parentNode?1:2}var zCe=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),BCe=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 zCe},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 I=s.get(["emphasis","focus"]),P=I==="relative"?Yy(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;P&&(Ie(r).focus=P),$Ce(i,o,c,r,p,h,v,n),r.__edge&&(r.onHoverStateChange=function(k){if(k!=="blur"){var R=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===vv||n0(r.__edge,k)}})}function $Ce(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 Sx({shape:aA(c,f,d,i,i)})),it(v,{shape:aA(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 u8(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function oP(e,t){var r=u8(e);return ze(r,t)>=0}function Hx(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 KCe=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=aP.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 xr("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=Hx(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 QCe=KCe;function JCe(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 eTe(e,t){e.eachSeriesByType("tree",function(r){tTe(r,t)})}function tTe(e,t){var r=DCe(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=Gz(function(x,S){return(x.parentNode===S.parentNode?1:2)/x.depth})):(i=r.width,a=r.height,o=Gz());var s=e.getData().tree.root,l=s.children[0];if(l){ICe(s),JCe(l,PCe,o),s.hierNode.modifier=-l.hierNode.prelim,Fd(l,kCe);var u=l,c=l,f=l;Fd(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),Fd(l,function(x){g=(x.getLayout().x+h)*p,m=(x.depth-1)*v;var S=ch(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),Fd(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),Fd(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 rTe(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");Y(s,o)})})}function nTe(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=nP(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function iTe(e){e.registerChartView(VCe),e.registerSeriesModel(QCe),e.registerLayout(eTe),e.registerVisual(rTe),nTe(e)}var Yz=["treemapZoomToNode","treemapRender","treemapMove"];function aTe(e){for(var t=0;t1;)a=a.parentNode;var o=LT(e.ecModel,a.name||a.dataIndex+"",n);i.setVisual("decal",o)})}var oTe=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};f8(i);var a=r.levels||[],o=this.designatedVisualItemStyle={},s=new wt({itemStyle:o},this,n);a=r.levels=sTe(a,n);var l=Z(a||[],function(f){return new wt(f,s,n)},this),u=aP.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 xr("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=Hx(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},Y(this.layoutInfo,r)},t.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=ve(),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(){c8(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 f8(e){var t=0;D(e.children,function(n){f8(n);var i=n.value;q(i)&&(i=i[0]),t+=i});var r=e.value;q(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),q(e.value)?e.value[0]=r:e.value=r}function sTe(e,t){var r=pt(t.get("color")),n=pt(t.get(["aria","decal","decals"]));if(r){e=e||[];var i,a;D(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 lTe=oTe;var uTe=8,qz=8,M_=5,cTe=function(){function e(t){this.group=new Ae,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),kx(o,f.pos,f.box)}},e.prototype._prepare=function(t,r,n){for(var i=t;i;i=i.parentNode){var a=dr(i.getModel().get("name"),""),o=n.getTextRect(a),s=Math.max(o.width+uTe*2,r.emptyItemWidth);r.totalWidth+=s+qz,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=xye(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 Pn({shape:{points:fTe(l,0,y,c,v===h.length-1,v===0)},style:xe(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new rt({style:_t(a,{text:x})}),textConfig:{position:"inside"},z2:Gf*1e4,onclick:Pe(s,m)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=_t(o,{text:x}),S.ensureState("emphasis").style=p,Ut(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),dTe(S,t,m),l+=y+qz}},e.prototype.remove=function(){this.group.removeAll()},e}();function fTe(e,t,r,n,i,a){var o=[[i?e:e-M_,t],[e+r,t],[e+r,t+n],[i?e:e-M_,t+n]];return!a&&o.splice(2,0,[e+r+M_,t+n/2]),!i&&o.push([e,t+n/2]),o}function dTe(e,t,r){Ie(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&&Hx(r,t)}}const hTe=cTe;var pTe=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;iZz||Math.abs(r.dy)>Zz)){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=bi();Na(u,u,[-n,-i]),Y2(u,u,[r.scale,r.scale]),Na(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&&u0(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 hTe(this.group))).render(r,n,i.node,function(o){a._state!=="animating"&&(oP(r.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=$d(),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 $d(){return{nodeGroup:[],background:[],content:[]}}function STe(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=j("nodeGroup",oA);if(!M)return;if(l.add(M),M.x=c.x||0,M.y=c.y||0,M.markRedraw(),M0(M).nodeWidth=h,M0(M).nodeHeight=p,c.isAboveViewRoot)return M;var I=j("background",Xz,u,mTe);I&&V(M,I,_&&c.upperLabelHeight);var P=d.getModel("emphasis"),k=P.get("focus"),R=P.get("blurScope"),z=P.get("disabled"),$=k==="ancestor"?o.getAncestorsIndices():k==="descendant"?o.getDescendantIndices():k;if(_)Dp(M)&&Hl(M,!1),I&&(Hl(I,!z),f.setItemGraphicEl(o.dataIndex,I),TT(I,$,R));else{var N=j("content",Xz,u,yTe);N&&L(M,N),I.disableMorphing=!0,I&&Dp(I)&&Hl(I,!1),Hl(M,!z),f.setItemGraphicEl(o.dataIndex,M),TT(M,$,R)}return M;function V(ee,te,ie){var re=Ie(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,fe=Jz(b);fe.fill=J;var de=Cl(w);de.fill=w.get("borderColor");var ke=Cl(C);ke.fill=C.get("borderColor");var We=Cl(A);if(We.fill=A.get("borderColor"),ie){var Ge=h-2*v;U(te,J,Q.opacity,{x:v,y:0,width:Ge,height:S})}else te.removeTextContent();te.setStyle(fe),te.ensureState("emphasis").style=de,te.ensureState("blur").style=ke,te.ensureState("select").style=We,yu(te)}ee.add(te)}function L(ee,te){var ie=Ie(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"),fe=J.fill,de=Jz(b);de.fill=fe,de.decal=J.decal;var ke=Cl(w),We=Cl(C),Ge=Cl(A);U(te,fe,J.opacity,null),te.setStyle(de),te.ensureState("emphasis").style=ke,te.ensureState("blur").style=We,te.ensureState("select").style=Ge,yu(te)}ee.add(te)}function G(ee){!ee.invisible&&a.push(ee)}function U(ee,te,ie,re){var Q=d.getModel(re?Qz:Kz),J=dr(d.get("name"),null),fe=Q.getShallow("show");Br(ee,yr(d,re?Qz:Kz),{defaultText:fe?J:null,inheritColor:te,defaultOpacity:ie,labelFetcher:e,labelDataIndex:o.dataIndex});var de=ee.getTextContent();if(de){var ke=de.style,We=W2(ke.padding||0);re&&(ee.setTextConfig({layoutRect:re}),de.disableLabelLayout=!0),de.beforeUpdate=function(){var at=Math.max((re?re.width:ee.shape.width)-We[1]-We[3],0),ot=Math.max((re?re.height:ee.shape.height)-We[0]-We[2],0);(ke.width!==at||ke.height!==ot)&&de.setStyle({width:at,height:ot})},ke.truncateMinChar=2,ke.lineOverflow="truncate",B(ke,re,c);var Ge=de.getState("emphasis");B(Ge?Ge.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 j(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 _i&&(Q.z2=bTe(ie,re)),W(J,Q)),t[ee][m]=Q}function X(ee,te){var ie=ee[m]={};te instanceof oA?(ie.oldX=te.x,ie.oldY=te.y):ie.oldShape=Y({},te.shape)}function W(ee,te){var ie=ee[m]={},re=o.parentNode,Q=te instanceof Ae;if(re&&(!n||n.direction==="drillDown")){var J=0,fe=0,de=i.background[re.getRawIndex()];!n&&de&&de.oldShape&&(J=de.oldShape.width,fe=de.oldShape.height),Q?(ie.oldX=0,ie.oldY=fe):ie.oldShape={x:J,y:fe,width:0,height:0}}ie.fadein=!Q}}function bTe(e,t){return e*gTe+t}const _Te=xTe;var Up=D,wTe=Se,I0=-1,sP=function(){function e(t){var r=t.mappingMethod,n=t.type,i=this.option=we(t);this.type=n,this.mappingMethod=r,this._normalizeData=ATe[r];var a=e.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[r],r==="piecewise"?(I_(i),CTe(i)):r==="category"?i.categories?TTe(i):I_(i,!0):(ln(r!=="linear"||i.dataExtent),I_(i))}return e.prototype.mapValueToVisual=function(t){var r=this._normalizeData(t);return this._normalizedToVisual(r,t)},e.prototype.getNormalizer=function(){return ue(this._normalizeData,this)},e.listVisualTypes=function(){return He(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,r,n){Se(t)?D(t,r,n):r.call(n,t)},e.mapVisual=function(t,r,n){var i,a=q(t)?[]:Se(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&&Up(e.visualHandlers,function(i,a){t.hasOwnProperty(a)&&(r[a]=t[a],n=!0)}),n?r:null},e.prepareVisualTypes=function(t){if(q(t))t=t.slice();else if(wTe(t)){var r=[];Up(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 I_(e,t){var r=e.visual,n=[];Se(r)?Up(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]),d8(e,n)}function Jg(e){return{applyVisual:function(t,r,n){var i=this.mapValueToVisual(t);n("color",e(r("color"),i))},_normalizedToVisual:sA([0,1])}}function eB(e){var t=this.option.visual;return t[Math.round(ct(e,[0,1],[0,t.length-1],!0))]||{}}function Vd(e){return function(t,r,n){n(e,this.mapValueToVisual(t))}}function fh(e){var t=this.option.visual;return t[this.option.loop&&e!==I0?e%t.length:e]}function Tl(){return this.option.visual[0]}function sA(e){return{linear:function(t){return ct(t,e,this.option.visual,!0)},category:fh,piecewise:function(t,r){var n=lA.call(this,r);return n==null&&(n=ct(t,e,this.option.visual,!0)),n},fixed:Tl}}function lA(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var n=sP.findPieceIndex(e,r),i=r[n];if(i&&i.visual)return i.visual[this.type]}}function d8(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=Z(t,function(r){var n=$n(r);return n||[0,0,0,1]})),t}var ATe={linear:function(e){return ct(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,r=sP.findPieceIndex(e,t,!0);if(r!=null)return ct(r,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??I0},fixed:rr};function em(e,t,r){return e?t<=r:t=r.length||v===r[v.depth]){var m=RTe(i,l,v,g,p,n);p8(v,m,r,n)}})}}}function PTe(e,t,r){var n=Y({},t),i=r.designatedVisualItemStyle;return D(["color","colorAlpha","colorSaturation"],function(a){i[a]=t[a];var o=e.get(a);i[a]=null,o!=null&&(n[a]=o)}),n}function tB(e){var t=P_(e,"color");if(t){var r=P_(e,"colorAlpha"),n=P_(e,"colorSaturation");return n&&(t=Oh(t,null,null,n)),r&&(t=Zy(t,r)),t}}function kTe(e,t){return t!=null?Oh(t,null,null,e):null}function P_(e,t){var r=e[t];if(r!=null&&r!=="none")return r}function DTe(e,t,r,n,i,a){if(!(!a||!a.length)){var o=k_(t,"color")||i.color!=null&&i.color!=="none"&&(k_(t,"colorAlpha")||k_(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 h8(d).drColorMappingBy=c,d}}}function k_(e,t){var r=e.get(t);return q(r)&&r.length?{name:t,range:r}:null}function RTe(e,t,r,n,i,a){var o=Y({},t);if(i){var s=i.type,l=s==="color"&&h8(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 jp=Math.max,P0=Math.min,rB=Cr,lP=D,v8=["itemStyle","borderWidth"],LTe=["itemStyle","gapWidth"],ETe=["upperLabel","show"],OTe=["upperLabel","height"];const NTe={seriesType:"treemap",reset:function(e,t,r,n){var i=r.getWidth(),a=r.getHeight(),o=e.option,s=hr(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],u=ne(rB(s.width,l[0]),i),c=ne(rB(s.height,l[1]),a),f=n&&n.type,d=["treemapZoomToNode","treemapRootToNode"],h=Wp(n,d,e),p=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,v=e.getViewRoot(),g=u8(v);if(f!=="treemapMove"){var m=f==="treemapZoomToNode"?GTe(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),g8(v,x,!1,0),S=v.getLayout(),lP(g,function(b,w){var C=(g[w+1]||v).getValue();b.setLayout(Y({dataExtent:[C,C],borderWidth:0,upperHeight:0},S))})}var _=e.getData().tree.root;_.setLayout(HTe(s,p,h),!0),e.setLayoutInfo(s),m8(_,new Ne(-s.x,-s.y,i,a),g,v,0)}};function g8(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(v8),u=s.get(LTe)/2,c=y8(s),f=Math.max(l,c),d=l-u,h=f-u;e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),i=jp(i-2*d,0),a=jp(a-d-h,0);var p=i*a,v=zTe(e,s,p,t,r,n);if(v.length){var g={x:d,y:h,width:i,height:a},m=P0(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=VTe(x,m,t.squareRatio);w<=y?(S++,y=w):(x.area-=x.pop().getLayout().area,nB(x,m,g,u,!1),m=P0(g.width,g.height),x.length=x.area=0,y=1/0)}if(x.length&&nB(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 VTe(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?jp(u*n/l,l/(u*i)):1/0}function nB(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;fvE&&(u=vE),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}(Ae);const dP=lAe;var uAe=function(){function e(t){this.group=new Ae,this._LineCtor=t||dP}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=uB(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=uB(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!cAe(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0}function uB(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:yr(t)}}function cB(e){return isNaN(e[0])||isNaN(e[1])}function O_(e){return e&&!cB(e[0])&&!cB(e[1])}const hP=uAe;var N_=[],z_=[],B_=[],oc=_r,F_=Ql,fB=Math.abs;function dB(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){N_[0]=oc(n[0],i[0],a[0],c),N_[1]=oc(n[1],i[1],a[1],c);var f=fB(F_(N_,t)-l);f=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function $_(e,t){var r=[],n=Tp,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=[ro(u[0]),ro(u[1])],u[2]&&u.__original.push(ro(u[2])));var d=u.__original;if(u[2]!=null){if(en(i[0],d[0]),en(i[1],d[2]),en(i[2],d[1]),c&&c!=="none"){var h=hh(s.node1),p=dB(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=hh(s.node2),p=dB(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]}en(u[0],i[0]),en(u[1],i[2]),en(u[2],i[1])}else{if(en(a[0],d[0]),en(a[1],d[1]),Vl(o,a[1],a[0]),Ff(o,o),c&&c!=="none"){var h=hh(s.node1);KC(a[0],a[0],o,h*t)}if(f&&f!=="none"){var h=hh(s.node2);KC(a[1],a[1],o,-h*t)}en(u[0],a[0]),en(u[1],a[1])}})}function hB(e){return e.type==="view"}var fAe=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 Av,a=new hP,o=this.group;this._controller=new kv(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(hB(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):it(u,c,r)}$_(r.getGraph(),dh(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),fP(r,"symbolSize",x,[A.offsetX,A.offsetY]),a.updateLayout(r);break;case"none":default:f.setItemLayout(S,[_.x,_.y]),cP(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"&&(Ie(_).focus=x.getAdjacentDataIndices())}}),f.graph.eachEdge(function(x){var S=x.getGraphicEl(),_=x.getModel().get(["emphasis","focus"]);S&&_==="adjacency"&&(Ie(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){_8(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)&&!Vx(u,i,r)}),!hB(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){eP(s,u.dx,u.dy),i.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){tP(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(),$_(r.getGraph(),dh(r)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),i=dh(r);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},t.prototype.updateLayout=function(r){$_(r.getGraph(),dh(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 dAe=fAe;function sc(e){return"_EC_"+e}var hAe=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 Al(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(nt(t)&&(t=this.nodes[t]),nt(r)&&(r=this.nodes[r]),t instanceof Al||(t=i[sc(t)]),r instanceof Al||(r=i[sc(r)]),!(!t||!r)){var o=t.id+"-"+r.id,s=new C8(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 Al&&(t=t.id),r instanceof Al&&(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 Al||(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)}}}lr(Al,T8("hostGraph","data"));lr(C8,T8("hostGraph","edgeData"));const pAe=hAe;function A8(e,t,r,n,i){for(var a=new pAe(n),o=0;o "+d)),u++)}var h=r.get("coordinateSystem"),p;if(h==="cartesian2d"||h==="polar")p=Ao(e,r);else{var v=Sv.get(h),g=v?v.dimensions||[]:[];ze(g,"value")<0&&g.concat(["value"]);var m=_v(e,{coordDimensions:g,encodeDefine:r.getEncode()}).dimensions;p=new sn(m,r),p.initData(e)}var y=new sn(["value"],r);return y.initData(l,s),i&&i(p,y),s8({mainData:p,struct:a,structAttr:"graph",datas:{node:p,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var vAe=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 Pv(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),vu(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){ZTe(this);var s=A8(a,i,this,!0,l);return D(s.edges,function(u){KTe(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),xr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=qW({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:Y({value:0},i)}),n=new sn(["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 gAe=vAe;var mAe={type:"graphRoam",event:"graphRoam",update:"none"};function yAe(e){e.registerChartView(dAe),e.registerSeriesModel(gAe),e.registerProcessor(UTe),e.registerVisual(jTe),e.registerVisual(YTe),e.registerLayout(QTe),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,eAe),e.registerLayout(rAe),e.registerCoordinateSystem("graphView",{dimensions:Dv.dimensions,create:iAe}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},rr),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},rr),e.registerAction(mAe,function(t,r,n){r.eachComponent({mainType:"series",query:t},function(i){var a=i.coordinateSystem,o=nP(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var xAe=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),SAe=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 xAe},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}($e);const bAe=SAe;function _Ae(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 rm(e,t){var r=e==null?"":e+"";return t&&(oe(t)?r=t.replace("{value}",r):me(t)&&(r=t(e))),r}var wAe=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=_Ae(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?C0:In,p=f.get("show"),v=f.getModel("lineStyle"),g=v.get("width"),m=[u,c];i6(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&&(j+=Math.PI)):B==="tangential"?j=-C-Math.PI/2:nt(B)&&(j=B*Math.PI/180),j===0?f.add(new rt({style:_t(x,{text:V,x:G,y:U,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:k<-.4?"left":k>.4?"right":"center"},{inheritColor:L}),silent:!0})):f.add(new rt({style:_t(x,{text:V,x:G,y:U,verticalAlign:"middle",align:"center"},{inheritColor:L}),silent:!0,originX:G,originY:U,rotation:j}))}if(y.get("show")&&z!==S){var $=y.get("distance");$=$?$+c:c;for(var X=0;X<=_;X++){k=Math.cos(C),R=Math.sin(C);var W=new Tr({shape:{x1:k*(p-$)+d,y1:R*(p-$)+h,x2:k*(p-w-$)+d,y2:R*(p-w-$)+h},silent:!0,style:I});I.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 I=y.getItemModel(T),P=I.getModel("pointer"),k=ne(P.get("width"),o.r),R=ne(P.get("length"),o.r),z=r.get(["pointer","icon"]),$=P.get("offsetCenter"),N=ne($[0],o.r),V=ne($[1],o.r),L=P.get("keepAspect"),G;return z?G=sr(z,N-k/2,V-R,k,R,null,L):G=new bAe({shape:{angle:-Math.PI/2,width:k,r:R,x:N,y:V}}),G.rotation=-(M+Math.PI/2),G.x=o.cx,G.y=o.cy,G}function A(T,M){var I=g.get("roundCap"),P=I?C0:In,k=g.get("overlap"),R=k?g.get("width"):c/y.count(),z=k?o.r-R:o.r-(T+1)*R,$=k?o.r:o.r-T*R,N=new P({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:z,r:$}});return k&&(N.z2=_-y.get(x,T)%_),N}(m||v)&&(y.diff(d).add(function(T){var M=y.get(x,T);if(v){var I=C(T,s);Lt(I,{rotation:-((isNaN(+M)?w[0]:ct(M,b,w,!0))+Math.PI/2)},r),f.add(I),y.setItemGraphicEl(T,I)}if(m){var P=A(T,s),k=g.get("clip");Lt(P,{shape:{endAngle:ct(M,b,w,k)}},r),f.add(P),_T(r.seriesIndex,y.dataType,T,P),p[T]=P}}).update(function(T,M){var I=y.get(x,T);if(v){var P=d.getItemGraphicEl(M),k=P?P.rotation:s,R=C(T,k);R.rotation=k,it(R,{rotation:-((isNaN(+I)?w[0]:ct(I,b,w,!0))+Math.PI/2)},r),f.add(R),y.setItemGraphicEl(T,R)}if(m){var z=h[M],$=z?z.shape.endAngle:s,N=A(T,$),V=g.get("clip");it(N,{shape:{endAngle:ct(I,b,w,V)}},r),f.add(N),_T(r.seriesIndex,y.dataType,T,N),p[T]=N}}).execute(),y.each(function(T){var M=y.getItemModel(T),I=M.getModel("emphasis"),P=I.get("focus"),k=I.get("blurScope"),R=I.get("disabled");if(v){var z=y.getItemGraphicEl(T),$=y.getItemVisual(T,"style"),N=$.fill;if(z instanceof Fr){var V=z.style;z.useStyle(Y({image:V.image,x:V.x,y:V.y,width:V.width,height:V.height},$))}else z.useStyle($),z.type!=="pointer"&&z.setColor(N);z.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),z.style.fill==="auto"&&z.setStyle("fill",a(ct(y.get(x,T),b,[0,1],!0))),z.z2EmphasisLift=0,zr(z,M),Ut(z,P,k,R)}if(m){var L=p[T];L.useStyle(y.getItemVisual(T,"style")),L.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),L.z2EmphasisLift=0,zr(L,M),Ut(L,P,k,R)}}),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=sr(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 Ae,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 Ae,_=a(ct(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 I=M.get("offsetCenter"),P=o.cx+ne(I[0],o.r),k=o.cy+ne(I[1],o.r),R=ne(M.get("width"),o.r),z=ne(M.get("height"),o.r),$=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:P,y:k,text:rm(x,N),width:isNaN(R)?null:R,height:isNaN(z)?null:z,align:"center",verticalAlign:"middle"},{inheritColor:$})}),Z6(T,{normal:M},x,function(L){return rm(L,N)}),v&&K6(T,m,l,r,{getFormattedLabel:function(L,G,U,B,j,X){return rm(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 CAe=wAe;var TAe=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 ed(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 AAe=TAe;function MAe(e){e.registerChartView(CAe),e.registerSeriesModel(AAe)}var IAe=["itemStyle","opacity"],PAe=function(e){H(t,e);function t(r,n){var i=e.call(this)||this,a=i,o=new kn,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(IAe);c=c??1,i||Zi(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)):it(a,{style:{opacity:c},shape:{points:l.points}},o,n),zr(a,s),this._updateLabel(r,n),Ut(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,yr(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},it(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),UI(i,jI(l),{stroke:d})},t}(Pn),kAe=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 PAe(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);Rp(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 DAe=kAe;var RAe=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 Pv(ue(this.getData,this),ue(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.getInitialData=function(r,n){return ed(this,{coordDimensions:["value"],encodeDefaulter:Pe(SI,this)})},t.prototype._defaultLabelLine=function(r){vu(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 LAe=RAe;function EAe(e,t){return hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function OAe(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();oeMe)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||!G_(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 G_(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}const nMe=tMe;var iMe=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){D(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){r.hasOwnProperty(n)&&(this.option[n]=r[n])},this)},t.prototype._initDimensions=function(){var r=this.dimensions=[],n=this.parallelAxisIndex=[],i=ft(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);D(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 aMe=iMe;var oMe=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}(Qi);const sMe=oMe;function Ou(e,t,r,n,i,a){e=e||0;var o=r[1]-r[0];if(i!=null&&(i=lc(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=lc(s,[0,o]),i=a=lc(s,[i,a]),n=0}t[0]=lc(t[0],r),t[1]=lc(t[1],r);var l=H_(t,n);t[n]+=e;var u=i||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=lc(t[n],c);var f;return f=H_(t,n),i!=null&&(f.sign!==l.sign||f.spana&&(t[1-n]=t[n]+f.sign*a),t}function H_(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 lc(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var W_=D,I8=Math.min,P8=Math.max,gB=Math.floor,lMe=Math.ceil,mB=Xt,uMe=Math.PI,cMe=function(){function e(t,r,n){this.type="parallel",this._axesMap=ve(),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;W_(i,function(o,s){var l=a[s],u=r.getComponent("parallelAxis",l),c=this._axesMap.set(o,new sMe(o,Bx(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();W_(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),yf(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,r){this._rect=hr(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=nm(t.get("axisExpandWidth"),l),f=nm(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=nm(h[1]-h[0],l),h[1]=h[0]+p;else{p=nm(c*(f-1),l);var v=t.get("axisExpandCenter")||gB(u/2);h=[c*v-p/2],h[1]=h[0]+p}var g=(s-p)/(u-f);g<3&&(g=0);var m=[gB(mB(h[0]/c,1))+1,lMe(mB(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])}),W_(n,function(o,s){var l=(i.axisExpandable?dMe:fMe)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:uMe/2,vertical:0},f=[u[a].x+t.x,u[a].y+t.y],d=c[a],h=bi();Pu(h,h,d),Na(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=[];D(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?Ou(l,i,o,"all"):u="none";else{var h=i[1]-i[0],p=o[1]*s/h;i=[P8(0,p-h/2)],i[1]=I8(o[1],i[0]+h),i[0]=i[1]-h}return{axisExpandWindow:i,behavior:u}},e}();function nm(e,t){return I8(P8(e,t[0]),t[1])}function fMe(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function dMe(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--)vi(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;axMe}function N8(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function z8(e,t,r,n){var i=new Ae;return i.add(new Qe({name:"main",style:mP(r),silent:!0,draggable:!0,cursor:"move",drift:Pe(bB,e,t,i,["n","s","w","e"]),ondragend:Pe(bu,t,{isEnd:!0})})),D(n,function(a){i.add(new Qe({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Pe(bB,e,t,i,a),ondragend:Pe(bu,t,{isEnd:!0})}))}),i}function B8(e,t,r,n){var i=n.brushStyle.lineWidth||0,a=bf(i,SMe),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;Ua(e,t,"main",o,s,p,v),n.transformable&&(Ua(e,t,"w",l,u,a,m),Ua(e,t,"e",d,u,a,m),Ua(e,t,"n",l,u,g,a),Ua(e,t,"s",l,h,g,a),Ua(e,t,"nw",l,u,a,a),Ua(e,t,"ne",d,u,a,a),Ua(e,t,"sw",l,h,a,a),Ua(e,t,"se",d,h,a,a))}function hA(e,t){var r=t.__brushOption,n=r.transformable,i=t.childAt(0);i.useStyle(mP(r)),i.attr({silent:!n,cursor:n?"move":"default"}),D([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?pA(e,a[0]):MMe(e,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?_Me[s]+"-resize":null})})}function Ua(e,t,r,n,i,a,o){var s=t.childOfName(r);s&&s.setShape(PMe(yP(e,t,[[n,i],[n+a,i+o]])))}function mP(e){return xe({strokeNoScale:!0},e.brushStyle)}function F8(e,t,r,n){var i=[qp(e,r),qp(t,n)],a=[bf(e,r),bf(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function AMe(e){return nu(e.group)}function pA(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=_x(r[t],AMe(e));return n[i]}function MMe(e,t){var r=[pA(e,t[0]),pA(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function bB(e,t,r,n,i,a){var o=r.__brushOption,s=e.toRectRange(o.range),l=$8(t,i,a);D(n,function(u){var c=bMe[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(F8(s[0][0],s[1][0],s[0][1],s[1][1])),pP(t,r),bu(t,{isEnd:!1})}function IMe(e,t,r,n){var i=t.__brushOption.range,a=$8(e,r,n);D(i,function(o){o[0]+=a[0],o[1]+=a[1]}),pP(e,t),bu(e,{isEnd:!1})}function $8(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 yP(e,t,r){var n=O8(e,t);return n&&n!==Su?n.clipPath(r,e._transform):we(r)}function PMe(e){var t=qp(e[0][0],e[1][0]),r=qp(e[0][1],e[1][1]),n=bf(e[0][0],e[1][0]),i=bf(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:i-r}}function kMe(e,t,r){if(!(!e._brushType||RMe(e,t.offsetX,t.offsetY))){var n=e._zr,i=e._covers,a=gP(e,t,r);if(!e._dragging)for(var o=0;on.getWidth()||r<0||r>n.getHeight()}var Ux={lineX:CB(0),lineY:CB(1),rect:{createCover:function(e,t){function r(n){return n}return z8({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=N8(e);return F8(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){B8(e,t,r,n)},updateCommon:hA,contain:gA},polygon:{createCover:function(e,t){var r=new Ae;return r.add(new kn({name:"main",style:mP(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Pn({name:"main",draggable:!0,drift:Pe(IMe,e,t),ondragend:Pe(bu,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:yP(e,t,r)})},updateCommon:hA,contain:gA}};function CB(e){return{createCover:function(t,r){return z8({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=N8(t),n=qp(r[0][e],r[1][e]),i=bf(r[0][e],r[1][e]);return[n,i]},updateCoverShape:function(t,r,n,i){var a,o=O8(t,r);if(o!==Su&&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(),B8(t,r,l,i)},updateCommon:hA,contain:gA}}const xP=CMe;function G8(e){return e=SP(e),function(t){return j6(t,e)}}function H8(e,t){return e=SP(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 W8(e,t,r){var n=SP(e);return function(i,a){return n.contain(a[0],a[1])&&!Vx(i,t,r)}}function SP(e){return Ne.create(e)}var LMe=["axisLine","axisTickLabel","axisName"],EMe=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 xP(n.getZr())).on("brush",ue(this._onBrush,this))},t.prototype.render=function(r,n,i,a){if(!OMe(r,n,a)){this.axisModel=r,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ae,this.group.add(this._axisGroup),!!r.get("show")){var s=zMe(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),c=u.width,f=r.axis.dim,d=l.getAxisLayout(f),h=Y({strokeContainThreshold:c},d),p=new So(r,h);D(LMe,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(h,u,r,s,c,i),mv(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:G8(f),isTargetByCursor:W8(f,s,a),getLinearBrushOtherExtent:H8(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(NMe(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}(jt);function OMe(e,t,r){return r&&r.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function NMe(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 zMe(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}const BMe=EMe;var FMe={type:"axisAreaSelect",event:"axisAreaSelected"};function $Me(e){e.registerAction(FMe,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 VMe={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function U8(e){e.registerComponentView(nMe),e.registerComponentModel(aMe),e.registerCoordinateSystem("parallel",gMe),e.registerPreprocessor(KAe),e.registerComponentModel(yB),e.registerComponentView(BMe),Sf(e,"parallel",yB,VMe),$Me(e)}function GMe(e){Fe(U8),e.registerChartView(HAe),e.registerSeriesModel(YAe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,ZAe)}var HMe=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}(),WMe=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new HMe},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(){mo(this)},t.prototype.downplay=function(){yo(this)},t}($e),UMe=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 WMe,g=Ie(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"),I=p.getLayout(),P,k,R,z,$,N,V,L;v.shape.extent=Math.max(1,I.dy),v.shape.orient=h,h==="vertical"?(P=(b!=null?b*u:S.x)+I.sy,k=(w!=null?w*c:S.y)+S.dy,R=(T!=null?T*u:C.x)+I.ty,z=M!=null?M*c:C.y,$=P,N=k*(1-x)+z*x,V=R,L=k*x+z*(1-x)):(P=(b!=null?b*u:S.x)+S.dx,k=(w!=null?w*c:S.y)+I.sy,R=T!=null?T*u:C.x,z=(M!=null?M*c:C.y)+I.ty,$=P*(1-x)+R*x,N=k,V=P*x+R*(1-x),L=z),v.setShape({x1:P,y1:k,x2:R,y2:z,cpx1:$,cpy1:N,cpx2:V,cpy2:L}),v.useStyle(y.getItemStyle()),TB(v.style,h,p);var G=""+m.get("value"),U=yr(m,"edgeLabel");Br(v,U,{labelFetcher:{getFormattedLabel:function(X,W,ee,te,ie,re){return r.getFormattedLabel(X,W,"edge",te,Pa(ie,U.normal&&U.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 TB(W,h,p),W}),s.add(v),d.setItemGraphicEl(p.dataIndex,v);var j=B.get("focus");Ut(v,j==="adjacency"?p.getAdjacentDataIndices():j==="trajectory"?p.getTrajectoryDataIndices():j,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,yr(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),Ie(S).dataType="node";var _=x.get("focus");Ut(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(jMe(s.getBoundingRect(),r,function(){s.removeClipPath()})),this._data=r.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(Tt);function TB(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 gv(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:i,offset:1}]))}}function jMe(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 YMe=UMe;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.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=A8(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 xr("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 xr("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 XMe=qMe;function ZMe(e,t){e.eachSeriesByType("sankey",function(r){var n=r.get("nodeWidth"),i=r.get("nodeGap"),a=KMe(r,t);r.layoutInfo=a;var o=a.width,s=a.height,l=r.getGraph(),u=l.nodes,c=l.edges;JMe(u);var f=ft(u,function(v){return v.getLayout().value===0}),d=f.length!==0?0:r.get("layoutIterations"),h=r.get("orient"),p=r.get("nodeAlign");QMe(u,c,n,i,o,s,d,h,p)})}function KMe(e,t){return hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function QMe(e,t,r,n,i,a,o,s,l){e2e(e,t,r,i,a,s,l),i2e(e,t,a,i,n,o,s),h2e(e,s)}function JMe(e){D(e,function(t){var r=bs(t.outEdges,k0),n=bs(t.inEdges,k0),i=t.getValue()||0,a=Math.max(r,n,i);t.setLayout({value:a},!0)})}function e2e(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"&&t2e(e,o,a,w);var C=a==="vertical"?(i-r)/w:(n-r)/w;n2e(e,C,a)}function j8(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function t2e(e,t,r,n){if(t==="right"){for(var i=[],a=e,o=0;a.length;){for(var s=0;s0;a--)l*=.99,s2e(s,l,o),U_(s,i,r,n,o),d2e(s,l,o),U_(s,i,r,n,o)}function a2e(e,t){var r=[],n=t==="vertical"?"y":"x",i=yT(e,function(a){return a.getLayout()[n]});return i.keys.sort(function(a,o){return a-o}),D(i.keys,function(a){r.push(i.buckets.get(a))}),r}function o2e(e,t,r,n,i,a){var o=1/0;D(e,function(s){var l=s.length,u=0;D(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 s2e(e,t,r){D(e.slice().reverse(),function(n){D(n,function(i){if(i.outEdges.length){var a=bs(i.outEdges,l2e,r)/bs(i.outEdges,k0);if(isNaN(a)){var o=i.outEdges.length;a=o?bs(i.outEdges,u2e,r)/o:0}if(r==="vertical"){var s=i.getLayout().x+(a-Os(i,r))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-Os(i,r))*t;i.setLayout({y:l},!0)}}})})}function l2e(e,t){return Os(e.node2,t)*e.getValue()}function u2e(e,t){return Os(e.node2,t)}function c2e(e,t){return Os(e.node1,t)*e.getValue()}function f2e(e,t){return Os(e.node1,t)}function Os(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function k0(e){return e.getValue()}function bs(e,t,r){for(var n=0,i=e.length,a=-1;++ao&&(o=l)}),D(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&&D(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function v2e(e){e.registerChartView(YMe),e.registerSeriesModel(XMe),e.registerLayout(ZMe),e.registerVisual(p2e),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 Y8=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=[];D(g,function(S,_){var b;q(S)?(b=S.slice(),S.unshift(_)):q(S.value)?(b=Y({},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:y0(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:y0(v),dimsDef:y.slice()}];return ed(this,{coordDimensions:x,dimensionsCount:y.length+1,encodeDefaulter:Pe(xW,x,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),q8=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);lr(q8,Y8,!0);const g2e=q8;var m2e=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=AB(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?(Zi(f),X8(d,f,a,u)):f=AB(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),y2e=function(){function e(){}return e}(),x2e=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 y2e},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 M2e={type:"echarts:boxplot",transform:function(t){var r=t.upstream;if(r.sourceFormat!==Kr){var n="";st(n)}var i=A2e(r.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function I2e(e){e.registerSeriesModel(g2e),e.registerChartView(b2e),e.registerLayout(_2e),e.registerTransform(M2e)}var P2e=["color","borderColor"],k2e=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){Gs(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&&MB(u,f))return;var d=j_(f,c,!0);Lt(d,{shape:{points:f.ends}},r,c),Y_(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&&MB(u,h)){a.remove(d);return}d?(it(d,{shape:{points:h.ends}},r,c),Zi(d)):d=j_(h),Y_(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(),IB(r,this.group);var n=r.get("clip",!0)?$x(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=j_(s);Y_(l,i,o,a),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(r,n){IB(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),D2e=function(){function e(){}return e}(),R2e=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 D2e},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}($e);function j_(e,t,r){var n=e.ends;return new R2e({shape:{points:r?L2e(n,e):n},z2:100})}function MB(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(P2e);t.useStyle(a),t.style.fill=null,t.style.stroke=i}const O2e=k2e;var Z8=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);lr(Z8,Y8,!0);const N2e=Z8;function z2e(e){!e||!q(e.series)||D(e.series,function(t){Se(t)&&t.type==="k"&&(t.type="candlestick")})}var B2e=["itemStyle","borderColor"],F2e=["itemStyle","borderColor0"],$2e=["itemStyle","borderColorDoji"],V2e=["itemStyle","color"],G2e=["itemStyle","color0"],H2e={seriesType:"candlestick",plan:Kf(),performRawSeries:!0,reset:function(e,t){function r(a,o){return o.get(a>0?V2e:G2e)}function n(a,o){return o.get(a===0?$2e:a>0?B2e:F2e)}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");Y(f,c)}}}}}};const W2e=H2e;var U2e={seriesType:"candlestick",plan:Kf(),reset:function(e){var t=e.coordinateSystem,r=e.getData(),n=j2e(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=$(C,x),M=$(A,x),I=$(b,x),P=$(w,x),k=[];N(k,M,0),N(k,T,1),k.push(L(P),L(M),L(I),L(T));var R=g.getItemModel(m),z=!!R.get(["itemStyle","borderColorDoji"]);g.setItemLayout(m,{sign:PB(y,m,S,_,c,z),initBaseline:S>_?M[a]:T[a],ends:k,brushRect:V(b,w,x)})}function $(G,U){var B=[];return B[i]=U,B[a]=G,isNaN(U)||isNaN(G)?[NaN,NaN]:t.dataToPoint(B)}function N(G,U,B){var j=U.slice(),X=U.slice();j[i]=Um(j[i]+n/2,1,!1),X[i]=Um(X[i]-n/2,1,!0),B?G.push(j,X):G.push(X,j)}function V(G,U,B){var j=$(G,B),X=$(U,B);return j[i]-=n/2,X[i]-=n/2,{x:j[0],y:j[1],width:n,height:X[1]-j[1]}}function L(G){return G[i]=Um(G[i],1),G}}function p(v,g){for(var m=_a(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),I=w.get(f,b),P=w.get(d,b);if(isNaN(A)||isNaN(I)||isNaN(P)){m[y++]=NaN,y+=3;continue}m[y++]=PB(w,b,T,M,c,C),S[i]=A,S[a]=I,x=t.dataToPoint(S,null,_),m[y++]=x?x[0]:NaN,m[y++]=x?x[1]:NaN,S[a]=P,x=t.dataToPoint(S,null,_),m[y++]=x?x[1]:NaN}g.setLayout("largePoints",m)}}};function PB(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 j2e(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 Y2e=U2e;function q2e(e){e.registerChartView(O2e),e.registerSeriesModel(N2e),e.registerPreprocessor(z2e),e.registerVisual(W2e),e.registerLayout(Y2e)}function kB(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 X2e=function(e){H(t,e);function t(r,n){var i=e.call(this)||this,a=new Tv(r,n),o=new Ae;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;me(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 Jo(r.__p1,r.__cp1)+Jo(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=_r,c=aT;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}(K8);const aIe=iIe;var oIe=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),sIe=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 oIe},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(a6(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 uIe=lIe;var cIe={seriesType:"lines",plan:Kf(),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)&&$x(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=J8.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 uIe:new hP(o?a?aIe:Q8:a?K8:dP),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 dIe=fIe;var hIe=typeof Uint32Array>"u"?Array:Uint32Array,pIe=typeof Float64Array>"u"?Array:Float64Array;function DB(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),G2([i,r[0],r[1]])}))}var vIe=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||[],DB(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(DB(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=Yy(this._flatCoords,n.flatCoords),this._flatCoordsOffset=Yy(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 gIe=vIe;function im(e){return e instanceof Array||(e=[e,e]),e}var mIe={seriesType:"lines",reset:function(e){var t=im(e.get("symbol")),r=im(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=im(s.getShallow("symbol",!0)),u=im(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 yIe=mIe;function xIe(e){e.registerChartView(dIe),e.registerSeriesModel(gIe),e.registerLayout(J8),e.registerVisual(yIe)}var SIe=256,bIe=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Ps.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 I=o(x)?l:u;x>0&&(x=x*T+C),_[b++]=I[M],_[b++]=I[M+1],_[b++]=I[M+2],_[b++]=I[M+3]*x*256}else b+=4}return d.putImageData(S,0,0),f},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Ps.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 _Ie=bIe;function wIe(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 RB(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var TIe=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()):RB(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&&(RB(o)?this.render(n,i,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,a,r.start,r.end,!0)))},t.prototype.eachRendered=function(r){Gs(this._progressiveEls||this.group,r)},t.prototype._renderOnCartesianAndCalendar=function(r,n,i,a,o){var s=r.coordinateSystem,l=Lu(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"]),_=yr(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]||Rd[1])continue;var z=s.dataToPoint([k,R]);I=new Qe({shape:{x:z[0]-u/2,y:z[1]-c/2,width:u,height:c},style:P})}else{if(isNaN(g.get(T[1],M)))continue;I=new Qe({z2:1,shape:s.dataToRect([g.get(T[0],M)]).contentShape,style:P})}if(g.hasItemOption){var $=g.getItemModel(M),N=$.getModel("emphasis");m=N.getModel("itemStyle").getItemStyle(),y=$.getModel(["blur","itemStyle"]).getItemStyle(),x=$.getModel(["select","itemStyle"]).getItemStyle(),S=$.get(["itemStyle","borderRadius"]),w=N.get("focus"),C=N.get("blurScope"),A=N.get("disabled"),_=yr($)}I.shape.r=S;var V=r.getRawValue(M),L="-";V&&V[2]!=null&&(L=V[2]+""),Br(I,_,{labelFetcher:r,labelDataIndex:M,defaultOpacity:P.opacity,defaultText:L}),I.ensureState("emphasis").style=m,I.ensureState("blur").style=y,I.ensureState("select").style=x,Ut(I,w,C,A),I.incremental=o,o&&(I.states.emphasis.hoverLayer=!0),v.add(I),g.setItemGraphicEl(M,I),this._progressiveEls&&this._progressiveEls.push(I)}},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 _Ie;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"?CIe(S,i.option.range):wIe(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 Fr({style:{width:g,height:m,x:d,y:h,image:u.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t}(Tt);const AIe=TIe;var MIe=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 Ao(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var r=Sv.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 IIe=MIe;function PIe(e){e.registerChartView(AIe),e.registerSeriesModel(IIe)}var kIe=["itemStyle","borderWidth"],LB=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Z_=new $a,DIe=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:LB[+c],categoryDim:LB[1-+c]};return o.diff(s).add(function(h){if(o.hasValue(h)){var p=OB(o,h),v=EB(o,h,p,d),g=NB(o,d,v);o.setItemGraphicEl(h,g),a.add(g),BB(g,d,v)}}).update(function(h,p){var v=s.getItemGraphicEl(p);if(!o.hasValue(h)){a.remove(v);return}var g=OB(o,h),m=EB(o,h,g,d),y=a9(o,m);v&&y!==v.__pictorialShapeStr&&(a.remove(v),o.setItemGraphicEl(h,null),v=null),v?BIe(v,d,m):v=NB(o,d,m,!0),o.setItemGraphicEl(h,v),v.__pictorialSymbolMeta=m,a.add(v),BB(v,d,m)}).remove(function(h){var p=s.getItemGraphicEl(h);p&&zB(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){zB(a,Ie(o).dataIndex,r,o)}):i.removeAll()},t.type="pictorialBar",t}(Tt);function EB(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};RIe(r,a,i,n,d),LIe(e,t,i,a,o,d.boundingLength,d.pxSign,c,n,d),EIe(r,d.symbolScale,u,n,d);var h=d.symbolSize,p=Du(r.get("symbolOffset"),h);return OIe(r,h,i,a,o,p,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,n,d),d}function RIe(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(q(o)){var f=[K_(s,o[0])-l,K_(s,o[1])-l];f[1]0?1:-1}function K_(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function LIe(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;q(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 EIe(e,t,r,n,i){var a=e.get(kIe)||0;a&&(Z_.attr({scaleX:t[0],scaleY:t[1],rotation:r}),Z_.updateTransform(),a/=Z_.getLineScale(),a*=t[n.valueDim.index]),i.valueLineWidth=a||0}function OIe(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=WH(n),C=w?n:FB((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?FB((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 I=f.bundlePosition=[];I[d.index]=r[d.xy],I[h.index]=r[h.xy];var P=f.barRectShape=Y({},r);P[h.wh]=p*Math.max(Math.abs(r[h.wh]),Math.abs(M[h.index]+T)),P[d.wh]=r[d.wh];var k=f.clipShape={};k[d.xy]=-r[d.xy],k[d.wh]=c.ecSize[d.wh],k[h.xy]=0,k[h.wh]=r[h.wh]}function e9(e){var t=e.symbolPatternSize,r=sr(e.symbolType,-t/2,-t/2,t,t);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function t9(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(bP(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 r9(e,t,r,n){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?Jc(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=e9(r),i.add(a),Jc(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 n9(e,t,r){var n=Y({},t.barRectShape),i=e.__pictorialBarRect;i?Jc(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 i9(e,t,r,n){if(r.symbolClip){var i=e.__pictorialClipPath,a=Y({},r.clipShape),o=t.valueDim,s=r.animationModel,l=r.dataIndex;if(i)it(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],xv[n?"updateProps":"initProps"](i,{shape:u},s,l)}}}function OB(e,t){var r=e.getItemModel(t);return r.getAnimationDelayParams=NIe,r.isAnimationEnabled=zIe,r}function NIe(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function zIe(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function NB(e,t,r,n){var i=new Ae,a=new Ae;return i.add(a),i.__pictorialBundle=a,a.x=r.bundlePosition[0],a.y=r.bundlePosition[1],r.symbolRepeat?t9(i,t,r):r9(i,t,r),n9(i,r,n),i9(i,t,r,n),i.__pictorialShapeStr=a9(e,r),i.__pictorialSymbolMeta=r,i}function BIe(e,t,r){var n=r.animationModel,i=r.dataIndex,a=e.__pictorialBundle;it(a,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,i),r.symbolRepeat?t9(e,t,r,!0):r9(e,t,r,!0),n9(e,r,!0),i9(e,t,r,!0)}function zB(e,t,r,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var a=[];bP(n,function(o){a.push(o)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),D(a,function(o){Ds(o,{scaleX:0,scaleY:0},r,t,function(){n.parent&&n.parent.remove(n)})}),e.setItemGraphicEl(t,null)}function a9(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function bP(e,t,r){D(e.__pictorialBundle.children(),function(n){n!==e.__pictorialBarRect&&t.call(r,n)})}function Jc(e,t,r,n,i,a){t&&e.attr(t),n.symbolClip&&!i?r&&e.attr(r):r&&xv[i?"updateProps":"initProps"](e,r,n.animationModel,n.dataIndex,a)}function BB(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");bP(e,function(v){if(v instanceof Fr){var g=v.style;v.useStyle(Y({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,yr(i),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:xf(t.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:h}),Ut(e,c,f,a.get("disabled"))}function FB(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}const FIe=DIe;var $Ie=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=Hs(w0.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}(w0);const VIe=$Ie;function GIe(e){e.registerChartView(FIe),e.registerSeriesModel(VIe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Pe($U,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,VU("pictorialBar"))}var HIe=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 xo(this._layersSeries||[],l,d,d),p=[];h.add(ue(v,this,"add")).update(ue(v,this,"update")).remove(ue(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 ZIe(e){e.registerChartView(UIe),e.registerSeriesModel(YIe),e.registerLayout(qIe),e.registerProcessor(Iv("themeRiver"))}var KIe=2,QIe=4,JIe=function(e){H(t,e);function t(r,n,i,a){var o=e.call(this)||this;o.z2=KIe,o.textConfig={inside:!0},Ie(o).seriesIndex=n.seriesIndex;var s=new rt({z2:QIe,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;Ie(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),f=Y({},c);f.label=null;var d=n.getVisual("style");d.lineJoin="bevel";var h=n.getVisual("decal");h&&(d.decal=mf(h,o));var p=ql(l.getModel("itemStyle"),f,!0);Y(f,p),D(un,function(y){var x=s.ensureState(y),S=l.getModel([y,"itemStyle"]);x.style=S.getItemStyle();var _=ql(S,f);_&&(x.shape=_)}),r?(s.setShape(f),s.shape.r=c.r0,Lt(s,{shape:{r:c.r}},i,n.dataIndex)):(it(s,{shape:f},i),Zi(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;Ut(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"):!I||I==="center"?(s===2*Math.PI&&o.r0===0?T=0:T=(o.r+o.r0)/2,I="center"):I==="left"?(T=o.r0+M,l>Math.PI/2&&(I="right")):I==="right"&&(T=o.r-M,l>Math.PI/2&&(I="left")),S.style.align=I,S.style.verticalAlign=g(y,"verticalAlign")||"middle",S.x=T*u+o.cx,S.y=T*c+o.cy;var P=g(y,"rotate"),k=0;P==="radial"?(k=$i(-l),k>Math.PI/2&&kMath.PI/2?k-=Math.PI:k<-Math.PI/2&&(k+=Math.PI)):nt(P)&&(k=P*Math.PI/180),S.rotation=$i(k)});function g(m,y){var x=m.get(y);return x??a.get(y)}d.dirtyStyle()},t}(In);const VB=JIe;var mA="sunburstRootToNode",GB="sunburstHighlight",ePe="sunburstUnhighlight";function tPe(e){e.registerAction({type:mA,update:"updateView"},function(t,r){r.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(i,a){var o=Wp(t,[mA],i);if(o){var s=i.getViewRoot();s&&(t.direction=oP(s,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}}),e.registerAction({type:GB,update:"none"},function(t,r,n){t=Y({},t),r.eachComponent({mainType:"series",subType:"sunburst",query:t},i);function i(a){var o=Wp(t,[GB],a);o&&(t.dataIndex=o.node.dataIndex)}n.dispatchAction(Y(t,{type:"highlight"}))}),e.registerAction({type:ePe,update:"updateView"},function(t,r,n){t=Y({},t),n.dispatchAction(Y(t,{type:"downplay"}))})}var rPe=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 xo(x,y,S,S).add(_).update(_).remove(Pe(_,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 VB(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 VB(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";u0(u,c)}}i=!0}})})},t.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:mA,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 nPe=rPe;var iPe=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};o9(i);var a=this._levelModels=Z(r.levels||[],function(l){return new wt(l,this,n)},this),o=aP.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=Hx(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(){c8(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 o9(e){var t=0;D(e.children,function(n){o9(n);var i=n.value;q(i)&&(i=i[0]),t+=i});var r=e.value;q(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),q(e.value)?e.value[0]=r:e.value=r}const aPe=iPe;var HB=Math.PI/180;function oPe(e,t,r){t.eachSeriesByType(e,function(n){var i=n.get("center"),a=n.get("radius");q(a)||(a=[0,a]),q(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")*HB,p=n.get("minAngle")*HB,v=n.getData().tree.root,g=n.getViewRoot(),m=g.depth,y=n.get("sort");y!=null&&s9(g,y);var x=0;D(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,I=function(z,$){if(z){var N=$;if(z!==v){var V=z.getValue(),L=S===0&&T?_:V*_;L1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&oe(s)&&(s=lT(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");Y(u,l)})})}function uPe(e){e.registerChartView(nPe),e.registerSeriesModel(aPe),e.registerLayout(Pe(oPe,"sunburst")),e.registerProcessor(Pe(Iv,"sunburst")),e.registerVisual(lPe),tPe(e)}var WB={color:"fill",borderColor:"stroke"},cPe={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},ao=Je(),fPe=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 Ao(null,this)},t.prototype.getDataParams=function(r,n,i){var a=e.prototype.getDataParams.call(this,r,n);return i&&(a.info=ao(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 dPe=fPe;function hPe(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 pPe(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:ue(hPe,e)}}}function vPe(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 gPe(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:ue(vPe,e)}}}function mPe(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 yPe(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:ue(mPe,e)}}}function xPe(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 SPe(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:ue(xPe,e)}}}function bPe(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 l9(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||ce(e,"text")))}function u9(e,t,r){var n=e,i,a,o;if(t==="text")o=n;else{o={},ce(n,"text")&&(o.text=n.text),ce(n,"rich")&&(o.rich=n.rich),ce(n,"textFill")&&(o.fill=n.textFill),ce(n,"textStroke")&&(o.stroke=n.textStroke),ce(n,"fontFamily")&&(o.fontFamily=n.fontFamily),ce(n,"fontSize")&&(o.fontSize=n.fontSize),ce(n,"fontStyle")&&(o.fontStyle=n.fontStyle),ce(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=ce(n,"textPosition");r?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),ce(n,"textPosition")&&(i.position=n.textPosition),ce(n,"textOffset")&&(i.offset=n.textOffset),ce(n,"textRotation")&&(i.rotation=n.textRotation),ce(n,"textDistance")&&(i.distance=n.textDistance)}return UB(o,e),D(o.rich,function(l){UB(l,l)}),{textConfig:i,textContent:a}}function UB(e,t){t&&(t.font=t.textFont||t.font,ce(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),ce(t,"textAlign")&&(e.align=t.textAlign),ce(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),ce(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),ce(t,"textWidth")&&(e.width=t.textWidth),ce(t,"textHeight")&&(e.height=t.textHeight),ce(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),ce(t,"textPadding")&&(e.padding=t.textPadding),ce(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),ce(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),ce(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),ce(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),ce(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),ce(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),ce(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function jB(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";YB(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,D(t.rich,function(s){YB(s,s)}),n}function YB(e,t){t&&(ce(t,"fill")&&(e.textFill=t.fill),ce(t,"stroke")&&(e.textStroke=t.fill),ce(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),ce(t,"font")&&(e.font=t.font),ce(t,"fontStyle")&&(e.fontStyle=t.fontStyle),ce(t,"fontWeight")&&(e.fontWeight=t.fontWeight),ce(t,"fontSize")&&(e.fontSize=t.fontSize),ce(t,"fontFamily")&&(e.fontFamily=t.fontFamily),ce(t,"align")&&(e.textAlign=t.align),ce(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),ce(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),ce(t,"width")&&(e.textWidth=t.width),ce(t,"height")&&(e.textHeight=t.height),ce(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),ce(t,"padding")&&(e.textPadding=t.padding),ce(t,"borderColor")&&(e.textBorderColor=t.borderColor),ce(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),ce(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),ce(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),ce(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),ce(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),ce(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),ce(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),ce(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),ce(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),ce(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var c9={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},qB=He(c9);Oa(za,function(e,t){return e[t]=1,e},{});za.join(", ");var D0=["","style","shape","extra"],_f=Je();function _P(e,t,r,n,i){var a=e+"Animation",o=Hf(e,n,i)||{},s=_f(t).userDuring;return o.duration>0&&(o.during=s?ue(APe,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),Y(o,r[a]),o}function Km(e,t,r,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=_f(e),u=t.style;l.userDuring=t.during;var c={},f={};if(IPe(e,t,f),ZB("shape",t,f),ZB("extra",t,f),!a&&s&&(MPe(e,t,c),XB("shape",e,t,c),XB("extra",e,t,c),PPe(e,t,u,c)),f.style=u,_Pe(e,f,o),CPe(e,t),s)if(a){var d={};D(D0,function(p){var v=p?t[p]:t;v&&v.enterFrom&&(p&&(d[p]=d[p]||{}),Y(p?d[p]:d,v.enterFrom))});var h=_P("enter",e,t,r,i);h.duration>0&&e.animateFrom(d,h)}else wPe(e,t,i||0,r,c);f9(e,t),u?e.dirty():e.markRedraw()}function f9(e,t){for(var r=_f(e).leaveToProps,n=0;n0&&e.animateFrom(i,a)}}function CPe(e,t){ce(t,"silent")&&(e.silent=t.silent),ce(t,"ignore")&&(e.ignore=t.ignore),e instanceof _i&&ce(t,"invisible")&&(e.invisible=t.invisible),e instanceof $e&&ce(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var aa={},TPe={setTransform:function(e,t){return aa.el[e]=t,this},getTransform:function(e){return aa.el[e]},setShape:function(e,t){var r=aa.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){var t=aa.el.shape;if(t)return t[e]},setStyle:function(e,t){var r=aa.el,n=r.style;return n&&(n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){var t=aa.el.style;if(t)return t[e]},setExtra:function(e,t){var r=aa.el.extra||(aa.el.extra={});return r[e]=t,this},getExtra:function(e){var t=aa.el.extra;if(t)return t[e]}};function APe(){var e=this,t=e.el;if(t){var r=_f(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}aa.el=t,n(TPe)}}function XB(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]={}),su(l))Y(o,a);else for(var u=pt(l),c=0;c=0){!o&&(o=n[e]={});for(var h=He(a),c=0;c=0)){var d=e.getAnimationStyleProps(),h=d?d.style:null;if(h){!a&&(a=n.style={});for(var p=He(r),u=0;u=0?t.getStore().get($,R):void 0}var N=t.get(z.name,R),V=z&&z.ordinalMeta;return V?V.categories[N]:N}function b(k,R){R==null&&(R=u);var z=t.getItemVisual(R,"style"),$=z&&z.fill,N=z&&z.opacity,V=y(R,os).getItemStyle();$!=null&&(V.fill=$),N!=null&&(V.opacity=N);var L={inheritColor:oe($)?$:"#000"},G=x(R,os),U=_t(G,null,L,!1,!0);U.text=G.getShallow("show")?Ee(e.getFormattedLabel(R,os),xf(t,R)):null;var B=s0(G,L,!1);return A(k,V),V=jB(V,U,B),k&&C(V,k),V.legacy=!0,V}function w(k,R){R==null&&(R=u);var z=y(R,oo).getItemStyle(),$=x(R,oo),N=_t($,null,null,!0,!0);N.text=$.getShallow("show")?Pa(e.getFormattedLabel(R,oo),e.getFormattedLabel(R,os),xf(t,R)):null;var V=s0($,null,!0);return A(k,z),z=jB(z,N,V),k&&C(z,k),z.legacy=!0,z}function C(k,R){for(var z in R)ce(R,z)&&(k[z]=R[z])}function A(k,R){k&&(k.textFill&&(R.textFill=k.textFill),k.textPosition&&(R.textPosition=k.textPosition))}function T(k,R){if(R==null&&(R=u),ce(WB,k)){var z=t.getItemVisual(R,"style");return z?z[WB[k]]:null}if(ce(cPe,k))return t.getItemVisual(R,k)}function M(k){if(a.type==="cartesian2d"){var R=a.getBaseAxis();return Gxe(xe({axis:R},k))}}function I(){return r.getCurrentSeriesIndices()}function P(k){return X6(k,r)}}function $Pe(e){var t={};return D(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 tw(e,t,r,n,i,a,o){if(!n){a.remove(t);return}var s=MP(e,t,r,n,i,a);return s&&o.setItemGraphicEl(r,s),s&&Ut(s,n.focus,n.blurScope,n.emphasisDisabled),s}function MP(e,t,r,n,i,a){var o=-1,s=t;t&&v9(t,n,i)&&(o=ze(a.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=TP(n),s&&OPe(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Qn.normal.cfg=Qn.normal.conOpt=Qn.emphasis.cfg=Qn.emphasis.conOpt=Qn.blur.cfg=Qn.blur.conOpt=Qn.select.cfg=Qn.select.conOpt=null,Qn.isLegacy=!1,GPe(u,r,n,i,l,Qn),VPe(u,r,n,i,l),AP(e,u,r,n,Qn,i,l),ce(n,"info")&&(ao(u).info=n.info);for(var c=0;c=0?a.replaceAt(u,o):a.add(u),u}function v9(e,t,r){var n=ao(e),i=t.type,a=t.shape,o=t.style;return r.isUniversalTransitionEnabled()||i!=null&&i!==n.customGraphicType||i==="path"&&YPe(a)&&g9(a)!==n.customPathData||i==="image"&&ce(o,"image")&&o.image!==n.customImagePath}function VPe(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&&v9(o,a,n)&&(o=null),o||(o=TP(a),e.setClipPath(o)),AP(null,o,t,a,null,n,i)}}function GPe(e,t,r,n,i,a){if(!e.isGroup){QB(r,null,a),QB(r,oo,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=TP(o),e.setTextContent(c)),AP(null,c,t,o,null,n,i);for(var f=o&&o.style,d=0;d=c;h--){var p=t.childAt(h);WPe(t,p,i)}}}function WPe(e,t,r){t&&jx(t,ao(e).option,r)}function UPe(e){new xo(e.oldChildren,e.newChildren,JB,JB,e).add(e5).update(e5).remove(jPe).execute()}function JB(e,t){var r=e&&e.name;return r??LPe+t}function e5(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,i=t!=null?r.oldChildren[t]:null;MP(r.api,i,r.dataIndex,n,r.seriesModel,r.group)}function jPe(e){var t=this.context,r=t.oldChildren[e];r&&jx(r,ao(r).option,t.seriesModel)}function g9(e){return e&&(e.pathData||e.d)}function YPe(e){return e&&(ce(e,"pathData")||ce(e,"d"))}function qPe(e){e.registerChartView(zPe),e.registerSeriesModel(dPe)}var Rl=Je(),t5=we,rw=ue,XPe=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 Ae,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var d=Pe(r5,r,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,r)}i5(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=QI(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=Rl(t).pointerEl=new xv[a.type](t5(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=Rl(t).labelEl=new rt(t5(r.label));t.add(a),n5(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=Rl(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=Rl(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),n5(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=yv(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){vo(u.event)},onmousedown:rw(this._onHandleDragMove,this,0,0),drift:rw(this._onHandleDragMove,this),ondragend:rw(this._onHandleDragEnd,this)}),n.add(i)),i5(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");q(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,Qf(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){r5(this._axisPointerModel,!r&&this._moveAnimation,this._handle,nw(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(nw(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(nw(i)),Rl(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),zp(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 r5(e,t,r,n){m9(Rl(r).lastProp,n)||(Rl(r).lastProp=n,t?it(r,n,e):(r.stopAnimation(),r.attr(n)))}function m9(e,t){if(Se(e)&&Se(t)){var r=!0;return D(t,function(n,i){r=r&&m9(e[i],n)}),!!r}else return e===t}function n5(e,t){e[t.get(["label","show"])?"show":"hide"]()}function nw(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function i5(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 PP=XPe;function kP(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 y9(e,t,r,n,i){var a=r.get("value"),o=x9(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Yf(s.get("padding")||0),u=s.getFont(),c=hv(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),ZPe(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 ZPe(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 x9(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:HI(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};D(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):me(o)&&(a=o(s))}return a}function DP(e,t,r){var n=bi();return Pu(n,n,r.rotation),Na(n,n,r.position),Ui([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function S9(e,t,r,n,i,a){var o=So.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),y9(t,n,i,a,{position:DP(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function RP(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function b9(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function a5(e,t,r,n,i,a){return{cx:e,cy:t,r0:r,r:n,startAngle:i,endAngle:a,clockwise:!0}}var KPe=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=o5(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var d=kP(a),h=QPe[u](s,f,c);h.style=d,r.graphicKey=h.type,r.pointer=h}var p=tA(l.model,i);S9(n,r,p,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=tA(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=DP(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=o5(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}(PP);function o5(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var QPe={line:function(e,t,r){var n=RP([t,r[0]],[t,r[1]],s5(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:b9([t-n/2,r[0]],[n,i],s5(e))}}};function s5(e){return e.dim==="x"?0:1}const JPe=KPe;var eke=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 tke=eke;var eo=Je(),rke=D;function _9(e,t,r){if(!tt.node){var n=t.getZr();eo(n).records||(eo(n).records={}),nke(n,t);var i=eo(n).records[e]||(eo(n).records[e]={});i.handler=r}}function nke(e,t){if(eo(e).initialized)return;eo(e).initialized=!0,r("click",Pe(l5,"click")),r("mousemove",Pe(l5,"mousemove")),r("globalout",ake);function r(n,i){e.on(n,function(a){var o=oke(t);rke(eo(e).records,function(s){s&&i(s,a,o.dispatchAction)}),ike(o.pendings,t)})}}function ike(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 ake(e,t,r){e.handler("leave",null,r)}function l5(e,t,r,n){t.handler(e,r,n)}function oke(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 SA(e,t){if(!tt.node){var r=t.getZr(),n=(eo(r).records||{})[e];n&&(eo(r).records[e]=null)}}var ske=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";_9("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){SA("axisPointer",n)},t.prototype.dispose=function(r,n){SA("axisPointer",n)},t.type="axisPointer",t}(jt);const lke=ske;function w9(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=gu(a,e);if(o==null||o<0||q(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 u5=Je();function uke(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||ue(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Qm(i)&&(i=w9({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=Qm(i),u=a.axesInfo,c=s.axesInfo,f=n==="leave"||Qm(i),d={},h={},p={list:[],map:{}},v={showPointer:Pe(fke,h),showTooltip:Pe(dke,p)};D(s.coordSysMap,function(m,y){var x=l||m.containPoint(i);D(s.coordSysAxesInfo[y],function(S,_){var b=S.axis,w=gke(u,S);if(!f&&x&&(!u||w)){var C=w&&w.value;C==null&&!l&&(C=b.pointToData(i)),C!=null&&c5(S,C,v,!1,d)}})});var g={};return D(c,function(m,y){var x=m.linkGroup;x&&!h[y]&&D(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,f5(S),f5(m)))),g[m.key]=w}})}),D(g,function(m,y){c5(c[y],m,v,!0,d)}),hke(h,c,d),pke(p,i,e,o),vke(c,o,r),d}}function c5(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=cke(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&Y(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function cke(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return D(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),D(d,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function fke(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function dke(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=Hp(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 hke(e,t,r){var n=r.axesInfo=[];D(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 pke(e,t,r,n){if(Qm(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 vke(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=u5(n)[i]||{},o=u5(n)[i]={};D(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&D(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];D(a,function(u,c){!o[c]&&l.push(u)}),D(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 gke(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 f5(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 Qm(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Rv(e){Eu.registerAxisPointerClass("CartesianAxisPointer",JPe),e.registerComponentModel(tke),e.registerComponentView(lke),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!q(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=nwe(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},uke)}function mke(e){Fe(Xj),Fe(Rv)}var yke=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=kP(a),p=Ske[d](s,l,f,c);p.style=h,r.graphicKey=p.type,r.pointer=p}var v=a.get(["label","margin"]),g=xke(n,i,a,l,v);y9(r,i,a,o,g)},t}(PP);function xke(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=bi();Pu(d,d,s),Na(d,d,[n.cx,n.cy]),u=Ui([o,-i],d);var h=t.getModel("axisLabel").get("rotate")||0,p=So.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 Ske={line:function(e,t,r,n){return e.dim==="angle"?{type:"Line",shape:RP(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:a5(t.cx,t.cy,n[0],n[1],(-r-i/2)*a,(-r+i/2)*a)}:{type:"Sector",shape:a5(t.cx,t.cy,r-i/2,r+i/2,0,Math.PI*2)}}};const bke=yke;var _ke=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 wke=_ke;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",or).models[0]},t.type="polarAxis",t}(et);lr(LP,Cv);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.type="angleAxis",t}(LP),Tke=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),EP=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}(Qi);EP.prototype.dataToRadius=Qi.prototype.dataToCoord;EP.prototype.radiusToData=Qi.prototype.coordToData;const Ake=EP;var Mke=Je(),OP=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=hv(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=Mke(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}(Qi);OP.prototype.dataToAngle=Qi.prototype.dataToCoord;OP.prototype.angleToData=Qi.prototype.coordToData;const Ike=OP;var C9=["radius","angle"],Pke=function(){function e(t){this.dimensions=C9,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Ake,this._angleAxis=new Ike,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=d5(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=d5(r);return i===this?this.pointToData(n):null},e}();function d5(e){var t=e.seriesModel,r=e.polarModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}const kke=Pke;function Dke(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%"]:q(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 Rke(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();D(x0(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),D(x0(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),yf(n.scale,n.model),yf(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 Lke(e){return e.mainType==="angleAxis"}function h5(e,t){if(e.type=t.get("type"),e.scale=Bx(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),Lke(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 Eke={dimensions:C9,create:function(e,t){var r=[];return e.eachComponent("polar",function(n,i){var a=new kke(i+"");a.update=Rke;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");h5(o,l),h5(s,u),Dke(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",or).models[0];n.coordinateSystem=i.coordinateSystem}}),r}};const Oke=Eke;var Nke=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function am(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 om(e){var t=e.getRadiusAxis();return t.inverse?0:1}function p5(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 zke=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=we(c);var f=i.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(d),c});p5(u),p5(s),D(Nke,function(c){r.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&Bke[c](this.group,r,a,s,l,o,u)},this)}},t.type="angleAxis",t}(Eu),Bke={axisLine:function(e,t,r,n,i,a){var o=t.getModel(["axisLine","lineStyle"]),s=om(r),l=s?0:1,u;a[l]===0?u=new $a({shape:{cx:r.cx,cy:r.cy,r:a[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new xx({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[om(r)],u=Z(n,function(c){return new Tr({shape:am(r,[l,l+s],c.coord)})});e.add(di(u,{style:xe(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[om(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];Se(_)&&_.textStyle&&(h=new wt(_.textStyle,l,l.ecModel))}var b=new rt({silent:So.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=So.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=f.rawLabel,Ie(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",P=w;_&&(n[c][M]||(n[c][M]={p:w,n:w}),P=n[c][M][I]);var k=void 0,R=void 0,z=void 0,$=void 0;if(p.dim==="radius"){var N=p.dataToCoord(T)-w,V=l.dataToCoord(M);Math.abs(N)=$})}}})}function Yke(e){var t={};D(e,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=A9(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=T9(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 D(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),D(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=v5(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=v5(r);return i===this?this.pointToData(n):null},e}();function v5(e){var t=e.seriesModel,r=e.singleAxisModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function oDe(e,t){var r=[];return e.eachComponent("singleAxis",function(n,i){var a=new aDe(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",or).models[0];n.coordinateSystem=i&&i.coordinateSystem}}),r}var sDe={create:oDe,dimensions:I9};const lDe=sDe;var g5=["x","y"],uDe=["width","height"],cDe=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=aw(l,1-E0(s)),c=l.dataToPoint(n)[0],f=a.get("type");if(f&&f!=="none"){var d=kP(a),h=fDe[f](s,c,u);h.style=d,r.graphicKey=h.type,r.pointer=h}var p=bA(i);S9(n,r,p,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=bA(n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=DP(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=E0(o),u=aw(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=aw(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}(PP),fDe={line:function(e,t,r){var n=RP([t,r[0]],[t,r[1]],E0(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:b9([t-n/2,r[0]],[n,i],E0(e))}}};function E0(e){return e.isHorizontal()?0:1}function aw(e,t){var r=e.getRect();return[r[g5[t]],r[g5[t]]+r[uDe[t]]]}const dDe=cDe;var hDe=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}(jt);function pDe(e){Fe(Rv),Eu.registerAxisPointerClass("SingleAxisPointer",dDe),e.registerComponentView(hDe),e.registerComponentView(rDe),e.registerComponentModel(iw),Sf(e,"single",iw,iw.defaultOption),e.registerCoordinateSystem("single",lDe)}var vDe=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=qf(r);e.prototype.init.apply(this,arguments),m5(r,a)},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),m5(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 m5(e,t){var r=e.cellSize,n;q(r)?n=r:n=e.cellSize=[r,r],n.length===1&&(n[1]=n[0]);var i=Z([0,1],function(a){return Sye(t,a)&&(n[a]="auto"),n[a]!=null&&n[a]!=="auto"});Rs(e,t,{type:"box",ignoreSize:i})}const gDe=vDe;var mDe=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 kn({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?mye(r,n):me(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=kT(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/ow)-Math.floor(r[0].time/ow)+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 y5(e){var t=e.calendarModel,r=e.seriesModel,n=t?t.coordinateSystem:r?r.coordinateSystem:null;return n}const SDe=xDe;function bDe(e){e.registerComponentModel(gDe),e.registerComponentView(yDe),e.registerCoordinateSystem("calendar",SDe)}function _De(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 x5(e,t){var r;return D(t,function(n){e[n]!=null&&e[n]!=="auto"&&(r=!0)}),r}function wDe(e,t,r){var n=Y({},r),i=e[t],a=r.$action||"merge";a==="merge"?i?(Oe(i,n,!0),Rs(i,n,{ignoreSize:!0}),pW(r,i),sm(r,i),sm(r,i,"shape"),sm(r,i,"style"),sm(r,i,"extra"),r.clipPath=i.clipPath):e[t]=n:a==="replace"?e[t]=n:a==="remove"&&i&&(e[t]=null)}var P9=["transition","enterFrom","leaveTo"],CDe=P9.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function sm(e,t,r){if(r&&(!e[r]&&t[r]&&(e[r]={}),e=e[r],t=t[r]),!(!e||!t))for(var n=r?P9:CDe,i=0;i=0;c--){var f=i[c],d=dr(f.id,null),h=d!=null?o.get(d):null;if(h){var p=h.parent,m=ni(p),y=p===a?{width:s,height:l}:{width:m.width,height:m.height},x={},S=kx(h,f,y,null,{hv:f.hv,boundingMode:f.bounding},x);if(!ni(h).isNew&&S){for(var _=f.transition,b={},w=0;w=0)?b[C]=A:h[C]=A}it(h,b,r,0)}else h.attr(x)}}},t.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(i){Jm(i,ni(i).option,n,r._lastGraphicModel)}),this._elMap=ve()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(jt);function _A(e){var t=ce(S5,e)?S5[e]:hI(e),r=new t({});return ni(r).type=e,r}function b5(e,t,r,n){var i=_A(r);return t.add(i),n.set(e,i),ni(i).id=e,ni(i).isNew=!0,i}function Jm(e,t,r,n){var i=e&&e.parent;i&&(e.type==="group"&&e.traverse(function(a){Jm(a,t,r,n)}),jx(e,t,n),r.removeKey(ni(e).id))}function _5(e,t,r,n){e.isGroup||D([["cursor",_i.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(i){var a=i[0];ce(t,a)?e[a]=Ee(t[a],i[1]):e[a]==null&&(e[a]=i[1])}),D(He(t),function(i){if(i.indexOf("on")===0){var a=t[i];e[i]=me(a)?a:null}}),ce(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function IDe(e){return e=Y({},e),D(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(hW),function(t){delete e[t]}),e}function PDe(e,t,r){var n=Ie(e).eventData;!e.silent&&!e.ignore&&!n&&(n=Ie(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=r.info)}function kDe(e){e.registerComponentModel(ADe),e.registerComponentView(MDe),e.registerPreprocessor(function(t){var r=t.graphic;q(r)?!r[0]||!r[0].elements?t.graphic=[{elements:r}]:t.graphic=[t.graphic[0]]:r&&!r.elements&&(t.graphic=[{elements:[r]}])})}var w5=["x","y","radius","angle","single"],DDe=["cartesian2d","polar","singleAxis"];function RDe(e){var t=e.get("coordinateSystem");return ze(DDe,t)>=0}function ss(e){return e+"Axis"}function LDe(e,t){var r=ve(),n=[],i=ve();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 k9(e){var t=e.ecModel,r={infoList:[],infoMap:ve()};return e.eachTargetAxis(function(n,i){var a=t.getComponent(ss(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 sw=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}(),EDe=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=C5(r);this.settledOption=a,this.mergeDefaultAndTheme(r,i),this._doInit(a)},t.prototype.mergeOption=function(r){var n=C5(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;D([["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=ve(),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 D(w5,function(i){var a=this.getReferringComponents(ss(i),Zve);if(a.specified){n=!0;var o=new sw;D(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 sw;if(d.add(f.componentIndex),r.set(c,d),a=!1,c==="x"||c==="y"){var h=f.getReferringComponents("grid",or).models[0];h&&D(u,function(p){f.componentIndex!==p.componentIndex&&h===p.getReferringComponents("grid",or).models[0]&&d.add(p.componentIndex)})}}}a&&D(w5,function(u){if(a){var c=i.findComponents({mainType:ss(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new sw;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");D([["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(ss(n),i))},this),r},t.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(i,a){D(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(ss(r),n)},t.prototype.setRawRange=function(r){var n=this.option,i=this.settledOption;D([["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;D(["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 yc(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)}});yc(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;yc(["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=ct(n[0]+o,n,[0,100],!0):a!=null&&(o=ct(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=VH(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 VDe(e,t,r){var n=[1/0,-1/0];yc(r,function(o){fSe(n,o.getData(),t)});var i=e.getAxisModel(),a=YU(i.axis.scale,i,n).calculate();return[a.min,a.max]}const GDe=$De;var HDe={getTargetSeries:function(e){function t(i){e.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=e.getComponent(ss(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 GDe(i,a,s,e),r.push(o.__dzAxisProxy))});var n=ve();return D(r,function(i){D(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 WDe=HDe;function UDe(e){e.registerAction("dataZoom",function(t,r){var n=LDe(r,t);D(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var A5=!1;function zP(e){A5||(A5=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,WDe),UDe(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function jDe(e){e.registerComponentModel(NDe),e.registerComponentView(FDe),zP(e)}var fi=function(){function e(){}return e}(),D9={};function xc(e,t){D9[e]=t}function R9(e){return D9[e]}var YDe=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;D(this.option.feature,function(n,i){var a=R9(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 qDe=YDe;function XDe(e,t,r){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:r.getWidth(),height:r.getHeight()},o=hr(n,a,i);iu(t.get("orient"),e,t.get("itemGap"),o.width,o.height),kx(e,n,a,i)}function L9(e,t){var r=Yf(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 ZDe=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=[];D(u,function(p,v){f.push(v)}),new xo(this._featureNames||[],f).add(d).update(d).remove(Pe(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(KDe(g))S={onclick:x.option.onclick,featureName:g};else{var _=R9(g);if(!_)return;S=new _}c[g]=S}else if(S=c[m],!S)return;S.uid=jf("toolbox-feature"),S.model=x,S.ecModel=n,S.api=i;var b=S instanceof fi;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"?mo:yo)(T[w])},S instanceof fi&&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 fi&&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={};D(_,function(C,A){var T=yv(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 I=new rt({style:{text:b[A],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null},ignore:!0});T.setTextContent(I),Wf({el:T,componentModel:r,itemName:A,formatterParamsExtra:{title:b[A]}}),T.__title=b[A],T.on("mouseover",function(){var P=y.getItemStyle(),k=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:y.get("textFill")||P.fill||P.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),T.setTextConfig({position:y.get("textPosition")||k}),I.ignore=!r.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",A])!=="emphasis"&&i.leaveEmphasis(this),I.hide()}),(p.get(["iconStatus",A])==="emphasis"?mo:yo)(T),o.add(T),T.on("click",ue(v.onclick,v,n,i,A)),w[A]=T})}XDe(o,r,i),o.add(L9(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&&!me(x)&&v){var S=x.style||(x.style={}),_=hv(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){D(this._features,function(o){o instanceof fi&&o.updateView&&o.updateView(o.model,n,i,a)})},t.prototype.remove=function(r,n){D(this._features,function(i){i instanceof fi&&i.remove&&i.remove(r,n)}),this.group.removeAll()},t.prototype.dispose=function(r,n){D(this._features,function(i){i instanceof fi&&i.dispose&&i.dispose(r,n)})},t.type="toolbox",t}(jt);function KDe(e){return e.indexOf("my")===0}const QDe=ZDe;var JDe=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(me(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}(fi);const eRe=JDe;var M5="__ec_magicType_stack__",tRe=[["line","bar"],["stack"]],rRe=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 D(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(I5[i]){var s={series:[]},l=function(f){var d=f.subType,h=f.id,p=I5[i](d,h,f,a);p&&(xe(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,or).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"}}};D(tRe,function(f){ze(f,i)>=0&&D(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}(fi),I5={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")===M5;if(e==="line"||e==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),Oe({id:t,stack:i?"":M5},n.get(["option","stack"])||{},!0)}};Ga({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});const nRe=rRe;var Yx=new Array(60).join("-"),wf=" ";function iRe(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 aRe(e){var t=[];return D(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()];D(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(wf)],c=0;c1||r>0&&!e.noHeader;return D(e.blocks,function(i){var a=YW(i);a>=t&&(t=a+ +(n&&(!a||zT(i)&&!i.noHeader)))}),t}return 0}function O0e(e,t,r,n){var i=t.noHeader,a=z0e(YW(t)),o=[],s=t.blocks||[];ln(!s||q(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ce(u,l)){var c=new FW(u[l],null);s.sort(function(p,v){return c.evaluate(p.sortParam,v.sortParam)})}else l==="seriesDesc"&&s.reverse()}D(s,function(p,v){var g=t.valueFormatter,m=jW(p)(g?Y(Y({},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):BT(o.join(""),i?r:a.html);if(i)return f;var d=RT(t.header,"ordinal",e.useUTC),h=UW(n,e.renderMode).nameStyle;return e.renderMode==="richText"?qW(e,d,h)+a.richText+f:BT('
'+mn(d)+"
"+f,r)}function N0e(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=q(S)?S:[S],Z(S,function(_,b){return RT(_,q(h)?h[b]:h,u)})};if(!(a&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),d=a?"":RT(l,"ordinal",u),h=t.valueType,p=o?[]:c(t.value),v=!s||!a,g=!s&&a,m=UW(n,i),y=m.nameStyle,x=m.valueStyle;return i==="richText"?(s?"":f)+(a?"":qW(e,d,y))+(o?"":$0e(e,p,v,g,x)):BT((s?"":f)+(a?"":B0e(d,!s,y))+(o?"":F0e(p,v,g,x)),r)}}function LO(e,t,r,n,i,a){if(e){var o=jW(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function z0e(e){return{html:L0e[e],richText:E0e[e]}}function BT(e,t){var r='
',n="margin: "+t+"px 0 0";return'
'+e+r+"
"}function B0e(e,t,r){var n=t?"margin-left:2px":"";return''+mn(e)+""}function F0e(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=q(e)?e:[e],''+Z(e,function(o){return mn(o)}).join("  ")+""}function qW(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function $0e(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(q(t)?t.join(" "):t,a)}function XW(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return bu(n)}function ZW(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var qb=function(){function e(){this.richTextStyles={},this._nextStyleNameId=qH()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=Iye({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={};q(r)?D(r,function(a){return Y(n,a)}):Y(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function KW(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=q(s),u=XW(t,r),c,f,d,h;if(o>1||l&&!o){var p=V0e(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=xf(i,r,a[0]),f=v.type}else h=c=l?s[0]:s;var g=eI(t),m=g&&t.name||"",y=i.getName(r),x=n?m:y;return xr("section",{header:m,noHeader:n||!g,sortParam:h,blocks:[xr("nameValue",{markerType:"item",markerColor:u,name:x,noName:!Fi(x),value:c,valueType:f})].concat(d||[])})}function V0e(e,t,r,n,i){var a=t.getData(),o=Oa(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?D(n,function(f){c(xf(a,r,f),f)}):D(e,c);function c(f,d){var h=a.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(xr("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 No=Je();function Eg(e,t){return e.getName(t)||e.getId(t)}var Zm="__universalTransitionEnabled",Ex=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=Wh({count:H0e,reset:W0e}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=No(this).sourceManager=new HW(this);a.prepareSource();var o=this.getInitialData(r,i);OO(o,this),this.dataTask.context.data=o,No(this).dataBeforeProcessed=o,EO(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Np(this),a=i?Zf(r):{},o=this.subType;et.hasClass(o)&&(o+="Series"),Oe(r,n.getTheme().get(this.subType)),Oe(r,this.getDefaultOption()),mu(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Rs(r,a,i)},t.prototype.mergeOption=function(r,n){r=Oe(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Np(this);i&&Rs(this.option,r,i);var a=No(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);OO(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,No(this).dataBeforeProcessed=o,EO(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!Un(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=wI.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[Eg(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Zm])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"){Se(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);lr(Ex,MI);lr(Ex,wI);n6(Ex,et);function EO(e){var t=e.name;eI(e)||(e.name=G0e(e)||t)}function G0e(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return D(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function H0e(e){return e.model.getRawData().count()}function W0e(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),U0e}function U0e(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function OO(e,t){D(Xy(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Pe(j0e,t))})}function j0e(e,t){var r=FT(e);return r&&r.setOutputEnd((t||this).count()),t}function FT(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=Ex;var PI=function(){function e(){this.group=new Ae,this.uid=qf("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}();rI(PI);px(PI);const jt=PI;function Jf(){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 QW=Je(),Y0e=Jf(),kI=function(){function e(){this.group=new Ae,this.uid=qf("viewChart"),this.renderTask=Wh({plan:q0e,reset:X0e}),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&&zO(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&zO(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){Hs(this.group,t)},e.markUpdateMethod=function(t,r){QW(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function NO(e,t,r){e&&Rp(e)&&(t==="emphasis"?mo:yo)(e,r)}function zO(e,t,r){var n=yu(e,t),i=t&&t.highlightKey!=null?bme(t.highlightKey):null;n!=null?D(pt(n),function(a){NO(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){NO(a,r,i)})}rI(kI);px(kI);function q0e(e){return Y0e(e.model)}function X0e(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&QW(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),Z0e[l]}var Z0e={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=kI;var d0="\0__throttleOriginMethod",BO="\0__throttleRate",FO="\0__throttleType";function DI(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 ed(e,t,r,n){var i=e[t];if(i){var a=i[d0]||i,o=i[FO],s=i[BO];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=DI(a,r,n==="debounce"),i[d0]=a,i[FO]=n,i[BO]=r}return i}}function Bp(e,t){var r=e[t];r&&r[d0]&&(r.clear&&r.clear(),e[t]=r[d0])}var $O=Je(),VO={itemStyle:xu(rW,!0),lineStyle:xu(tW,!0)},K0e={lineStyle:"stroke",itemStyle:"fill"};function JW(e,t){var r=e.visualStyleMapper||VO[t];return r||(console.warn("Unknown style type '"+t+"'."),VO.itemStyle)}function eU(e,t){var r=e.visualDrawType||K0e[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var Q0e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=JW(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=eU(e,n),u=o[l],c=me(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"||me(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||me(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=Y({},o);g[l]=c(v),h.setItemVisual(p,"style",g)}}}},Dd=new wt,J0e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=JW(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Dd.option=l[n];var u=i(Dd),c=o.ensureUniqueItemVisual(s,"style");Y(c,u),Dd.option.decal&&(o.setItemVisual(s,"decal",Dd.option.decal),Dd.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},e1e={performRawSeries:!0,overallReset:function(e){var t=ve();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)),$O(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=$O(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=eU(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)}})}})}},Og=Math.PI;function t1e(e,t){t=t||{},xe(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 Ae,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 fI({shape:{startAngle:-Og/2,endAngle:-Og/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:Og*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Og*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 r1e=function(){function e(t,r,n,i){this._stageTaskMap=ve(),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=ve();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;D(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";ln(!(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;D(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=ve(),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)||Wh({plan:s1e,reset:l1e,count:c1e}));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||Wh({reset:n1e});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=ve(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,h="";ln(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,p):c?c(n,i).each(p):(f=!1,D(n.getSeries(),p));function p(v){var g=v.uid,m=l.set(g,s&&s.get(g)||(d=!0,Wh({reset:i1e,onDirty:o1e})));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 me(t)&&(t={overallReset:t,seriesType:f1e(t)}),t.uid=qf("stageHandler"),r&&(t.visualType=r),t},e}();function n1e(e){e.overallReset(e.ecModel,e.api,e.payload)}function i1e(e){return e.overallProgress&&a1e}function a1e(){this.agent.dirty(),this.getDownstream().dirty()}function o1e(){this.agent&&this.agent.dirty()}function s1e(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function l1e(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 tU(n)}):u1e}var u1e=tU(0);function tU(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}(),$T=["symbol","symbolSize","symbolRotate","symbolOffset"],UO=$T.concat(["symbolKeepAspect"]),v1e={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<$T.length;o++){var s=$T[o],l=e.get(s);me(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(Y({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=He(i);function c(f,d){for(var h=e.getRawValue(d),p=e.getDataParams(d),v=0;v=0&&ql(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function VT(e,t,r){for(var n=t.type==="radial"?D1e(e,t,r):k1e(e,t,r),i=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:nt(e)?[e]:q(e)?e:null}function LI(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&L1e(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 E1e=new Fa(!0);function v0(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function jO(e){return typeof e=="string"&&e!=="none"}function g0(e){var t=e.fill;return t!=null&&t!=="none"}function YO(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 qO(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 GT(e,t,r){var n=nI(t.image,t.__image,r);if(vx(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)*Nm),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function O1e(e,t,r,n){var i,a=v0(r),o=g0(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||E1e,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?VT(e,d,b):t.__canvasFillGradient,t.__canvasFillGradient=y),v&&(x=f?VT(e,h,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=x),g&&(S=f||!t.__canvasFillPattern?GT(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=S),m&&(_=f||!t.__canvasStrokePattern?GT(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=LI(t),C=i[0],A=i[1]);var T=!0;(u||f&yc)&&(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&&qO(e,r),o&&YO(e,r)):(o&&YO(e,r),a&&qO(e,r))),C&&e.setLineDash([])}function N1e(e,t,r){var n=t.__image=nI(r.image,t.__image,t,t.onload);if(!(!n||!vx(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 z1e(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||Is,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=LI(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(v0(r)&&e.strokeText(i,r.x,r.y),g0(r)&&e.fillText(i,r.x,r.y)):(g0(r)&&e.fillText(i,r.x,r.y),v0(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var XO=["shadowBlur","shadowOffsetX","shadowOffsetY"],ZO=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function lU(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){Sn(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?ru.opacity:o}(n||t.blend!==r.blend)&&(a||(Sn(e,i),a=!0),e.globalCompositeOperation=t.blend||ru.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(Se(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 Jye(this._api),u=this._theme,c=this._model=new MW;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},WT);var f={seriesTransition:s,optionChanged:!0};if(i)this[pn]={silent:a,updateParams:f},this[Wr]=!1,this.getZr().wakeUp();else{try{ic(this),zo.update.call(this,null,f)}catch(d){throw this[pn]=null,this[Wr]=!1,d}this._ssr||this._zr.flush(),this[pn]=null,this[Wr]=!1,Rd.call(this,a),Ld.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 D(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;D(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 D(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(jT[i]){var l=s,u=s,c=-s,f=-s,d=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();D(tf,function(x,S){if(x.group===i){var _=n?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(we(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=Ps.createCanvas(),m=pE(g,{renderer:n?"svg":"canvas"});if(m.resize({width:p,height:v}),n){var y="";return D(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}})),D(d,function(x){var S=new Fr({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 Jb(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return Jb(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Fh(i,r);return D(o,function(s,l){l.indexOf("Models")>=0&&D(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=Fh(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?RI(s,l,n):wv(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;D(uxe,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Yl(s,function(p){var v=Ie(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=Y({},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)}),D(Uh,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),D(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),m1e(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&e6(this.getDom(),NI,"");var n=this,i=n._api,a=n._model;D(n._componentsViews,function(o){o.dispose(a,i)}),D(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 tf[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[pn]&&(a==null&&(a=this[pn].silent),i=!0,this[pn]=null),this[Wr]=!0;try{i&&ic(this),zo.update.call(this,{type:"resize",animation:Y({duration:0},r&&r.animation)})}catch(o){throw this[Wr]=!1,o}this[Wr]=!1,Rd.call(this,a),Ld.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(Se(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!UT[r]){var i=UT[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=Y({},r);return n.type=Uh[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(Se(n)||(n={silent:!!n}),!!y0[r.type]&&this._model){if(this[Wr]){this._pendingActions.push(r);return}var i=n.silent;t_.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&tt.browser.weChat&&this._throttledZrFlush(),Rd.call(this,i),Ld.call(this,i)}},t.prototype.updateLabelLayout=function(){Ei.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(){ic=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),Qb(f,!0),Qb(f,!1),d.plan()},Qb=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(Qc(m))return;if(m instanceof $e&&_me(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)}})}uN=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){mo(p,v),Zn(f)},h.prototype.leaveEmphasis=function(p,v){yo(p,v),Zn(f)},h.prototype.enterBlur=function(p){_6(p),Zn(f)},h.prototype.leaveBlur=function(p){sI(p),Zn(f)},h.prototype.enterSelect=function(p){w6(p),Zn(f)},h.prototype.leaveSelect=function(p){C6(p),Zn(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}(IW))(f)},wU=function(f){function d(h,p){for(var v=0;v=0)){fN.push(r);var a=iU.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function IU(e,t){UT[e]=t}function xxe(e,t,r){var n=q1e("registerMap");n&&n(e,t,r)}var Sxe=M0e;Eu(EI,Q0e);Eu(Ox,J0e);Eu(Ox,e1e);Eu(EI,v1e);Eu(Ox,g1e);Eu(mU,U1e);AU(kW);MU(K1e,s0e);IU("default",t1e);Ga({type:nu,event:nu,update:nu},rr);Ga({type:Um,event:Um,update:Um},rr);Ga({type:$h,event:$h,update:$h},rr);Ga({type:jm,event:jm,update:jm},rr);Ga({type:Vh,event:Vh,update:Vh},rr);zI("light",d1e);zI("dark",h1e);var dN=[],bxe={registerPreprocessor:AU,registerProcessor:MU,registerPostInit:vxe,registerPostUpdate:gxe,registerUpdateLifecycle:BI,registerAction:Ga,registerCoordinateSystem:mxe,registerLayout:yxe,registerVisual:Eu,registerTransform:Sxe,registerLoading:IU,registerMap:xxe,registerImpl:Y1e,PRIORITY:oxe,ComponentModel:et,ComponentView:jt,SeriesModel:zt,ChartView:Tt,registerComponentModel:function(e){et.registerClass(e)},registerComponentView:function(e){jt.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){Vve(e,t)}};function Fe(e){if(q(e)){D(e,function(t){Fe(t)});return}ze(dN,e)>=0||(dN.push(e),me(e)&&(e={install:e}),e.install(bxe))}function Ed(e){return e==null?0:e.length||1}function hN(e){return e}var _xe=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||hN,this._newKeyGetter=i||hN,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 Od=Se,Bo=Z,Pxe=typeof Int32Array>"u"?Array:Int32Array,kxe="e\0\0",pN=-1,Dxe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Rxe=["_approximateExtent"],vN,$g,Nd,zd,i_,Vg,a_,Lxe=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;kU(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===Mi;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),q(a)?a=a.slice():Od(a)&&(a=Y({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Od(r)?Y(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Od(t)?Y(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?Y(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;wT(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){D(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Bo(this.dimensions,this._getDimInfo,this),this.hostModel)),i_(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];me(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(W2(arguments)))})},e.internalField=function(){vN=function(t){var r=t._invertedIndicesMap;D(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new Pxe(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),i[r]=l}}}(),e}();const sn=Lxe;function Cv(e,t){CI(e)||(e=TI(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=ve(),a=[],o=Oxe(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&LU(o),l=n===e.dimensionsDefine,u=l?RU(e):DU(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=ve(c),d=new VW(o),h=0;h0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function Oxe(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return D(t,function(a){var o;Se(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function Nxe(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 zxe=function(){function e(t){this.coordSysDims=[],this.axisMap=ve(),this.categoryAxisMap=ve(),this.coordSysName=t}return e}();function Bxe(e){var t=e.get("coordinateSystem"),r=new zxe(t),n=Fxe[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var Fxe={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",or).models[0],a=e.getReferringComponents("yAxis",or).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),ac(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),ac(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",or).models[0];t.coordSysDims=["single"],r.set("single",i),ac(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",or).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),ac(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),ac(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();D(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];r.set(c,u),ac(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function ac(e){return e.get("type")==="category"}function $xe(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;Vxe(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(D(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;D(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 Vxe(e){return!kU(e.schema)}function Ls(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function EU(e,t){return Ls(e,t)?e.getCalculationInfo("stackResultDimension"):t}function Gxe(e,t){var r=e.get("coordinateSystem"),n=_v.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=S0(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function Hxe(e,t,r){var n,i;return r&&D(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 Ao(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=TI(e)):(i=n.getSource(),a=i.sourceFormat===Mi);var o=Bxe(t),s=Gxe(t,o),l=r.useEncodeDefaulter,u=me(l)?l:l?Pe(_W,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=Cv(i,c),d=Hxe(f.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(f),p=$xe(t,{schema:f,store:h}),v=new sn(f,t);v.setCalculationInfo(p);var g=d!=null&&Wxe(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 Wxe(e){if(e.sourceFormat===Mi){var t=Uxe(e.data||[]);return!q(Hf(t))}}function Uxe(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}();px(OU);const Mo=OU;var jxe=0,Yxe=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++jxe}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&Z(n,qxe);return new e({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!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=ve(this.categories))},e}();function qxe(e){return Se(e)&&e.value!=null?e.value:e+""}const YT=Yxe;function qT(e){return e.type==="interval"||e.type==="log"}function Xxe(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=jH(a/t,!0);r!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=NU(o),l=i.niceTickExtent=[Xt(Math.ceil(e[0]/o)*o,s),Xt(Math.floor(e[1]/o)*o,s)];return Zxe(l,e),i}function o_(e){var t=Math.pow(10,J2(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Xt(r*t)}function NU(e){return Sa(e)+2}function gN(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function Zxe(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),gN(e,0,t),gN(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function Nx(e,t){return e>=t[0]&&e<=t[1]}function zx(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Bx(e,t){return e*(t[1]-t[0])+t[0]}var zU=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 YT({})),q(i)&&(i=new YT({categories:Z(i,function(a){return Se(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),Nx(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),zx(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(Bx(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}(Mo);Mo.registerClass(zU);const $I=zU;var dl=Xt,BU=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 Nx(r,this._extent)},t.prototype.normalize=function(r){return zx(r,this._extent)},t.prototype.scale=function(r){return Bx(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=NU(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:dl(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 VU(e){var t=Jxe(e),r=[];return D(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")||(jU(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)})}),GU(r)}function GU(e){var t={};D(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 D(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=He(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),D(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;D(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;D(a,function(m,y){r[i][y]=r[i][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+c)})}),r}function eSe(e,t,r){if(e&&t){var n=e[GI(t)];return n!=null&&r!=null?n[VI(r)]:n}}function HU(e,t){var r=$U(e,t),n=VU(r);D(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 WU(e){return{seriesType:e,plan:Jf(),reset:function(t){if(UU(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=Ls(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=a.isHorizontal(),h=tSe(i,a),p=jU(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&&_a(_*3),w=p&&l&&_a(_*3),C=p&&_a(_),A=n.master.getRect(),T=d?A.width:A.height,M,I=S.getStore(),P=0;(M=x.next())!=null;){var k=I.get(f?g:o,M),R=I.get(s,M),z=h,$=void 0;f&&($=+k-I.get(o,M));var N=void 0,V=void 0,L=void 0,G=void 0;if(d){var U=n.dataToPoint([k,R]);if(f){var B=n.dataToPoint([$,R]);z=B[0]}N=z,V=U[1]+y,L=U[0]-z,G=m,Math.abs(L)>>1;e[i][1]i&&(this._approxInterval=i);var s=Gg.length,l=Math.min(rSe(Gg,this._approxInterval,0,s),s-1);this._interval=Gg[l][1],this._minLevelUnit=Gg[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return nt(r)?r:+Ba(r)},t.prototype.contain=function(r){return Nx(this.parse(r),this._extent)},t.prototype.normalize=function(r){return zx(this.parse(r),this._extent)},t.prototype.scale=function(r){return Bx(r,this._extent)},t.type="time",t}(Es),Gg=[["second",mI],["minute",yI],["hour",Hh],["quarter-day",Hh*6],["half-day",Hh*12],["day",pi*1.2],["half-week",pi*3.5],["week",pi*7],["month",pi*31],["quarter",pi*95],["half-year",oO/2],["year",oO]];function nSe(e,t,r,n){var i=Ba(t),a=Ba(r),o=function(p){return lO(i,p,n)===lO(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 iSe(e,t){return e/=pi,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function aSe(e){var t=30*pi;return e/=t,e>6?6:e>3?3:e>2?2:1}function oSe(e){return e/=Hh,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function mN(e,t){return e/=t?yI:mI,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function sSe(e){return jH(e,!0)}function lSe(e,t,r){var n=new Date(e);switch(Jc(t)){case"year":case"month":n[sW(r)](0);case"day":n[lW(r)](1);case"hour":n[uW(r)](0);case"minute":n[cW(r)](0);case"second":n[fW(r)](0),n[dW(r)](0)}return n.getTime()}function uSe(e,t,r,n){var i=1e4,a=aW,o=0;function s(T,M,I,P,k,R,z){for(var $=new Date(M),N=M,V=$[P]();N1&&R===0&&I.unshift({value:I[0].value-N})}}for(var R=0;R=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=ft(Z(u,function(T){return ft(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(dSe(n[0]/a)*a),Xt(fSe(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){jh.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=Di(r)/Di(this.base),Nx(r,this._extent)},t.prototype.normalize=function(r){return r=Di(r)/Di(this.base),zx(r,this._extent)},t.prototype.scale=function(r){return r=Bx(r,this._extent),Hg(this.base,r)},t.type="log",t}(Mo),XU=HI.prototype;XU.getMinorTicks=jh.getMinorTicks;XU.getLabel=jh.getLabel;function Wg(e,t){return cSe(e,Sa(t))}Mo.registerClass(HI);const hSe=HI;var pSe=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[gSe[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=vSe[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),vSe={min:"_determinedMin",max:"_determinedMax"},gSe={min:"_dataMin",max:"_dataMax"};function ZU(e,t,r){var n=e.rawExtentInfo;return n||(n=new pSe(e,t,r),e.rawExtentInfo=n,n)}function Ug(e,t){return t==null?null:Tp(t)?NaN:e.parse(t)}function KU(e,t){var r=e.type,n=ZU(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=$U("bar",o),l=!1;if(D(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=VU(s),c=mSe(i,a,t,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function mSe(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=eSe(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;D(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;D(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 bf(e,t){var r=t,n=KU(e,r),i=n.extent,a=r.get("splitNumber");e instanceof hSe&&(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 Fx(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new $I({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new qU({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Mo.getClass(t)||Es)}}function ySe(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function Tv(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):me(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(WI(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function WI(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function xSe(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof $I?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=Tv(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;ce[1]&&(e[1]=i[1])})}var Av=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),_Se=1e-8;function xN(e,t){return Math.abs(e-t)<_Se}function Dl(e,t,r){var n=0,i=e[0];if(!i)return!1;for(var a=1;ai&&(n=o,i=l)}if(n)return CSe(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 D(o,function(s){s.type==="polygon"?SN(s.exterior,i,a,r):D(s.points,function(l){SN(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 MSe(e,t){return e=ASe(e),Z(ft(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 bN(o[0],o.slice(1)));break;case"MultiPolygon":D(i.coordinates,function(l){l[0]&&a.push(new bN(l[0],l.slice(1)))});break;case"LineString":a.push(new _N([i.coordinates]));break;case"MultiLineString":a.push(new _N(i.coordinates))}var s=new ej(n[t||"name"],a,n.cp);return s.properties=n,s})}var Vp=Je();function ISe(e){return e.type==="category"?kSe(e):RSe(e)}function PSe(e,t){return e.type==="category"?DSe(e,t):{ticks:Z(e.scale.getTicks(),function(r){return r.value})}}function kSe(e){var t=e.getLabelModel(),r=rj(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function rj(e,t){var r=nj(e,"labels"),n=UI(t),i=ij(r,n);if(i)return i;var a,o;return me(n)?a=sj(e,n):(o=n==="auto"?LSe(e):n,a=oj(e,o)),aj(r,n,{labels:a,labelCategoryInterval:o})}function DSe(e,t){var r=nj(e,"ticks"),n=UI(t),i=ij(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),me(n))a=sj(e,n,!0);else if(n==="auto"){var s=rj(e,e.getLabelModel());o=s.labelCategoryInterval,a=Z(s.labels,function(l){return l.tickValue})}else o=n,a=oj(e,o,!0);return aj(r,n,{ticks:a,tickCategoryInterval:o})}function RSe(e){var t=e.scale.getTicks(),r=Tv(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 nj(e,t){return Vp(e)[t]||(Vp(e)[t]=[])}function ij(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=vv(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=Vp(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 OSe(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 oj(e,t,r){var n=Tv(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=QU(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 sj(e,t,r){var n=e.scale,i=Tv(e),a=[];return D(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 wN=[0,1],NSe=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 WH(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(),CN(n,i.count())),ct(t,wN,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),CN(n,i.count()));var a=ct(t,n,wN,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=PSe(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 zSe(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 ISe(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 ESe(this)},e}();function CN(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function zSe(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;D(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+=Bd);var h=Math.atan2(s,o);if(h<0&&(h+=Bd),h>=n&&h<=i||h+Bd>=n&&h+Bd<=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,Vi.fromArray(e[0]),bt.fromArray(e[1]),tr.fromArray(e[2]),Le.sub(wa,Vi,bt),Le.sub(ga,tr,bt);var r=wa.len(),n=ga.len();if(!(r<.001||n<.001)){wa.scale(1/r),ga.scale(1/n);var i=wa.dot(ga),a=Math.cos(t);if(a1&&Le.copy(nn,tr),nn.toArray(e[1])}}}}function HSe(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,Vi.fromArray(e[0]),bt.fromArray(e[1]),tr.fromArray(e[2]),Le.sub(wa,bt,Vi),Le.sub(ga,tr,bt);var n=wa.len(),i=ga.len();if(!(n<.001||i<.001)){wa.scale(1/n),ga.scale(1/i);var a=wa.dot(t),o=Math.cos(r);if(a=l)Le.copy(nn,tr);else{nn.scaleAndAdd(ga,s/Math.tan(Math.PI/2-c));var f=tr.x!==bt.x?(nn.x-bt.x)/(tr.x-bt.x):(nn.y-bt.y)/(tr.y-bt.y);if(isNaN(f))return;f<0?Le.copy(nn,bt):f>1&&Le.copy(nn,tr)}nn.toArray(e[1])}}}}function AN(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 WSe(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=Jo(n[0],n[1]),a=Jo(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=Bm([],n[1],n[0],o/i),l=Bm([],n[1],n[2],o/a),u=Bm([],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 I=M+C;I<0&&b(-I*T,1)}else b(-C*T,1)}}function _(C,A,T){C!==0&&(u=!0);for(var M=A;M0)for(var I=0;I0;I--){var z=T[I-1]*R;_(-z,I,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 USe(e,t,r,n){return fj(e,"x","width",t,r,n)}function dj(e,t,r,n){return fj(e,"y","height",t,r,n)}function hj(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)),it(n,u,r,l)}else if(n.attr(u),!Yf(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={};jg(h,u,Yg),jg(h,n.states.select,Yg)}if(n.states.emphasis){var p=a.oldLayoutEmphasis={};jg(p,u,Yg),jg(p,n.states.emphasis,Yg)}eW(n,l,c,r,r)}if(i&&!i.ignore&&!i.invisible){var a=qSe(i),o=a.oldLayout,v={points:i.shape.points};o?(i.attr({shape:o}),it(i,{shape:v},r)):(i.setShape(v),i.style.strokePercent=0,Lt(i,{style:{strokePercent:1}},r)),a.oldLayout=v}},e}();const ZSe=XSe;var c_=Je();function KSe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=c_(r).labelManager;i||(i=c_(r).labelManager=new ZSe),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 f_=Math.sin,d_=Math.cos,pj=Math.PI,pl=Math.PI*2,QSe=180/pj,JSe=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=is(f-pl)||(c?u>=pl:-u>=pl),h=u>0?u%pl:u%pl+pl,p=!1;d?p=!0:is(f)?p=!1:p=h>=pj==!!c;var v=t+n*d_(o),g=r+i*f_(o);this._start&&this._add("M",v,g);var m=Math.round(a*QSe);if(d){var y=1/this._p,x=(c?1:-1)*(pl-y);this._add("A",n,i,m,1,+c,t+n*d_(o+x),r+i*f_(o+x)),y>.01&&this._add("A",n,i,m,0,+c,v,g)}else{var S=t+n*d_(s),_=r+i*f_(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 lbe(e){return""}function qI(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 sbe(o,s)+(o!=="style"?mn(l):l||"")+(a?""+r+Z(a,function(u){return n(u)}).join(r)+r:"")+lbe(o)}return n(e)}function ube(e,t,r){r=r||{};var n=r.newline?` +`:"",i=" {"+n,a=n+"}",o=Z(He(e),function(l){return l+i+Z(He(e[l]),function(u){return u+":"+e[l][u]+";"}).join(n)+a}).join(n),s=Z(He(t),function(l){return"@keyframes "+l+i+Z(He(t[l]),function(u){return u+i+Z(He(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 KT(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function IN(e,t,r,n){return mr("svg","root",{width:e,height:t,xmlns:gj,"xmlns:xlink":mj,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+e+" "+t:!1},r)}var PN={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"},wl="transform-origin";function cbe(e,t,r){var n=Y({},e.shape);Y(n,t),e.buildPath(r,n);var i=new vj;return i.reset(LH(e)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function fbe(e,t){var r=t.originX,n=t.originY;(r||n)&&(e[wl]=r+"px "+n+"px")}var dbe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function xj(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function hbe(e,t,r){var n=e.shape.paths,i={},a,o;if(D(n,function(l){var u=KT(r.zrId);u.animation=!0,$x(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=He(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=xj(i,r);return a.replace(o,s)}}function kN(e){return oe(e)?PN[e]?"cubic-bezier("+PN[e]+")":X2(e)?e:"":""}function $x(e,t,r,n){var i=e.animators,a=i.length,o=[];if(e instanceof dI){var s=hbe(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=xj(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 Gp=Math.round;function Sj(e){return e&&oe(e.src)}function bj(e){return e&&me(e.toDataURL)}function XI(e,t,r,n){ibe(function(i,a){var o=i==="fill"||i==="stroke";o&&RH(a)?wj(t,e,i,n):o&&Z2(a)?Cj(r,e,i,n):e[i]=a},t,r,!1),Sbe(r,e,n)}function DN(e){return is(e[0]-1)&&is(e[1])&&is(e[2])&&is(e[3]-1)}function pbe(e){return is(e[4])&&is(e[5])}function ZI(e,t,r){if(t&&!(pbe(t)&&DN(t))){var n=r?10:1e4;e.transform=DN(t)?"translate("+Gp(t[4]*n)/n+" "+Gp(t[5]*n)/n+")":lve(t)}}function RN(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.";ln(d,g),ln(h,g)}else if(d==null||h==null){var m=function(T,M){if(T){var I=T.elm,P=d||M.width,k=h||M.height;T.tag==="pattern"&&(u?(k=1,P/=a.width):c&&(P=1,k/=a.height)),T.attrs.width=P,T.attrs.height=k,I&&(I.setAttribute("width",P),I.setAttribute("height",k))}},y=nI(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=mr("image","img",{href:p,width:d,height:h}),o.width=d,o.height=h}else i.svgElement&&(f=we(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 _=EH(i);_&&(o.patternTransform=_);var b=mr("pattern","",o,[f]),w=qI(b),C=n.patternCache,A=C[w];A||(A=n.zrId+"-p"+n.patternIdx++,C[w]=A,o.id=A,b=n.defs[A]=mr("pattern",A,o,[f])),t[r]=dx(A)}}function bbe(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]=mr("clipPath",a,o,[_j(e,r)])}t["clip-path"]=dx(a)}function ON(e){return document.createTextNode(e)}function Rl(e,t,r){e.insertBefore(t,r)}function NN(e,t){e.removeChild(t)}function zN(e,t){e.appendChild(t)}function Tj(e){return e.parentNode}function Aj(e){return e.nextSibling}function h_(e,t){e.textContent=t}var BN=58,_be=120,wbe=mr("","");function QT(e){return e===void 0}function ua(e){return e!==void 0}function Cbe(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 ch(e,t){var r=e.key===t.key,n=e.tag===t.tag;return n&&r}function Hp(e){var t,r=e.children,n=e.tag;if(ua(n)){var i=e.elm=yj(n);if(KI(wbe,e),q(r))for(t=0;ta?(p=r[l+1]==null?null:r[l+1].elm,Mj(e,p,r,i,l)):C0(e,t,n,a))}function Sc(e,t){var r=t.elm=e.elm,n=e.children,i=t.children;e!==t&&(KI(e,t),QT(t.text)?ua(n)&&ua(i)?n!==i&&Tbe(r,n,i):ua(i)?(ua(e.text)&&h_(r,""),Mj(r,null,i,0,i.length-1)):ua(n)?C0(r,n,0,n.length-1):ua(e.text)&&h_(r,""):e.text!==t.text&&(ua(n)&&C0(r,n,0,n.length-1),h_(r,t.text)))}function Abe(e,t){if(ch(e,t))Sc(e,t);else{var r=e.elm,n=Tj(r);Hp(t),n!==null&&(Rl(n,t.elm,Aj(r)),C0(n,[e],0,0))}return t}var Mbe=0,Ibe=function(){function e(t,r,n){if(this.type="svg",this.refreshHover=FN(),this.configLayer=FN(),this.storage=r,this._opts=n=Y({},n),this.root=t,this._id="zr"+Mbe++,this._oldVNode=IN(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=yj("svg");KI(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",Abe(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return EN(t,KT(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=KT(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress;var o=[],s=this._bgVNode=Pbe(n,i,this._backgroundColor,a);s&&o.push(s);var l=t.compress?null:this._mainVNode=mr("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=Z(He(a.defs),function(d){return a.defs[d]});if(u.length&&o.push(mr("defs","defs",{},u)),t.animation){var c=ube(a.cssNodes,a.cssAnims,{newline:!0});if(c){var f=mr("style","stl",{},[],c);o.push(f)}}return IN(n,i,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},qI(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}}k.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?qg:0),this._needsManuallyCompositing),c.__builtin__||G2("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&Nn&&!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,D(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 $be=Fbe;function _f(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=xf(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 Vbe=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=sr(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=Gbe,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(){mo(this.childAt(0))},t.prototype.downplay=function(){yo(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):it(d,h,s,n),Zi(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=yr(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 _=Lu(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 Fr){var C=s.style;s.useStyle(Y({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},b))}else s.__isEmptyBrush?s.useStyle(Y({},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:I,inheritColor:w,defaultOpacity:b.opacity});function I(R){return M?r.getName(R):_f(r,R)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var P=s.ensureState("emphasis");P.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var k=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;P.scaleX=this._sizeX*k,P.scaleY=this._sizeY*k,this.setSymbolScale(1),Ut(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=Ie(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&Ds(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Ds(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return td(r.getItemVisual(n,"symbolSize"))},t}(Ae);function Gbe(e,t){this.parent.drift(e,t)}const Mv=Vbe;function v_(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 GN(e){return e!=null&&!Se(e)&&(e={isIgnore:e}),e||{}}function HN(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:yr(t),cursorStyle:t.get("cursor")}}var Hbe=function(){function e(t){this.group=new Ae,this._SymbolCtor=t||Mv}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=GN(r);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=HN(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(v_(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(!v_(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):it(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=HN(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=GN(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 kj(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 Ube(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 jbe(e,t,r,n,i,a,o,s){for(var l=Ube(e,t),u=[],c=[],f=[],d=[],h=[],p=[],v=[],g=Pj(i,t,o),m=e.getLayout("points")||[],y=t.getLayout("points")||[],x=0;x=i||v<0)break;if(su(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||su(b,w))h=m,p=y;else{T=b-u,M=w-c;var k=m-u,R=b-m,z=y-c,$=w-y,N=void 0,V=void 0;if(s==="x"){N=Math.abs(k),V=Math.abs(R);var L=T>0?1:-1;h=m-L*N*o,p=y,I=m+L*V*o,P=y}else if(s==="y"){N=Math.abs(z),V=Math.abs($);var G=M>0?1:-1;h=m,p=y-G*N*o,I=m,P=y+G*V*o}else N=Math.sqrt(k*k+z*z),V=Math.sqrt(R*R+$*$),A=V/(V+N),h=m-T*o*(1-A),p=y-M*o*(1-A),I=m+T*o*A,P=y+M*o*A,I=Fo(I,$o(b,m)),P=Fo(P,$o(w,y)),I=$o(I,Fo(b,m)),P=$o(P,Fo(w,y)),T=I-m,M=P-y,h=m-T*N/V,p=y-M*N/V,h=Fo(h,$o(u,m)),p=Fo(p,$o(c,y)),h=$o(h,Fo(u,m)),p=$o(p,Fo(c,y)),T=m-h,M=y-p,I=m+T*V/N,P=y+M*V/N}e.bezierCurveTo(f,d,h,p,m,y),f=I,d=P}else e.lineTo(m,y)}u=m,c=y,v+=a}return g}var Dj=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),Ybe=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 Dj},t.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&su(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?Ky(s,h,v,m,r,c):Ky(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?vr(l,p,g,y,w):vr(s,h,v,m,w);return u?[r,S]:[S,r]}}s=m,l=y;break}}},t}($e),qbe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Dj),Rj=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 qbe},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&&su(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 Kbe(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=Zbe(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";D(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 yv(0,0,0,0,d,!0);return y[i]=v,y[i+"2"]=g,y}}}function Qbe(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&Jbe(a,t))){var o=t.mapDimension(a.dim),s={};return D(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function Jbe(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 e_e(e,t){return isNaN(e)||isNaN(t)}function t_e(e){for(var t=e.length/2;t>0&&e_e(e[t*2-2],e[t*2-1]);t--);return t-1}function qN(e,t){return[e[t*2],e[t*2+1]]}function r_e(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 Oj(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var L=v.getState("emphasis").style;L.lineWidth=+v.style.lineWidth+1}Ie(v).seriesIndex=r.seriesIndex,Ut(v,$,N,V);var G=YN(r.get("smooth")),U=r.get("smoothMonotone");if(v.setShape({smooth:G,smoothMonotone:U,connectNulls:C}),g){var B=l.getCalculationInfo("stackedOnSeries"),j=0;g.useStyle(xe(c.getAreaStyle(),{fill:P,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),B&&(j=YN(B.get("smooth"))),g.setShape({smooth:G,stackedOnSmooth:j,smoothMonotone:U,connectNulls:C}),zr(g,r,"areaStyle"),Ie(g).seriesIndex=r.seriesIndex,Ut(g,$,N,V)}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){Ie(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=yu(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 Mv(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=yu(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;a0(this._polyline,r),n&&a0(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new Ybe({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 Rj({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");me(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=me(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=me(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(Oj(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=t_e(l);c>=0&&(Br(s,yr(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?Ij(o,h):_f(o,f)},enableTextSetter:!0},n_e(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=r_e(f,S,w),A=C.range,T=A[1]-A[0],M=void 0;if(T>=1){if(T>1&&!h){var I=qN(f,A[0]);u.attr({x:I[0]+_,y:I[1]+b}),o&&(M=d.getRawValue(A[0]))}else{var I=c.getPointOn(S,w);I&&u.attr({x:I[0]+_,y:I[1]+b});var P=d.getRawValue(A[0]),k=d.getRawValue(A[1]);o&&(M=t6(i,p,P,k,C.t))}a.lastFrameIndex=A[0]}else{var R=r===1||a.lastFrameIndex>0?A[0]:0,I=qN(f,R);o&&(M=d.getRawValue(R)),u.attr({x:I[0]+_,y:I[1]+b})}if(o){var z=Yf(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=jbe(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=Vo(d.current,i,o,l),p=Vo(d.stackedOnCurrent,i,o,l),v=Vo(d.next,i,o,l),g=Vo(d.stackedOnNext,i,o,l)),jN(h,v)>3e3||c&&jN(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(),it(u,m,f),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),it(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=o_e[a]:me(a)&&(p=a),p&&t.setData(i.downSample(i.mapDimension(u.dim),1/h,p,s_e))}}}}}function l_e(e){e.registerChartView(a_e),e.registerSeriesModel($be),e.registerLayout(Pv("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,Nj("line"))}var zj=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 Ao(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)D(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(zj);const T0=zj;var u_e=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 Ao(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=Ws(T0.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}(T0);const c_e=u_e;var f_e=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),d_e=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 f_e},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,f=n.endAngle,d=n.clockwise,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){Lp(a,r,Ie(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),XN={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=m_(t.x,e.x),s=y_(t.x+t.width,i),l=m_(t.y,e.y),u=y_(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=y_(t.r,e.r),a=m_(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}},ZN={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new Qe({shape:Y({},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?A0:In,c=new u({shape:n,z2:1});c.name="item";var f=Bj(i);if(c.calculateTextPosition=h_e(f,{isRoundCap:u===A0}),a){var d=c.shape,h=i?"r":"endAngle",p={};d[h]=i?n.r0:n.startAngle,p[h]=n[h],(s?it:Lt)(c,{shape:p},a)}return c}};function m_e(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function KN(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?it:Lt)(r,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(o?it:Lt)(r,{shape:u},c,i)}function QN(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 S_e(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function Bj(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 ez(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=Zl(n.getModel("itemStyle"),c,!0);Y(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=yr(n);Br(e,p,{labelFetcher:a,labelDataIndex:r,defaultText:_f(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,p_e(e,g==="outside"?h:g,Bj(o),n.get(["label","rotate"]))}J6(v,p,a.getRawValue(r),function(y){return Ij(t,y)});var m=n.getModel(["emphasis"]);Ut(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),zr(e,n),S_e(i)&&(e.style.fill="none",e.style.stroke="none",D(e.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function b_e(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var __e=function(){function e(){}return e}(),tz=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 __e},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?r:null},30,!1);function w_e(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=a.length/3;c=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function Fj(e,t,r){if(Ou(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 C_e(e,t,r){var n=e.type==="polar"?In:Qe;return new n({shape:Fj(t,r,e),silent:!0,z2:0})}const T_e=g_e;function A_e(e){e.registerChartView(T_e),e.registerSeriesModel(c_e),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Pe(HU,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,WU("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Nj("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 Qg=Math.PI*2,iz=Math.PI/180;function $j(e,t){return hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Vj(e,t){var r=$j(e,t),n=e.get("center"),i=e.get("radius");q(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 q(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 M_e(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=$j(n,r),s=Vj(n,r),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-n.get("startAngle")*iz,h=n.get("minAngle")*iz,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 _=Qg,b=0,w=d,C=m?1:-1;if(i.setLayout({viewRect:o,r:c}),i.each(a,function(T,M){var I;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"?I=v===0&&x?g:T*g:I=Qg/p,Ir?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 x_(e){return e.position==="center"}function k_e(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*I_e,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),I=M.getModel("label"),P=I.get("position")||M.get(["emphasis","label","position"]),k=I.get("distanceToLabelLine"),R=I.get("alignTo"),z=ne(I.get("edgeDistance"),u),$=I.get("bleedMargin"),N=M.getModel("labelLine"),V=N.get("length");V=ne(V,u);var L=N.get("length2");if(L=ne(L,u),Math.abs(C.endAngle-C.startAngle)0?"right":"left":U>0?"left":"right"}var ke=Math.PI,We=0,Ge=I.get("rotate");if(nt(Ge))We=Ge*(ke/180);else if(P==="center")We=0;else if(Ge==="radial"||Ge===!0){var at=U<0?-G+ke:-G;We=at}else if(Ge==="tangential"&&P!=="outside"&&P!=="outer"){var ot=Math.atan2(U,B);ot<0&&(ot=ke*2+ot);var It=B>0;It&&(ot=ke+ot),We=ot-ke}if(a=!!We,A.x=j,A.y=X,A.rotation=We,A.setStyle({verticalAlign:"middle"}),te){A.setStyle({align:ee});var Yt=A.states.select;Yt&&(Yt.x+=A.x,Yt.y+=A.y)}else{var Be=A.getBoundingRect().clone();Be.applyTransform(A.getComputedTransform());var Pt=(A.style.margin||0)+2.1;Be.y-=Pt/2,Be.height+=Pt,r.push({label:A,labelLine:T,position:P,len:V,len2:L,minTurnAngle:N.get("minTurnAngle"),maxSurfaceAngle:N.get("maxSurfaceAngle"),surfaceNormal:new Le(U,B),linePoints:W,textAlign:ee,labelDistance:k,labelAlignTo:R,edgeDistance:z,bleedMargin:$,rect:Be,unconstrainedWidth:Be.width,labelStyleWidth:A.style.width})}w.setTextConfig({inside:te})}}),!a&&e.get("avoidLabelOverlap")&&P_e(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 L_e=R_e;function rd(e,t,r){t=q(t)&&{coordDimensions:t}||Y({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=Cv(n,t).dimensions,a=new sn(i,e);return a.initData(n,r),a}var E_e=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 Dv=E_e;var O_e=Je(),N_e=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 Dv(ue(this.getData,this),ue(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return rd(this,{coordDimensions:["value"],encodeDefaulter:Pe(bI,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=O_e(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=Wve(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){mu(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 z_e=N_e;function B_e(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(nt(o)&&!isNaN(o)&&o<0)})}}}function F_e(e){e.registerChartView(L_e),e.registerSeriesModel(z_e),sU("pie",e.registerAction),e.registerLayout(Pe(M_e,"pie")),e.registerProcessor(kv("pie")),e.registerProcessor(B_e("pie"))}var $_e=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 Ao(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 V_e=$_e;var Hj=4,G_e=function(){function e(){}return e}(),H_e=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 G_e},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(r,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&a[0]=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 U_e=W_e;var j_e=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=Pv("").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 U_e:new Iv,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 Y_e=j_e;var q_e=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 X_e=q_e;var eA=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",or).models[0]},t.type="cartesian2dAxis",t}(et);lr(eA,Av);var Wj={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)"]}}},Z_e=Oe({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Wj),QI=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}}},Wj),K_e=Oe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},QI),Q_e=xe({logBase:10},QI);const Uj={category:Z_e,value:QI,time:K_e,log:Q_e};var J_e={value:1,category:1,time:1,log:1};function wf(e,t,r,n){D(J_e,function(i,a){var o=Oe(Oe({},Uj[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=Np(this),h=d?Zf(c):{},p=f.getTheme();Oe(c,p.get(a+"Axis")),Oe(c,this.getDefaultOption()),c.type=oz(c),d&&Rs(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=YT.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",oz)}function oz(e){return e.type||(e.data?"category":"value")}var ewe=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(),ft(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 twe=ewe;var tA=["x","y"];function sz(e){return e.type==="interval"||e.type==="time"}var rwe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=tA,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!sz(r)||!sz(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=Gf([],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}(twe),nwe=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}(Qi);const iwe=nwe;function rA(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 lz(e){return e.get("coordinateSystem")==="cartesian2d"}function uz(e){var t={xAxisModel:null,yAxisModel:null};return D(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,or).models[0];t[n]=a}),t}var S_=Math.log;function jj(e,t,r){var n=Es.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=KU(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=S_(e.base);u=[S_(u[0])/d,S_(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=o_(p),v=u[1]-p*o;else{var m=e.getTicks().length-1;m>o&&(p=o_(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 awe=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=tA,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=He(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;qT(v)&&p.get("alignTicks")&&p.get("interval")==null?c.push(h):(bf(v,p),qT(v)&&(s=h))}c.length&&(s||(s=c.pop(),bf(s.scale,s.model)),D(c,function(g){jj(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};D(n.x,function(o){cz(n,"y",o,a)}),D(n.y,function(o){cz(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=hr(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(D(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=xSe(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()),D(this._coordsList,function(u){u.calcAffineTransform()});function l(){D(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]),owe(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]}Se(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):n0(i-as)?(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}(),dz={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=Y({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});yf(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=Lu(t.get(["axisLine","symbolOffset"])||0,h),v=h[0],g=h[1];D([{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=sr(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=cwe(r,n,t,e),a=dwe(r,n,t,e);if(uwe(t,a,i),fwe(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=cj(Z(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));hj(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,pz(a)?e.labelOffset+o*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*as/180);var p;pz(a)?d=lu.innerTextLayout(e.rotation,h??e.rotation,o):(d=lwe(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:lu.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(jf({el:x,componentModel:t,itemName:i}),x.__fullText=i,x.anid="name",t.get("triggerEvent")){var S=lu.makeAxisEventDataBase(t);S.targetType="axisName",S.name=i,Ie(x).eventData=S}n.add(x),x.updateTransform(),r.add(x),x.decomposeTransform()}}};function lwe(e,t,r,n){var i=UH(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return n0(i-as/2)?(o=l?"bottom":"top",a="center"):n0(i-as*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",ias/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function uwe(e,t,r){if(!QU(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?(Kn(a),Kn(u)):hz(a,o)&&(n?(Kn(o),Kn(c)):(Kn(a),Kn(u))),i===!1?(Kn(s),Kn(f)):hz(l,s)&&(i?(Kn(l),Kn(d)):(Kn(s),Kn(f)))}}function Kn(e){e&&(e.ignore=!0)}function hz(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=fx([]);return Du(i,i,-e.rotation),r.applyTransform(no([],i,e.getLocalTransform())),n.applyTransform(no([],i,t.getLocalTransform())),r.intersect(n)}}function pz(e){return e==="middle"||e==="center"}function Yj(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l=0||e===t}function ywe(e){var t=JI(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=nA(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=xe({color:p.color},l));var g=Oe(we(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 me(c)&&(g.name=c(g.name,g));var y=new wt(g,null,this.ecModel);return lr(y,Av.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"}},Fd.axisLine),axisLabel:Jg(Fd.axisLabel,!1),axisTick:Jg(Fd.axisTick,!1),splitLine:Jg(Fd.splitLine,!0),splitArea:Jg(Fd.splitArea,!0),indicator:[]},t}(et);const Ewe=Lwe;var Owe=["axisLine","axisTickLabel","axisName"],Nwe=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 So(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});D(a,function(o){D(Owe,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=q(d)?d:[d],v=q(h)?h:[h],g=[],m=[];function y(R,z,$){var N=$%z.length;return R[N]=R[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;w_(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);w_(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!Sz(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;w_(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(Ai);function w_(e,t,r,n,i){e.pointerChecker&&e.pointerChecker(n,i.originX,i.originY)&&(vo(n.event),Jj(e,t,r,n,i))}function Jj(e,t,r,n,i){i.isAvailableBehavior=ue(Qm,null,r,n),e.trigger(t,i)}function Qm(e,t,r){var n=r[e];return!e||n&&(!oe(n)||t.event[n+"Key"])}const Rv=jwe;function tP(e,t,r){var n=e.target;n.x+=t,n.y+=r,n.dirty()}function rP(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 Ywe={axisPointer:1,tooltip:1,brush:1};function Gx(e,t,r){var n=t.getComponentByElement(e.topTarget),i=n&&n.coordinateSystem;return n&&n!==r&&!Ywe.hasOwnProperty(n.mainType)&&i&&i.model!==r}function e8(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 C_,M0={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"},bz=He(M0),I0={"alignment-baseline":"textBaseline","stop-color":"stopColor"},_z=He(I0),qwe=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,r){r=r||{};var n=e8(t);this._defsUsePending=[];var i=new Ae;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),Dn(n,i,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;Kwe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var d=Hx(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=r8(c,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var h=i;i=new Ae,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=C_[s];if(c&&ce(C_,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=wz[s];if(h&&ce(wz,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 kp({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Qn(r,n),Dn(t,n,this._defsUsePending,!1,!1),Xwe(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(){C_={g:function(t,r){var n=new Ae;return Qn(r,n),Dn(t,n,this._defsUsePending,!1,!1),n},rect:function(t,r){var n=new Qe;return Qn(r,n),Dn(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 $a;return Qn(r,n),Dn(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 Qn(r,n),Dn(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 cI;return Qn(r,n),Dn(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=Az(n));var a=new Pn({shape:{points:i||[]},silent:!0});return Qn(r,a),Dn(t,a,this._defsUsePending,!1,!1),a},polyline:function(t,r){var n=t.getAttribute("points"),i;n&&(i=Az(n));var a=new kn({shape:{points:i||[]},silent:!0});return Qn(r,a),Dn(t,a,this._defsUsePending,!1,!1),a},image:function(t,r){var n=new Fr;return Qn(r,n),Dn(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 Ae;return Qn(r,s),Dn(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 Ae;return Qn(r,s),Dn(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=D6(n);return Qn(r,i),Dn(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),e}(),wz={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 yv(t,r,n,i);return Cz(e,a),Tz(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 W6(t,r,n);return Cz(e,i),Tz(e,i),i}};function Cz(e,t){var r=e.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(t.global=!0)}function Tz(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={};t8(r,a,a);var o=a.stopColor||r.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}r=r.nextSibling}}function Qn(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),xe(t.__inheritedStyle,e.__inheritedStyle))}function Az(e){for(var t=Hx(e),r=[],n=0;n0;a-=2){var o=n[a],s=n[a-1],l=Hx(o);switch(i=i||_i(),s){case"translate":Na(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":q2(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Du(i,i,-parseFloat(l[0])*T_);break;case"skewX":var u=Math.tan(parseFloat(l[0])*T_);no(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*T_);no(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 Iz=/([^\s:;]+)\s*:\s*([^:;]+)/g;function t8(e,t,r){var n=e.getAttribute("style");if(n){Iz.lastIndex=0;for(var i;(i=Iz.exec(n))!=null;){var a=i[1],o=ce(M0,a)?M0[a]:null;o&&(t[o]=i[2]);var s=ce(I0,a)?I0[a]:null;s&&(r[s]=i[2])}}}function tCe(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=ve(),n=ve(),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,yr(n),{labelFetcher:d,labelDataIndex:f,defaultText:r},h);var p=t.getTextContent();if(p&&(n8(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 Lz(e,t,r,n,i,a){e.data?e.data.setItemGraphicEl(a,t):Ie(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:r,region:n&&n.option||{}}}function Ez(e,t,r,n,i){e.data||jf({el:t,componentModel:i,itemName:r,itemTooltipOption:n.get("tooltip")})}function Oz(e,t,r,n,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var a=n.getModel("emphasis"),o=a.get("focus");return Ut(t,o,a.get("blurScope"),a.get("disabled")),e.isGeo&&Sme(t,i,r),o}function Nz(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(),D(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 wCe=_Ce;function CCe(e,t){var r={};return D(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=hr(_,{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 PCe(e,t){D(t.get("geoCoord"),function(r,n){e.addGeoCoord(n,r)})}var kCe=function(){function e(){this.dimensions=a8}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 $z(l+s,l,Y({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=Vz,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)}}),D(a,function(o,s){var l=Z(o,function(c){return c.get("nameMap")}),u=new $z(s,s,Y({nameMap:H2(l)},i(o[0])));u.zoomLimit=Cr.apply(null,Z(o,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=Vz,u.resize(o[0],r),D(o,function(c){c.coordinateSystem=u,PCe(u,c)})}),n},e.prototype.getFilledRegions=function(t,r,n,i){for(var a=(t||[]).slice(),o=ve(),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 FCe(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){GCe(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=HCe(e,i,e.parentNode.hierNode.defaultAncestor||n[0],t)}function $Ce(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function Hz(e){return arguments.length?e:jCe}function fh(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function VCe(e,t){return hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function GCe(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 HCe(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=A_(s),a=M_(a),s&&a;){i=A_(i),o=M_(o),i.hierNode.ancestor=e;var d=s.hierNode.prelim+f-a.hierNode.prelim-u+n(s,a);d>0&&(UCe(WCe(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&&!A_(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=f-l),a&&!M_(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,r=e)}return r}function A_(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function M_(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function WCe(e,t,r){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:r}function UCe(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 jCe(e,t){return e.parentNode===t.parentNode?1:2}var YCe=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),qCe=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 YCe},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 I=s.get(["emphasis","focus"]),P=I==="relative"?Xy(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;P&&(Ie(r).focus=P),ZCe(i,o,c,r,p,h,v,n),r.__edge&&(r.onHoverStateChange=function(k){if(k!=="blur"){var R=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===mv||a0(r.__edge,k)}})}function ZCe(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 bx({shape:oA(c,f,d,i,i)})),it(v,{shape:oA(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 d8(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function sP(e,t){var r=d8(e);return ze(r,t)>=0}function Wx(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 sTe=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=oP.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 xr("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=Wx(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 lTe=sTe;function uTe(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 cTe(e,t){e.eachSeriesByType("tree",function(r){fTe(r,t)})}function fTe(e,t){var r=VCe(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=Hz(function(x,S){return(x.parentNode===S.parentNode?1:2)/x.depth})):(i=r.width,a=r.height,o=Hz());var s=e.getData().tree.root,l=s.children[0];if(l){BCe(s),uTe(l,FCe,o),s.hierNode.modifier=-l.hierNode.prelim,Vd(l,$Ce);var u=l,c=l,f=l;Vd(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),Vd(l,function(x){g=(x.getLayout().x+h)*p,m=(x.depth-1)*v;var S=fh(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),Vd(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),Vd(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 dTe(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");Y(s,o)})})}function hTe(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=iP(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function pTe(e){e.registerChartView(KCe),e.registerSeriesModel(lTe),e.registerLayout(cTe),e.registerVisual(dTe),hTe(e)}var qz=["treemapZoomToNode","treemapRender","treemapMove"];function vTe(e){for(var t=0;t1;)a=a.parentNode;var o=ET(e.ecModel,a.name||a.dataIndex+"",n);i.setVisual("decal",o)})}var gTe=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};p8(i);var a=r.levels||[],o=this.designatedVisualItemStyle={},s=new wt({itemStyle:o},this,n);a=r.levels=mTe(a,n);var l=Z(a||[],function(f){return new wt(f,s,n)},this),u=oP.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 xr("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=Wx(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},Y(this.layoutInfo,r)},t.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=ve(),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(){h8(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 p8(e){var t=0;D(e.children,function(n){p8(n);var i=n.value;q(i)&&(i=i[0]),t+=i});var r=e.value;q(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),q(e.value)?e.value[0]=r:e.value=r}function mTe(e,t){var r=pt(t.get("color")),n=pt(t.get(["aria","decal","decals"]));if(r){e=e||[];var i,a;D(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 yTe=gTe;var xTe=8,Xz=8,I_=5,STe=function(){function e(t){this.group=new Ae,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),Dx(o,f.pos,f.box)}},e.prototype._prepare=function(t,r,n){for(var i=t;i;i=i.parentNode){var a=dr(i.getModel().get("name"),""),o=n.getTextRect(a),s=Math.max(o.width+xTe*2,r.emptyItemWidth);r.totalWidth+=s+Xz,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=Pye(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 Pn({shape:{points:bTe(l,0,y,c,v===h.length-1,v===0)},style:xe(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new rt({style:_t(a,{text:x})}),textConfig:{position:"inside"},z2:Wf*1e4,onclick:Pe(s,m)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=_t(o,{text:x}),S.ensureState("emphasis").style=p,Ut(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),_Te(S,t,m),l+=y+Xz}},e.prototype.remove=function(){this.group.removeAll()},e}();function bTe(e,t,r,n,i,a){var o=[[i?e:e-I_,t],[e+r,t],[e+r,t+n],[i?e:e-I_,t+n]];return!a&&o.splice(2,0,[e+r+I_,t+n/2]),!i&&o.push([e,t+n/2]),o}function _Te(e,t,r){Ie(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&&Wx(r,t)}}const wTe=STe;var CTe=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;iKz||Math.abs(r.dy)>Kz)){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=_i();Na(u,u,[-n,-i]),q2(u,u,[r.scale,r.scale]),Na(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&&f0(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 wTe(this.group))).render(r,n,i.node,function(o){a._state!=="animating"&&(sP(r.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Gd(),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 Gd(){return{nodeGroup:[],background:[],content:[]}}function kTe(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=j("nodeGroup",sA);if(!M)return;if(l.add(M),M.x=c.x||0,M.y=c.y||0,M.markRedraw(),P0(M).nodeWidth=h,P0(M).nodeHeight=p,c.isAboveViewRoot)return M;var I=j("background",Zz,u,MTe);I&&V(M,I,_&&c.upperLabelHeight);var P=d.getModel("emphasis"),k=P.get("focus"),R=P.get("blurScope"),z=P.get("disabled"),$=k==="ancestor"?o.getAncestorsIndices():k==="descendant"?o.getDescendantIndices():k;if(_)Rp(M)&&Ul(M,!1),I&&(Ul(I,!z),f.setItemGraphicEl(o.dataIndex,I),AT(I,$,R));else{var N=j("content",Zz,u,ITe);N&&L(M,N),I.disableMorphing=!0,I&&Rp(I)&&Ul(I,!1),Ul(M,!z),f.setItemGraphicEl(o.dataIndex,M),AT(M,$,R)}return M;function V(ee,te,ie){var re=Ie(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,fe=eB(b);fe.fill=J;var de=Tl(w);de.fill=w.get("borderColor");var ke=Tl(C);ke.fill=C.get("borderColor");var We=Tl(A);if(We.fill=A.get("borderColor"),ie){var Ge=h-2*v;U(te,J,Q.opacity,{x:v,y:0,width:Ge,height:S})}else te.removeTextContent();te.setStyle(fe),te.ensureState("emphasis").style=de,te.ensureState("blur").style=ke,te.ensureState("select").style=We,Su(te)}ee.add(te)}function L(ee,te){var ie=Ie(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"),fe=J.fill,de=eB(b);de.fill=fe,de.decal=J.decal;var ke=Tl(w),We=Tl(C),Ge=Tl(A);U(te,fe,J.opacity,null),te.setStyle(de),te.ensureState("emphasis").style=ke,te.ensureState("blur").style=We,te.ensureState("select").style=Ge,Su(te)}ee.add(te)}function G(ee){!ee.invisible&&a.push(ee)}function U(ee,te,ie,re){var Q=d.getModel(re?Jz:Qz),J=dr(d.get("name"),null),fe=Q.getShallow("show");Br(ee,yr(d,re?Jz:Qz),{defaultText:fe?J:null,inheritColor:te,defaultOpacity:ie,labelFetcher:e,labelDataIndex:o.dataIndex});var de=ee.getTextContent();if(de){var ke=de.style,We=U2(ke.padding||0);re&&(ee.setTextConfig({layoutRect:re}),de.disableLabelLayout=!0),de.beforeUpdate=function(){var at=Math.max((re?re.width:ee.shape.width)-We[1]-We[3],0),ot=Math.max((re?re.height:ee.shape.height)-We[0]-We[2],0);(ke.width!==at||ke.height!==ot)&&de.setStyle({width:at,height:ot})},ke.truncateMinChar=2,ke.lineOverflow="truncate",B(ke,re,c);var Ge=de.getState("emphasis");B(Ge?Ge.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 j(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 wi&&(Q.z2=DTe(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=Y({},te.shape)}function W(ee,te){var ie=ee[m]={},re=o.parentNode,Q=te instanceof Ae;if(re&&(!n||n.direction==="drillDown")){var J=0,fe=0,de=i.background[re.getRawIndex()];!n&&de&&de.oldShape&&(J=de.oldShape.width,fe=de.oldShape.height),Q?(ie.oldX=0,ie.oldY=fe):ie.oldShape={x:J,y:fe,width:0,height:0}}ie.fadein=!Q}}function DTe(e,t){return e*ATe+t}const RTe=PTe;var jp=D,LTe=Se,k0=-1,lP=function(){function e(t){var r=t.mappingMethod,n=t.type,i=this.option=we(t);this.type=n,this.mappingMethod=r,this._normalizeData=NTe[r];var a=e.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[r],r==="piecewise"?(P_(i),ETe(i)):r==="category"?i.categories?OTe(i):P_(i,!0):(ln(r!=="linear"||i.dataExtent),P_(i))}return e.prototype.mapValueToVisual=function(t){var r=this._normalizeData(t);return this._normalizedToVisual(r,t)},e.prototype.getNormalizer=function(){return ue(this._normalizeData,this)},e.listVisualTypes=function(){return He(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,r,n){Se(t)?D(t,r,n):r.call(n,t)},e.mapVisual=function(t,r,n){var i,a=q(t)?[]:Se(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&&jp(e.visualHandlers,function(i,a){t.hasOwnProperty(a)&&(r[a]=t[a],n=!0)}),n?r:null},e.prepareVisualTypes=function(t){if(q(t))t=t.slice();else if(LTe(t)){var r=[];jp(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 P_(e,t){var r=e.visual,n=[];Se(r)?jp(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]),v8(e,n)}function tm(e){return{applyVisual:function(t,r,n){var i=this.mapValueToVisual(t);n("color",e(r("color"),i))},_normalizedToVisual:lA([0,1])}}function tB(e){var t=this.option.visual;return t[Math.round(ct(e,[0,1],[0,t.length-1],!0))]||{}}function Hd(e){return function(t,r,n){n(e,this.mapValueToVisual(t))}}function dh(e){var t=this.option.visual;return t[this.option.loop&&e!==k0?e%t.length:e]}function Al(){return this.option.visual[0]}function lA(e){return{linear:function(t){return ct(t,e,this.option.visual,!0)},category:dh,piecewise:function(t,r){var n=uA.call(this,r);return n==null&&(n=ct(t,e,this.option.visual,!0)),n},fixed:Al}}function uA(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var n=lP.findPieceIndex(e,r),i=r[n];if(i&&i.visual)return i.visual[this.type]}}function v8(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=Z(t,function(r){var n=Vn(r);return n||[0,0,0,1]})),t}var NTe={linear:function(e){return ct(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,r=lP.findPieceIndex(e,t,!0);if(r!=null)return ct(r,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??k0},fixed:rr};function rm(e,t,r){return e?t<=r:t=r.length||v===r[v.depth]){var m=GTe(i,l,v,g,p,n);m8(v,m,r,n)}})}}}function FTe(e,t,r){var n=Y({},t),i=r.designatedVisualItemStyle;return D(["color","colorAlpha","colorSaturation"],function(a){i[a]=t[a];var o=e.get(a);i[a]=null,o!=null&&(n[a]=o)}),n}function rB(e){var t=k_(e,"color");if(t){var r=k_(e,"colorAlpha"),n=k_(e,"colorSaturation");return n&&(t=Nh(t,null,null,n)),r&&(t=Qy(t,r)),t}}function $Te(e,t){return t!=null?Nh(t,null,null,e):null}function k_(e,t){var r=e[t];if(r!=null&&r!=="none")return r}function VTe(e,t,r,n,i,a){if(!(!a||!a.length)){var o=D_(t,"color")||i.color!=null&&i.color!=="none"&&(D_(t,"colorAlpha")||D_(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 g8(d).drColorMappingBy=c,d}}}function D_(e,t){var r=e.get(t);return q(r)&&r.length?{name:t,range:r}:null}function GTe(e,t,r,n,i,a){var o=Y({},t);if(i){var s=i.type,l=s==="color"&&g8(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 Yp=Math.max,D0=Math.min,nB=Cr,uP=D,y8=["itemStyle","borderWidth"],HTe=["itemStyle","gapWidth"],WTe=["upperLabel","show"],UTe=["upperLabel","height"];const jTe={seriesType:"treemap",reset:function(e,t,r,n){var i=r.getWidth(),a=r.getHeight(),o=e.option,s=hr(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],u=ne(nB(s.width,l[0]),i),c=ne(nB(s.height,l[1]),a),f=n&&n.type,d=["treemapZoomToNode","treemapRootToNode"],h=Up(n,d,e),p=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,v=e.getViewRoot(),g=d8(v);if(f!=="treemapMove"){var m=f==="treemapZoomToNode"?QTe(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),x8(v,x,!1,0),S=v.getLayout(),uP(g,function(b,w){var C=(g[w+1]||v).getValue();b.setLayout(Y({dataExtent:[C,C],borderWidth:0,upperHeight:0},S))})}var _=e.getData().tree.root;_.setLayout(JTe(s,p,h),!0),e.setLayoutInfo(s),S8(_,new Ne(-s.x,-s.y,i,a),g,v,0)}};function x8(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(y8),u=s.get(HTe)/2,c=b8(s),f=Math.max(l,c),d=l-u,h=f-u;e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),i=Yp(i-2*d,0),a=Yp(a-d-h,0);var p=i*a,v=YTe(e,s,p,t,r,n);if(v.length){var g={x:d,y:h,width:i,height:a},m=D0(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=KTe(x,m,t.squareRatio);w<=y?(S++,y=w):(x.area-=x.pop().getLayout().area,iB(x,m,g,u,!1),m=D0(g.width,g.height),x.length=x.area=0,y=1/0)}if(x.length&&iB(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 KTe(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?Yp(u*n/l,l/(u*i)):1/0}function iB(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;fgE&&(u=gE),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}(Ae);const hP=yAe;var xAe=function(){function e(t){this.group=new Ae,this._LineCtor=t||hP}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=cB(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=cB(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!SAe(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0}function cB(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:yr(t)}}function fB(e){return isNaN(e[0])||isNaN(e[1])}function N_(e){return e&&!fB(e[0])&&!fB(e[1])}const pP=xAe;var z_=[],B_=[],F_=[],lc=_r,$_=eu,dB=Math.abs;function hB(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){z_[0]=lc(n[0],i[0],a[0],c),z_[1]=lc(n[1],i[1],a[1],c);var f=dB($_(z_,t)-l);f=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function V_(e,t){var r=[],n=Ap,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=[ro(u[0]),ro(u[1])],u[2]&&u.__original.push(ro(u[2])));var d=u.__original;if(u[2]!=null){if(en(i[0],d[0]),en(i[1],d[2]),en(i[2],d[1]),c&&c!=="none"){var h=ph(s.node1),p=hB(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=ph(s.node2),p=hB(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]}en(u[0],i[0]),en(u[1],i[2]),en(u[2],i[1])}else{if(en(a[0],d[0]),en(a[1],d[1]),Hl(o,a[1],a[0]),Vf(o,o),c&&c!=="none"){var h=ph(s.node1);QC(a[0],a[0],o,h*t)}if(f&&f!=="none"){var h=ph(s.node2);QC(a[1],a[1],o,-h*t)}en(u[0],a[0]),en(u[1],a[1])}})}function pB(e){return e.type==="view"}var bAe=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 Iv,a=new pP,o=this.group;this._controller=new Rv(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(pB(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):it(u,c,r)}V_(r.getGraph(),hh(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),dP(r,"symbolSize",x,[A.offsetX,A.offsetY]),a.updateLayout(r);break;case"none":default:f.setItemLayout(S,[_.x,_.y]),fP(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"&&(Ie(_).focus=x.getAdjacentDataIndices())}}),f.graph.eachEdge(function(x){var S=x.getGraphicEl(),_=x.getModel().get(["emphasis","focus"]);S&&_==="adjacency"&&(Ie(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){T8(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)&&!Gx(u,i,r)}),!pB(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){tP(s,u.dx,u.dy),i.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){rP(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(),V_(r.getGraph(),hh(r)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),i=hh(r);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},t.prototype.updateLayout=function(r){V_(r.getGraph(),hh(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 _Ae=bAe;function uc(e){return"_EC_"+e}var wAe=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[uc(t)]){var i=new Ml(t,r);return i.hostGraph=this,this.nodes.push(i),n[uc(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[uc(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 Ml||(t=i[uc(t)]),r instanceof Ml||(r=i[uc(r)]),!(!t||!r)){var o=t.id+"-"+r.id,s=new M8(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 Ml&&(t=t.id),r instanceof Ml&&(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 Ml||(r=this._nodesMap[uc(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)}}}lr(Ml,I8("hostGraph","data"));lr(M8,I8("hostGraph","edgeData"));const CAe=wAe;function P8(e,t,r,n,i){for(var a=new CAe(n),o=0;o "+d)),u++)}var h=r.get("coordinateSystem"),p;if(h==="cartesian2d"||h==="polar")p=Ao(e,r);else{var v=_v.get(h),g=v?v.dimensions||[]:[];ze(g,"value")<0&&g.concat(["value"]);var m=Cv(e,{coordDimensions:g,encodeDefine:r.getEncode()}).dimensions;p=new sn(m,r),p.initData(e)}var y=new sn(["value"],r);return y.initData(l,s),i&&i(p,y),c8({mainData:p,struct:a,structAttr:"graph",datas:{node:p,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var TAe=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 Dv(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),mu(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){oAe(this);var s=P8(a,i,this,!0,l);return D(s.edges,function(u){sAe(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),xr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=KW({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:Y({value:0},i)}),n=new sn(["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 AAe=TAe;var MAe={type:"graphRoam",event:"graphRoam",update:"none"};function IAe(e){e.registerChartView(_Ae),e.registerSeriesModel(AAe),e.registerProcessor(tAe),e.registerVisual(rAe),e.registerVisual(nAe),e.registerLayout(lAe),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,cAe),e.registerLayout(dAe),e.registerCoordinateSystem("graphView",{dimensions:Lv.dimensions,create:pAe}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},rr),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},rr),e.registerAction(MAe,function(t,r,n){r.eachComponent({mainType:"series",query:t},function(i){var a=i.coordinateSystem,o=iP(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var PAe=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),kAe=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 PAe},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}($e);const DAe=kAe;function RAe(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 im(e,t){var r=e==null?"":e+"";return t&&(oe(t)?r=t.replace("{value}",r):me(t)&&(r=t(e))),r}var LAe=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=RAe(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?A0:In,p=f.get("show"),v=f.getModel("lineStyle"),g=v.get("width"),m=[u,c];s6(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&&(j+=Math.PI)):B==="tangential"?j=-C-Math.PI/2:nt(B)&&(j=B*Math.PI/180),j===0?f.add(new rt({style:_t(x,{text:V,x:G,y:U,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:k<-.4?"left":k>.4?"right":"center"},{inheritColor:L}),silent:!0})):f.add(new rt({style:_t(x,{text:V,x:G,y:U,verticalAlign:"middle",align:"center"},{inheritColor:L}),silent:!0,originX:G,originY:U,rotation:j}))}if(y.get("show")&&z!==S){var $=y.get("distance");$=$?$+c:c;for(var X=0;X<=_;X++){k=Math.cos(C),R=Math.sin(C);var W=new Tr({shape:{x1:k*(p-$)+d,y1:R*(p-$)+h,x2:k*(p-w-$)+d,y2:R*(p-w-$)+h},silent:!0,style:I});I.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 I=y.getItemModel(T),P=I.getModel("pointer"),k=ne(P.get("width"),o.r),R=ne(P.get("length"),o.r),z=r.get(["pointer","icon"]),$=P.get("offsetCenter"),N=ne($[0],o.r),V=ne($[1],o.r),L=P.get("keepAspect"),G;return z?G=sr(z,N-k/2,V-R,k,R,null,L):G=new DAe({shape:{angle:-Math.PI/2,width:k,r:R,x:N,y:V}}),G.rotation=-(M+Math.PI/2),G.x=o.cx,G.y=o.cy,G}function A(T,M){var I=g.get("roundCap"),P=I?A0:In,k=g.get("overlap"),R=k?g.get("width"):c/y.count(),z=k?o.r-R:o.r-(T+1)*R,$=k?o.r:o.r-T*R,N=new P({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:z,r:$}});return k&&(N.z2=_-y.get(x,T)%_),N}(m||v)&&(y.diff(d).add(function(T){var M=y.get(x,T);if(v){var I=C(T,s);Lt(I,{rotation:-((isNaN(+M)?w[0]:ct(M,b,w,!0))+Math.PI/2)},r),f.add(I),y.setItemGraphicEl(T,I)}if(m){var P=A(T,s),k=g.get("clip");Lt(P,{shape:{endAngle:ct(M,b,w,k)}},r),f.add(P),wT(r.seriesIndex,y.dataType,T,P),p[T]=P}}).update(function(T,M){var I=y.get(x,T);if(v){var P=d.getItemGraphicEl(M),k=P?P.rotation:s,R=C(T,k);R.rotation=k,it(R,{rotation:-((isNaN(+I)?w[0]:ct(I,b,w,!0))+Math.PI/2)},r),f.add(R),y.setItemGraphicEl(T,R)}if(m){var z=h[M],$=z?z.shape.endAngle:s,N=A(T,$),V=g.get("clip");it(N,{shape:{endAngle:ct(I,b,w,V)}},r),f.add(N),wT(r.seriesIndex,y.dataType,T,N),p[T]=N}}).execute(),y.each(function(T){var M=y.getItemModel(T),I=M.getModel("emphasis"),P=I.get("focus"),k=I.get("blurScope"),R=I.get("disabled");if(v){var z=y.getItemGraphicEl(T),$=y.getItemVisual(T,"style"),N=$.fill;if(z instanceof Fr){var V=z.style;z.useStyle(Y({image:V.image,x:V.x,y:V.y,width:V.width,height:V.height},$))}else z.useStyle($),z.type!=="pointer"&&z.setColor(N);z.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),z.style.fill==="auto"&&z.setStyle("fill",a(ct(y.get(x,T),b,[0,1],!0))),z.z2EmphasisLift=0,zr(z,M),Ut(z,P,k,R)}if(m){var L=p[T];L.useStyle(y.getItemVisual(T,"style")),L.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),L.z2EmphasisLift=0,zr(L,M),Ut(L,P,k,R)}}),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=sr(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 Ae,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 Ae,_=a(ct(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 I=M.get("offsetCenter"),P=o.cx+ne(I[0],o.r),k=o.cy+ne(I[1],o.r),R=ne(M.get("width"),o.r),z=ne(M.get("height"),o.r),$=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:P,y:k,text:im(x,N),width:isNaN(R)?null:R,height:isNaN(z)?null:z,align:"center",verticalAlign:"middle"},{inheritColor:$})}),J6(T,{normal:M},x,function(L){return im(L,N)}),v&&eW(T,m,l,r,{getFormattedLabel:function(L,G,U,B,j,X){return im(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 EAe=LAe;var OAe=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 rd(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 NAe=OAe;function zAe(e){e.registerChartView(EAe),e.registerSeriesModel(NAe)}var BAe=["itemStyle","opacity"],FAe=function(e){H(t,e);function t(r,n){var i=e.call(this)||this,a=i,o=new kn,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(BAe);c=c??1,i||Zi(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)):it(a,{style:{opacity:c},shape:{points:l.points}},o,n),zr(a,s),this._updateLabel(r,n),Ut(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,yr(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},it(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),jI(i,YI(l),{stroke:d})},t}(Pn),$Ae=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 FAe(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);Lp(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 VAe=$Ae;var GAe=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 Dv(ue(this.getData,this),ue(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.getInitialData=function(r,n){return rd(this,{coordDimensions:["value"],encodeDefaulter:Pe(bI,this)})},t.prototype._defaultLabelLine=function(r){mu(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 HAe=GAe;function WAe(e,t){return hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function UAe(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();ocMe)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||!H_(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 H_(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}const hMe=fMe;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(){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){D(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){r.hasOwnProperty(n)&&(this.option[n]=r[n])},this)},t.prototype._initDimensions=function(){var r=this.dimensions=[],n=this.parallelAxisIndex=[],i=ft(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);D(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 vMe=pMe;var gMe=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}(Qi);const mMe=gMe;function zu(e,t,r,n,i,a){e=e||0;var o=r[1]-r[0];if(i!=null&&(i=cc(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=cc(s,[0,o]),i=a=cc(s,[i,a]),n=0}t[0]=cc(t[0],r),t[1]=cc(t[1],r);var l=W_(t,n);t[n]+=e;var u=i||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=cc(t[n],c);var f;return f=W_(t,n),i!=null&&(f.sign!==l.sign||f.spana&&(t[1-n]=t[n]+f.sign*a),t}function W_(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 cc(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var U_=D,D8=Math.min,R8=Math.max,mB=Math.floor,yMe=Math.ceil,yB=Xt,xMe=Math.PI,SMe=function(){function e(t,r,n){this.type="parallel",this._axesMap=ve(),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;U_(i,function(o,s){var l=a[s],u=r.getComponent("parallelAxis",l),c=this._axesMap.set(o,new mMe(o,Fx(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();U_(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),bf(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,r){this._rect=hr(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=am(t.get("axisExpandWidth"),l),f=am(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=am(h[1]-h[0],l),h[1]=h[0]+p;else{p=am(c*(f-1),l);var v=t.get("axisExpandCenter")||mB(u/2);h=[c*v-p/2],h[1]=h[0]+p}var g=(s-p)/(u-f);g<3&&(g=0);var m=[mB(yB(h[0]/c,1))+1,yMe(yB(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])}),U_(n,function(o,s){var l=(i.axisExpandable?_Me:bMe)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:xMe/2,vertical:0},f=[u[a].x+t.x,u[a].y+t.y],d=c[a],h=_i();Du(h,h,d),Na(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=[];D(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=[R8(0,p-h/2)],i[1]=D8(o[1],i[0]+h),i[0]=i[1]-h}return{axisExpandWindow:i,behavior:u}},e}();function am(e,t){return D8(R8(e,t[0]),t[1])}function bMe(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function _Me(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--)gi(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;aPMe}function F8(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function $8(e,t,r,n){var i=new Ae;return i.add(new Qe({name:"main",style:yP(r),silent:!0,draggable:!0,cursor:"move",drift:Pe(_B,e,t,i,["n","s","w","e"]),ondragend:Pe(wu,t,{isEnd:!0})})),D(n,function(a){i.add(new Qe({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Pe(_B,e,t,i,a),ondragend:Pe(wu,t,{isEnd:!0})}))}),i}function V8(e,t,r,n){var i=n.brushStyle.lineWidth||0,a=Cf(i,kMe),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;Ua(e,t,"main",o,s,p,v),n.transformable&&(Ua(e,t,"w",l,u,a,m),Ua(e,t,"e",d,u,a,m),Ua(e,t,"n",l,u,g,a),Ua(e,t,"s",l,h,g,a),Ua(e,t,"nw",l,u,a,a),Ua(e,t,"ne",d,u,a,a),Ua(e,t,"sw",l,h,a,a),Ua(e,t,"se",d,h,a,a))}function pA(e,t){var r=t.__brushOption,n=r.transformable,i=t.childAt(0);i.useStyle(yP(r)),i.attr({silent:!n,cursor:n?"move":"default"}),D([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?vA(e,a[0]):zMe(e,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?RMe[s]+"-resize":null})})}function Ua(e,t,r,n,i,a,o){var s=t.childOfName(r);s&&s.setShape(FMe(xP(e,t,[[n,i],[n+a,i+o]])))}function yP(e){return xe({strokeNoScale:!0},e.brushStyle)}function G8(e,t,r,n){var i=[Xp(e,r),Xp(t,n)],a=[Cf(e,r),Cf(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function NMe(e){return au(e.group)}function vA(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=Cx(r[t],NMe(e));return n[i]}function zMe(e,t){var r=[vA(e,t[0]),vA(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function _B(e,t,r,n,i,a){var o=r.__brushOption,s=e.toRectRange(o.range),l=H8(t,i,a);D(n,function(u){var c=DMe[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(G8(s[0][0],s[1][0],s[0][1],s[1][1])),vP(t,r),wu(t,{isEnd:!1})}function BMe(e,t,r,n){var i=t.__brushOption.range,a=H8(e,r,n);D(i,function(o){o[0]+=a[0],o[1]+=a[1]}),vP(e,t),wu(e,{isEnd:!1})}function H8(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 xP(e,t,r){var n=B8(e,t);return n&&n!==_u?n.clipPath(r,e._transform):we(r)}function FMe(e){var t=Xp(e[0][0],e[1][0]),r=Xp(e[0][1],e[1][1]),n=Cf(e[0][0],e[1][0]),i=Cf(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:i-r}}function $Me(e,t,r){if(!(!e._brushType||GMe(e,t.offsetX,t.offsetY))){var n=e._zr,i=e._covers,a=mP(e,t,r);if(!e._dragging)for(var o=0;on.getWidth()||r<0||r>n.getHeight()}var jx={lineX:TB(0),lineY:TB(1),rect:{createCover:function(e,t){function r(n){return n}return $8({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=F8(e);return G8(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){V8(e,t,r,n)},updateCommon:pA,contain:mA},polygon:{createCover:function(e,t){var r=new Ae;return r.add(new kn({name:"main",style:yP(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Pn({name:"main",draggable:!0,drift:Pe(BMe,e,t),ondragend:Pe(wu,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:xP(e,t,r)})},updateCommon:pA,contain:mA}};function TB(e){return{createCover:function(t,r){return $8({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=F8(t),n=Xp(r[0][e],r[1][e]),i=Cf(r[0][e],r[1][e]);return[n,i]},updateCoverShape:function(t,r,n,i){var a,o=B8(t,r);if(o!==_u&&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(),V8(t,r,l,i)},updateCommon:pA,contain:mA}}const SP=EMe;function U8(e){return e=bP(e),function(t){return X6(t,e)}}function j8(e,t){return e=bP(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 Y8(e,t,r){var n=bP(e);return function(i,a){return n.contain(a[0],a[1])&&!Gx(i,t,r)}}function bP(e){return Ne.create(e)}var HMe=["axisLine","axisTickLabel","axisName"],WMe=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 SP(n.getZr())).on("brush",ue(this._onBrush,this))},t.prototype.render=function(r,n,i,a){if(!UMe(r,n,a)){this.axisModel=r,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ae,this.group.add(this._axisGroup),!!r.get("show")){var s=YMe(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),c=u.width,f=r.axis.dim,d=l.getAxisLayout(f),h=Y({strokeContainThreshold:c},d),p=new So(r,h);D(HMe,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(h,u,r,s,c,i),xv(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:U8(f),isTargetByCursor:Y8(f,s,a),getLinearBrushOtherExtent:j8(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(jMe(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}(jt);function UMe(e,t,r){return r&&r.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function jMe(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 YMe(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}const qMe=WMe;var XMe={type:"axisAreaSelect",event:"axisAreaSelected"};function ZMe(e){e.registerAction(XMe,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 KMe={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function q8(e){e.registerComponentView(hMe),e.registerComponentModel(vMe),e.registerCoordinateSystem("parallel",AMe),e.registerPreprocessor(sMe),e.registerComponentModel(xB),e.registerComponentView(qMe),wf(e,"parallel",xB,KMe),ZMe(e)}function QMe(e){Fe(q8),e.registerChartView(JAe),e.registerSeriesModel(nMe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,oMe)}var JMe=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}(),e2e=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new JMe},t.prototype.buildPath=function(r,n){var i=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(){mo(this)},t.prototype.downplay=function(){yo(this)},t}($e),t2e=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 e2e,g=Ie(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"),I=p.getLayout(),P,k,R,z,$,N,V,L;v.shape.extent=Math.max(1,I.dy),v.shape.orient=h,h==="vertical"?(P=(b!=null?b*u:S.x)+I.sy,k=(w!=null?w*c:S.y)+S.dy,R=(T!=null?T*u:C.x)+I.ty,z=M!=null?M*c:C.y,$=P,N=k*(1-x)+z*x,V=R,L=k*x+z*(1-x)):(P=(b!=null?b*u:S.x)+S.dx,k=(w!=null?w*c:S.y)+I.sy,R=T!=null?T*u:C.x,z=(M!=null?M*c:C.y)+I.ty,$=P*(1-x)+R*x,N=k,V=P*x+R*(1-x),L=z),v.setShape({x1:P,y1:k,x2:R,y2:z,cpx1:$,cpy1:N,cpx2:V,cpy2:L}),v.useStyle(y.getItemStyle()),AB(v.style,h,p);var G=""+m.get("value"),U=yr(m,"edgeLabel");Br(v,U,{labelFetcher:{getFormattedLabel:function(X,W,ee,te,ie,re){return r.getFormattedLabel(X,W,"edge",te,Pa(ie,U.normal&&U.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 AB(W,h,p),W}),s.add(v),d.setItemGraphicEl(p.dataIndex,v);var j=B.get("focus");Ut(v,j==="adjacency"?p.getAdjacentDataIndices():j==="trajectory"?p.getTrajectoryDataIndices():j,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,yr(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),Ie(S).dataType="node";var _=x.get("focus");Ut(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(r2e(s.getBoundingRect(),r,function(){s.removeClipPath()})),this._data=r.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(Tt);function AB(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 yv(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:i,offset:1}]))}}function r2e(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 n2e=t2e;var i2e=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=P8(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 xr("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 xr("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 a2e=i2e;function o2e(e,t){e.eachSeriesByType("sankey",function(r){var n=r.get("nodeWidth"),i=r.get("nodeGap"),a=s2e(r,t);r.layoutInfo=a;var o=a.width,s=a.height,l=r.getGraph(),u=l.nodes,c=l.edges;u2e(u);var f=ft(u,function(v){return v.getLayout().value===0}),d=f.length!==0?0:r.get("layoutIterations"),h=r.get("orient"),p=r.get("nodeAlign");l2e(u,c,n,i,o,s,d,h,p)})}function s2e(e,t){return hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function l2e(e,t,r,n,i,a,o,s,l){c2e(e,t,r,i,a,s,l),p2e(e,t,a,i,n,o,s),w2e(e,s)}function u2e(e){D(e,function(t){var r=bs(t.outEdges,R0),n=bs(t.inEdges,R0),i=t.getValue()||0,a=Math.max(r,n,i);t.setLayout({value:a},!0)})}function c2e(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"&&f2e(e,o,a,w);var C=a==="vertical"?(i-r)/w:(n-r)/w;h2e(e,C,a)}function X8(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function f2e(e,t,r,n){if(t==="right"){for(var i=[],a=e,o=0;a.length;){for(var s=0;s0;a--)l*=.99,m2e(s,l,o),j_(s,i,r,n,o),_2e(s,l,o),j_(s,i,r,n,o)}function v2e(e,t){var r=[],n=t==="vertical"?"y":"x",i=xT(e,function(a){return a.getLayout()[n]});return i.keys.sort(function(a,o){return a-o}),D(i.keys,function(a){r.push(i.buckets.get(a))}),r}function g2e(e,t,r,n,i,a){var o=1/0;D(e,function(s){var l=s.length,u=0;D(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 m2e(e,t,r){D(e.slice().reverse(),function(n){D(n,function(i){if(i.outEdges.length){var a=bs(i.outEdges,y2e,r)/bs(i.outEdges,R0);if(isNaN(a)){var o=i.outEdges.length;a=o?bs(i.outEdges,x2e,r)/o:0}if(r==="vertical"){var s=i.getLayout().x+(a-Os(i,r))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-Os(i,r))*t;i.setLayout({y:l},!0)}}})})}function y2e(e,t){return Os(e.node2,t)*e.getValue()}function x2e(e,t){return Os(e.node2,t)}function S2e(e,t){return Os(e.node1,t)*e.getValue()}function b2e(e,t){return Os(e.node1,t)}function Os(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function R0(e){return e.getValue()}function bs(e,t,r){for(var n=0,i=e.length,a=-1;++ao&&(o=l)}),D(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&&D(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function T2e(e){e.registerChartView(n2e),e.registerSeriesModel(a2e),e.registerLayout(o2e),e.registerVisual(C2e),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 Z8=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=[];D(g,function(S,_){var b;q(S)?(b=S.slice(),S.unshift(_)):q(S.value)?(b=Y({},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:S0(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:S0(v),dimsDef:y.slice()}];return rd(this,{coordDimensions:x,dimensionsCount:y.length+1,encodeDefaulter:Pe(_W,x,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),K8=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);lr(K8,Z8,!0);const A2e=K8;var M2e=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=MB(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?(Zi(f),Q8(d,f,a,u)):f=MB(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),I2e=function(){function e(){}return e}(),P2e=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 I2e},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 z2e={type:"echarts:boxplot",transform:function(t){var r=t.upstream;if(r.sourceFormat!==Kr){var n="";st(n)}var i=N2e(r.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function B2e(e){e.registerSeriesModel(A2e),e.registerChartView(D2e),e.registerLayout(R2e),e.registerTransform(z2e)}var F2e=["color","borderColor"],$2e=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){Hs(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&&IB(u,f))return;var d=Y_(f,c,!0);Lt(d,{shape:{points:f.ends}},r,c),q_(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&&IB(u,h)){a.remove(d);return}d?(it(d,{shape:{points:h.ends}},r,c),Zi(d)):d=Y_(h),q_(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(),PB(r,this.group);var n=r.get("clip",!0)?Vx(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=Y_(s);q_(l,i,o,a),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(r,n){PB(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),V2e=function(){function e(){}return e}(),G2e=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 V2e},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}($e);function Y_(e,t,r){var n=e.ends;return new G2e({shape:{points:r?H2e(n,e):n},z2:100})}function IB(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(F2e);t.useStyle(a),t.style.fill=null,t.style.stroke=i}const U2e=$2e;var J8=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);lr(J8,Z8,!0);const j2e=J8;function Y2e(e){!e||!q(e.series)||D(e.series,function(t){Se(t)&&t.type==="k"&&(t.type="candlestick")})}var q2e=["itemStyle","borderColor"],X2e=["itemStyle","borderColor0"],Z2e=["itemStyle","borderColorDoji"],K2e=["itemStyle","color"],Q2e=["itemStyle","color0"],J2e={seriesType:"candlestick",plan:Jf(),performRawSeries:!0,reset:function(e,t){function r(a,o){return o.get(a>0?K2e:Q2e)}function n(a,o){return o.get(a===0?Z2e:a>0?q2e:X2e)}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");Y(f,c)}}}}}};const eIe=J2e;var tIe={seriesType:"candlestick",plan:Jf(),reset:function(e){var t=e.coordinateSystem,r=e.getData(),n=rIe(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=$(C,x),M=$(A,x),I=$(b,x),P=$(w,x),k=[];N(k,M,0),N(k,T,1),k.push(L(P),L(M),L(I),L(T));var R=g.getItemModel(m),z=!!R.get(["itemStyle","borderColorDoji"]);g.setItemLayout(m,{sign:kB(y,m,S,_,c,z),initBaseline:S>_?M[a]:T[a],ends:k,brushRect:V(b,w,x)})}function $(G,U){var B=[];return B[i]=U,B[a]=G,isNaN(U)||isNaN(G)?[NaN,NaN]:t.dataToPoint(B)}function N(G,U,B){var j=U.slice(),X=U.slice();j[i]=Ym(j[i]+n/2,1,!1),X[i]=Ym(X[i]-n/2,1,!0),B?G.push(j,X):G.push(X,j)}function V(G,U,B){var j=$(G,B),X=$(U,B);return j[i]-=n/2,X[i]-=n/2,{x:j[0],y:j[1],width:n,height:X[1]-j[1]}}function L(G){return G[i]=Ym(G[i],1),G}}function p(v,g){for(var m=_a(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),I=w.get(f,b),P=w.get(d,b);if(isNaN(A)||isNaN(I)||isNaN(P)){m[y++]=NaN,y+=3;continue}m[y++]=kB(w,b,T,M,c,C),S[i]=A,S[a]=I,x=t.dataToPoint(S,null,_),m[y++]=x?x[0]:NaN,m[y++]=x?x[1]:NaN,S[a]=P,x=t.dataToPoint(S,null,_),m[y++]=x?x[1]:NaN}g.setLayout("largePoints",m)}}};function kB(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 rIe(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 nIe=tIe;function iIe(e){e.registerChartView(U2e),e.registerSeriesModel(j2e),e.registerPreprocessor(Y2e),e.registerVisual(eIe),e.registerLayout(nIe)}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 aIe=function(e){H(t,e);function t(r,n){var i=e.call(this)||this,a=new Mv(r,n),o=new Ae;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;me(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 Jo(r.__p1,r.__cp1)+Jo(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=_r,c=oT;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}(e9);const vIe=pIe;var gIe=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),mIe=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 gIe},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(l6(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 xIe=yIe;var SIe={seriesType:"lines",plan:Jf(),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)&&Vx(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=r9.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 xIe:new pP(o?a?vIe:t9:a?e9:hP),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 _Ie=bIe;var wIe=typeof Uint32Array>"u"?Array:Uint32Array,CIe=typeof Float64Array>"u"?Array:Float64Array;function RB(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),H2([i,r[0],r[1]])}))}var TIe=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||[],RB(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(RB(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=Xy(this._flatCoords,n.flatCoords),this._flatCoordsOffset=Xy(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 AIe=TIe;function om(e){return e instanceof Array||(e=[e,e]),e}var MIe={seriesType:"lines",reset:function(e){var t=om(e.get("symbol")),r=om(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=om(s.getShallow("symbol",!0)),u=om(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 IIe=MIe;function PIe(e){e.registerChartView(_Ie),e.registerSeriesModel(AIe),e.registerLayout(r9),e.registerVisual(IIe)}var kIe=256,DIe=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Ps.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 I=o(x)?l:u;x>0&&(x=x*T+C),_[b++]=I[M],_[b++]=I[M+1],_[b++]=I[M+2],_[b++]=I[M+3]*x*256}else b+=4}return d.putImageData(S,0,0),f},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Ps.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 RIe=DIe;function LIe(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 LB(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var OIe=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()):LB(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&&(LB(o)?this.render(n,i,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,a,r.start,r.end,!0)))},t.prototype.eachRendered=function(r){Hs(this._progressiveEls||this.group,r)},t.prototype._renderOnCartesianAndCalendar=function(r,n,i,a,o){var s=r.coordinateSystem,l=Ou(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"]),_=yr(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]||Rd[1])continue;var z=s.dataToPoint([k,R]);I=new Qe({shape:{x:z[0]-u/2,y:z[1]-c/2,width:u,height:c},style:P})}else{if(isNaN(g.get(T[1],M)))continue;I=new Qe({z2:1,shape:s.dataToRect([g.get(T[0],M)]).contentShape,style:P})}if(g.hasItemOption){var $=g.getItemModel(M),N=$.getModel("emphasis");m=N.getModel("itemStyle").getItemStyle(),y=$.getModel(["blur","itemStyle"]).getItemStyle(),x=$.getModel(["select","itemStyle"]).getItemStyle(),S=$.get(["itemStyle","borderRadius"]),w=N.get("focus"),C=N.get("blurScope"),A=N.get("disabled"),_=yr($)}I.shape.r=S;var V=r.getRawValue(M),L="-";V&&V[2]!=null&&(L=V[2]+""),Br(I,_,{labelFetcher:r,labelDataIndex:M,defaultOpacity:P.opacity,defaultText:L}),I.ensureState("emphasis").style=m,I.ensureState("blur").style=y,I.ensureState("select").style=x,Ut(I,w,C,A),I.incremental=o,o&&(I.states.emphasis.hoverLayer=!0),v.add(I),g.setItemGraphicEl(M,I),this._progressiveEls&&this._progressiveEls.push(I)}},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 RIe;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"?EIe(S,i.option.range):LIe(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 Fr({style:{width:g,height:m,x:d,y:h,image:u.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t}(Tt);const NIe=OIe;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.getInitialData=function(r,n){return Ao(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var r=_v.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 BIe=zIe;function FIe(e){e.registerChartView(NIe),e.registerSeriesModel(BIe)}var $Ie=["itemStyle","borderWidth"],EB=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],K_=new $a,VIe=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:EB[+c],categoryDim:EB[1-+c]};return o.diff(s).add(function(h){if(o.hasValue(h)){var p=NB(o,h),v=OB(o,h,p,d),g=zB(o,d,v);o.setItemGraphicEl(h,g),a.add(g),FB(g,d,v)}}).update(function(h,p){var v=s.getItemGraphicEl(p);if(!o.hasValue(h)){a.remove(v);return}var g=NB(o,h),m=OB(o,h,g,d),y=l9(o,m);v&&y!==v.__pictorialShapeStr&&(a.remove(v),o.setItemGraphicEl(h,null),v=null),v?qIe(v,d,m):v=zB(o,d,m,!0),o.setItemGraphicEl(h,v),v.__pictorialSymbolMeta=m,a.add(v),FB(v,d,m)}).remove(function(h){var p=s.getItemGraphicEl(h);p&&BB(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){BB(a,Ie(o).dataIndex,r,o)}):i.removeAll()},t.type="pictorialBar",t}(Tt);function OB(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};GIe(r,a,i,n,d),HIe(e,t,i,a,o,d.boundingLength,d.pxSign,c,n,d),WIe(r,d.symbolScale,u,n,d);var h=d.symbolSize,p=Lu(r.get("symbolOffset"),h);return UIe(r,h,i,a,o,p,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,n,d),d}function GIe(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(q(o)){var f=[Q_(s,o[0])-l,Q_(s,o[1])-l];f[1]0?1:-1}function Q_(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function HIe(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;q(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 WIe(e,t,r,n,i){var a=e.get($Ie)||0;a&&(K_.attr({scaleX:t[0],scaleY:t[1],rotation:r}),K_.updateTransform(),a/=K_.getLineScale(),a*=t[n.valueDim.index]),i.valueLineWidth=a||0}function UIe(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=YH(n),C=w?n:$B((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?$B((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 I=f.bundlePosition=[];I[d.index]=r[d.xy],I[h.index]=r[h.xy];var P=f.barRectShape=Y({},r);P[h.wh]=p*Math.max(Math.abs(r[h.wh]),Math.abs(M[h.index]+T)),P[d.wh]=r[d.wh];var k=f.clipShape={};k[d.xy]=-r[d.xy],k[d.wh]=c.ecSize[d.wh],k[h.xy]=0,k[h.wh]=r[h.wh]}function n9(e){var t=e.symbolPatternSize,r=sr(e.symbolType,-t/2,-t/2,t,t);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function i9(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(_P(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 a9(e,t,r,n){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?rf(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=n9(r),i.add(a),rf(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 o9(e,t,r){var n=Y({},t.barRectShape),i=e.__pictorialBarRect;i?rf(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 s9(e,t,r,n){if(r.symbolClip){var i=e.__pictorialClipPath,a=Y({},r.clipShape),o=t.valueDim,s=r.animationModel,l=r.dataIndex;if(i)it(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],bv[n?"updateProps":"initProps"](i,{shape:u},s,l)}}}function NB(e,t){var r=e.getItemModel(t);return r.getAnimationDelayParams=jIe,r.isAnimationEnabled=YIe,r}function jIe(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function YIe(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function zB(e,t,r,n){var i=new Ae,a=new Ae;return i.add(a),i.__pictorialBundle=a,a.x=r.bundlePosition[0],a.y=r.bundlePosition[1],r.symbolRepeat?i9(i,t,r):a9(i,t,r),o9(i,r,n),s9(i,t,r,n),i.__pictorialShapeStr=l9(e,r),i.__pictorialSymbolMeta=r,i}function qIe(e,t,r){var n=r.animationModel,i=r.dataIndex,a=e.__pictorialBundle;it(a,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,i),r.symbolRepeat?i9(e,t,r,!0):a9(e,t,r,!0),o9(e,r,!0),s9(e,t,r,!0)}function BB(e,t,r,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var a=[];_P(n,function(o){a.push(o)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),D(a,function(o){Ds(o,{scaleX:0,scaleY:0},r,t,function(){n.parent&&n.parent.remove(n)})}),e.setItemGraphicEl(t,null)}function l9(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function _P(e,t,r){D(e.__pictorialBundle.children(),function(n){n!==e.__pictorialBarRect&&t.call(r,n)})}function rf(e,t,r,n,i,a){t&&e.attr(t),n.symbolClip&&!i?r&&e.attr(r):r&&bv[i?"updateProps":"initProps"](e,r,n.animationModel,n.dataIndex,a)}function FB(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");_P(e,function(v){if(v instanceof Fr){var g=v.style;v.useStyle(Y({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,yr(i),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:_f(t.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:h}),Ut(e,c,f,a.get("disabled"))}function $B(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}const XIe=VIe;var ZIe=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=Ws(T0.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}(T0);const KIe=ZIe;function QIe(e){e.registerChartView(XIe),e.registerSeriesModel(KIe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Pe(HU,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,WU("pictorialBar"))}var JIe=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 xo(this._layersSeries||[],l,d,d),p=[];h.add(ue(v,this,"add")).update(ue(v,this,"update")).remove(ue(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 oPe(e){e.registerChartView(tPe),e.registerSeriesModel(nPe),e.registerLayout(iPe),e.registerProcessor(kv("themeRiver"))}var sPe=2,lPe=4,uPe=function(e){H(t,e);function t(r,n,i,a){var o=e.call(this)||this;o.z2=sPe,o.textConfig={inside:!0},Ie(o).seriesIndex=n.seriesIndex;var s=new rt({z2:lPe,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;Ie(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),f=Y({},c);f.label=null;var d=n.getVisual("style");d.lineJoin="bevel";var h=n.getVisual("decal");h&&(d.decal=Sf(h,o));var p=Zl(l.getModel("itemStyle"),f,!0);Y(f,p),D(un,function(y){var x=s.ensureState(y),S=l.getModel([y,"itemStyle"]);x.style=S.getItemStyle();var _=Zl(S,f);_&&(x.shape=_)}),r?(s.setShape(f),s.shape.r=c.r0,Lt(s,{shape:{r:c.r}},i,n.dataIndex)):(it(s,{shape:f},i),Zi(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;Ut(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"):!I||I==="center"?(s===2*Math.PI&&o.r0===0?T=0:T=(o.r+o.r0)/2,I="center"):I==="left"?(T=o.r0+M,l>Math.PI/2&&(I="right")):I==="right"&&(T=o.r-M,l>Math.PI/2&&(I="left")),S.style.align=I,S.style.verticalAlign=g(y,"verticalAlign")||"middle",S.x=T*u+o.cx,S.y=T*c+o.cy;var P=g(y,"rotate"),k=0;P==="radial"?(k=$i(-l),k>Math.PI/2&&kMath.PI/2?k-=Math.PI:k<-Math.PI/2&&(k+=Math.PI)):nt(P)&&(k=P*Math.PI/180),S.rotation=$i(k)});function g(m,y){var x=m.get(y);return x??a.get(y)}d.dirtyStyle()},t}(In);const GB=uPe;var yA="sunburstRootToNode",HB="sunburstHighlight",cPe="sunburstUnhighlight";function fPe(e){e.registerAction({type:yA,update:"updateView"},function(t,r){r.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(i,a){var o=Up(t,[yA],i);if(o){var s=i.getViewRoot();s&&(t.direction=sP(s,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}}),e.registerAction({type:HB,update:"none"},function(t,r,n){t=Y({},t),r.eachComponent({mainType:"series",subType:"sunburst",query:t},i);function i(a){var o=Up(t,[HB],a);o&&(t.dataIndex=o.node.dataIndex)}n.dispatchAction(Y(t,{type:"highlight"}))}),e.registerAction({type:cPe,update:"updateView"},function(t,r,n){t=Y({},t),n.dispatchAction(Y(t,{type:"downplay"}))})}var dPe=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 xo(x,y,S,S).add(_).update(_).remove(Pe(_,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 GB(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 GB(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";f0(u,c)}}i=!0}})})},t.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:yA,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 hPe=dPe;var pPe=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};u9(i);var a=this._levelModels=Z(r.levels||[],function(l){return new wt(l,this,n)},this),o=oP.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=Wx(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(){h8(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 u9(e){var t=0;D(e.children,function(n){u9(n);var i=n.value;q(i)&&(i=i[0]),t+=i});var r=e.value;q(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),q(e.value)?e.value[0]=r:e.value=r}const vPe=pPe;var WB=Math.PI/180;function gPe(e,t,r){t.eachSeriesByType(e,function(n){var i=n.get("center"),a=n.get("radius");q(a)||(a=[0,a]),q(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")*WB,p=n.get("minAngle")*WB,v=n.getData().tree.root,g=n.getViewRoot(),m=g.depth,y=n.get("sort");y!=null&&c9(g,y);var x=0;D(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,I=function(z,$){if(z){var N=$;if(z!==v){var V=z.getValue(),L=S===0&&T?_:V*_;L1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&oe(s)&&(s=uT(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");Y(u,l)})})}function xPe(e){e.registerChartView(hPe),e.registerSeriesModel(vPe),e.registerLayout(Pe(gPe,"sunburst")),e.registerProcessor(Pe(kv,"sunburst")),e.registerVisual(yPe),fPe(e)}var UB={color:"fill",borderColor:"stroke"},SPe={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},ao=Je(),bPe=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 Ao(null,this)},t.prototype.getDataParams=function(r,n,i){var a=e.prototype.getDataParams.call(this,r,n);return i&&(a.info=ao(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 _Pe=bPe;function wPe(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 CPe(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:ue(wPe,e)}}}function TPe(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 APe(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:ue(TPe,e)}}}function MPe(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 IPe(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:ue(MPe,e)}}}function PPe(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 kPe(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:ue(PPe,e)}}}function DPe(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 f9(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||ce(e,"text")))}function d9(e,t,r){var n=e,i,a,o;if(t==="text")o=n;else{o={},ce(n,"text")&&(o.text=n.text),ce(n,"rich")&&(o.rich=n.rich),ce(n,"textFill")&&(o.fill=n.textFill),ce(n,"textStroke")&&(o.stroke=n.textStroke),ce(n,"fontFamily")&&(o.fontFamily=n.fontFamily),ce(n,"fontSize")&&(o.fontSize=n.fontSize),ce(n,"fontStyle")&&(o.fontStyle=n.fontStyle),ce(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=ce(n,"textPosition");r?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),ce(n,"textPosition")&&(i.position=n.textPosition),ce(n,"textOffset")&&(i.offset=n.textOffset),ce(n,"textRotation")&&(i.rotation=n.textRotation),ce(n,"textDistance")&&(i.distance=n.textDistance)}return jB(o,e),D(o.rich,function(l){jB(l,l)}),{textConfig:i,textContent:a}}function jB(e,t){t&&(t.font=t.textFont||t.font,ce(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),ce(t,"textAlign")&&(e.align=t.textAlign),ce(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),ce(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),ce(t,"textWidth")&&(e.width=t.textWidth),ce(t,"textHeight")&&(e.height=t.textHeight),ce(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),ce(t,"textPadding")&&(e.padding=t.textPadding),ce(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),ce(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),ce(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),ce(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),ce(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),ce(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),ce(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function YB(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";qB(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,D(t.rich,function(s){qB(s,s)}),n}function qB(e,t){t&&(ce(t,"fill")&&(e.textFill=t.fill),ce(t,"stroke")&&(e.textStroke=t.fill),ce(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),ce(t,"font")&&(e.font=t.font),ce(t,"fontStyle")&&(e.fontStyle=t.fontStyle),ce(t,"fontWeight")&&(e.fontWeight=t.fontWeight),ce(t,"fontSize")&&(e.fontSize=t.fontSize),ce(t,"fontFamily")&&(e.fontFamily=t.fontFamily),ce(t,"align")&&(e.textAlign=t.align),ce(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),ce(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),ce(t,"width")&&(e.textWidth=t.width),ce(t,"height")&&(e.textHeight=t.height),ce(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),ce(t,"padding")&&(e.textPadding=t.padding),ce(t,"borderColor")&&(e.textBorderColor=t.borderColor),ce(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),ce(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),ce(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),ce(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),ce(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),ce(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),ce(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),ce(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),ce(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),ce(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var h9={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},XB=He(h9);Oa(za,function(e,t){return e[t]=1,e},{});za.join(", ");var L0=["","style","shape","extra"],Tf=Je();function wP(e,t,r,n,i){var a=e+"Animation",o=Uf(e,n,i)||{},s=Tf(t).userDuring;return o.duration>0&&(o.during=s?ue(NPe,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),Y(o,r[a]),o}function Jm(e,t,r,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=Tf(e),u=t.style;l.userDuring=t.during;var c={},f={};if(BPe(e,t,f),KB("shape",t,f),KB("extra",t,f),!a&&s&&(zPe(e,t,c),ZB("shape",e,t,c),ZB("extra",e,t,c),FPe(e,t,u,c)),f.style=u,RPe(e,f,o),EPe(e,t),s)if(a){var d={};D(L0,function(p){var v=p?t[p]:t;v&&v.enterFrom&&(p&&(d[p]=d[p]||{}),Y(p?d[p]:d,v.enterFrom))});var h=wP("enter",e,t,r,i);h.duration>0&&e.animateFrom(d,h)}else LPe(e,t,i||0,r,c);p9(e,t),u?e.dirty():e.markRedraw()}function p9(e,t){for(var r=Tf(e).leaveToProps,n=0;n0&&e.animateFrom(i,a)}}function EPe(e,t){ce(t,"silent")&&(e.silent=t.silent),ce(t,"ignore")&&(e.ignore=t.ignore),e instanceof wi&&ce(t,"invisible")&&(e.invisible=t.invisible),e instanceof $e&&ce(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var aa={},OPe={setTransform:function(e,t){return aa.el[e]=t,this},getTransform:function(e){return aa.el[e]},setShape:function(e,t){var r=aa.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){var t=aa.el.shape;if(t)return t[e]},setStyle:function(e,t){var r=aa.el,n=r.style;return n&&(n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){var t=aa.el.style;if(t)return t[e]},setExtra:function(e,t){var r=aa.el.extra||(aa.el.extra={});return r[e]=t,this},getExtra:function(e){var t=aa.el.extra;if(t)return t[e]}};function NPe(){var e=this,t=e.el;if(t){var r=Tf(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}aa.el=t,n(OPe)}}function ZB(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]={}),uu(l))Y(o,a);else for(var u=pt(l),c=0;c=0){!o&&(o=n[e]={});for(var h=He(a),c=0;c=0)){var d=e.getAnimationStyleProps(),h=d?d.style:null;if(h){!a&&(a=n.style={});for(var p=He(r),u=0;u=0?t.getStore().get($,R):void 0}var N=t.get(z.name,R),V=z&&z.ordinalMeta;return V?V.categories[N]:N}function b(k,R){R==null&&(R=u);var z=t.getItemVisual(R,"style"),$=z&&z.fill,N=z&&z.opacity,V=y(R,os).getItemStyle();$!=null&&(V.fill=$),N!=null&&(V.opacity=N);var L={inheritColor:oe($)?$:"#000"},G=x(R,os),U=_t(G,null,L,!1,!0);U.text=G.getShallow("show")?Ee(e.getFormattedLabel(R,os),_f(t,R)):null;var B=u0(G,L,!1);return A(k,V),V=YB(V,U,B),k&&C(V,k),V.legacy=!0,V}function w(k,R){R==null&&(R=u);var z=y(R,oo).getItemStyle(),$=x(R,oo),N=_t($,null,null,!0,!0);N.text=$.getShallow("show")?Pa(e.getFormattedLabel(R,oo),e.getFormattedLabel(R,os),_f(t,R)):null;var V=u0($,null,!0);return A(k,z),z=YB(z,N,V),k&&C(z,k),z.legacy=!0,z}function C(k,R){for(var z in R)ce(R,z)&&(k[z]=R[z])}function A(k,R){k&&(k.textFill&&(R.textFill=k.textFill),k.textPosition&&(R.textPosition=k.textPosition))}function T(k,R){if(R==null&&(R=u),ce(UB,k)){var z=t.getItemVisual(R,"style");return z?z[UB[k]]:null}if(ce(SPe,k))return t.getItemVisual(R,k)}function M(k){if(a.type==="cartesian2d"){var R=a.getBaseAxis();return Qxe(xe({axis:R},k))}}function I(){return r.getCurrentSeriesIndices()}function P(k){return Q6(k,r)}}function ZPe(e){var t={};return D(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 rw(e,t,r,n,i,a,o){if(!n){a.remove(t);return}var s=IP(e,t,r,n,i,a);return s&&o.setItemGraphicEl(r,s),s&&Ut(s,n.focus,n.blurScope,n.emphasisDisabled),s}function IP(e,t,r,n,i,a){var o=-1,s=t;t&&y9(t,n,i)&&(o=ze(a.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=AP(n),s&&UPe(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Jn.normal.cfg=Jn.normal.conOpt=Jn.emphasis.cfg=Jn.emphasis.conOpt=Jn.blur.cfg=Jn.blur.conOpt=Jn.select.cfg=Jn.select.conOpt=null,Jn.isLegacy=!1,QPe(u,r,n,i,l,Jn),KPe(u,r,n,i,l),MP(e,u,r,n,Jn,i,l),ce(n,"info")&&(ao(u).info=n.info);for(var c=0;c=0?a.replaceAt(u,o):a.add(u),u}function y9(e,t,r){var n=ao(e),i=t.type,a=t.shape,o=t.style;return r.isUniversalTransitionEnabled()||i!=null&&i!==n.customGraphicType||i==="path"&&nke(a)&&x9(a)!==n.customPathData||i==="image"&&ce(o,"image")&&o.image!==n.customImagePath}function KPe(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&&y9(o,a,n)&&(o=null),o||(o=AP(a),e.setClipPath(o)),MP(null,o,t,a,null,n,i)}}function QPe(e,t,r,n,i,a){if(!e.isGroup){JB(r,null,a),JB(r,oo,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=AP(o),e.setTextContent(c)),MP(null,c,t,o,null,n,i);for(var f=o&&o.style,d=0;d=c;h--){var p=t.childAt(h);eke(t,p,i)}}}function eke(e,t,r){t&&Yx(t,ao(e).option,r)}function tke(e){new xo(e.oldChildren,e.newChildren,e5,e5,e).add(t5).update(t5).remove(rke).execute()}function e5(e,t){var r=e&&e.name;return r??HPe+t}function t5(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,i=t!=null?r.oldChildren[t]:null;IP(r.api,i,r.dataIndex,n,r.seriesModel,r.group)}function rke(e){var t=this.context,r=t.oldChildren[e];r&&Yx(r,ao(r).option,t.seriesModel)}function x9(e){return e&&(e.pathData||e.d)}function nke(e){return e&&(ce(e,"pathData")||ce(e,"d"))}function ike(e){e.registerChartView(YPe),e.registerSeriesModel(_Pe)}var Ll=Je(),r5=we,nw=ue,ake=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 Ae,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var d=Pe(n5,r,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,r)}a5(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=JI(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=Ll(t).pointerEl=new bv[a.type](r5(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=Ll(t).labelEl=new rt(r5(r.label));t.add(a),i5(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=Ll(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=Ll(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),i5(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=Sv(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){vo(u.event)},onmousedown:nw(this._onHandleDragMove,this,0,0),drift:nw(this._onHandleDragMove,this),ondragend:nw(this._onHandleDragEnd,this)}),n.add(i)),a5(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");q(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,ed(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){n5(this._axisPointerModel,!r&&this._moveAnimation,this._handle,iw(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(iw(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(iw(i)),Ll(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),Bp(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 n5(e,t,r,n){S9(Ll(r).lastProp,n)||(Ll(r).lastProp=n,t?it(r,n,e):(r.stopAnimation(),r.attr(n)))}function S9(e,t){if(Se(e)&&Se(t)){var r=!0;return D(t,function(n,i){r=r&&S9(e[i],n)}),!!r}else return e===t}function i5(e,t){e[t.get(["label","show"])?"show":"hide"]()}function iw(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function a5(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 kP=ake;function DP(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 b9(e,t,r,n,i){var a=r.get("value"),o=_9(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Xf(s.get("padding")||0),u=s.getFont(),c=vv(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),oke(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 oke(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 _9(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:WI(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};D(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):me(o)&&(a=o(s))}return a}function RP(e,t,r){var n=_i();return Du(n,n,r.rotation),Na(n,n,r.position),Ui([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function w9(e,t,r,n,i,a){var o=So.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),b9(t,n,i,a,{position:RP(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function LP(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function C9(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function o5(e,t,r,n,i,a){return{cx:e,cy:t,r0:r,r:n,startAngle:i,endAngle:a,clockwise:!0}}var ske=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=s5(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var d=DP(a),h=lke[u](s,f,c);h.style=d,r.graphicKey=h.type,r.pointer=h}var p=rA(l.model,i);w9(n,r,p,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=rA(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=RP(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=s5(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}(kP);function s5(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var lke={line:function(e,t,r){var n=LP([t,r[0]],[t,r[1]],l5(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:C9([t-n/2,r[0]],[n,i],l5(e))}}};function l5(e){return e.dim==="x"?0:1}const uke=ske;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.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 fke=cke;var eo=Je(),dke=D;function T9(e,t,r){if(!tt.node){var n=t.getZr();eo(n).records||(eo(n).records={}),hke(n,t);var i=eo(n).records[e]||(eo(n).records[e]={});i.handler=r}}function hke(e,t){if(eo(e).initialized)return;eo(e).initialized=!0,r("click",Pe(u5,"click")),r("mousemove",Pe(u5,"mousemove")),r("globalout",vke);function r(n,i){e.on(n,function(a){var o=gke(t);dke(eo(e).records,function(s){s&&i(s,a,o.dispatchAction)}),pke(o.pendings,t)})}}function pke(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 vke(e,t,r){e.handler("leave",null,r)}function u5(e,t,r,n){t.handler(e,r,n)}function gke(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 bA(e,t){if(!tt.node){var r=t.getZr(),n=(eo(r).records||{})[e];n&&(eo(r).records[e]=null)}}var mke=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";T9("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){bA("axisPointer",n)},t.prototype.dispose=function(r,n){bA("axisPointer",n)},t.type="axisPointer",t}(jt);const yke=mke;function A9(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=yu(a,e);if(o==null||o<0||q(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 c5=Je();function xke(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||ue(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){ey(i)&&(i=A9({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=ey(i),u=a.axesInfo,c=s.axesInfo,f=n==="leave"||ey(i),d={},h={},p={list:[],map:{}},v={showPointer:Pe(bke,h),showTooltip:Pe(_ke,p)};D(s.coordSysMap,function(m,y){var x=l||m.containPoint(i);D(s.coordSysAxesInfo[y],function(S,_){var b=S.axis,w=Ake(u,S);if(!f&&x&&(!u||w)){var C=w&&w.value;C==null&&!l&&(C=b.pointToData(i)),C!=null&&f5(S,C,v,!1,d)}})});var g={};return D(c,function(m,y){var x=m.linkGroup;x&&!h[y]&&D(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,d5(S),d5(m)))),g[m.key]=w}})}),D(g,function(m,y){f5(c[y],m,v,!0,d)}),wke(h,c,d),Cke(p,i,e,o),Tke(c,o,r),d}}function f5(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=Ske(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&Y(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function Ske(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return D(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),D(d,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function bke(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function _ke(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=Wp(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 wke(e,t,r){var n=r.axesInfo=[];D(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 Cke(e,t,r,n){if(ey(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 Tke(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=c5(n)[i]||{},o=c5(n)[i]={};D(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&D(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];D(a,function(u,c){!o[c]&&l.push(u)}),D(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 Ake(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 d5(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 ey(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Ev(e){Nu.registerAxisPointerClass("CartesianAxisPointer",uke),e.registerComponentModel(fke),e.registerComponentView(yke),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!q(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=hwe(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},xke)}function Mke(e){Fe(Qj),Fe(Ev)}var Ike=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=DP(a),p=kke[d](s,l,f,c);p.style=h,r.graphicKey=p.type,r.pointer=p}var v=a.get(["label","margin"]),g=Pke(n,i,a,l,v);b9(r,i,a,o,g)},t}(kP);function Pke(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=_i();Du(d,d,s),Na(d,d,[n.cx,n.cy]),u=Ui([o,-i],d);var h=t.getModel("axisLabel").get("rotate")||0,p=So.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 kke={line:function(e,t,r,n){return e.dim==="angle"?{type:"Line",shape:LP(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:o5(t.cx,t.cy,n[0],n[1],(-r-i/2)*a,(-r+i/2)*a)}:{type:"Sector",shape:o5(t.cx,t.cy,r-i/2,r+i/2,0,Math.PI*2)}}};const Dke=Ike;var Rke=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 Lke=Rke;var EP=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",or).models[0]},t.type="polarAxis",t}(et);lr(EP,Av);var Eke=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}(EP),Oke=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}(EP),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}(Qi);OP.prototype.dataToRadius=Qi.prototype.dataToCoord;OP.prototype.radiusToData=Qi.prototype.coordToData;const Nke=OP;var zke=Je(),NP=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=vv(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=zke(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}(Qi);NP.prototype.dataToAngle=Qi.prototype.dataToCoord;NP.prototype.angleToData=Qi.prototype.coordToData;const Bke=NP;var M9=["radius","angle"],Fke=function(){function e(t){this.dimensions=M9,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Nke,this._angleAxis=new Bke,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=h5(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=h5(r);return i===this?this.pointToData(n):null},e}();function h5(e){var t=e.seriesModel,r=e.polarModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}const $ke=Fke;function Vke(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%"]:q(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 Gke(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();D(b0(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),D(b0(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),bf(n.scale,n.model),bf(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 Hke(e){return e.mainType==="angleAxis"}function p5(e,t){if(e.type=t.get("type"),e.scale=Fx(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),Hke(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 Wke={dimensions:M9,create:function(e,t){var r=[];return e.eachComponent("polar",function(n,i){var a=new $ke(i+"");a.update=Gke;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");p5(o,l),p5(s,u),Vke(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",or).models[0];n.coordinateSystem=i.coordinateSystem}}),r}};const Uke=Wke;var jke=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function sm(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 lm(e){var t=e.getRadiusAxis();return t.inverse?0:1}function v5(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 Yke=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=we(c);var f=i.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(d),c});v5(u),v5(s),D(jke,function(c){r.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&qke[c](this.group,r,a,s,l,o,u)},this)}},t.type="angleAxis",t}(Nu),qke={axisLine:function(e,t,r,n,i,a){var o=t.getModel(["axisLine","lineStyle"]),s=lm(r),l=s?0:1,u;a[l]===0?u=new $a({shape:{cx:r.cx,cy:r.cy,r:a[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new Sx({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[lm(r)],u=Z(n,function(c){return new Tr({shape:sm(r,[l,l+s],c.coord)})});e.add(hi(u,{style:xe(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[lm(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];Se(_)&&_.textStyle&&(h=new wt(_.textStyle,l,l.ecModel))}var b=new rt({silent:So.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=So.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=f.rawLabel,Ie(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",P=w;_&&(n[c][M]||(n[c][M]={p:w,n:w}),P=n[c][M][I]);var k=void 0,R=void 0,z=void 0,$=void 0;if(p.dim==="radius"){var N=p.dataToCoord(T)-w,V=l.dataToCoord(M);Math.abs(N)=$})}}})}function nDe(e){var t={};D(e,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=P9(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=I9(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 D(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),D(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=g5(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=g5(r);return i===this?this.pointToData(n):null},e}();function g5(e){var t=e.seriesModel,r=e.singleAxisModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function gDe(e,t){var r=[];return e.eachComponent("singleAxis",function(n,i){var a=new vDe(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",or).models[0];n.coordinateSystem=i&&i.coordinateSystem}}),r}var mDe={create:gDe,dimensions:D9};const yDe=mDe;var m5=["x","y"],xDe=["width","height"],SDe=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=ow(l,1-N0(s)),c=l.dataToPoint(n)[0],f=a.get("type");if(f&&f!=="none"){var d=DP(a),h=bDe[f](s,c,u);h.style=d,r.graphicKey=h.type,r.pointer=h}var p=_A(i);w9(n,r,p,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=_A(n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=RP(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=N0(o),u=ow(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=ow(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}(kP),bDe={line:function(e,t,r){var n=LP([t,r[0]],[t,r[1]],N0(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:C9([t-n/2,r[0]],[n,i],N0(e))}}};function N0(e){return e.isHorizontal()?0:1}function ow(e,t){var r=e.getRect();return[r[m5[t]],r[m5[t]]+r[xDe[t]]]}const _De=SDe;var wDe=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}(jt);function CDe(e){Fe(Ev),Nu.registerAxisPointerClass("SingleAxisPointer",_De),e.registerComponentView(wDe),e.registerComponentView(dDe),e.registerComponentModel(aw),wf(e,"single",aw,aw.defaultOption),e.registerCoordinateSystem("single",yDe)}var TDe=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=Zf(r);e.prototype.init.apply(this,arguments),y5(r,a)},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),y5(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 y5(e,t){var r=e.cellSize,n;q(r)?n=r:n=e.cellSize=[r,r],n.length===1&&(n[1]=n[0]);var i=Z([0,1],function(a){return kye(t,a)&&(n[a]="auto"),n[a]!=null&&n[a]!=="auto"});Rs(e,t,{type:"box",ignoreSize:i})}const ADe=TDe;var MDe=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 kn({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?Mye(r,n):me(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=DT(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/sw)-Math.floor(r[0].time/sw)+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 x5(e){var t=e.calendarModel,r=e.seriesModel,n=t?t.coordinateSystem:r?r.coordinateSystem:null;return n}const kDe=PDe;function DDe(e){e.registerComponentModel(ADe),e.registerComponentView(IDe),e.registerCoordinateSystem("calendar",kDe)}function RDe(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 S5(e,t){var r;return D(t,function(n){e[n]!=null&&e[n]!=="auto"&&(r=!0)}),r}function LDe(e,t,r){var n=Y({},r),i=e[t],a=r.$action||"merge";a==="merge"?i?(Oe(i,n,!0),Rs(i,n,{ignoreSize:!0}),mW(r,i),um(r,i),um(r,i,"shape"),um(r,i,"style"),um(r,i,"extra"),r.clipPath=i.clipPath):e[t]=n:a==="replace"?e[t]=n:a==="remove"&&i&&(e[t]=null)}var R9=["transition","enterFrom","leaveTo"],EDe=R9.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function um(e,t,r){if(r&&(!e[r]&&t[r]&&(e[r]={}),e=e[r],t=t[r]),!(!e||!t))for(var n=r?R9:EDe,i=0;i=0;c--){var f=i[c],d=dr(f.id,null),h=d!=null?o.get(d):null;if(h){var p=h.parent,m=ii(p),y=p===a?{width:s,height:l}:{width:m.width,height:m.height},x={},S=Dx(h,f,y,null,{hv:f.hv,boundingMode:f.bounding},x);if(!ii(h).isNew&&S){for(var _=f.transition,b={},w=0;w=0)?b[C]=A:h[C]=A}it(h,b,r,0)}else h.attr(x)}}},t.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(i){ty(i,ii(i).option,n,r._lastGraphicModel)}),this._elMap=ve()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(jt);function wA(e){var t=ce(b5,e)?b5[e]:pI(e),r=new t({});return ii(r).type=e,r}function _5(e,t,r,n){var i=wA(r);return t.add(i),n.set(e,i),ii(i).id=e,ii(i).isNew=!0,i}function ty(e,t,r,n){var i=e&&e.parent;i&&(e.type==="group"&&e.traverse(function(a){ty(a,t,r,n)}),Yx(e,t,n),r.removeKey(ii(e).id))}function w5(e,t,r,n){e.isGroup||D([["cursor",wi.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(i){var a=i[0];ce(t,a)?e[a]=Ee(t[a],i[1]):e[a]==null&&(e[a]=i[1])}),D(He(t),function(i){if(i.indexOf("on")===0){var a=t[i];e[i]=me(a)?a:null}}),ce(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function BDe(e){return e=Y({},e),D(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(gW),function(t){delete e[t]}),e}function FDe(e,t,r){var n=Ie(e).eventData;!e.silent&&!e.ignore&&!n&&(n=Ie(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=r.info)}function $De(e){e.registerComponentModel(NDe),e.registerComponentView(zDe),e.registerPreprocessor(function(t){var r=t.graphic;q(r)?!r[0]||!r[0].elements?t.graphic=[{elements:r}]:t.graphic=[t.graphic[0]]:r&&!r.elements&&(t.graphic=[{elements:[r]}])})}var C5=["x","y","radius","angle","single"],VDe=["cartesian2d","polar","singleAxis"];function GDe(e){var t=e.get("coordinateSystem");return ze(VDe,t)>=0}function ss(e){return e+"Axis"}function HDe(e,t){var r=ve(),n=[],i=ve();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 L9(e){var t=e.ecModel,r={infoList:[],infoMap:ve()};return e.eachTargetAxis(function(n,i){var a=t.getComponent(ss(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 lw=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}(),WDe=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=T5(r);this.settledOption=a,this.mergeDefaultAndTheme(r,i),this._doInit(a)},t.prototype.mergeOption=function(r){var n=T5(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;D([["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=ve(),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 D(C5,function(i){var a=this.getReferringComponents(ss(i),oge);if(a.specified){n=!0;var o=new lw;D(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 lw;if(d.add(f.componentIndex),r.set(c,d),a=!1,c==="x"||c==="y"){var h=f.getReferringComponents("grid",or).models[0];h&&D(u,function(p){f.componentIndex!==p.componentIndex&&h===p.getReferringComponents("grid",or).models[0]&&d.add(p.componentIndex)})}}}a&&D(C5,function(u){if(a){var c=i.findComponents({mainType:ss(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new lw;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");D([["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(ss(n),i))},this),r},t.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(i,a){D(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(ss(r),n)},t.prototype.setRawRange=function(r){var n=this.option,i=this.settledOption;D([["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;D(["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 bc(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)}});bc(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;bc(["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=ct(n[0]+o,n,[0,100],!0):a!=null&&(o=ct(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=WH(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 KDe(e,t,r){var n=[1/0,-1/0];bc(r,function(o){bSe(n,o.getData(),t)});var i=e.getAxisModel(),a=ZU(i.axis.scale,i,n).calculate();return[a.min,a.max]}const QDe=ZDe;var JDe={getTargetSeries:function(e){function t(i){e.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=e.getComponent(ss(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 QDe(i,a,s,e),r.push(o.__dzAxisProxy))});var n=ve();return D(r,function(i){D(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 eRe=JDe;function tRe(e){e.registerAction("dataZoom",function(t,r){var n=HDe(r,t);D(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var M5=!1;function BP(e){M5||(M5=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,eRe),tRe(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function rRe(e){e.registerComponentModel(jDe),e.registerComponentView(XDe),BP(e)}var di=function(){function e(){}return e}(),E9={};function _c(e,t){E9[e]=t}function O9(e){return E9[e]}var nRe=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;D(this.option.feature,function(n,i){var a=O9(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 iRe=nRe;function aRe(e,t,r){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:r.getWidth(),height:r.getHeight()},o=hr(n,a,i);ou(t.get("orient"),e,t.get("itemGap"),o.width,o.height),Dx(e,n,a,i)}function N9(e,t){var r=Xf(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 oRe=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=[];D(u,function(p,v){f.push(v)}),new xo(this._featureNames||[],f).add(d).update(d).remove(Pe(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(sRe(g))S={onclick:x.option.onclick,featureName:g};else{var _=O9(g);if(!_)return;S=new _}c[g]=S}else if(S=c[m],!S)return;S.uid=qf("toolbox-feature"),S.model=x,S.ecModel=n,S.api=i;var b=S instanceof di;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"?mo:yo)(T[w])},S instanceof di&&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 di&&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={};D(_,function(C,A){var T=Sv(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 I=new rt({style:{text:b[A],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null},ignore:!0});T.setTextContent(I),jf({el:T,componentModel:r,itemName:A,formatterParamsExtra:{title:b[A]}}),T.__title=b[A],T.on("mouseover",function(){var P=y.getItemStyle(),k=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:y.get("textFill")||P.fill||P.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),T.setTextConfig({position:y.get("textPosition")||k}),I.ignore=!r.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",A])!=="emphasis"&&i.leaveEmphasis(this),I.hide()}),(p.get(["iconStatus",A])==="emphasis"?mo:yo)(T),o.add(T),T.on("click",ue(v.onclick,v,n,i,A)),w[A]=T})}aRe(o,r,i),o.add(N9(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&&!me(x)&&v){var S=x.style||(x.style={}),_=vv(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){D(this._features,function(o){o instanceof di&&o.updateView&&o.updateView(o.model,n,i,a)})},t.prototype.remove=function(r,n){D(this._features,function(i){i instanceof di&&i.remove&&i.remove(r,n)}),this.group.removeAll()},t.prototype.dispose=function(r,n){D(this._features,function(i){i instanceof di&&i.dispose&&i.dispose(r,n)})},t.type="toolbox",t}(jt);function sRe(e){return e.indexOf("my")===0}const lRe=oRe;var uRe=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(me(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}(di);const cRe=uRe;var I5="__ec_magicType_stack__",fRe=[["line","bar"],["stack"]],dRe=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 D(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(P5[i]){var s={series:[]},l=function(f){var d=f.subType,h=f.id,p=P5[i](d,h,f,a);p&&(xe(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,or).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"}}};D(fRe,function(f){ze(f,i)>=0&&D(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}(di),P5={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")===I5;if(e==="line"||e==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),Oe({id:t,stack:i?"":I5},n.get(["option","stack"])||{},!0)}};Ga({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});const hRe=dRe;var qx=new Array(60).join("-"),Af=" ";function pRe(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 vRe(e){var t=[];return D(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()];D(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(Af)],c=0;c=0)return!0}var wA=new RegExp("["+wf+"]+","g");function uRe(e){for(var t=e.split(/\n+/g),r=O0(t.shift()).split(wA),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 gRe(e){var t=BP(e),r=t[t.length-1];t.length>1&&t.pop();var n={};return E9(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 mRe(e){O9(e).snapshots=null}function yRe(e){return BP(e).length}function BP(e){var t=O9(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var xRe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){mRe(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}(fi);Ga({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});const SRe=xRe;var bRe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],_Re=function(){function e(t,r,n){var i=this;this._targetInfoList=[];var a=P5(r,t);D(wRe,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=lw[n.brushType](0,a,i);n.__rangeOffset={offset:L5[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,r,n){D(t,function(i){var a=this.findTargetInfo(i,r);a&&a!==!0&&D(a.coordSyses,function(o){var s=lw[i.brushType](1,o,i.range,!0);n(i,s.values,o,r)})},this)},e.prototype.setInputRanges=function(t,r){D(t,function(n){var i=this.findTargetInfo(n,r);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=lw[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?L5[n.brushType](a.values,o.offset,CRe(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:G8(i),isTargetByCursor:W8(i,t,n.coordSysModel),getLinearBrushOtherExtent:H8(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=P5(r,t),a=0;ae[1]&&e.reverse(),e}function P5(e,t){return Bh(e,t,{includeMainTypes:bRe})}var wRe={grid:function(e,t){var r=e.xAxisModels,n=e.yAxisModels,i=e.gridModels,a=ve(),o={},s={};!r&&!n&&!i||(D(r,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),D(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),D(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=[];D(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:D5.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){D(e.geoModels,function(r){var n=r.coordinateSystem;t.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:D5.geo})})}},k5=[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}],D5={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(nu(e)),t}},lw={lineX:Pe(R5,0),lineY:Pe(R5,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=[CA([i[0],a[0]]),CA([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 R5(e,t,r,n){var i=r.getAxis(["x","y"][e]),a=CA(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 L5={lineX:Pe(E5,0),lineY:Pe(E5,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 E5(e,t,r,n){return[t[0]-n[e]*r[0],t[1]-n[e]*r[1]]}function CRe(e,t){var r=O5(e),n=O5(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 O5(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}const FP=_Re;var TA=D,TRe=Uve("toolbox-dataZoom_"),ARe=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 xP(i.getZr()),this._brushController.on("brush",ue(this._onBrush,this)).mount()),PRe(r,n,this,a,i),IRe(r,n)},t.prototype.onclick=function(r,n,i){MRe[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($P(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)}}),vRe(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=Ou(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=[];TA(r,function(i,a){n.push(we(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}(fi),MRe={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(gRe(this.ecModel))}};function $P(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 IRe(e,t){e.setIconStatus("back",yRe(t)>1?"emphasis":"normal")}function PRe(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($P(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)}Aye("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=$P(n),o=Bh(e,a);TA(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),TA(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:TRe+u+f};d[c]=f,i.push(d)}return i});const kRe=ARe;function DRe(e){e.registerComponentModel(qDe),e.registerComponentView(QDe),xc("saveAsImage",eRe),xc("magicType",nRe),xc("dataView",pRe),xc("dataZoom",kRe),xc("restore",SRe),Fe(jDe)}var RRe=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 LRe=RRe;function N9(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function z9(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 $Re(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?","+VP+n:",left"+n+",top"+n),NRe+":"+i}function N5(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;"+VP+":"+o+";":[["top",0],["left",0],[B9,o]]}function VRe(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),D(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function GRe(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=YW(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+d),t&&i&&n.push($Re(i,r)),a&&n.push("background-color:"+a),D(["width","color","radius"],function(h){var p="border-"+h,v=fW(p),g=e.get(v);g!=null&&n.push(p+":"+g+(h==="color"?"":"px"))}),n.push(VRe(c)),f!=null&&n.push("padding:"+Yf(f).join("px ")+"px"),n.join(";")+";"}function z5(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&gpe(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 HRe=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;z5(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();ei(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=ORe(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=zRe+GRe(t,!this._firstShow,this._longHide)+N5(a[0],a[1],!0)+("border-color:"+xu(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"&&!N9(n)&&(s=FRe(n,i,a)),oe(t))o.innerHTML=t+s;else if(t){o.innerHTML="",q(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=$5(a,i);this._ticket="";var s=a.dataByCoordSys,l=QRe(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=YRe;c.x=a.x,c.y=a.y,c.update(),Ie(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=w9(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($5(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=Gd([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;Ul(i,function(u){if(Ie(u).dataIndex!=null)return s=u,!0;if(Ie(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=ue(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=Gd([n.tooltipOption],a),l=this._renderMode,u=[],c=xr("section",{blocks:[],noHeader:!0}),f=[],d=new Yb;D(r,function(y){D(y.dataByAxis,function(x){var S=i.getComponent(x.axisDim+"Axis",x.axisIndex),_=x.value;if(!(!S||_==null)){var b=x9(_,S.axis,i,x.seriesDataIndices,x.valueLabelOpt),w=xr("section",{header:b,noHeader:!Fi(b),sortBlocks:!0,blocks:[]});c.blocks.push(w),D(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=HI(S.axis,{value:_}),M.axisValueLabel=b,M.marker=d.makeTooltipMarker("item",xu(M.color),l);var I=AO(A.formatTooltip(T,!0,null)),P=I.frag;if(P){var k=Gd([A],a).get("valueFormatter");w.blocks.push(k?Y({valueFormatter:k},P):P)}I.text&&f.push(I.text),u.push(M)}})}})}),c.blocks.reverse(),f.reverse();var h=n.position,p=s.get("order"),v=RO(c,d,l,p,i.get("useUTC"),s.get("textStyle"));v&&f.unshift(v);var g=l==="richText"?` +`),meta:t.meta}}function z0(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function yRe(e){var t=e.slice(0,e.indexOf(` +`));if(t.indexOf(Af)>=0)return!0}var CA=new RegExp("["+Af+"]+","g");function xRe(e){for(var t=e.split(/\n+/g),r=z0(t.shift()).split(CA),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 ARe(e){var t=FP(e),r=t[t.length-1];t.length>1&&t.pop();var n={};return z9(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 MRe(e){B9(e).snapshots=null}function IRe(e){return FP(e).length}function FP(e){var t=B9(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var PRe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){MRe(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}(di);Ga({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});const kRe=PRe;var DRe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],RRe=function(){function e(t,r,n){var i=this;this._targetInfoList=[];var a=k5(r,t);D(LRe,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=uw[n.brushType](0,a,i);n.__rangeOffset={offset:E5[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,r,n){D(t,function(i){var a=this.findTargetInfo(i,r);a&&a!==!0&&D(a.coordSyses,function(o){var s=uw[i.brushType](1,o,i.range,!0);n(i,s.values,o,r)})},this)},e.prototype.setInputRanges=function(t,r){D(t,function(n){var i=this.findTargetInfo(n,r);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=uw[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?E5[n.brushType](a.values,o.offset,ERe(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:U8(i),isTargetByCursor:Y8(i,t,n.coordSysModel),getLinearBrushOtherExtent:j8(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=k5(r,t),a=0;ae[1]&&e.reverse(),e}function k5(e,t){return Fh(e,t,{includeMainTypes:DRe})}var LRe={grid:function(e,t){var r=e.xAxisModels,n=e.yAxisModels,i=e.gridModels,a=ve(),o={},s={};!r&&!n&&!i||(D(r,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),D(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),D(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=[];D(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:R5.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){D(e.geoModels,function(r){var n=r.coordinateSystem;t.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:R5.geo})})}},D5=[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}],R5={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(au(e)),t}},uw={lineX:Pe(L5,0),lineY:Pe(L5,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=[TA([i[0],a[0]]),TA([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 L5(e,t,r,n){var i=r.getAxis(["x","y"][e]),a=TA(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 E5={lineX:Pe(O5,0),lineY:Pe(O5,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 O5(e,t,r,n){return[t[0]-n[e]*r[0],t[1]-n[e]*r[1]]}function ERe(e,t){var r=N5(e),n=N5(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 N5(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}const $P=RRe;var AA=D,ORe=tge("toolbox-dataZoom_"),NRe=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 SP(i.getZr()),this._brushController.on("brush",ue(this._onBrush,this)).mount()),FRe(r,n,this,a,i),BRe(r,n)},t.prototype.onclick=function(r,n,i){zRe[i].call(this)},t.prototype.remove=function(r,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(r,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(r){var n=r.areas;if(!r.isEnd||!n.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new $P(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)}}),TRe(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=[];AA(r,function(i,a){n.push(we(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}(di),zRe={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(ARe(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 BRe(e,t){e.setIconStatus("back",IRe(t)>1?"emphasis":"normal")}function FRe(e,t,r,n,i){var a=r._isZoomActive;n&&n.type==="takeGlobalCursor"&&(a=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),r._isZoomActive=a,e.setIconStatus("zoom",a?"emphasis":"normal");var o=new $P(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)}Nye("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=Fh(e,a);AA(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),AA(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:ORe+u+f};d[c]=f,i.push(d)}return i});const $Re=NRe;function VRe(e){e.registerComponentModel(iRe),e.registerComponentView(lRe),_c("saveAsImage",cRe),_c("magicType",hRe),_c("dataView",CRe),_c("dataZoom",$Re),_c("restore",kRe),Fe(rRe)}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.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 HRe=GRe;function F9(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function $9(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 ZRe(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?","+GP+n:",left"+n+",top"+n),jRe+":"+i}function z5(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;"+GP+":"+o+";":[["top",0],["left",0],[V9,o]]}function KRe(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),D(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function QRe(e,t,r){var n=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),f=ZW(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+d),t&&i&&n.push(ZRe(i,r)),a&&n.push("background-color:"+a),D(["width","color","radius"],function(h){var p="border-"+h,v=pW(p),g=e.get(v);g!=null&&n.push(p+":"+g+(h==="color"?"":"px"))}),n.push(KRe(c)),f!=null&&n.push("padding:"+Xf(f).join("px ")+"px"),n.join(";")+";"}function B5(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&Ape(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 JRe=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;B5(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();ti(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=URe(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=YRe+QRe(t,!this._firstShow,this._longHide)+z5(a[0],a[1],!0)+("border-color:"+bu(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"&&!F9(n)&&(s=XRe(n,i,a)),oe(t))o.innerHTML=t+s;else if(t){o.innerHTML="",q(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=V5(a,i);this._ticket="";var s=a.dataByCoordSys,l=lLe(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=nLe;c.x=a.x,c.y=a.y,c.update(),Ie(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=A9(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(V5(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=Wd([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;Yl(i,function(u){if(Ie(u).dataIndex!=null)return s=u,!0;if(Ie(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=ue(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=Wd([n.tooltipOption],a),l=this._renderMode,u=[],c=xr("section",{blocks:[],noHeader:!0}),f=[],d=new qb;D(r,function(y){D(y.dataByAxis,function(x){var S=i.getComponent(x.axisDim+"Axis",x.axisIndex),_=x.value;if(!(!S||_==null)){var b=_9(_,S.axis,i,x.seriesDataIndices,x.valueLabelOpt),w=xr("section",{header:b,noHeader:!Fi(b),sortBlocks:!0,blocks:[]});c.blocks.push(w),D(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=WI(S.axis,{value:_}),M.axisValueLabel=b,M.marker=d.makeTooltipMarker("item",bu(M.color),l);var I=MO(A.formatTooltip(T,!0,null)),P=I.frag;if(P){var k=Wd([A],a).get("valueFormatter");w.blocks.push(k?Y({valueFormatter:k},P):P)}I.text&&f.push(I.text),u.push(M)}})}})}),c.blocks.reverse(),f.reverse();var h=n.position,p=s.get("order"),v=LO(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=Ie(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=Gd([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 Yb;m.marker=y.makeTooltipMarker("item",xu(m.color),h);var x=AO(u.formatTooltip(c,!1,f)),S=v.get("order"),_=v.get("valueFormatter"),b=x.frag,w=b?RO(_?Y({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=Ie(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=Gd(u,this._tooltipModel,f?{position:f}:null),h=d.get("content"),p=Math.random()+"",v=new Yb;this._showOrMove(d,function(){var g=we(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=q(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=d,y&&(h=Tx(m.axisValue,h,g)),h=dW(h,i,!0)}else if(me(d)){var x=ue(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"||q(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!q(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),me(n)&&(n=n([i,a],s,o.el,p,{viewSize:[u,c],contentSize:f.slice()})),q(n))i=ne(n[0],u),a=ne(n[1],c);else if(Se(n)){var v=n;v.width=f[0],v.height=f[1];var g=hr(v,{width:u,height:c});i=g.x,a=g.y,d=null,h=null}else if(oe(n)&&l){var m=KRe(n,p,f,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=XRe(i,a,o,u,c,d?null:20,h?null:20);i=m[0],a=m[1]}if(d&&(i-=V5(d)?f[0]/2:d==="right"?f[0]:0),h&&(a-=V5(h)?f[1]/2:h==="bottom"?f[1]:0),N9(r)){var m=ZRe(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&&D(i,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&D(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&&D(v,function(m,y){var x=g[y];o=o&&m.seriesIndex===x.seriesIndex&&m.dataIndex===x.dataIndex}),a&&D(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()||(zp(this,"_updatePosition"),this._tooltipContent.dispose(),SA("itemTooltip",n))},t.type="tooltip",t}(jt);function Gd(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 $5(e,t){return e.dispatchAction||ue(t.dispatchAction,t)}function XRe(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 ZRe(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 KRe(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 V5(e){return e==="center"||e==="middle"}function QRe(e,t,r){var n=eI(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=Ie(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const JRe=qRe;function eLe(e){Fe(Rv),e.registerComponentModel(LRe),e.registerComponentView(JRe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},rr),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},rr)}var tLe=["rect","polygon","keep","clear"];function rLe(e,t){var r=pt(e?e.brush:[]);if(r.length){var n=[];D(r,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var i=e&&e.toolbox;q(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),nLe(s),t&&!s.length&&s.push.apply(s,tLe)}}function nLe(e){var t={};D(e,function(r){t[r]=1}),e.length=0,D(t,function(r,n){e.push(n)})}var G5=D;function H5(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function AA(e,t,r){var n={};return G5(t,function(a){var o=n[a]=i();G5(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=we(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 $9(e,t,r){var n;D(r,function(i){t.hasOwnProperty(i)&&H5(t[i])&&(n=!0)}),n&&D(r,function(i){t.hasOwnProperty(i)&&H5(t[i])?e[i]=we(t[i]):delete e[i]})}function iLe(e,t,r,n,i,a){var o={};D(e,function(f){var d=Or.prepareVisualTypes(t[f]);o[f]=d});var s;function l(f){return DI(r,s,f)}function u(f,d){nU(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&&q5(t)}};function q5(e){return new Ne(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var dLe=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 xP(n.getZr())).on("brush",ue(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){V9(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:we(i),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:we(i),$from:n})},t.type="brush",t}(jt);const hLe=dLe;var pLe="#ddd",vLe=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&&$9(i,r,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:pLe},a.hasOwnProperty("liftZ")||(a.liftZ=5)},t.prototype.setAreas=function(r){r&&(this.areas=Z(r,function(n){return X5(this.option,n)},this))},t.prototype.setBrushOption=function(r){this.brushOption=X5(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 X5(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 gLe=vLe;var mLe=["rect","polygon","lineX","lineY","keep","clear"],yLe=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,D(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 D(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:mLe.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}(fi);const xLe=yLe;function SLe(e){e.registerComponentView(hLe),e.registerComponentModel(gLe),e.registerPreprocessor(rLe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,sLe),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),xc("brush",xLe)}var bLe=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),_Le=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(){u0(p,"_"+r.get("target"))}),v&&h.on("click",function(){u0(v,"_"+r.get("subtarget"))}),Ie(c).eventData=Ie(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=hr(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}(jt);function wLe(e){e.registerComponentModel(bLe),e.registerComponentView(_Le)}var CLe=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=[],D(n,function(u,c){var f=dr(Vf(u),""),d;Se(u)?(d=we(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 sn([{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 Z5=CLe;var G9=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=Hs(Z5.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}(Z5);lr(G9,AI.prototype);const TLe=G9;var ALe=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}(jt);const MLe=ALe;var ILe=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}(Qi);const PLe=ILe;var cw=Math.PI,K5=Je(),kLe=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 xr("nameValue",{noName:!0,value:c})},D(["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=RLe(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:cw/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*cw/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=bi(),l=o.x,u=o.y+o.height;Na(s,s,[-l,-u]),Pu(s,s,-cw/2),Na(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=DLe(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 PLe("value",o,r.axisExtent,a);return l.model=n,l},t.prototype._createGroup=function(r){var n=this[r]=new Ae;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:Y({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:xe({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=[],D(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:ue(o._changeTimeline,o,u.value)},g=Q5(f,d,n,v);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),ru(g);var m=Ie(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=[],D(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:ue(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),ru(m),K5(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",ue(this._changeTimeline,this,f?"-":"+")),d(r.prevBtnPosition,"prev",ue(this._changeTimeline,this,f?"+":"-")),d(r.playPosition,c?"stop":"play",ue(this._handlePlayClick,this,!c),!0);function d(h,p,v,g){if(h){var m=Xi(Ee(a.get(["controlStyle",p+"BtnSize"]),o),o),y=[0,-m/2,m,m],x=LLe(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),ru(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=ue(u._handlePointerDrag,u),f.ondragend=ue(u._handlePointerDragend,u),J5(f,u._progressLine,s,i,a,!0)},onUpdate:function(f){J5(f,u._progressLine,s,i,a)}};this._currentPointer=Q5(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=vi(a.getExtent().slice());i>o[1]&&(i=o[1]),i=0&&(o[a]=+o[a].toFixed(d)),[o,f]}var fw={min:Pe(cm,"min"),max:Pe(cm,"max"),average:Pe(cm,"average"),median:Pe(cm,"median")};function Zp(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,i=n&&n.dimensions;if(!VLe(t)&&!q(t.coord)&&q(i)){var a=W9(t,r,n,e);if(t=we(t),t.type&&fw[t.type]&&a.baseAxis&&a.valueAxis){var o=ze(i,a.baseAxis.dim),s=ze(i,a.valueAxis.dim),l=fw[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||!q(i))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)fw[u[c]]&&(u[c]=HP(r,r.mapDimension(i[c]),u[c]));return t}}function W9(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(GLe(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 GLe(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function Kp(e,t){return e&&e.containData&&t.coord&&!IA(t)?e.containData(t.coord):!0}function HLe(e,t,r){return e&&e.containZone&&t.coord&&r.coord&&!IA(t)&&!IA(r)?e.containZone(t.coord,r.coord):!0}function U9(e,t){return e?function(r,n,i,a){var o=a<2?r.coord&&r.coord[a]:r.value;return Ss(o,t[a])}:function(r,n,i,a){return Ss(r.value,t[a])}}function HP(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 dw=Je(),WLe=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=ve()},t.prototype.render=function(r,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){dw(s).keep=!1}),n.eachSeries(function(s){var l=zs.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!dw(s).keep&&a.group.remove(s.group)})},t.prototype.markKeep=function(r){dw(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var i=this;D(r,function(a){var o=zs.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?x6(l):oI(l))})}})},t.type="marker",t}(jt);const WP=WLe;function tF(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 ULe=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=zs.getMarkerModelFromSeries(a,"markPoint");o&&(tF(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 Av),f=jLe(o,r,n);n.setData(f),tF(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(me(p)||me(v)||me(g)||me(m)){var x=n.getRawValue(d),S=n.getDataParams(d);me(p)&&(p=p(x,S)),me(v)&&(v=v(x,S)),me(g)&&(g=g(x,S)),me(m)&&(m=m(x,S))}var _=h.getModel("itemStyle").getItemStyle(),b=bv(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){Ie(h).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markPoint",t}(WP);function jLe(e,t,r){var n;e?n=Z(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return Y(Y({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new sn(n,r),a=Z(r.get("data"),Pe(Zp,t));e&&(a=ft(a,Pe(Kp,e)));var o=U9(!!e,n);return i.initData(a,null,o),i}const YLe=ULe;function qLe(e){e.registerComponentModel($Le),e.registerComponentView(YLe),e.registerPreprocessor(function(t){GP(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var XLe=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}(zs);const ZLe=XLe;var fm=Je(),KLe=function(e,t,r,n){var i=e.getData(),a;if(q(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=W9(n,i,t,e);s=u.valueAxis;var c=DU(i,u.valueDataDim);l=HP(i,c,o)}var f=s.dim==="x"?0:1,d=1-f,h=we(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=[Zp(e,a[0]),Zp(e,a[1]),Y({},a[2])];return g[2].type=g[2].type||null,Oe(g[2],g[0]),Oe(g[2],g[1]),g};function N0(e){return!isNaN(e)&&!isFinite(e)}function rF(e,t,r,n){var i=1-e,a=n.dimensions[e];return N0(t[i])&&N0(r[i])&&t[e]===r[e]&&n.getAxis(a).containData(t[e])}function QLe(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(rF(1,r,n,e)||rF(0,r,n,e)))return!0}return Kp(e,t[0])&&Kp(e,t[1])}function hw(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(Lu(a,"cartesian2d")){var h=a.getAxis("x"),p=a.getAxis("y"),c=a.dimensions;N0(e.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[r?0:1]):N0(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 JLe=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=zs.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=fm(o).from,u=fm(o).to;l.each(function(c){hw(l,c,!0,a,i),hw(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 hP);this.group.add(c.group);var f=eEe(o,r,n),d=f.from,h=f.to,p=f.line;fm(n).from=d,fm(n).to=h,n.setData(p);var v=n.get("symbol"),g=n.get("symbolSize"),m=n.get("symbolRotate"),y=n.get("symbolOffset");q(v)||(v=[v,v]),q(g)||(g=[g,g]),q(m)||(m=[m,m]),q(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){Ie(S).dataModel=n,S.traverse(function(_){Ie(_).dataModel=n})});function x(S,_,b){var w=S.getItemModel(_);hw(S,_,b,r,a);var C=w.getModel("itemStyle").getItemStyle();C.fill==null&&(C.fill=bv(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}(WP);function eEe(e,t,r){var n;e?n=Z(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return Y(Y({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new sn(n,r),a=new sn(n,r),o=new sn([],r),s=Z(r.get("data"),Pe(KLe,t,e,r));e&&(s=ft(s,Pe(QLe,e)));var l=U9(!!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 tEe=JLe;function rEe(e){e.registerComponentModel(ZLe),e.registerComponentView(tEe),e.registerPreprocessor(function(t){GP(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var nEe=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}(zs);const iEe=nEe;var dm=Je(),aEe=function(e,t,r,n){var i=n[0],a=n[1];if(!(!i||!a)){var o=Zp(e,i),s=Zp(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=G2([{},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 z0(e){return!isNaN(e)&&!isFinite(e)}function nF(e,t,r,n){var i=1-e;return z0(t[i])&&z0(r[i])}function oEe(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 Lu(e,"cartesian2d")?r&&n&&(nF(1,r,n)||nF(0,r,n))?!0:HLe(e,i,a):Kp(e,i)||Kp(e,a)}function iF(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(Lu(a,"cartesian2d")){var y=a.getAxis("x"),x=a.getAxis("y"),v=e.get(r[0],t),g=e.get(r[1],t);z0(v)?s[0]=y.toGlobalCoord(y.getExtent()[r[0]==="x0"?0:1]):z0(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 aF=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],sEe=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=zs.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Z(aF,function(f){return iF(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 Ae});this.group.add(c.group),this.markKeep(c);var f=lEe(o,r,n);n.setData(f),f.each(function(d){var h=Z(aF,function(C){return iF(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))];vi(y),vi(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 PA=dEe;var uc=Pe,kA=D,hm=Ae,hEe=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 hm),this.group.add(this._selectorGroup=new hm),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=hr(c,f,d),p=this.layoutInner(r,o,h,a,l,u),v=hr(xe({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=L9(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=ve(),f=n.get("selectedMode"),d=[];i.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),kA(n.getData(),function(h,p){var v=h.get("name");if(!this.newlineDisabled&&(v===""||v===` -`)){var g=new hm;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",uc(oF,v,null,a,d)).on("mouseover",uc(DA,m.name,null,a,d)).on("mouseout",uc(RA,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"),I=$n(T.fill);I&&I[3]===0&&(I[3]=.2,T=Y(Y({},T),{fill:io(I,"rgba")}));var P=this._createItem(w,v,p,h,n,r,{},T,M,f,a);P.on("click",uc(oF,null,v,a,d)).on("mouseover",uc(DA,null,v,a,d)).on("mouseout",uc(RA,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();kA(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}),ru(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=pEe(c,a,l,u,h,g,d),_=new hm,b=a.getModel("textStyle");if(me(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(vEe({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??""):me(T)&&(M=T(n));var I=g?b.getTextColor():a.get("inactiveColor");_.add(new rt({style:_t(b,{text:M,x:C,y:v/2,fill:I,align:A,verticalAlign:"middle"},{inheritColor:I})}));var P=new Qe({shape:_.getBoundingRect(),invisible:!0}),k=a.getModel("tooltip");return k.get("show")&&Wf({el:P,componentModel:o,itemName:n,itemTooltipOption:k.option}),_.add(P),_.eachChild(function(R){R.silent=!0}),P.silent=!f,this.getContentGroup().add(_),ru(_),_.__legendDataIndex=i,_},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();iu(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){iu("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}(jt);function pEe(e,t,r,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),kA(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:mf(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 vEe(e){var t=e.icon||"roundRect",r=sr(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 oF(e,t,r,n){RA(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),DA(e,t,r,n)}function j9(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&&it(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;D(["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=vw[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}(Y9);const bEe=SEe;function _Ee(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 wEe(e){Fe(q9),e.registerComponentModel(xEe),e.registerComponentView(bEe),_Ee(e)}function CEe(e){Fe(q9),Fe(wEe)}var TEe=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=Hs(Xp.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Xp);const AEe=TEe;var UP=Je();function MEe(e,t,r){UP(e).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=r)})}function IEe(e,t){for(var r=UP(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 LEe(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=UP(r),i=n.coordSysRecordMap||(n.coordSysRecordMap=ve());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=k9(a);D(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,PEe(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ve());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){X9(i,a);return}var c=REe(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),Qf(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var EEe=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(),MEe(i,r,{pan:ue(gw.pan,this),zoom:ue(gw.zoom,this),scrollMove:ue(gw.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){IEe(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(NP),gw={zoom:function(e,t,r,n){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=mw[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(Ou(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:uF(function(e,t,r,n,i,a){var o=mw[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:uF(function(e,t,r,n,i,a){var o=mw[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,r);return o.signal*(e[1]-e[0])*a.scrollDelta})};function uF(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(Ou(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var mw={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 OEe=EEe;function Z9(e){zP(e),e.registerComponentModel(AEe),e.registerComponentView(OEe),LEe(e)}var NEe=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=Hs(Xp.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}(Xp);const zEe=NEe;var Ud=Qe,cF=7,BEe=1,yw=30,FEe=7,jd="horizontal",fF="vertical",$Ee=5,VEe=["line","bar","candlestick","scatter"],GEe={easing:"cubicOut",duration:100,delay:0},HEe=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=ue(this._onBrush,this),this._onBrushEnd=ue(this._onBrushEnd,this)},t.prototype.render=function(r,n,i,a){if(e.prototype.render.apply(this,arguments),Qf(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(){zp(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 Ae;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?FEe:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===jd?{right:s.width-o.x-o.width,top:s.height-yw-cF-a,width:o.width,height:yw}:{right:cF,top:o.y,width:yw,height:o.height},u=qf(r.option);D(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=hr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===fF&&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===jd&&!o?{scaleY:l?1:-1,scaleX:1}:i===jd&&o?{scaleY:l?1:-1,scaleX:-1}:i===fF&&!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 Ud({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new Ud({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:ue(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==="",I=M?0:ct(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,I]),g.push([y,I]),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 Ae,I=new Pn({shape:{points:u},segmentIgnoreThreshold:1,style:T.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),P=new kn({shape:{points:c},segmentIgnoreThreshold:1,style:T.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(I),M.add(P),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();D(l,function(u){if(!i&&!(n!==!0&&ze(VEe,u.get("type"))<0)){var c=a.getComponent(ss(o),s).axis,f=WEe(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 Ud({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new Ud({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:BEe,fill:"rgba(0,0,0,0)"}})),D([0,1],function(x){var S=l.get("handleIcon");!d0[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var _=sr(S,-1,0,2,2,null,!0);_.attr({cursor:dF(this._orient),draggable:!0,drift:ue(this._onDragMove,this,x),ondragend:ue(this._onDragEnd,this),onmouseover:ue(this._showDataInfo,this,!0),onmouseout:ue(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(),ru(_);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=sr(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:dF(this._orient),drift:ue(this._onDragMove,this,"all"),ondragstart:ue(this._showDataInfo,this,!0),ondragend:ue(this._onDragEnd,this),onmouseover:ue(this._showDataInfo,this,!0),onmouseout:ue(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[ct(r[0],[0,100],n,!0),ct(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];Ou(n,a,o,i.get("zoomLock")?"all":r,s.minSpan!=null?ct(s.minSpan,l,o,!0):null,s.maxSpan!=null?ct(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=vi([ct(a[0],o,l,!0),ct(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=vi(i.slice()),o=this._size;D([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=vi([ct(i.x,o,s,!0),ct(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&&(vo(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 Ud({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?GEe:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=k9(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}(NP);function WEe(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function dF(e){return e==="vertical"?"ns-resize":"ew-resize"}const UEe=HEe;function K9(e){e.registerComponentModel(zEe),e.registerComponentView(UEe),zP(e)}function jEe(e){Fe(Z9),Fe(K9)}var YEe={get:function(e,t,r){var n=we((qEe[e]||{})[t]);return r&&q(n)?n[n.length-1]:n}},qEe={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 Q9=YEe;var hF=Or.mapVisual,XEe=Or.eachVisual,ZEe=q,pF=D,KEe=vi,QEe=ct,JEe=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&&$9(i,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(r){var n=this.stateList;r=ue(r,this),this.controllerVisuals=AA(this.option.controller,n,r),this.targetVisuals=AA(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){D(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||["<",">"],q(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(me(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=KEe([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){ZEe(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]={},pF(p,function(g,m){if(Or.isValidType(m)){var y=Q9.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";pF(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&&we(d)||(s?g:[g])),x.symbolSize==null&&(x.symbolSize=h&&we(h)||(s?y[0]:[y[0],y[0]])),x.symbol=hF(x.symbol,function(b){return b==="none"?g:b});var S=x.symbolSize;if(S!=null){var _=-1/0;XEe(S,function(b){b>_&&(_=b)}),x.symbolSize=hF(S,function(b){return QEe(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 B0=JEe;var vF=[20,140],eOe=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]=vF[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=vF[1])},t.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):q(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),D(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},t.prototype.getSelected=function(){var r=this.getExtent(),n=vi((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=gF(this,"outOfRange",this.getExtent()),i=gF(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 Ae(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();nOe([0,1],function(c){var f=o[c];f.setStyle("fill",n.handlesColor[c]),f.y=r[c];var d=oa(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=Ui(i.handleLabelPoints[c],nu(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=oa(r,s,u,!0),g=l[0]-p/2,m={x:f.x,y:f.y};f.y=v,f.x=g;var y=Ui(c.indicatorLabelPoint,nu(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||SF(i))&&(h=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var p=qve(d,h);this._dispatchHighDown("downplay",ey(p[0],i)),this._dispatchHighDown("highlight",ey(p[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(Ul(r.target,function(l){var u=Ie(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 dOe(e,t,r,n){for(var i=t.targetVisuals[n],a=Or.prepareVisualTypes(i),o={color:bv(e.getData(),"color")},s=0,l=a.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(uOe,cOe),D(fOe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(hOe))}function r7(e){e.registerComponentModel(tOe),e.registerComponentView(lOe),t7(e)}var pOe=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=[],vOe[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=we(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Z(this._pieceList,function(l){return l=we(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var r=this.option,n={},i=Or.listVisualTypes(),a=this.isCategory();D(r.pieces,function(s){D(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),D(n,function(s,l){var u=!1;D(this.stateList,function(c){u=u||o(r,c,l)||o(r.target,c,l)},this),!u&&D(this.stateList,function(c){(r[c]||(r[c]={}))[l]=Q9.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,D(a,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;D(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=we(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 D(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=Hs(B0.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}(B0),vOe={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 CF(e,t){var r=e.inverse;(e.orient==="vertical"?!r:r)&&t.reverse()}const gOe=pOe;var mOe=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),D(c.viewPieceList,function(h){var p=h.piece,v=new Ae;v.onclick=ue(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),iu(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:ey(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return e7(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 Ae,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(sr(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=we(i.selected),s=n.getSelectedMapKey(r);a==="single"||a===!0?(o[s]=!0,D(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(J9);const yOe=mOe;function n7(e){e.registerComponentModel(gOe),e.registerComponentView(yOe),t7(e)}function xOe(e){Fe(r7),Fe(n7)}var SOe={label:{enabled:!0},decal:{show:!1}},TF=Je(),bOe={};function _Oe(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=we(SOe);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=ve();e.eachSeries(function(d){if(!d.isColorBySeries()){var h=f.get(d.type);h||(h={},f.set(d.type,h)),TF(d).scope=h}}),e.eachRawSeries(function(d){if(e.isSeriesFiltered(d))return;if(me(d.enableAriaDecal)){d.enableAriaDecal();return}var h=d.getData();if(d.isColorBySeries()){var y=LT(d.ecModel,d.name,bOe,e.getSeriesCount()),x=h.getVisual("decal");h.setVisual("decal",S(x,y))}else{var p=d.getRawData(),v={},g=TF(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=LT(d.ecModel,w,g,m),A=h.getItemVisual(b,"decal");h.setItemVisual(b,"decal",S(A,C))})}function S(_,b){var w=_?Y(Y({},b),_):b;return w.dirty=!0,w}})}}function a(){var u=e.getLocaleModel().get("aria"),c=r.getModel("label");if(c.option=xe(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",I]):c.get(["series","single",I]),T=o(T,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var P=C.getData();if(P.count()>h){var k=c.get(["data","partialData"]);T+=o(k,{displayCnt:h})}else T+=c.get(["data","allData"]);for(var R=c.get(["data","separator","middle"]),z=c.get(["data","separator","end"]),$=[],N=0;N":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},TOe=function(){function e(t){var r=this._condVal=oe(t)?new RegExp(t):ape(t)?t:null;if(r==null){var n="";st(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}(),AOe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),MOe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r2&&n.push(i),i=[P,k]}function c(P,k,R,z){Nc(P,R)&&Nc(k,z)||i.push(P,k,R,z,R,z)}function f(P,k,R,z,$,N){var V=Math.abs(k-P),L=Math.tan(V/4)*4/3,G=kC:M2&&n.push(i),n}function EA(e,t,r,n,i,a,o,s,l,u){if(Nc(e,r)&&Nc(t,n)&&Nc(i,o)&&Nc(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=[];ks(e,r,i,o,.5,A),ks(t,n,a,s,.5,T),EA(A[0],T[0],A[1],T[1],A[2],T[2],A[3],T[3],l,u),EA(A[4],T[4],A[5],T[5],A[6],T[6],A[7],T[7],l,u)}function VOe(e,t){var r=LA(e),n=[];t=t||1;for(var i=0;i0)for(var u=0;uMath.abs(u),f=a7([l,u],c?0:1,t),d=(c?s:u)/f.length,h=0;hi,o=a7([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 WOe(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 fc(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function UOe(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),UOe(t,u,c)}function F0(e,t,r,n){if(r===1)n.push(t);else{var i=Math.floor(r/2),a=e(t);F0(e,a[0],i,n),F0(e,a[1],r-i,n)}return n}function jOe(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 G0(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:tNe(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 l7(e){return XOe(e.path,e.count)}function OA(){return{fromIndividuals:[],toIndividuals:[],count:0}}function rNe(e,t,r){var n=[];function i(_){for(var b=0;b<_.length;b++){var w=_[b];$0(w)?i(w.childrenRef()):w instanceof $e&&n.push(w)}}i(e);var a=n.length;if(!a)return OA();var o=r.dividePath||l7,s=o({path:t,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),OA();n=G0(n),s=G0(s);for(var l=r.done,u=r.during,c=r.individualDelay,f=new Ja,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 iNe={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;EF(e)&&(u=e,c=t),EF(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($0(C))f({many:[C],one:A},!0,x,S,!0);else{var T=s?xe({delay:s(x,S)},l):l;YP(C,A,T),a(C,A,C,A,T)}}else for(var M=xe({dividePath:iNe[r],individualDelay:s&&function($,N,V,L){return s($+x,S)}},l),I=y?rNe(b,w,M):nNe(w,b,M),P=I.fromIndividuals,k=I.toIndividuals,R=P.length,z=0;zt.length,h=u?OF(c,u):OF(d?t:e,[d?e:t]),p=0,v=0;vu7))for(var i=n.getIndices(),a=oNe(n),o=0;o0&&S.group.traverse(function(b){b instanceof $e&&!b.animators.length&&b.animateFrom({style:{opacity:0}},_)})})}function zF(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function BF(e){return q(e)?e.sort().join(","):e}function Yo(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function uNe(e,t){var r=ve(),n=ve(),i=ve();return D(e.oldSeries,function(a,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=zF(a),c=BF(u);n.set(c,{dataGroupId:s,data:l}),q(u)&&D(u,function(f){i.set(f,{key:c,dataGroupId:s,data:l})})}),D(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=zF(a),u=BF(l),c=n.get(u);if(c)r.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Yo(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Yo(s),data:s}]});else if(q(l)){var f=[];D(l,function(p){var v=n.get(p);v.data&&f.push({dataGroupId:v.dataGroupId,divide:Yo(v.data),data:v.data})}),f.length&&r.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:Yo(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:Yo(d.data)}],newSeries:[]},r.set(d.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Yo(s)})}}}}),r}function FF(e,t){for(var r=0;r=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Yo(t.oldData[s]),dim:o.dimension})}),D(pt(e.to),function(o){var s=FF(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Yo(l),dim:o.dimension})}}),i.length>0&&a.length>0&&c7(i,a,n)}function fNe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){D(pt(n.seriesTransition),function(i){D(pt(i.to),function(a){for(var o=n.updatedSeries,s=0;s({legend:{icon:"circle",inactiveColor:Xh,textStyle:{color:Xh}},title:{text:t,x:10,y:10},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)=>` +`:"
",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=Ie(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=Wd([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 qb;m.marker=y.makeTooltipMarker("item",bu(m.color),h);var x=MO(u.formatTooltip(c,!1,f)),S=v.get("order"),_=v.get("valueFormatter"),b=x.frag,w=b?LO(_?Y({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=Ie(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=Wd(u,this._tooltipModel,f?{position:f}:null),h=d.get("content"),p=Math.random()+"",v=new qb;this._showOrMove(d,function(){var g=we(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=q(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=d,y&&(h=Ax(m.axisValue,h,g)),h=vW(h,i,!0)}else if(me(d)){var x=ue(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"||q(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!q(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),me(n)&&(n=n([i,a],s,o.el,p,{viewSize:[u,c],contentSize:f.slice()})),q(n))i=ne(n[0],u),a=ne(n[1],c);else if(Se(n)){var v=n;v.width=f[0],v.height=f[1];var g=hr(v,{width:u,height:c});i=g.x,a=g.y,d=null,h=null}else if(oe(n)&&l){var m=sLe(n,p,f,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=aLe(i,a,o,u,c,d?null:20,h?null:20);i=m[0],a=m[1]}if(d&&(i-=G5(d)?f[0]/2:d==="right"?f[0]:0),h&&(a-=G5(h)?f[1]/2:h==="bottom"?f[1]:0),F9(r)){var m=oLe(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&&D(i,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&D(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&&D(v,function(m,y){var x=g[y];o=o&&m.seriesIndex===x.seriesIndex&&m.dataIndex===x.dataIndex}),a&&D(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()||(Bp(this,"_updatePosition"),this._tooltipContent.dispose(),bA("itemTooltip",n))},t.type="tooltip",t}(jt);function Wd(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 V5(e,t){return e.dispatchAction||ue(t.dispatchAction,t)}function aLe(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 oLe(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 sLe(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 G5(e){return e==="center"||e==="middle"}function lLe(e,t,r){var n=tI(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=gv(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=Ie(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const uLe=iLe;function cLe(e){Fe(Ev),e.registerComponentModel(HRe),e.registerComponentView(uLe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},rr),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},rr)}var fLe=["rect","polygon","keep","clear"];function dLe(e,t){var r=pt(e?e.brush:[]);if(r.length){var n=[];D(r,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var i=e&&e.toolbox;q(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),hLe(s),t&&!s.length&&s.push.apply(s,fLe)}}function hLe(e){var t={};D(e,function(r){t[r]=1}),e.length=0,D(t,function(r,n){e.push(n)})}var H5=D;function W5(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function MA(e,t,r){var n={};return H5(t,function(a){var o=n[a]=i();H5(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=we(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 H9(e,t,r){var n;D(r,function(i){t.hasOwnProperty(i)&&W5(t[i])&&(n=!0)}),n&&D(r,function(i){t.hasOwnProperty(i)&&W5(t[i])?e[i]=we(t[i]):delete e[i]})}function pLe(e,t,r,n,i,a){var o={};D(e,function(f){var d=Or.prepareVisualTypes(t[f]);o[f]=d});var s;function l(f){return RI(r,s,f)}function u(f,d){oU(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&&X5(t)}};function X5(e){return new Ne(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var _Le=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 SP(n.getZr())).on("brush",ue(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){W9(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:we(i),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:we(i),$from:n})},t.type="brush",t}(jt);const wLe=_Le;var CLe="#ddd",TLe=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&&H9(i,r,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:CLe},a.hasOwnProperty("liftZ")||(a.liftZ=5)},t.prototype.setAreas=function(r){r&&(this.areas=Z(r,function(n){return Z5(this.option,n)},this))},t.prototype.setBrushOption=function(r){this.brushOption=Z5(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 Z5(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 ALe=TLe;var MLe=["rect","polygon","lineX","lineY","keep","clear"],ILe=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,D(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 D(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:MLe.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}(di);const PLe=ILe;function kLe(e){e.registerComponentView(wLe),e.registerComponentModel(ALe),e.registerPreprocessor(dLe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,mLe),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),_c("brush",PLe)}var DLe=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),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.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(){f0(p,"_"+r.get("target"))}),v&&h.on("click",function(){f0(v,"_"+r.get("subtarget"))}),Ie(c).eventData=Ie(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=hr(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}(jt);function LLe(e){e.registerComponentModel(DLe),e.registerComponentView(RLe)}var ELe=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=[],D(n,function(u,c){var f=dr(Hf(u),""),d;Se(u)?(d=we(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 sn([{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 K5=ELe;var U9=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=Ws(K5.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}(K5);lr(U9,MI.prototype);const OLe=U9;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.type="timeline",t}(jt);const zLe=NLe;var BLe=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}(Qi);const FLe=BLe;var fw=Math.PI,Q5=Je(),$Le=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 xr("nameValue",{noName:!0,value:c})},D(["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=GLe(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:fw/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*fw/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=_i(),l=o.x,u=o.y+o.height;Na(s,s,[-l,-u]),Du(s,s,-fw/2),Na(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=VLe(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 FLe("value",o,r.axisExtent,a);return l.model=n,l},t.prototype._createGroup=function(r){var n=this[r]=new Ae;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:Y({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:xe({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=[],D(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:ue(o._changeTimeline,o,u.value)},g=J5(f,d,n,v);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),iu(g);var m=Ie(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=[],D(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:ue(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),iu(m),Q5(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",ue(this._changeTimeline,this,f?"-":"+")),d(r.prevBtnPosition,"prev",ue(this._changeTimeline,this,f?"+":"-")),d(r.playPosition,c?"stop":"play",ue(this._handlePlayClick,this,!c),!0);function d(h,p,v,g){if(h){var m=Xi(Ee(a.get(["controlStyle",p+"BtnSize"]),o),o),y=[0,-m/2,m,m],x=HLe(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),iu(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=ue(u._handlePointerDrag,u),f.ondragend=ue(u._handlePointerDragend,u),eF(f,u._progressLine,s,i,a,!0)},onUpdate:function(f){eF(f,u._progressLine,s,i,a)}};this._currentPointer=J5(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=gi(a.getExtent().slice());i>o[1]&&(i=o[1]),i=0&&(o[a]=+o[a].toFixed(d)),[o,f]}var dw={min:Pe(dm,"min"),max:Pe(dm,"max"),average:Pe(dm,"average"),median:Pe(dm,"median")};function Kp(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,i=n&&n.dimensions;if(!KLe(t)&&!q(t.coord)&&q(i)){var a=Y9(t,r,n,e);if(t=we(t),t.type&&dw[t.type]&&a.baseAxis&&a.valueAxis){var o=ze(i,a.baseAxis.dim),s=ze(i,a.valueAxis.dim),l=dw[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||!q(i))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)dw[u[c]]&&(u[c]=WP(r,r.mapDimension(i[c]),u[c]));return t}}function Y9(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(QLe(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 QLe(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function Qp(e,t){return e&&e.containData&&t.coord&&!PA(t)?e.containData(t.coord):!0}function JLe(e,t,r){return e&&e.containZone&&t.coord&&r.coord&&!PA(t)&&!PA(r)?e.containZone(t.coord,r.coord):!0}function q9(e,t){return e?function(r,n,i,a){var o=a<2?r.coord&&r.coord[a]:r.value;return Ss(o,t[a])}:function(r,n,i,a){return Ss(r.value,t[a])}}function WP(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 hw=Je(),eEe=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=ve()},t.prototype.render=function(r,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){hw(s).keep=!1}),n.eachSeries(function(s){var l=zs.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!hw(s).keep&&a.group.remove(s.group)})},t.prototype.markKeep=function(r){hw(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var i=this;D(r,function(a){var o=zs.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?_6(l):sI(l))})}})},t.type="marker",t}(jt);const UP=eEe;function rF(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 tEe=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=zs.getMarkerModelFromSeries(a,"markPoint");o&&(rF(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 Iv),f=rEe(o,r,n);n.setData(f),rF(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(me(p)||me(v)||me(g)||me(m)){var x=n.getRawValue(d),S=n.getDataParams(d);me(p)&&(p=p(x,S)),me(v)&&(v=v(x,S)),me(g)&&(g=g(x,S)),me(m)&&(m=m(x,S))}var _=h.getModel("itemStyle").getItemStyle(),b=wv(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){Ie(h).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markPoint",t}(UP);function rEe(e,t,r){var n;e?n=Z(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return Y(Y({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new sn(n,r),a=Z(r.get("data"),Pe(Kp,t));e&&(a=ft(a,Pe(Qp,e)));var o=q9(!!e,n);return i.initData(a,null,o),i}const nEe=tEe;function iEe(e){e.registerComponentModel(ZLe),e.registerComponentView(nEe),e.registerPreprocessor(function(t){HP(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var aEe=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}(zs);const oEe=aEe;var hm=Je(),sEe=function(e,t,r,n){var i=e.getData(),a;if(q(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=Y9(n,i,t,e);s=u.valueAxis;var c=EU(i,u.valueDataDim);l=WP(i,c,o)}var f=s.dim==="x"?0:1,d=1-f,h=we(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=[Kp(e,a[0]),Kp(e,a[1]),Y({},a[2])];return g[2].type=g[2].type||null,Oe(g[2],g[0]),Oe(g[2],g[1]),g};function B0(e){return!isNaN(e)&&!isFinite(e)}function nF(e,t,r,n){var i=1-e,a=n.dimensions[e];return B0(t[i])&&B0(r[i])&&t[e]===r[e]&&n.getAxis(a).containData(t[e])}function lEe(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(nF(1,r,n,e)||nF(0,r,n,e)))return!0}return Qp(e,t[0])&&Qp(e,t[1])}function pw(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(Ou(a,"cartesian2d")){var h=a.getAxis("x"),p=a.getAxis("y"),c=a.dimensions;B0(e.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[r?0:1]):B0(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 uEe=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=zs.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=hm(o).from,u=hm(o).to;l.each(function(c){pw(l,c,!0,a,i),pw(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 pP);this.group.add(c.group);var f=cEe(o,r,n),d=f.from,h=f.to,p=f.line;hm(n).from=d,hm(n).to=h,n.setData(p);var v=n.get("symbol"),g=n.get("symbolSize"),m=n.get("symbolRotate"),y=n.get("symbolOffset");q(v)||(v=[v,v]),q(g)||(g=[g,g]),q(m)||(m=[m,m]),q(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){Ie(S).dataModel=n,S.traverse(function(_){Ie(_).dataModel=n})});function x(S,_,b){var w=S.getItemModel(_);pw(S,_,b,r,a);var C=w.getModel("itemStyle").getItemStyle();C.fill==null&&(C.fill=wv(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}(UP);function cEe(e,t,r){var n;e?n=Z(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return Y(Y({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new sn(n,r),a=new sn(n,r),o=new sn([],r),s=Z(r.get("data"),Pe(sEe,t,e,r));e&&(s=ft(s,Pe(lEe,e)));var l=q9(!!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 fEe=uEe;function dEe(e){e.registerComponentModel(oEe),e.registerComponentView(fEe),e.registerPreprocessor(function(t){HP(t.series,"markLine")&&(t.markLine=t.markLine||{})})}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.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}(zs);const pEe=hEe;var pm=Je(),vEe=function(e,t,r,n){var i=n[0],a=n[1];if(!(!i||!a)){var o=Kp(e,i),s=Kp(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=H2([{},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 F0(e){return!isNaN(e)&&!isFinite(e)}function iF(e,t,r,n){var i=1-e;return F0(t[i])&&F0(r[i])}function gEe(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 Ou(e,"cartesian2d")?r&&n&&(iF(1,r,n)||iF(0,r,n))?!0:JLe(e,i,a):Qp(e,i)||Qp(e,a)}function aF(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(Ou(a,"cartesian2d")){var y=a.getAxis("x"),x=a.getAxis("y"),v=e.get(r[0],t),g=e.get(r[1],t);F0(v)?s[0]=y.toGlobalCoord(y.getExtent()[r[0]==="x0"?0:1]):F0(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 oF=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],mEe=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=zs.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Z(oF,function(f){return aF(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 Ae});this.group.add(c.group),this.markKeep(c);var f=yEe(o,r,n);n.setData(f),f.each(function(d){var h=Z(oF,function(C){return aF(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))];gi(y),gi(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 kA=_Ee;var fc=Pe,DA=D,vm=Ae,wEe=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 vm),this.group.add(this._selectorGroup=new vm),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=hr(c,f,d),p=this.layoutInner(r,o,h,a,l,u),v=hr(xe({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=N9(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=ve(),f=n.get("selectedMode"),d=[];i.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),DA(n.getData(),function(h,p){var v=h.get("name");if(!this.newlineDisabled&&(v===""||v===` +`)){var g=new vm;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",fc(sF,v,null,a,d)).on("mouseover",fc(RA,m.name,null,a,d)).on("mouseout",fc(LA,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"),I=Vn(T.fill);I&&I[3]===0&&(I[3]=.2,T=Y(Y({},T),{fill:io(I,"rgba")}));var P=this._createItem(w,v,p,h,n,r,{},T,M,f,a);P.on("click",fc(sF,null,v,a,d)).on("mouseover",fc(RA,null,v,a,d)).on("mouseout",fc(LA,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();DA(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}),iu(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=CEe(c,a,l,u,h,g,d),_=new vm,b=a.getModel("textStyle");if(me(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(TEe({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??""):me(T)&&(M=T(n));var I=g?b.getTextColor():a.get("inactiveColor");_.add(new rt({style:_t(b,{text:M,x:C,y:v/2,fill:I,align:A,verticalAlign:"middle"},{inheritColor:I})}));var P=new Qe({shape:_.getBoundingRect(),invisible:!0}),k=a.getModel("tooltip");return k.get("show")&&jf({el:P,componentModel:o,itemName:n,itemTooltipOption:k.option}),_.add(P),_.eachChild(function(R){R.silent=!0}),P.silent=!f,this.getContentGroup().add(_),iu(_),_.__legendDataIndex=i,_},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ou(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){ou("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}(jt);function CEe(e,t,r,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),DA(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:Sf(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 TEe(e){var t=e.icon||"roundRect",r=sr(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 sF(e,t,r,n){LA(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),RA(e,t,r,n)}function X9(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&&it(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;D(["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=vw[o],l=gw[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}(Z9);const DEe=kEe;function REe(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 LEe(e){Fe(K9),e.registerComponentModel(PEe),e.registerComponentView(DEe),REe(e)}function EEe(e){Fe(K9),Fe(LEe)}var OEe=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=Ws(Zp.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Zp);const NEe=OEe;var jP=Je();function zEe(e,t,r){jP(e).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=r)})}function BEe(e,t){for(var r=jP(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 HEe(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=jP(r),i=n.coordSysRecordMap||(n.coordSysRecordMap=ve());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=L9(a);D(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,FEe(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ve());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){Q9(i,a);return}var c=GEe(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),ed(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var WEe=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(),zEe(i,r,{pan:ue(mw.pan,this),zoom:ue(mw.zoom,this),scrollMove:ue(mw.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){BEe(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(zP),mw={zoom:function(e,t,r,n){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=yw[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:cF(function(e,t,r,n,i,a){var o=yw[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:cF(function(e,t,r,n,i,a){var o=yw[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,r);return o.signal*(e[1]-e[0])*a.scrollDelta})};function cF(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 yw={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 UEe=WEe;function J9(e){BP(e),e.registerComponentModel(NEe),e.registerComponentView(UEe),HEe(e)}var jEe=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=Ws(Zp.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}(Zp);const YEe=jEe;var Yd=Qe,fF=7,qEe=1,xw=30,XEe=7,qd="horizontal",dF="vertical",ZEe=5,KEe=["line","bar","candlestick","scatter"],QEe={easing:"cubicOut",duration:100,delay:0},JEe=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=ue(this._onBrush,this),this._onBrushEnd=ue(this._onBrushEnd,this)},t.prototype.render=function(r,n,i,a){if(e.prototype.render.apply(this,arguments),ed(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(){Bp(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 Ae;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?XEe:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===qd?{right:s.width-o.x-o.width,top:s.height-xw-fF-a,width:o.width,height:xw}:{right:fF,top:o.y,width:xw,height:o.height},u=Zf(r.option);D(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=hr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===dF&&this._size.reverse()},t.prototype._positionGroup=function(){var r=this.group,n=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===qd&&!o?{scaleY:l?1:-1,scaleX:1}:i===qd&&o?{scaleY:l?1:-1,scaleX:-1}:i===dF&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=r.getBoundingRect([s]);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 Yd({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new Yd({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:ue(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==="",I=M?0:ct(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,I]),g.push([y,I]),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 Ae,I=new Pn({shape:{points:u},segmentIgnoreThreshold:1,style:T.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),P=new kn({shape:{points:c},segmentIgnoreThreshold:1,style:T.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(I),M.add(P),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();D(l,function(u){if(!i&&!(n!==!0&&ze(KEe,u.get("type"))<0)){var c=a.getComponent(ss(o),s).axis,f=eOe(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 Yd({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new Yd({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:qEe,fill:"rgba(0,0,0,0)"}})),D([0,1],function(x){var S=l.get("handleIcon");!p0[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var _=sr(S,-1,0,2,2,null,!0);_.attr({cursor:hF(this._orient),draggable:!0,drift:ue(this._onDragMove,this,x),ondragend:ue(this._onDragEnd,this),onmouseover:ue(this._showDataInfo,this,!0),onmouseout:ue(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(),iu(_);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=sr(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:hF(this._orient),drift:ue(this._onDragMove,this,"all"),ondragstart:ue(this._showDataInfo,this,!0),ondragend:ue(this._onDragEnd,this),onmouseover:ue(this._showDataInfo,this,!0),onmouseout:ue(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[ct(r[0],[0,100],n,!0),ct(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?ct(s.minSpan,l,o,!0):null,s.maxSpan!=null?ct(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=gi([ct(a[0],o,l,!0),ct(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=gi(i.slice()),o=this._size;D([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=gi([ct(i.x,o,s,!0),ct(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&&(vo(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 Yd({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?QEe:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=L9(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}(zP);function eOe(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function hF(e){return e==="vertical"?"ns-resize":"ew-resize"}const tOe=JEe;function e7(e){e.registerComponentModel(YEe),e.registerComponentView(tOe),BP(e)}function rOe(e){Fe(J9),Fe(e7)}var nOe={get:function(e,t,r){var n=we((iOe[e]||{})[t]);return r&&q(n)?n[n.length-1]:n}},iOe={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 t7=nOe;var pF=Or.mapVisual,aOe=Or.eachVisual,oOe=q,vF=D,sOe=gi,lOe=ct,uOe=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&&H9(i,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(r){var n=this.stateList;r=ue(r,this),this.controllerVisuals=MA(this.option.controller,n,r),this.targetVisuals=MA(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){D(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||["<",">"],q(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(me(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=sOe([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){oOe(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]={},vF(p,function(g,m){if(Or.isValidType(m)){var y=t7.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";vF(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&&we(d)||(s?g:[g])),x.symbolSize==null&&(x.symbolSize=h&&we(h)||(s?y[0]:[y[0],y[0]])),x.symbol=pF(x.symbol,function(b){return b==="none"?g:b});var S=x.symbolSize;if(S!=null){var _=-1/0;aOe(S,function(b){b>_&&(_=b)}),x.symbolSize=pF(S,function(b){return lOe(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 $0=uOe;var gF=[20,140],cOe=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]=gF[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=gF[1])},t.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):q(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),D(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},t.prototype.getSelected=function(){var r=this.getExtent(),n=gi((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=mF(this,"outOfRange",this.getExtent()),i=mF(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 Ae(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();hOe([0,1],function(c){var f=o[c];f.setStyle("fill",n.handlesColor[c]),f.y=r[c];var d=oa(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=Ui(i.handleLabelPoints[c],au(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=oa(r,s,u,!0),g=l[0]-p/2,m={x:f.x,y:f.y};f.y=v,f.x=g;var y=Ui(c.indicatorLabelPoint,au(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||bF(i))&&(h=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var p=ige(d,h);this._dispatchHighDown("downplay",ry(p[0],i)),this._dispatchHighDown("highlight",ry(p[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(Yl(r.target,function(l){var u=Ie(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 _Oe(e,t,r,n){for(var i=t.targetVisuals[n],a=Or.prepareVisualTypes(i),o={color:wv(e.getData(),"color")},s=0,l=a.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(xOe,SOe),D(bOe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(wOe))}function a7(e){e.registerComponentModel(fOe),e.registerComponentView(yOe),i7(e)}var COe=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=[],TOe[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=we(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Z(this._pieceList,function(l){return l=we(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var r=this.option,n={},i=Or.listVisualTypes(),a=this.isCategory();D(r.pieces,function(s){D(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),D(n,function(s,l){var u=!1;D(this.stateList,function(c){u=u||o(r,c,l)||o(r.target,c,l)},this),!u&&D(this.stateList,function(c){(r[c]||(r[c]={}))[l]=t7.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,D(a,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;D(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=we(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 D(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=Ws($0.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}($0),TOe={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 TF(e,t){var r=e.inverse;(e.orient==="vertical"?!r:r)&&t.reverse()}const AOe=COe;var MOe=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),D(c.viewPieceList,function(h){var p=h.piece,v=new Ae;v.onclick=ue(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),ou(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:ry(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return n7(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 Ae,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(sr(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=we(i.selected),s=n.getSelectedMapKey(r);a==="single"||a===!0?(o[s]=!0,D(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(r7);const IOe=MOe;function o7(e){e.registerComponentModel(AOe),e.registerComponentView(IOe),i7(e)}function POe(e){Fe(a7),Fe(o7)}var kOe={label:{enabled:!0},decal:{show:!1}},AF=Je(),DOe={};function ROe(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=we(kOe);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=ve();e.eachSeries(function(d){if(!d.isColorBySeries()){var h=f.get(d.type);h||(h={},f.set(d.type,h)),AF(d).scope=h}}),e.eachRawSeries(function(d){if(e.isSeriesFiltered(d))return;if(me(d.enableAriaDecal)){d.enableAriaDecal();return}var h=d.getData();if(d.isColorBySeries()){var y=ET(d.ecModel,d.name,DOe,e.getSeriesCount()),x=h.getVisual("decal");h.setVisual("decal",S(x,y))}else{var p=d.getRawData(),v={},g=AF(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=ET(d.ecModel,w,g,m),A=h.getItemVisual(b,"decal");h.setItemVisual(b,"decal",S(A,C))})}function S(_,b){var w=_?Y(Y({},b),_):b;return w.dirty=!0,w}})}}function a(){var u=e.getLocaleModel().get("aria"),c=r.getModel("label");if(c.option=xe(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",I]):c.get(["series","single",I]),T=o(T,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var P=C.getData();if(P.count()>h){var k=c.get(["data","partialData"]);T+=o(k,{displayCnt:h})}else T+=c.get(["data","allData"]);for(var R=c.get(["data","separator","middle"]),z=c.get(["data","separator","end"]),$=[],N=0;N":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},OOe=function(){function e(t){var r=this._condVal=oe(t)?new RegExp(t):vpe(t)?t:null;if(r==null){var n="";st(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}(),NOe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),zOe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r2&&n.push(i),i=[P,k]}function c(P,k,R,z){Fc(P,R)&&Fc(k,z)||i.push(P,k,R,z,R,z)}function f(P,k,R,z,$,N){var V=Math.abs(k-P),L=Math.tan(V/4)*4/3,G=kC:M2&&n.push(i),n}function OA(e,t,r,n,i,a,o,s,l,u){if(Fc(e,r)&&Fc(t,n)&&Fc(i,o)&&Fc(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=[];ks(e,r,i,o,.5,A),ks(t,n,a,s,.5,T),OA(A[0],T[0],A[1],T[1],A[2],T[2],A[3],T[3],l,u),OA(A[4],T[4],A[5],T[5],A[6],T[6],A[7],T[7],l,u)}function KOe(e,t){var r=EA(e),n=[];t=t||1;for(var i=0;i0)for(var u=0;uMath.abs(u),f=l7([l,u],c?0:1,t),d=(c?s:u)/f.length,h=0;hi,o=l7([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 eNe(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 hc(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function tNe(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),tNe(t,u,c)}function V0(e,t,r,n){if(r===1)n.push(t);else{var i=Math.floor(r/2),a=e(t);V0(e,a[0],i,n),V0(e,a[1],r-i,n)}return n}function rNe(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 W0(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:fNe(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 f7(e){return aNe(e.path,e.count)}function NA(){return{fromIndividuals:[],toIndividuals:[],count:0}}function dNe(e,t,r){var n=[];function i(_){for(var b=0;b<_.length;b++){var w=_[b];G0(w)?i(w.childrenRef()):w instanceof $e&&n.push(w)}}i(e);var a=n.length;if(!a)return NA();var o=r.dividePath||f7,s=o({path:t,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),NA();n=W0(n),s=W0(s);for(var l=r.done,u=r.during,c=r.individualDelay,f=new Ja,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 pNe={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;OF(e)&&(u=e,c=t),OF(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(G0(C))f({many:[C],one:A},!0,x,S,!0);else{var T=s?xe({delay:s(x,S)},l):l;qP(C,A,T),a(C,A,C,A,T)}}else for(var M=xe({dividePath:pNe[r],individualDelay:s&&function($,N,V,L){return s($+x,S)}},l),I=y?dNe(b,w,M):hNe(w,b,M),P=I.fromIndividuals,k=I.toIndividuals,R=P.length,z=0;zt.length,h=u?NF(c,u):NF(d?t:e,[d?e:t]),p=0,v=0;vd7))for(var i=n.getIndices(),a=gNe(n),o=0;o0&&S.group.traverse(function(b){b instanceof $e&&!b.animators.length&&b.animateFrom({style:{opacity:0}},_)})})}function BF(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function FF(e){return q(e)?e.sort().join(","):e}function Yo(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function xNe(e,t){var r=ve(),n=ve(),i=ve();return D(e.oldSeries,function(a,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=BF(a),c=FF(u);n.set(c,{dataGroupId:s,data:l}),q(u)&&D(u,function(f){i.set(f,{key:c,dataGroupId:s,data:l})})}),D(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=BF(a),u=FF(l),c=n.get(u);if(c)r.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Yo(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Yo(s),data:s}]});else if(q(l)){var f=[];D(l,function(p){var v=n.get(p);v.data&&f.push({dataGroupId:v.dataGroupId,divide:Yo(v.data),data:v.data})}),f.length&&r.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:Yo(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:Yo(d.data)}],newSeries:[]},r.set(d.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Yo(s)})}}}}),r}function $F(e,t){for(var r=0;r=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Yo(t.oldData[s]),dim:o.dimension})}),D(pt(e.to),function(o){var s=$F(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Yo(l),dim:o.dimension})}}),i.length>0&&a.length>0&&h7(i,a,n)}function bNe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){D(pt(n.seriesTransition),function(i){D(pt(i.to),function(a){for(var o=n.updatedSeries,s=0;s({legend:{icon:"circle",inactiveColor:Zh,textStyle:{color:Zh}},title:{text:t,x:10,y:10},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?o:""} ${a}
${l}: ${u} - `,""):"No data",axisPointer:{animation:!0},textStyle:{color:Xh,fontSize:13},backgroundColor:"rgba(21,35,28, 0.93)",borderWidth:0,extraCssText:"z-index:1;"},xAxis:{type:"category",splitLine:{show:!1},axisLine:{lineStyle:{color:NA}},data:e.time},yAxis:{type:"value",boundaryGap:[0,"5%"],splitLine:{show:!1},axisLine:{lineStyle:{color:NA}}},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"}}}}}}),hNe=({charts:e,lines:t})=>t.map(({key:r,name:n})=>({name:n,type:"line",showSymbol:!0,data:e[r]})),pNe=e=>({symbol:"none",label:{formatter:t=>`Run #${t.dataIndex+1}`},lineStyle:{color:NA},data:(e.markers||[]).map(t=>({xAxis:t}))});function vNe({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=rxe(o.current,"locust");s.setOption(dNe({charts:e,title:t,seriesData:hNe({charts:e,lines:r}),colors:n}));const l=()=>s.resize();return window.addEventListener("resize",l),s.group="swarmCharts",nxe("swarmCharts"),a(s),()=>{ixe(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:pNe(e)}:{}}))})},[e,i,r]),E.jsx("div",{ref:o,style:{width:"100%",height:"300px"}})}const gNe=[{title:"Total Requests per Second",lines:[{name:"RPS",key:"currentRps"},{name:"Failures/s",key:"currentFailPerSec"}],colors:["#00ca5a","#ff6d6d"]},{title:"Response Times (ms)",lines:[{name:`${window.templateArgs.percentile1*100}th percentile`,key:"responseTimePercentile1"},{name:`${window.templateArgs.percentile2*100}th percentile`,key:"responseTimePercentile2"}]},{title:"Number of Users",lines:[{name:"Number of Users",key:"userCount"}]}];function f7({charts:e}){return E.jsx("div",{children:gNe.map((t,r)=>E.jsx(vNe,{...t,charts:e},`swarm-chart-${r}`))})}const mNe=({ui:{charts:e}})=>({charts:e}),yNe=qn(mNe)(f7);function xNe(e){return(e*100).toFixed(1)+"%"}function zA({classRatio:e}){return E.jsx("ul",{children:Object.entries(e).map(([t,{ratio:r,tasks:n}])=>E.jsxs("li",{children:[`${xNe(r)} ${t}`,n&&E.jsx(zA,{classRatio:n})]},`nested-ratio-${t}`))})}function d7({ratios:{perClass:e,total:t}}){return!e&&!t?null:E.jsxs("div",{children:[e&&E.jsxs(E.Fragment,{children:[E.jsx("h3",{children:"Ratio Per Class"}),E.jsx(zA,{classRatio:e})]}),t&&E.jsxs(E.Fragment,{children:[E.jsx("h3",{children:"Total Ratio"}),E.jsx(zA,{classRatio:t})]})]})}const SNe=({ui:{ratios:e}})=>({ratios:e}),bNe=qn(SNe)(d7),_Ne=[{key:"id",title:"Worker"},{key:"state",title:"State"},{key:"userCount",title:"# users"},{key:"cpuUsage",title:"CPU usage"},{key:"memoryUsage",title:"Memory usage",formatter:Lle}];function wNe({workers:e=[]}){const{onTableHeadClick:t,sortedStats:r,currentSortField:n}=z2(e,{defaultSortKey:"worker"});return E.jsx(zf,{currentSortField:n,onTableHeadClick:t,rows:r,structure:_Ne})}const CNe=({ui:{workers:e}})=>({workers:e}),TNe=qn(CNe)(wNe),ANe=[{component:Ghe,key:"stats",title:"Statistics"},{component:yNe,key:"charts",title:"Charts"},{component:Ohe,key:"failures",title:"Failures"},{component:Dhe,key:"exceptions",title:"Exceptions"},{component:bNe,key:"ratios",title:"Current Ratio"},{component:Fhe,key:"reports",title:"Download Data"},{component:Nhe,key:"log_viewer",title:"Logs"}],MNe=[{component:TNe,key:"workers",title:"Workers",shouldDisplayTab:e=>e.swarm.isDistributed}],INe=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)},PNe=()=>window.location.search?Rle(window.location.search):null,kNe={query:PNe()},h7=Bi({name:"url",initialState:kNe,reducers:{setUrl:nx}}),DNe=h7.actions,RNe=h7.reducer;function LNe({currentTabIndexFromQuery:e,setUrl:t,tabs:r}){const[n,i]=O.useState(e),a=(o,s)=>{const l=r[s].key;INe({tab:l}),t({query:{tab:l}}),i(s)};return E.jsxs(Lf,{maxWidth:"xl",children:[E.jsx(ht,{sx:{mb:2},children:E.jsx(soe,{onChange:a,value:n,children:r.map(({title:o},s)=>E.jsx(Gie,{label:o},`tab-${s}`))})}),r.map(({component:o=Ihe},s)=>n===s&&E.jsx(o,{},`tabpabel-${s}`))]})}const ENe=e=>{const{swarm:{extendedTabs:t=[]},url:{query:r}}=e,n=MNe.filter(({shouldDisplayTab:a})=>a(e)),i=[...ANe,...n,...t];return{tabs:i,currentTabIndexFromQuery:r&&r.tab?i.findIndex(({key:a})=>a===r.tab):0}},ONe={setUrl:DNe.setUrl},NNe=qn(ENe,ONe)(LNe),zNe={totalRps:0,failRatio:0,stats:[],errors:[],exceptions:[],charts:$l(window.templateArgs).history.reduce(rx,{}),ratios:{},userCount:0},BNe=e=>rx(e,{currentRps:{value:null},currentFailPerSec:{value:null},responseTimePercentile1:{value:null},responseTimePercentile2:{value:null},userCount:{value:null},time:""}),p7=Bi({name:"ui",initialState:zNe,reducers:{setUi:nx,updateCharts:(e,{payload:t})=>({...e,charts:rx(e.charts,t)}),updateChartMarkers:(e,{payload:t})=>({...e,charts:{...BNe(e.charts),markers:e.charts.markers?[...e.charts.markers,t]:[e.charts.time[0],t]}})}}),ww=p7.actions,FNe=p7.reducer,VF=2e3;function $Ne(){const e=Qd(gG.setSwarm),t=Qd(ww.setUi),r=Qd(ww.updateCharts),n=Qd(ww.updateChartMarkers),i=Ef(({swarm:m})=>m),a=O.useRef(i.state),o=O.useRef(!1),[s,l]=O.useState(!1),{data:u,refetch:c}=Ele(),{data:f,refetch:d}=Ole(),{data:h,refetch:p}=Nle(),v=i.state===li.SPAWNING||i.state==li.RUNNING,g=()=>{if(!u)return;const{extendedStats:m,stats:y,errors:x,totalRps:S,totalFailPerSec:_,failRatio:b,workers:w,currentResponseTimePercentile1:C,currentResponseTimePercentile2:A,userCount:T}=u,M=new Date().toLocaleTimeString();s&&(l(!1),n(M));const I=Lm(S,2),P=Lm(_,2),k=Lm(b*100),R={currentRps:I,currentFailPerSec:P,responseTimePercentile1:C,responseTimePercentile2:A,userCount:T,time:M};t({extendedStats:m,stats:y,errors:x,totalRps:I,failRatio:k,workers:w,userCount:T}),r(R)};O.useEffect(()=>{u&&(u.state===li.STOPPED||u.state===li.SPAWNING)&&e({state:u.state})},[u&&u.state]),O.useEffect(()=>{u&&(o.current||g(),o.current=!0)},[u]),th(g,VF,{shouldRunInterval:!!u&&v}),O.useEffect(()=>{f&&t({ratios:f})},[f]),O.useEffect(()=>{h&&t({exceptions:h.exceptions})},[h]),th(c,VF,{shouldRunInterval:v}),th(d,5e3,{shouldRunInterval:v}),th(p,5e3,{shouldRunInterval:v}),O.useEffect(()=>{i.state===li.RUNNING&&a.current===li.STOPPED&&l(!0),a.current=i.state},[i.state,a])}const v7=e=>e2({palette:{mode:e,primary:{main:"#15803d"},success:{main:"#00C853"}}});function VNe({isDarkMode:e,swarmState:t}){$Ne();const r=O.useMemo(()=>v7(e?Ma.DARK:Ma.LIGHT),[e]);return E.jsxs(a4,{theme:r,children:[E.jsx(i4,{}),E.jsx(iue,{children:t===li.READY?E.jsx(mG,{}):E.jsx(NNe,{})})]})}const GNe=({swarm:{state:e},theme:{isDarkMode:t}})=>({isDarkMode:t,swarmState:e}),HNe=qn(GNe)(VNe),WNe={},UNe=Bi({name:"notification",initialState:WNe,reducers:{setNotification:nx}}),jNe=UNe.reducer,YNe=m2({[zC.reducerPath]:zC.reducer,notification:jNe,swarm:Xle,theme:Tse,ui:FNe,url:RNe}),qNe=hse({reducer:YNe}),XNe=[{key:"method",title:"Method"},{key:"name",title:"Name"}];function ZNe({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 E.jsx(zf,{rows:e,structure:[...XNe,...t]})}const KNe=v7(window.theme||G4);function QNe({locustfile:e,showDownloadLink:t,startTime:r,endTime:n,charts:i,host:a,exceptionsStatistics:o,requestsStatistics:s,failuresStatistics:l,responseTimeStatistics:u,tasks:c}){return E.jsxs(a4,{theme:KNe,children:[E.jsx(i4,{}),E.jsxs(Lf,{maxWidth:"lg",sx:{my:4},children:[E.jsxs(ht,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-end"},children:[E.jsx(Xe,{component:"h1",noWrap:!0,sx:{fontWeight:700},variant:"h3",children:"Locust Test Report"}),t&&E.jsx(si,{href:`?download=1&theme=${window.theme}`,children:"Download the Report"})]}),E.jsxs(ht,{sx:{my:2},children:[E.jsxs(ht,{sx:{display:"flex",columnGap:.5},children:[E.jsx(Xe,{fontWeight:600,children:"During:"}),E.jsxs(Xe,{children:[r," - ",n]})]}),E.jsxs(ht,{sx:{display:"flex",columnGap:.5},children:[E.jsx(Xe,{fontWeight:600,children:"Target Host:"}),E.jsx(Xe,{children:a||"None"})]}),E.jsxs(ht,{sx:{display:"flex",columnGap:.5},children:[E.jsx(Xe,{fontWeight:600,children:"Script:"}),E.jsx(Xe,{children:e})]})]}),E.jsxs(ht,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[E.jsxs(ht,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Request Statistics"}),E.jsx(nH,{stats:s})]}),E.jsxs(ht,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Response Time Statistics"}),E.jsx(ZNe,{responseTimes:u})]}),E.jsxs(ht,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Failures Statistics"}),E.jsx(rH,{errors:l})]}),!!o.length&&E.jsxs(ht,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Exceptions Statistics"}),E.jsx(tH,{exceptions:o})]}),E.jsxs(ht,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Charts"}),E.jsx(f7,{charts:i})]}),E.jsxs(ht,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Final ratio"}),E.jsx(d7,{ratios:c})]})]})]})]})}const GF=Tw.createRoot(document.getElementById("root"));if(window.templateArgs.is_report){const e=$l(window.templateArgs),t={...e,charts:e.history.reduce(rx,{})};GF.render(E.jsx(QNe,{...t}))}else GF.render(E.jsx(XX,{store:qNe,children:E.jsx(HNe,{})})); + `,""):"No data",axisPointer:{animation:!0},textStyle:{color:Zh,fontSize:13},backgroundColor:"rgba(21,35,28, 0.93)",borderWidth:0,extraCssText:"z-index:1;"},xAxis:{type:"category",splitLine:{show:!1},axisLine:{lineStyle:{color:zA}},data:e.time},yAxis:{type:"value",boundaryGap:[0,"5%"],splitLine:{show:!1},axisLine:{lineStyle:{color:zA}}},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"}}}}}}),wNe=({charts:e,lines:t})=>t.map(({key:r,name:n})=>({name:n,type:"line",showSymbol:!0,data:e[r]})),CNe=e=>({symbol:"none",label:{formatter:t=>`Run #${t.dataIndex+1}`},lineStyle:{color:zA},data:(e.markers||[]).map(t=>({xAxis:t}))});function TNe({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=dxe(o.current,"locust");s.setOption(_Ne({charts:e,title:t,seriesData:wNe({charts:e,lines:r}),colors:n}));const l=()=>s.resize();return window.addEventListener("resize",l),s.group="swarmCharts",hxe("swarmCharts"),a(s),()=>{pxe(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:CNe(e)}:{}}))})},[e,i,r]),E.jsx("div",{ref:o,style:{width:"100%",height:"300px"}})}const ANe=[{title:"Total Requests per Second",lines:[{name:"RPS",key:"currentRps"},{name:"Failures/s",key:"currentFailPerSec"}],colors:["#00ca5a","#ff6d6d"]},{title:"Response Times (ms)",lines:[{name:`${window.templateArgs.percentile1*100}th percentile`,key:"responseTimePercentile1"},{name:`${window.templateArgs.percentile2*100}th percentile`,key:"responseTimePercentile2"}]},{title:"Number of Users",lines:[{name:"Number of Users",key:"userCount"}]}];function p7({charts:e}){return E.jsx("div",{children:ANe.map((t,r)=>E.jsx(TNe,{...t,charts:e},`swarm-chart-${r}`))})}const MNe=({ui:{charts:e}})=>({charts:e}),INe=Xn(MNe)(p7);function PNe(e){return(e*100).toFixed(1)+"%"}function BA({classRatio:e}){return E.jsx("ul",{children:Object.entries(e).map(([t,{ratio:r,tasks:n}])=>E.jsxs("li",{children:[`${PNe(r)} ${t}`,n&&E.jsx(BA,{classRatio:n})]},`nested-ratio-${t}`))})}function v7({ratios:{perClass:e,total:t}}){return!e&&!t?null:E.jsxs("div",{children:[e&&E.jsxs(E.Fragment,{children:[E.jsx("h3",{children:"Ratio Per Class"}),E.jsx(BA,{classRatio:e})]}),t&&E.jsxs(E.Fragment,{children:[E.jsx("h3",{children:"Total Ratio"}),E.jsx(BA,{classRatio:t})]})]})}const kNe=({ui:{ratios:e}})=>({ratios:e}),DNe=Xn(kNe)(v7),RNe=[{key:"id",title:"Worker"},{key:"state",title:"State"},{key:"userCount",title:"# users"},{key:"cpuUsage",title:"CPU usage"},{key:"memoryUsage",title:"Memory usage",formatter:Ole}];function LNe({workers:e=[]}){const{onTableHeadClick:t,sortedStats:r,currentSortField:n}=B2(e,{defaultSortKey:"worker"});return E.jsx(Ff,{currentSortField:n,onTableHeadClick:t,rows:r,structure:RNe})}const ENe=({ui:{workers:e}})=>({workers:e}),ONe=Xn(ENe)(LNe),NNe=[{component:Qhe,key:"stats",title:"Statistics"},{component:INe,key:"charts",title:"Charts"},{component:Uhe,key:"failures",title:"Failures"},{component:Vhe,key:"exceptions",title:"Exceptions"},{component:DNe,key:"ratios",title:"Current Ratio"},{component:Xhe,key:"reports",title:"Download Data"},{component:jhe,key:"logViewer",title:"Logs"}],zNe=[{component:ONe,key:"workers",title:"Workers",shouldDisplayTab:e=>e.swarm.isDistributed}],BNe=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)},FNe=()=>window.location.search?Ele(window.location.search):null,$Ne={query:FNe()},g7=ui({name:"url",initialState:$Ne,reducers:{setUrl:fv}}),VNe=g7.actions,GNe=g7.reducer;function HNe({currentTabIndexFromQuery:e,setUrl:t,tabs:r}){const[n,i]=O.useState(e),a=(o,s)=>{const l=r[s].key;BNe({tab:l}),t({query:{tab:l}}),i(s)};return E.jsxs(Nf,{maxWidth:"xl",children:[E.jsx(ht,{sx:{mb:2},children:E.jsx(coe,{onChange:a,value:n,children:r.map(({title:o},s)=>E.jsx(Uie,{label:o},`tab-${s}`))})}),r.map(({component:o=Bhe},s)=>n===s&&E.jsx(o,{},`tabpabel-${s}`))]})}const WNe=e=>{const{swarm:{extendedTabs:t=[]},url:{query:r}}=e,n=zNe.filter(({shouldDisplayTab:a})=>a(e)),i=[...NNe,...n,...t];return{tabs:i,currentTabIndexFromQuery:r&&r.tab?i.findIndex(({key:a})=>a===r.tab):0}},UNe={setUrl:VNe.setUrl},jNe=Xn(WNe,UNe)(HNe),YNe={totalRps:0,failRatio:0,stats:[],errors:[],exceptions:[],charts:Gl(window.templateArgs).history.reduce(ix,{}),ratios:{},userCount:0},qNe=e=>ix(e,{currentRps:{value:null},currentFailPerSec:{value:null},responseTimePercentile1:{value:null},responseTimePercentile2:{value:null},userCount:{value:null},time:""}),m7=ui({name:"ui",initialState:YNe,reducers:{setUi:fv,updateCharts:(e,{payload:t})=>({...e,charts:ix(e.charts,t)}),updateChartMarkers:(e,{payload:t})=>({...e,charts:{...qNe(e.charts),markers:e.charts.markers?[...e.charts.markers,t]:[e.charts.time[0],t]}})}}),Cw=m7.actions,XNe=m7.reducer,GF=2e3;function ZNe(){const e=$l(mG.setSwarm),t=$l(Cw.setUi),r=$l(Cw.updateCharts),n=$l(Cw.updateChartMarkers),i=Vs(({swarm:m})=>m),a=O.useRef(i.state),o=O.useRef(!1),[s,l]=O.useState(!1),{data:u,refetch:c}=Nle(),{data:f,refetch:d}=zle(),{data:h,refetch:p}=Ble(),v=i.state===En.SPAWNING||i.state==En.RUNNING,g=()=>{if(!u)return;const{extendedStats:m,stats:y,errors:x,totalRps:S,totalFailPerSec:_,failRatio:b,workers:w,currentResponseTimePercentile1:C,currentResponseTimePercentile2:A,userCount:T}=u,M=new Date().toLocaleTimeString();s&&(l(!1),n(M));const I=Om(S,2),P=Om(_,2),k=Om(b*100),R={currentRps:I,currentFailPerSec:P,responseTimePercentile1:C,responseTimePercentile2:A,userCount:T,time:M};t({extendedStats:m,stats:y,errors:x,totalRps:I,failRatio:k,workers:w,userCount:T}),r(R)};O.useEffect(()=>{u&&(u.state===En.STOPPED||u.state===En.SPAWNING)&&e({state:u.state})},[u&&u.state]),O.useEffect(()=>{u&&(o.current||g(),o.current=!0)},[u]),rh(g,GF,{shouldRunInterval:!!u&&v}),O.useEffect(()=>{f&&t({ratios:f})},[f]),O.useEffect(()=>{h&&t({exceptions:h.exceptions})},[h]),rh(c,GF,{shouldRunInterval:v}),rh(d,5e3,{shouldRunInterval:v}),rh(p,5e3,{shouldRunInterval:v}),O.useEffect(()=>{i.state===En.RUNNING&&a.current===En.STOPPED&&l(!0),a.current=i.state},[i.state,a])}const y7=e=>t2({palette:{mode:e,primary:{main:"#15803d"},success:{main:"#00C853"}}});function KNe({isDarkMode:e,swarmState:t}){ZNe(),pue();const r=O.useMemo(()=>y7(e?Ma.DARK:Ma.LIGHT),[e]);return E.jsxs(o4,{theme:r,children:[E.jsx(a4,{}),E.jsx(oue,{children:t===En.READY?E.jsx(yG,{}):E.jsx(jNe,{})})]})}const QNe=({swarm:{state:e},theme:{isDarkMode:t}})=>({isDarkMode:t,swarmState:e}),JNe=Xn(QNe)(KNe),eze=y2({[BC.reducerPath]:BC.reducer,logViewer:hue,notification:uue,swarm:Kle,theme:Ise,ui:XNe,url:GNe}),tze=gse({reducer:eze}),rze=[{key:"method",title:"Method"},{key:"name",title:"Name"}];function nze({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 E.jsx(Ff,{rows:e,structure:[...rze,...t]})}const ize=y7(window.theme||H4);function aze({locustfile:e,showDownloadLink:t,startTime:r,endTime:n,charts:i,host:a,exceptionsStatistics:o,requestsStatistics:s,failuresStatistics:l,responseTimeStatistics:u,tasks:c}){return E.jsxs(o4,{theme:ize,children:[E.jsx(a4,{}),E.jsxs(Nf,{maxWidth:"lg",sx:{my:4},children:[E.jsxs(ht,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-end"},children:[E.jsx(Xe,{component:"h1",noWrap:!0,sx:{fontWeight:700},variant:"h3",children:"Locust Test Report"}),t&&E.jsx(li,{href:`?download=1&theme=${window.theme}`,children:"Download the Report"})]}),E.jsxs(ht,{sx:{my:2},children:[E.jsxs(ht,{sx:{display:"flex",columnGap:.5},children:[E.jsx(Xe,{fontWeight:600,children:"During:"}),E.jsxs(Xe,{children:[r," - ",n]})]}),E.jsxs(ht,{sx:{display:"flex",columnGap:.5},children:[E.jsx(Xe,{fontWeight:600,children:"Target Host:"}),E.jsx(Xe,{children:a||"None"})]}),E.jsxs(ht,{sx:{display:"flex",columnGap:.5},children:[E.jsx(Xe,{fontWeight:600,children:"Script:"}),E.jsx(Xe,{children:e})]})]}),E.jsxs(ht,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[E.jsxs(ht,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Request Statistics"}),E.jsx(oH,{stats:s})]}),E.jsxs(ht,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Response Time Statistics"}),E.jsx(nze,{responseTimes:u})]}),E.jsxs(ht,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Failures Statistics"}),E.jsx(aH,{errors:l})]}),!!o.length&&E.jsxs(ht,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Exceptions Statistics"}),E.jsx(iH,{exceptions:o})]}),E.jsxs(ht,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Charts"}),E.jsx(p7,{charts:i})]}),E.jsxs(ht,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Final ratio"}),E.jsx(v7,{ratios:c})]})]})]})]})}const HF=Aw.createRoot(document.getElementById("root"));if(window.templateArgs.is_report){const e=Gl(window.templateArgs),t={...e,charts:e.history.reduce(ix,{})};HF.render(E.jsx(aze,{...t}))}else HF.render(E.jsx(QX,{store:tze,children:E.jsx(JNe,{})})); diff --git a/locust/webui/dist/index.html b/locust/webui/dist/index.html index 002d94765d..ab6a7f0bb0 100644 --- a/locust/webui/dist/index.html +++ b/locust/webui/dist/index.html @@ -7,7 +7,7 @@ Locust - +
diff --git a/locust/webui/src/App.tsx b/locust/webui/src/App.tsx index dcf69c2406..fbecade4ba 100644 --- a/locust/webui/src/App.tsx +++ b/locust/webui/src/App.tsx @@ -4,6 +4,7 @@ import { ThemeProvider } from '@mui/material/styles'; import { connect } from 'react-redux'; import Layout from 'components/Layout/Layout'; +import useLogViewer from 'components/LogViewer/useLogViewer'; import SwarmForm from 'components/SwarmForm/SwarmForm'; import Tabs from 'components/Tabs/Tabs'; import { SWARM_STATE } from 'constants/swarm'; @@ -21,6 +22,7 @@ interface IApp { function App({ isDarkMode, swarmState }: IApp) { useSwarmUi(); + useLogViewer(); const theme = useMemo( () => createTheme(isDarkMode ? THEME_MODE.DARK : THEME_MODE.LIGHT), diff --git a/locust/webui/src/components/LogViewer/LogViewer.test.tsx b/locust/webui/src/components/LogViewer/LogViewer.test.tsx deleted file mode 100644 index 2cdc95d407..0000000000 --- a/locust/webui/src/components/LogViewer/LogViewer.test.tsx +++ /dev/null @@ -1,31 +0,0 @@ -import { waitFor } from '@testing-library/react'; -import { http, HttpResponse } from 'msw'; -import { setupServer } from 'msw/node'; -import { beforeAll, afterEach, afterAll, describe, expect, test } from 'vitest'; - -import LogViewer from 'components/LogViewer/LogViewer'; -import { TEST_BASE_API } from 'test/constants'; -import { swarmStateMock } from 'test/mocks/swarmState.mock'; -import { renderWithProvider } from 'test/testUtils'; - -const server = setupServer( - http.get(`${TEST_BASE_API}/logs`, () => HttpResponse.json({ logs: ['Log 1', 'Log 2', 'Log 3'] })), -); - -describe('LogViewer', () => { - beforeAll(() => server.listen()); - afterEach(() => server.resetHandlers()); - afterAll(() => server.close()); - - test('should render host, status, RPS, and failures on first load', async () => { - const { getByText } = renderWithProvider(, { - swarm: swarmStateMock, - }); - - await waitFor(() => { - expect(getByText('Log 1')).toBeTruthy(); - expect(getByText('Log 2')).toBeTruthy(); - expect(getByText('Log 3')).toBeTruthy(); - }); - }); -}); diff --git a/locust/webui/src/components/LogViewer/LogViewer.tsx b/locust/webui/src/components/LogViewer/LogViewer.tsx index 22191dd101..c82880fb43 100644 --- a/locust/webui/src/components/LogViewer/LogViewer.tsx +++ b/locust/webui/src/components/LogViewer/LogViewer.tsx @@ -1,15 +1,9 @@ import { Box, Typography } from '@mui/material'; -import { SWARM_STATE } from 'constants/swarm'; -import useInterval from 'hooks/useInterval'; -import { useGetLogsQuery } from 'redux/api/swarm'; import { useSelector } from 'redux/hooks'; export default function LogViewer() { - const swarm = useSelector(({ swarm }) => swarm); - const { data, refetch: refetchLogs } = useGetLogsQuery(); - - useInterval(refetchLogs, 5000, { shouldRunInterval: swarm.state !== SWARM_STATE.STOPPED }); + const logs = useSelector(({ logViewer: { logs } }) => logs); return ( @@ -17,7 +11,11 @@ export default function LogViewer() { Logs -
    {data && data.logs.map((log, index) =>
  • {log}
  • )}
+
    + {logs.map((log, index) => ( +
  • {log}
  • + ))} +
); } diff --git a/locust/webui/src/components/LogViewer/tests/LogViewer.test.tsx b/locust/webui/src/components/LogViewer/tests/LogViewer.test.tsx new file mode 100644 index 0000000000..bc90c0c5a4 --- /dev/null +++ b/locust/webui/src/components/LogViewer/tests/LogViewer.test.tsx @@ -0,0 +1,20 @@ +import { describe, expect, test } from 'vitest'; + +import LogViewer from 'components/LogViewer/LogViewer'; +import { swarmStateMock } from 'test/mocks/swarmState.mock'; +import { renderWithProvider } from 'test/testUtils'; + +describe('LogViewer', () => { + test('should render host, status, RPS, and failures on first load', async () => { + const { getByText } = renderWithProvider(, { + swarm: swarmStateMock, + logViewer: { + logs: ['Log 1', 'Log 2', 'Log 3'], + }, + }); + + expect(getByText('Log 1')).toBeTruthy(); + expect(getByText('Log 2')).toBeTruthy(); + expect(getByText('Log 3')).toBeTruthy(); + }); +}); diff --git a/locust/webui/src/components/LogViewer/tests/useLogViewer.test.tsx b/locust/webui/src/components/LogViewer/tests/useLogViewer.test.tsx new file mode 100644 index 0000000000..987aa474c4 --- /dev/null +++ b/locust/webui/src/components/LogViewer/tests/useLogViewer.test.tsx @@ -0,0 +1,38 @@ +import { waitFor } from '@testing-library/react'; +import { http, HttpResponse } from 'msw'; +import { setupServer } from 'msw/node'; +import { afterAll, afterEach, beforeAll, describe, expect, test } from 'vitest'; + +import useLogViewer from 'components/LogViewer/useLogViewer'; +import { TEST_BASE_API } from 'test/constants'; +import { swarmStateMock } from 'test/mocks/swarmState.mock'; +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 })), +); + +function MockHook() { + const logs = useLogViewer(); + + return {JSON.stringify(logs)}; +} + +describe('useLogViewer', () => { + beforeAll(() => server.listen()); + afterEach(() => server.resetHandlers()); + afterAll(() => server.close()); + + test('should fetch logs from server and store them in state', async () => { + const { store, getByTestId } = renderWithProvider(, { + swarm: swarmStateMock, + }); + + await waitFor(() => { + expect(getByTestId('logs').textContent).toBe(JSON.stringify(mockLogs)); + expect(store.getState().logViewer.logs).toEqual(mockLogs); + }); + }); +}); diff --git a/locust/webui/src/components/LogViewer/useLogViewer.ts b/locust/webui/src/components/LogViewer/useLogViewer.ts new file mode 100644 index 0000000000..a8278e7946 --- /dev/null +++ b/locust/webui/src/components/LogViewer/useLogViewer.ts @@ -0,0 +1,27 @@ +import { useEffect } from 'react'; + +import { SWARM_STATE } from 'constants/swarm'; +import useInterval from 'hooks/useInterval'; +import useNotifications from 'hooks/useNotifications'; +import { useGetLogsQuery } from 'redux/api/swarm'; +import { useAction, useSelector } from 'redux/hooks'; +import { logViewerActions } from 'redux/slice/logViewer.slice'; + +export default function useLogViewer() { + const swarm = useSelector(({ swarm }) => swarm); + const setLogs = useAction(logViewerActions.setLogs); + const { data, refetch: refetchLogs } = useGetLogsQuery(); + + const logs = data ? data.logs : []; + + useInterval(refetchLogs, 5000, { + shouldRunInterval: swarm.state === SWARM_STATE.SPAWNING || swarm.state == SWARM_STATE.RUNNING, + }); + useNotifications(logs, { key: 'logViewer' }); + + useEffect(() => { + setLogs({ logs }); + }, [logs]); + + return logs; +} diff --git a/locust/webui/src/components/Tabs/Tabs.constants.tsx b/locust/webui/src/components/Tabs/Tabs.constants.tsx index 3147160807..afce4d502d 100644 --- a/locust/webui/src/components/Tabs/Tabs.constants.tsx +++ b/locust/webui/src/components/Tabs/Tabs.constants.tsx @@ -41,7 +41,7 @@ export const baseTabs = [ }, { component: LogViewer, - key: 'log_viewer', + key: 'logViewer', title: 'Logs', }, ]; diff --git a/locust/webui/src/redux/slice/logViewer.slice.ts b/locust/webui/src/redux/slice/logViewer.slice.ts new file mode 100644 index 0000000000..127851b2a5 --- /dev/null +++ b/locust/webui/src/redux/slice/logViewer.slice.ts @@ -0,0 +1,24 @@ +import { PayloadAction, createSlice } from '@reduxjs/toolkit'; + +import { updateStateWithPayload } from 'redux/utils'; + +export interface ILogViewerState { + logs: string[]; +} + +export type LogViewerAction = PayloadAction; + +const initialState = { + logs: [] as string[], +}; + +const logViewerSlice = createSlice({ + name: 'logViewer', + initialState, + reducers: { + setLogs: updateStateWithPayload, + }, +}); + +export const logViewerActions = logViewerSlice.actions; +export default logViewerSlice.reducer; diff --git a/locust/webui/src/redux/slice/root.slice.ts b/locust/webui/src/redux/slice/root.slice.ts index b6f6c0b676..a6b75df80e 100644 --- a/locust/webui/src/redux/slice/root.slice.ts +++ b/locust/webui/src/redux/slice/root.slice.ts @@ -1,6 +1,7 @@ import { combineReducers, PayloadAction } from '@reduxjs/toolkit'; import { api } from 'redux/api/swarm'; +import logViewer, { ILogViewerState, LogViewerAction } from 'redux/slice/logViewer.slice'; import notification, { INotificationState, NotificationAction, @@ -11,6 +12,7 @@ import ui, { IUiState, UiAction } from 'redux/slice/ui.slice'; import url, { IUrlState, UrlAction } from 'redux/slice/url.slice'; export interface IRootState { + logViewer: ILogViewerState; notification: INotificationState; swarm: ISwarmState; theme: IThemeState; @@ -19,6 +21,7 @@ export interface IRootState { } export type Action = + | LogViewerAction | NotificationAction | SwarmAction | ThemeAction @@ -28,6 +31,7 @@ export type Action = const rootReducer = combineReducers({ [api.reducerPath]: api.reducer, + logViewer, notification, swarm, theme, From c0fd967aa3794fb786474b7d609150271cf73e3c Mon Sep 17 00:00:00 2001 From: Andrew Baldwin Date: Mon, 4 Dec 2023 11:26:09 -0500 Subject: [PATCH 3/8] Add notification alert to tabs --- .../{index-b9008be3.js => index-f3bbb16f.js} | 106 +++++++++--------- locust/webui/dist/index.html | 2 +- locust/webui/src/components/Tabs/Tabs.tsx | 35 +++++- .../src/redux/slice/notification.slice.ts | 2 +- 4 files changed, 87 insertions(+), 58 deletions(-) rename locust/webui/dist/assets/{index-b9008be3.js => index-f3bbb16f.js} (72%) diff --git a/locust/webui/dist/assets/index-b9008be3.js b/locust/webui/dist/assets/index-f3bbb16f.js similarity index 72% rename from locust/webui/dist/assets/index-b9008be3.js rename to locust/webui/dist/assets/index-f3bbb16f.js index 147b55a257..85a470d37d 100644 --- a/locust/webui/dist/assets/index-b9008be3.js +++ b/locust/webui/dist/assets/index-f3bbb16f.js @@ -1,4 +1,4 @@ -function S7(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 Jp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function b7(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 WF={exports:{}},U0={},UF={exports:{}},lt={};/** +function C7(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 Jp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function T7(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 jF={exports:{}},Y0={},YF={exports:{}},lt={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function S7(e,t){for(var r=0;r>>1,U=N[G];if(0>>1;Gi(X,L))Wi(ee,X)?(N[G]=ee,N[W]=L,G=W):(N[G]=X,N[j]=L,G=j);else if(Wi(ee,L))N[G]=ee,N[W]=L,G=W;else break e}}return V}function i(N,V){var L=N.sortIndex-V.sortIndex;return L!==0?L:N.id-V.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 V=r(u);V!==null;){if(V.callback===null)n(u);else if(V.startTime<=N)n(u),V.sortIndex=V.expirationTime,t(l,V);else break;V=r(u)}}function S(N){if(v=!1,x(N),!p)if(r(l)!==null)p=!0,z(_);else{var V=r(u);V!==null&&$(S,V.startTime-N)}}function _(N,V){p=!1,v&&(v=!1,m(C),C=-1),h=!0;var L=d;try{for(x(V),f=r(l);f!==null&&(!(f.expirationTime>V)||N&&!M());){var G=f.callback;if(typeof G=="function"){f.callback=null,d=f.priorityLevel;var U=G(f.expirationTime<=V);V=e.unstable_now(),typeof U=="function"?f.callback=U:f===r(l)&&n(l),x(V)}else n(l);f=r(l)}if(f!==null)var B=!0;else{var j=r(u);j!==null&&$(S,j.startTime-V),B=!1}return B}finally{f=null,d=L,h=!1}}var b=!1,w=null,C=-1,A=5,T=-1;function M(){return!(e.unstable_now()-TN||125G?(N.sortIndex=L,t(u,N),r(l)===null&&N===r(u)&&(v?(m(C),C=-1):v=!0,$(S,L-G))):(N.sortIndex=U,t(l,N),p||h||(p=!0,z(_))),N},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(N){var V=d;return function(){var L=d;d=V;try{return N.apply(this,arguments)}finally{d=L}}}})(r$);t$.exports=r$;var H7=t$.exports;/** + */(function(e){function t(N,V){var L=N.length;N.push(V);e:for(;0>>1,U=N[G];if(0>>1;Gi(X,L))Wi(ee,X)?(N[G]=ee,N[W]=L,G=W):(N[G]=X,N[j]=L,G=j);else if(Wi(ee,L))N[G]=ee,N[W]=L,G=W;else break e}}return V}function i(N,V){var L=N.sortIndex-V.sortIndex;return L!==0?L:N.id-V.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 V=r(u);V!==null;){if(V.callback===null)n(u);else if(V.startTime<=N)n(u),V.sortIndex=V.expirationTime,t(l,V);else break;V=r(u)}}function S(N){if(v=!1,x(N),!p)if(r(l)!==null)p=!0,z(_);else{var V=r(u);V!==null&&$(S,V.startTime-N)}}function _(N,V){p=!1,v&&(v=!1,m(C),C=-1),h=!0;var L=d;try{for(x(V),f=r(l);f!==null&&(!(f.expirationTime>V)||N&&!M());){var G=f.callback;if(typeof G=="function"){f.callback=null,d=f.priorityLevel;var U=G(f.expirationTime<=V);V=e.unstable_now(),typeof U=="function"?f.callback=U:f===r(l)&&n(l),x(V)}else n(l);f=r(l)}if(f!==null)var B=!0;else{var j=r(u);j!==null&&$(S,j.startTime-V),B=!1}return B}finally{f=null,d=L,h=!1}}var b=!1,w=null,C=-1,A=5,T=-1;function M(){return!(e.unstable_now()-TN||125G?(N.sortIndex=L,t(u,N),r(l)===null&&N===r(u)&&(v?(m(C),C=-1):v=!0,$(S,L-G))):(N.sortIndex=U,t(l,N),p||h||(p=!0,z(_))),N},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(N){var V=d;return function(){var L=d;d=V;try{return N.apply(this,arguments)}finally{d=L}}}})(i$);n$.exports=i$;var Y7=n$.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ function S7(e,t){for(var r=0;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Mw=Object.prototype.hasOwnProperty,W7=/^[: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]*$/,JP={},ek={};function U7(e){return Mw.call(ek,e)?!0:Mw.call(JP,e)?!1:W7.test(e)?ek[e]=!0:(JP[e]=!0,!1)}function j7(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 Y7(e,t,r,n){if(t===null||typeof t>"u"||j7(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 fn(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 fn(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 fn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Nr[e]=new fn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Nr[e]=new fn(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 fn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Nr[e]=new fn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Nr[e]=new fn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Nr[e]=new fn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Nr[e]=new fn(e,5,!1,e.toLowerCase(),null,!1,!1)});var HA=/[\-:]([a-z])/g;function WA(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(HA,WA);Nr[t]=new fn(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(HA,WA);Nr[t]=new fn(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(HA,WA);Nr[t]=new fn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Nr[e]=new fn(e,1,!1,e.toLowerCase(),null,!1,!1)});Nr.xlinkHref=new fn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Nr[e]=new fn(e,1,!1,e.toLowerCase(),null,!0,!0)});function UA(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"),Mw=Object.prototype.hasOwnProperty,q7=/^[: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]*$/,ek={},tk={};function X7(e){return Mw.call(tk,e)?!0:Mw.call(ek,e)?!1:q7.test(e)?tk[e]=!0:(ek[e]=!0,!1)}function Z7(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 K7(e,t,r,n){if(t===null||typeof t>"u"||Z7(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 fn(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 fn(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 fn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Nr[e]=new fn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Nr[e]=new fn(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 fn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Nr[e]=new fn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Nr[e]=new fn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Nr[e]=new fn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Nr[e]=new fn(e,5,!1,e.toLowerCase(),null,!1,!1)});var HA=/[\-:]([a-z])/g;function WA(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(HA,WA);Nr[t]=new fn(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(HA,WA);Nr[t]=new fn(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(HA,WA);Nr[t]=new fn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Nr[e]=new fn(e,1,!1,e.toLowerCase(),null,!1,!1)});Nr.xlinkHref=new fn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Nr[e]=new fn(e,1,!1,e.toLowerCase(),null,!0,!0)});function UA(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{Qx=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Xd(e):""}function q7(e){switch(e.tag){case 5:return Xd(e.type);case 16:return Xd("Lazy");case 13:return Xd("Suspense");case 19:return Xd("SuspenseList");case 0:case 2:case 15:return e=Jx(e.type,!1),e;case 11:return e=Jx(e.type.render,!1),e;case 1:return e=Jx(e.type,!0),e;default:return""}}function Dw(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 Cc:return"Fragment";case wc:return"Portal";case Iw:return"Profiler";case jA:return"StrictMode";case Pw:return"Suspense";case kw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case o$:return(e.displayName||"Context")+".Consumer";case a$:return(e._context.displayName||"Context")+".Provider";case YA:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case qA:return t=e.displayName||null,t!==null?t:Dw(e.type)||"Memo";case Wo:t=e._payload,e=e._init;try{return Dw(e(t))}catch{}}return null}function X7(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 Dw(t);case 8:return t===jA?"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 _s(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function l$(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Z7(e){var t=l$(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 Bv(e){e._valueTracker||(e._valueTracker=Z7(e))}function u$(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=l$(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function ny(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 Rw(e,t){var r=t.checked;return Kt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function rk(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=_s(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 c$(e,t){t=t.checked,t!=null&&UA(e,"checked",t,!1)}function Lw(e,t){c$(e,t);var r=_s(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")?Ew(e,t.type,r):t.hasOwnProperty("defaultValue")&&Ew(e,t.type,_s(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function nk(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 Ew(e,t,r){(t!=="number"||ny(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Zd=Array.isArray;function $c(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Fv.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Qh(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var vh={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},K7=["Webkit","ms","Moz","O"];Object.keys(vh).forEach(function(e){K7.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),vh[t]=vh[e]})});function p$(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||vh.hasOwnProperty(e)&&vh[e]?(""+t).trim():t+"px"}function v$(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=p$(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var Q7=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 zw(e,t){if(t){if(Q7[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 Bw(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 Fw=null;function XA(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $w=null,Vc=null,Gc=null;function ok(e){if(e=nv(e)){if(typeof $w!="function")throw Error(ae(280));var t=e.stateNode;t&&(t=Z0(t),$w(e.stateNode,e.type,t))}}function g$(e){Vc?Gc?Gc.push(e):Gc=[e]:Vc=e}function m$(){if(Vc){var e=Vc,t=Gc;if(Gc=Vc=null,ok(e),t)for(e=0;e>>=0,e===0?32:31-(uY(e)/cY|0)|0}var $v=64,Vv=4194304;function Kd(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=Kd(s):(a&=o,a!==0&&(n=Kd(a)))}else o=r&~i,o!==0?n=Kd(o):a!==0&&(n=Kd(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 tv(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Gi(t),e[t]=r}function pY(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),vk=String.fromCharCode(32),gk=!1;function z$(e,t){switch(e){case"keyup":return GY.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function B$(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Tc=!1;function WY(e,t){switch(e){case"compositionend":return B$(t);case"keypress":return t.which!==32?null:(gk=!0,vk);case"textInput":return e=t.data,e===vk&&gk?null:e;default:return null}}function UY(e,t){if(Tc)return e==="compositionend"||!nM&&z$(e,t)?(e=O$(),xm=eM=Ko=null,Tc=!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=Sk(r)}}function G$(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?G$(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function H$(){for(var e=window,t=ny();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=ny(e.document)}return t}function iM(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 eq(e){var t=H$(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&G$(r.ownerDocument.documentElement,r)){if(n!==null&&iM(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=bk(r,a);var o=bk(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,Ac=null,jw=null,xh=null,Yw=!1;function _k(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Yw||Ac==null||Ac!==ny(n)||(n=Ac,"selectionStart"in n&&iM(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}),xh&&ip(xh,n)||(xh=n,n=cy(jw,"onSelect"),0Pc||(e.current=Jw[Pc],Jw[Pc]=null,Pc--)}function Ot(e,t){Pc++,Jw[Pc]=e.current,e.current=t}var ws={},Xr=Fs(ws),_n=Fs(!1),cu=ws;function af(e,t){var r=e.type.contextTypes;if(!r)return ws;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 wn(e){return e=e.childContextTypes,e!=null}function dy(){$t(_n),$t(Xr)}function Pk(e,t,r){if(Xr.current!==ws)throw Error(ae(168));Ot(Xr,t),Ot(_n,r)}function Q$(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,X7(e)||"Unknown",i));return Kt({},r,n)}function hy(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ws,cu=Xr.current,Ot(Xr,e),Ot(_n,_n.current),!0}function kk(e,t,r){var n=e.stateNode;if(!n)throw Error(ae(169));r?(e=Q$(e,t,cu),n.__reactInternalMemoizedMergedChildContext=e,$t(_n),$t(Xr),Ot(Xr,e)):$t(_n),Ot(_n,r)}var Za=null,K0=!1,hS=!1;function J$(e){Za===null?Za=[e]:Za.push(e)}function dq(e){K0=!0,J$(e)}function $s(){if(!hS&&Za!==null){hS=!0;var e=0,t=Ct;try{var r=Za;for(Ct=1;e>=o,i-=o,Ka=1<<32-Gi(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&&ml(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&&ml(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&&ml(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(I){return t(m,I)}),Wt&&ml(m,C),_}function g(m,y,x,S){if(typeof x=="object"&&x!==null&&x.type===Cc&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case zv:e:{for(var _=x.key,b=y;b!==null;){if(b.key===_){if(_=x.type,_===Cc){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===Wo&&zk(_)===b.type){r(m,b.sibling),y=i(b,x.props),y.ref=ld(m,b,x),y.return=m,m=y;break e}r(m,b);break}else t(m,b);b=b.sibling}x.type===Cc?(y=Ql(x.props.children,m.mode,S,x.key),y.return=m,m=y):(S=Mm(x.type,x.key,x.props,null,m.mode,S),S.ref=ld(m,y,x),S.return=m,m=S)}return o(m);case wc: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=bS(x,m.mode,S),y.return=m,m=y}return o(m);case Wo:return b=x._init,g(m,y,b(x._payload),S)}if(Zd(x))return p(m,y,x,S);if(nd(x))return v(m,y,x,S);qv(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=SS(x,m.mode,S),y.return=m,m=y),o(m)):r(m,y)}return g}var sf=s3(!0),l3=s3(!1),iv={},Ta=Fs(iv),lp=Fs(iv),up=Fs(iv);function zl(e){if(e===iv)throw Error(ae(174));return e}function hM(e,t){switch(Ot(up,t),Ot(lp,e),Ot(Ta,iv),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Nw(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Nw(t,e)}$t(Ta),Ot(Ta,t)}function lf(){$t(Ta),$t(lp),$t(up)}function u3(e){zl(up.current);var t=zl(Ta.current),r=Nw(t,e.type);t!==r&&(Ot(lp,e),Ot(Ta,r))}function pM(e){lp.current===e&&($t(Ta),$t(lp))}var qt=Fs(0);function xy(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 pS=[];function vM(){for(var e=0;er?r:4,e(!0);var n=vS.transition;vS.transition={};try{e(!1),t()}finally{Ct=r,vS.transition=n}}function T3(){return bi().memoizedState}function gq(e,t,r){var n=ps(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},A3(e))M3(t,r);else if(r=n3(e,t,r,n),r!==null){var i=an();Hi(r,e,n,i),I3(r,t,n)}}function mq(e,t,r){var n=ps(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(A3(e))M3(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,ji(s,o)){var l=t.interleaved;l===null?(i.next=i,fM(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=n3(e,t,i,n),r!==null&&(i=an(),Hi(r,e,n,i),I3(r,t,n))}}function A3(e){var t=e.alternate;return e===Zt||t!==null&&t===Zt}function M3(e,t){Sh=Sy=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function I3(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,KA(e,r)}}var by={readContext:Si,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},yq={readContext:Si,useCallback:function(e,t){return sa().memoizedState=[e,t===void 0?null:t],e},useContext:Si,useEffect:Fk,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,wm(4194308,4,S3.bind(null,t,e),r)},useLayoutEffect:function(e,t){return wm(4194308,4,e,t)},useInsertionEffect:function(e,t){return wm(4,2,e,t)},useMemo:function(e,t){var r=sa();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=sa();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=gq.bind(null,Zt,e),[n.memoizedState,e]},useRef:function(e){var t=sa();return e={current:e},t.memoizedState=e},useState:Bk,useDebugValue:SM,useDeferredValue:function(e){return sa().memoizedState=e},useTransition:function(){var e=Bk(!1),t=e[0];return e=vq.bind(null,e[1]),sa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Zt,i=sa();if(Wt){if(r===void 0)throw Error(ae(407));r=r()}else{if(r=t(),Ar===null)throw Error(ae(349));du&30||d3(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,Fk(p3.bind(null,n,a,e),[e]),n.flags|=2048,dp(9,h3.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=sa(),t=Ar.identifierPrefix;if(Wt){var r=Qa,n=Ka;r=(n&~(1<<32-Gi(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=cp++,0")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{Qx=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Xd(e):""}function Q7(e){switch(e.tag){case 5:return Xd(e.type);case 16:return Xd("Lazy");case 13:return Xd("Suspense");case 19:return Xd("SuspenseList");case 0:case 2:case 15:return e=Jx(e.type,!1),e;case 11:return e=Jx(e.type.render,!1),e;case 1:return e=Jx(e.type,!0),e;default:return""}}function Dw(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 Cc:return"Fragment";case wc:return"Portal";case Iw:return"Profiler";case jA:return"StrictMode";case Pw:return"Suspense";case kw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case l$:return(e.displayName||"Context")+".Consumer";case s$:return(e._context.displayName||"Context")+".Provider";case YA:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case qA:return t=e.displayName||null,t!==null?t:Dw(e.type)||"Memo";case Wo:t=e._payload,e=e._init;try{return Dw(e(t))}catch{}}return null}function J7(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 Dw(t);case 8:return t===jA?"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 _s(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function c$(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function eY(e){var t=c$(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 $v(e){e._valueTracker||(e._valueTracker=eY(e))}function f$(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=c$(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function ay(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 Rw(e,t){var r=t.checked;return Kt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function nk(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=_s(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 d$(e,t){t=t.checked,t!=null&&UA(e,"checked",t,!1)}function Lw(e,t){d$(e,t);var r=_s(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")?Ew(e,t.type,r):t.hasOwnProperty("defaultValue")&&Ew(e,t.type,_s(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ik(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 Ew(e,t,r){(t!=="number"||ay(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Zd=Array.isArray;function $c(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Vv.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Qh(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var vh={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},tY=["Webkit","ms","Moz","O"];Object.keys(vh).forEach(function(e){tY.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),vh[t]=vh[e]})});function g$(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||vh.hasOwnProperty(e)&&vh[e]?(""+t).trim():t+"px"}function m$(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=g$(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var rY=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 zw(e,t){if(t){if(rY[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 Bw(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 Fw=null;function XA(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $w=null,Vc=null,Gc=null;function sk(e){if(e=nv(e)){if(typeof $w!="function")throw Error(ae(280));var t=e.stateNode;t&&(t=Q0(t),$w(e.stateNode,e.type,t))}}function y$(e){Vc?Gc?Gc.push(e):Gc=[e]:Vc=e}function x$(){if(Vc){var e=Vc,t=Gc;if(Gc=Vc=null,sk(e),t)for(e=0;e>>=0,e===0?32:31-(hY(e)/pY|0)|0}var Gv=64,Hv=4194304;function Kd(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 uy(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=Kd(s):(a&=o,a!==0&&(n=Kd(a)))}else o=r&~i,o!==0?n=Kd(o):a!==0&&(n=Kd(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 tv(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Gi(t),e[t]=r}function yY(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),gk=String.fromCharCode(32),mk=!1;function F$(e,t){switch(e){case"keyup":return jY.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $$(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Tc=!1;function qY(e,t){switch(e){case"compositionend":return $$(t);case"keypress":return t.which!==32?null:(mk=!0,gk);case"textInput":return e=t.data,e===gk&&mk?null:e;default:return null}}function XY(e,t){if(Tc)return e==="compositionend"||!nM&&F$(e,t)?(e=z$(),bm=eM=Ko=null,Tc=!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=bk(r)}}function W$(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?W$(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function U$(){for(var e=window,t=ay();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=ay(e.document)}return t}function iM(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 iq(e){var t=U$(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&W$(r.ownerDocument.documentElement,r)){if(n!==null&&iM(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=_k(r,a);var o=_k(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,Ac=null,jw=null,xh=null,Yw=!1;function wk(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Yw||Ac==null||Ac!==ay(n)||(n=Ac,"selectionStart"in n&&iM(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}),xh&&ip(xh,n)||(xh=n,n=dy(jw,"onSelect"),0Pc||(e.current=Jw[Pc],Jw[Pc]=null,Pc--)}function Ot(e,t){Pc++,Jw[Pc]=e.current,e.current=t}var ws={},Xr=Fs(ws),_n=Fs(!1),cu=ws;function af(e,t){var r=e.type.contextTypes;if(!r)return ws;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 wn(e){return e=e.childContextTypes,e!=null}function py(){$t(_n),$t(Xr)}function kk(e,t,r){if(Xr.current!==ws)throw Error(ae(168));Ot(Xr,t),Ot(_n,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,J7(e)||"Unknown",i));return Kt({},r,n)}function vy(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ws,cu=Xr.current,Ot(Xr,e),Ot(_n,_n.current),!0}function Dk(e,t,r){var n=e.stateNode;if(!n)throw Error(ae(169));r?(e=e3(e,t,cu),n.__reactInternalMemoizedMergedChildContext=e,$t(_n),$t(Xr),Ot(Xr,e)):$t(_n),Ot(_n,r)}var Za=null,J0=!1,hS=!1;function t3(e){Za===null?Za=[e]:Za.push(e)}function gq(e){J0=!0,t3(e)}function $s(){if(!hS&&Za!==null){hS=!0;var e=0,t=Ct;try{var r=Za;for(Ct=1;e>=o,i-=o,Ka=1<<32-Gi(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&&ml(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&&ml(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&&ml(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(I){return t(m,I)}),Wt&&ml(m,C),_}function g(m,y,x,S){if(typeof x=="object"&&x!==null&&x.type===Cc&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Fv:e:{for(var _=x.key,b=y;b!==null;){if(b.key===_){if(_=x.type,_===Cc){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===Wo&&Bk(_)===b.type){r(m,b.sibling),y=i(b,x.props),y.ref=ld(m,b,x),y.return=m,m=y;break e}r(m,b);break}else t(m,b);b=b.sibling}x.type===Cc?(y=Ql(x.props.children,m.mode,S,x.key),y.return=m,m=y):(S=Pm(x.type,x.key,x.props,null,m.mode,S),S.ref=ld(m,y,x),S.return=m,m=S)}return o(m);case wc: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=bS(x,m.mode,S),y.return=m,m=y}return o(m);case Wo:return b=x._init,g(m,y,b(x._payload),S)}if(Zd(x))return p(m,y,x,S);if(nd(x))return v(m,y,x,S);Zv(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=SS(x,m.mode,S),y.return=m,m=y),o(m)):r(m,y)}return g}var sf=u3(!0),c3=u3(!1),iv={},Ta=Fs(iv),lp=Fs(iv),up=Fs(iv);function zl(e){if(e===iv)throw Error(ae(174));return e}function hM(e,t){switch(Ot(up,t),Ot(lp,e),Ot(Ta,iv),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Nw(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Nw(t,e)}$t(Ta),Ot(Ta,t)}function lf(){$t(Ta),$t(lp),$t(up)}function f3(e){zl(up.current);var t=zl(Ta.current),r=Nw(t,e.type);t!==r&&(Ot(lp,e),Ot(Ta,r))}function pM(e){lp.current===e&&($t(Ta),$t(lp))}var qt=Fs(0);function by(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 pS=[];function vM(){for(var e=0;er?r:4,e(!0);var n=vS.transition;vS.transition={};try{e(!1),t()}finally{Ct=r,vS.transition=n}}function M3(){return bi().memoizedState}function Sq(e,t,r){var n=ps(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},I3(e))P3(t,r);else if(r=a3(e,t,r,n),r!==null){var i=an();Hi(r,e,n,i),k3(r,t,n)}}function bq(e,t,r){var n=ps(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(I3(e))P3(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,ji(s,o)){var l=t.interleaved;l===null?(i.next=i,fM(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=a3(e,t,i,n),r!==null&&(i=an(),Hi(r,e,n,i),k3(r,t,n))}}function I3(e){var t=e.alternate;return e===Zt||t!==null&&t===Zt}function P3(e,t){Sh=_y=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function k3(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,KA(e,r)}}var wy={readContext:Si,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},_q={readContext:Si,useCallback:function(e,t){return sa().memoizedState=[e,t===void 0?null:t],e},useContext:Si,useEffect:$k,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Tm(4194308,4,_3.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Tm(4194308,4,e,t)},useInsertionEffect:function(e,t){return Tm(4,2,e,t)},useMemo:function(e,t){var r=sa();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=sa();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=Sq.bind(null,Zt,e),[n.memoizedState,e]},useRef:function(e){var t=sa();return e={current:e},t.memoizedState=e},useState:Fk,useDebugValue:SM,useDeferredValue:function(e){return sa().memoizedState=e},useTransition:function(){var e=Fk(!1),t=e[0];return e=xq.bind(null,e[1]),sa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Zt,i=sa();if(Wt){if(r===void 0)throw Error(ae(407));r=r()}else{if(r=t(),Ar===null)throw Error(ae(349));du&30||p3(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,$k(g3.bind(null,n,a,e),[e]),n.flags|=2048,dp(9,v3.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=sa(),t=Ar.identifierPrefix;if(Wt){var r=Qa,n=Ka;r=(n&~(1<<32-Gi(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=cp++,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[da]=t,e[sp]=n,z3(e,t,!1,!1),t.stateNode=e;e:{switch(o=Bw(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;icf&&(t.flags|=128,n=!0,ud(a,!1),t.lanes=4194304)}else{if(!n)if(e=xy(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),ud(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Wt)return Gr(t),null}else 2*ar()-a.renderingStartTime>cf&&r!==1073741824&&(t.flags|=128,n=!0,ud(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=qt.current,Ot(qt,n?r&1|2:r&1),t):(Gr(t),null);case 22:case 23:return AM(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Ln&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 Aq(e,t){switch(oM(t),t.tag){case 1:return wn(t.type)&&dy(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return lf(),$t(_n),$t(Xr),vM(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return pM(t),null;case 13:if($t(qt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ae(340));of()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $t(qt),null;case 4:return lf(),null;case 10:return cM(t.type._context),null;case 22:case 23:return AM(),null;case 24:return null;default:return null}}var Zv=!1,qr=!1,Mq=typeof WeakSet=="function"?WeakSet:Set,be=null;function Lc(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 fC(e,t,r){try{r()}catch(n){er(e,t,n)}}var qk=!1;function Iq(e,t){if(qw=ly,e=H$(),iM(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(Xw={focusedElem:e,selectionRange:r},ly=!1,be=t;be!==null;)if(t=be,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,be=e;else for(;be!==null;){t=be;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:Oi(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,be=e;break}be=t.return}return p=qk,qk=!1,p}function bh(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&&fC(t,r,a)}i=i.next}while(i!==n)}}function e1(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 dC(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 $3(e){var t=e.alternate;t!==null&&(e.alternate=null,$3(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[da],delete t[sp],delete t[Qw],delete t[cq],delete t[fq])),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 V3(e){return e.tag===5||e.tag===3||e.tag===4}function Xk(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||V3(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 hC(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=fy));else if(n!==4&&(e=e.child,e!==null))for(hC(e,t,r),e=e.sibling;e!==null;)hC(e,t,r),e=e.sibling}function pC(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(pC(e,t,r),e=e.sibling;e!==null;)pC(e,t,r),e=e.sibling}var Pr=null,zi=!1;function Po(e,t,r){for(r=r.child;r!==null;)G3(e,t,r),r=r.sibling}function G3(e,t,r){if(Ca&&typeof Ca.onCommitFiberUnmount=="function")try{Ca.onCommitFiberUnmount(j0,r)}catch{}switch(r.tag){case 5:qr||Lc(r,t);case 6:var n=Pr,i=zi;Pr=null,Po(e,t,r),Pr=n,zi=i,Pr!==null&&(zi?(e=Pr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Pr.removeChild(r.stateNode));break;case 18:Pr!==null&&(zi?(e=Pr,r=r.stateNode,e.nodeType===8?dS(e.parentNode,r):e.nodeType===1&&dS(e,r),rp(e)):dS(Pr,r.stateNode));break;case 4:n=Pr,i=zi,Pr=r.stateNode.containerInfo,zi=!0,Po(e,t,r),Pr=n,zi=i;break;case 0:case 11:case 14:case 15:if(!qr&&(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)&&fC(r,t,o),i=i.next}while(i!==n)}Po(e,t,r);break;case 1:if(!qr&&(Lc(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)}Po(e,t,r);break;case 21:Po(e,t,r);break;case 22:r.mode&1?(qr=(n=qr)||r.memoizedState!==null,Po(e,t,r),qr=n):Po(e,t,r);break;default:Po(e,t,r)}}function Zk(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Mq),t.forEach(function(n){var i=zq.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Pi(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*kq(n/1960))-n,10e?16:e,Qo===null)var n=!1;else{if(e=Qo,Qo=null,Cy=0,dt&6)throw Error(ae(331));var i=dt;for(dt|=4,be=e.current;be!==null;){var a=be,o=a.child;if(be.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lar()-CM?Kl(e,0):wM|=r),Cn(e,t)}function Z3(e,t){t===0&&(e.mode&1?(t=Vv,Vv<<=1,!(Vv&130023424)&&(Vv=4194304)):t=1);var r=an();e=uo(e,t),e!==null&&(tv(e,t,r),Cn(e,r))}function Nq(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Z3(e,r)}function zq(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),Z3(e,r)}var K3;K3=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||_n.current)bn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return bn=!1,Cq(e,t,r);bn=!!(e.flags&131072)}else bn=!1,Wt&&t.flags&1048576&&e3(t,vy,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Cm(e,t),e=t.pendingProps;var i=af(t,Xr.current);Wc(t,r),i=mM(null,t,n,e,i,r);var a=yM();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,wn(n)?(a=!0,hy(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,dM(t),i.updater=Q0,t.stateNode=i,i._reactInternals=t,iC(t,n,e,r),t=sC(null,t,n,!0,a,r)):(t.tag=0,Wt&&a&&aM(t),tn(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Cm(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=Fq(n),e=Oi(n,e),i){case 0:t=oC(null,t,n,e,r);break e;case 1:t=Uk(null,t,n,e,r);break e;case 11:t=Hk(null,t,n,e,r);break e;case 14:t=Wk(null,t,n,Oi(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:Oi(n,i),oC(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Oi(n,i),Uk(e,t,n,i,r);case 3:e:{if(E3(t),e===null)throw Error(ae(387));n=t.pendingProps,a=t.memoizedState,i=a.element,i3(e,t),yy(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=uf(Error(ae(423)),t),t=jk(e,t,n,r,i);break e}else if(n!==i){i=uf(Error(ae(424)),t),t=jk(e,t,n,r,i);break e}else for(zn=fs(t.stateNode.containerInfo.firstChild),Fn=t,Wt=!0,Bi=null,r=l3(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(of(),n===i){t=co(e,t,r);break e}tn(e,t,n,r)}t=t.child}return t;case 5:return u3(t),e===null&&tC(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Zw(n,i)?o=null:a!==null&&Zw(n,a)&&(t.flags|=32),L3(e,t),tn(e,t,o,r),t.child;case 6:return e===null&&tC(t),null;case 13:return O3(e,t,r);case 4:return hM(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=sf(t,null,n,r):tn(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Oi(n,i),Hk(e,t,n,i,r);case 7:return tn(e,t,t.pendingProps,r),t.child;case 8:return tn(e,t,t.pendingProps.children,r),t.child;case 12:return tn(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(gy,n._currentValue),n._currentValue=o,a!==null)if(ji(a.value,o)){if(a.children===i.children&&!_n.current){t=co(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=to(-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),rC(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),rC(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}tn(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Wc(t,r),i=Si(i),n=n(i),t.flags|=1,tn(e,t,n,r),t.child;case 14:return n=t.type,i=Oi(n,t.pendingProps),i=Oi(n.type,i),Wk(e,t,n,i,r);case 15:return D3(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Oi(n,i),Cm(e,t),t.tag=1,wn(n)?(e=!0,hy(t)):e=!1,Wc(t,r),o3(t,n,i),iC(t,n,i,r),sC(null,t,n,!0,e,r);case 19:return N3(e,t,r);case 22:return R3(e,t,r)}throw Error(ae(156,t.tag))};function Q3(e,t){return C$(e,t)}function Bq(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 vi(e,t,r,n){return new Bq(e,t,r,n)}function IM(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Fq(e){if(typeof e=="function")return IM(e)?1:0;if(e!=null){if(e=e.$$typeof,e===YA)return 11;if(e===qA)return 14}return 2}function vs(e,t){var r=e.alternate;return r===null?(r=vi(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 Mm(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")IM(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Cc:return Ql(r.children,i,a,t);case jA:o=8,i|=8;break;case Iw:return e=vi(12,r,t,i|2),e.elementType=Iw,e.lanes=a,e;case Pw:return e=vi(13,r,t,i),e.elementType=Pw,e.lanes=a,e;case kw:return e=vi(19,r,t,i),e.elementType=kw,e.lanes=a,e;case s$:return r1(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case a$:o=10;break e;case o$:o=9;break e;case YA:o=11;break e;case qA:o=14;break e;case Wo:o=16,n=null;break e}throw Error(ae(130,e==null?e:typeof e,""))}return t=vi(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function Ql(e,t,r,n){return e=vi(7,e,n,t),e.lanes=r,e}function r1(e,t,r,n){return e=vi(22,e,n,t),e.elementType=s$,e.lanes=r,e.stateNode={isHidden:!1},e}function SS(e,t,r){return e=vi(6,e,null,t),e.lanes=r,e}function bS(e,t,r){return t=vi(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $q(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=tS(0),this.expirationTimes=tS(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tS(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function PM(e,t,r,n,i,a,o,s,l){return e=new $q(e,t,r,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=vi(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},dM(a),e}function Vq(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(rV)}catch(e){console.error(e)}}rV(),e$.exports=jn;var kf=e$.exports;const Jv=Jp(kf);var iD=kf;Aw.createRoot=iD.createRoot,Aw.hydrateRoot=iD.hydrateRoot;var nV={exports:{}},iV={};/** +`+a.stack}return{value:e,source:t,stack:i,digest:null}}function yS(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function aC(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var Tq=typeof WeakMap=="function"?WeakMap:Map;function D3(e,t,r){r=to(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Ty||(Ty=!0,vC=n),aC(e,t)},r}function R3(e,t,r){r=to(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){aC(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){aC(e,t),typeof n!="function"&&(hs===null?hs=new Set([this]):hs.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}function Vk(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new Tq;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=Fq.bind(null,e,t,r),t.then(e,e))}function Gk(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Hk(e,t,r,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=to(-1,1),t.tag=2,ds(r,t,1))),r.lanes|=1),e)}var Aq=_o.ReactCurrentOwner,bn=!1;function tn(e,t,r,n){t.child=e===null?c3(t,null,r,n):sf(t,e.child,r,n)}function Wk(e,t,r,n,i){r=r.render;var a=t.ref;return Wc(t,i),n=mM(e,t,r,n,a,i),r=yM(),e!==null&&!bn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,co(e,t,i)):(Wt&&r&&aM(t),t.flags|=1,tn(e,t,n,i),t.child)}function Uk(e,t,r,n,i){if(e===null){var a=r.type;return typeof a=="function"&&!IM(a)&&a.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=a,L3(e,t,a,n,i)):(e=Pm(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var o=a.memoizedProps;if(r=r.compare,r=r!==null?r:ip,r(o,n)&&e.ref===t.ref)return co(e,t,i)}return t.flags|=1,e=vs(a,n),e.ref=t.ref,e.return=t,t.child=e}function L3(e,t,r,n,i){if(e!==null){var a=e.memoizedProps;if(ip(a,n)&&e.ref===t.ref)if(bn=!1,t.pendingProps=n=a,(e.lanes&i)!==0)e.flags&131072&&(bn=!0);else return t.lanes=e.lanes,co(e,t,i)}return oC(e,t,r,n,i)}function E3(e,t,r){var n=t.pendingProps,i=n.children,a=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ot(Ec,Ln),Ln|=r;else{if(!(r&1073741824))return e=a!==null?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ot(Ec,Ln),Ln|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=a!==null?a.baseLanes:r,Ot(Ec,Ln),Ln|=n}else a!==null?(n=a.baseLanes|r,t.memoizedState=null):n=r,Ot(Ec,Ln),Ln|=n;return tn(e,t,i,r),t.child}function O3(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function oC(e,t,r,n,i){var a=wn(r)?cu:Xr.current;return a=af(t,a),Wc(t,i),r=mM(e,t,r,n,a,i),n=yM(),e!==null&&!bn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,co(e,t,i)):(Wt&&n&&aM(t),t.flags|=1,tn(e,t,r,i),t.child)}function jk(e,t,r,n,i){if(wn(r)){var a=!0;vy(t)}else a=!1;if(Wc(t,i),t.stateNode===null)Am(e,t),l3(t,r,n),iC(t,r,n,i),n=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,u=r.contextType;typeof u=="object"&&u!==null?u=Si(u):(u=wn(r)?cu:Xr.current,u=af(t,u));var c=r.getDerivedStateFromProps,f=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==n||l!==u)&&zk(t,o,n,u),Uo=!1;var d=t.memoizedState;o.state=d,Sy(t,n,o,i),l=t.memoizedState,s!==n||d!==l||_n.current||Uo?(typeof c=="function"&&(nC(t,r,c,n),l=t.memoizedState),(s=Uo||Nk(t,r,s,n,d,l,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),o.props=n,o.state=l,o.context=u,n=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,o3(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Oi(t.type,s),o.props=u,f=t.pendingProps,d=o.context,l=r.contextType,typeof l=="object"&&l!==null?l=Si(l):(l=wn(r)?cu:Xr.current,l=af(t,l));var h=r.getDerivedStateFromProps;(c=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==f||d!==l)&&zk(t,o,n,l),Uo=!1,d=t.memoizedState,o.state=d,Sy(t,n,o,i);var p=t.memoizedState;s!==f||d!==p||_n.current||Uo?(typeof h=="function"&&(nC(t,r,h,n),p=t.memoizedState),(u=Uo||Nk(t,r,u,n,d,p,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,p,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,p,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=p),o.props=n,o.state=p,o.context=l,n=u):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),n=!1)}return sC(e,t,r,n,a,i)}function sC(e,t,r,n,i,a){O3(e,t);var o=(t.flags&128)!==0;if(!n&&!o)return i&&Dk(t,r,!1),co(e,t,a);n=t.stateNode,Aq.current=t;var s=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=sf(t,e.child,null,a),t.child=sf(t,null,s,a)):tn(e,t,s,a),t.memoizedState=n.state,i&&Dk(t,r,!0),t.child}function N3(e){var t=e.stateNode;t.pendingContext?kk(e,t.pendingContext,t.pendingContext!==t.context):t.context&&kk(e,t.context,!1),hM(e,t.containerInfo)}function Yk(e,t,r,n,i){return of(),sM(i),t.flags|=256,tn(e,t,r,n),t.child}var lC={dehydrated:null,treeContext:null,retryLane:0};function uC(e){return{baseLanes:e,cachePool:null,transitions:null}}function z3(e,t,r){var n=t.pendingProps,i=qt.current,a=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Ot(qt,i&1),e===null)return tC(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=n.children,e=n.fallback,a?(n=t.mode,a=t.child,o={mode:"hidden",children:o},!(n&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=i1(o,n,0,null),e=Ql(e,n,r,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=uC(r),t.memoizedState=lC,e):bM(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return Mq(e,t,o,n,s,i,r);if(a){a=n.fallback,o=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:n.children};return!(o&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=vs(i,l),n.subtreeFlags=i.subtreeFlags&14680064),s!==null?a=vs(s,a):(a=Ql(a,o,r,null),a.flags|=2),a.return=t,n.return=t,n.sibling=a,t.child=n,n=a,a=t.child,o=e.child.memoizedState,o=o===null?uC(r):{baseLanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~r,t.memoizedState=lC,n}return a=e.child,e=a.sibling,n=vs(a,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function bM(e,t){return t=i1({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Kv(e,t,r,n){return n!==null&&sM(n),sf(t,e.child,null,r),e=bM(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Mq(e,t,r,n,i,a,o){if(r)return t.flags&256?(t.flags&=-257,n=yS(Error(ae(422))),Kv(e,t,o,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=n.fallback,i=t.mode,n=i1({mode:"visible",children:n.children},i,0,null),a=Ql(a,i,o,null),a.flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,t.mode&1&&sf(t,e.child,null,o),t.child.memoizedState=uC(o),t.memoizedState=lC,a);if(!(t.mode&1))return Kv(e,t,o,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var s=n.dgst;return n=s,a=Error(ae(419)),n=yS(a,n,void 0),Kv(e,t,o,n)}if(s=(o&e.childLanes)!==0,bn||s){if(n=Ar,n!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|o)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,uo(e,i),Hi(n,e,i,-1))}return MM(),n=yS(Error(ae(421))),Kv(e,t,o,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=$q.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,zn=fs(i.nextSibling),Fn=t,Wt=!0,Bi=null,e!==null&&(oi[si++]=Ka,oi[si++]=Qa,oi[si++]=fu,Ka=e.id,Qa=e.overflow,fu=t),t=bM(t,n.children),t.flags|=4096,t)}function qk(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),rC(e.return,t,r)}function xS(e,t,r,n,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=i)}function B3(e,t,r){var n=t.pendingProps,i=n.revealOrder,a=n.tail;if(tn(e,t,n.children,r),n=qt.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&qk(e,r,t);else if(e.tag===19)qk(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Ot(qt,n),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&by(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),xS(t,!1,i,r,a);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&by(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}xS(t,!0,r,null,a);break;case"together":xS(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Am(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function co(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),hu|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(ae(153));if(t.child!==null){for(e=t.child,r=vs(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=vs(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Iq(e,t,r){switch(t.tag){case 3:N3(t),of();break;case 5:f3(t);break;case 1:wn(t.type)&&vy(t);break;case 4:hM(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;Ot(yy,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Ot(qt,qt.current&1),t.flags|=128,null):r&t.child.childLanes?z3(e,t,r):(Ot(qt,qt.current&1),e=co(e,t,r),e!==null?e.sibling:null);Ot(qt,qt.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return B3(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ot(qt,qt.current),n)break;return null;case 22:case 23:return t.lanes=0,E3(e,t,r)}return co(e,t,r)}var F3,cC,$3,V3;F3=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};cC=function(){};$3=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,zl(Ta.current);var a=null;switch(r){case"input":i=Rw(e,i),n=Rw(e,n),a=[];break;case"select":i=Kt({},i,{value:void 0}),n=Kt({},n,{value:void 0}),a=[];break;case"textarea":i=Ow(e,i),n=Ow(e,n),a=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=hy)}zw(r,n);var o;r=null;for(u in i)if(!n.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var s=i[u];for(o in s)s.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Kh.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in n){var l=n[u];if(s=i!=null?i[u]:void 0,n.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(r||(r={}),r[o]=l[o])}else r||(a||(a=[]),a.push(u,r)),r=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(a=a||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(a=a||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Kh.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Bt("scroll",e),a||s===l||(a=[])):(a=a||[]).push(u,l))}r&&(a=a||[]).push("style",r);var u=a;(t.updateQueue=u)&&(t.flags|=4)}};V3=function(e,t,r,n){r!==n&&(t.flags|=4)};function ud(e,t){if(!Wt)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Gr(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Pq(e,t,r){var n=t.pendingProps;switch(oM(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gr(t),null;case 1:return wn(t.type)&&py(),Gr(t),null;case 3:return n=t.stateNode,lf(),$t(_n),$t(Xr),vM(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Xv(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Bi!==null&&(yC(Bi),Bi=null))),cC(e,t),Gr(t),null;case 5:pM(t);var i=zl(up.current);if(r=t.type,e!==null&&t.stateNode!=null)$3(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(ae(166));return Gr(t),null}if(e=zl(Ta.current),Xv(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[da]=t,n[sp]=a,e=(t.mode&1)!==0,r){case"dialog":Bt("cancel",n),Bt("close",n);break;case"iframe":case"object":case"embed":Bt("load",n);break;case"video":case"audio":for(i=0;i<\/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[da]=t,e[sp]=n,F3(e,t,!1,!1),t.stateNode=e;e:{switch(o=Bw(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;icf&&(t.flags|=128,n=!0,ud(a,!1),t.lanes=4194304)}else{if(!n)if(e=by(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),ud(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Wt)return Gr(t),null}else 2*ar()-a.renderingStartTime>cf&&r!==1073741824&&(t.flags|=128,n=!0,ud(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=qt.current,Ot(qt,n?r&1|2:r&1),t):(Gr(t),null);case 22:case 23:return AM(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Ln&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 kq(e,t){switch(oM(t),t.tag){case 1:return wn(t.type)&&py(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return lf(),$t(_n),$t(Xr),vM(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return pM(t),null;case 13:if($t(qt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ae(340));of()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $t(qt),null;case 4:return lf(),null;case 10:return cM(t.type._context),null;case 22:case 23:return AM(),null;case 24:return null;default:return null}}var Qv=!1,qr=!1,Dq=typeof WeakSet=="function"?WeakSet:Set,be=null;function Lc(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 fC(e,t,r){try{r()}catch(n){er(e,t,n)}}var Xk=!1;function Rq(e,t){if(qw=cy,e=U$(),iM(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(Xw={focusedElem:e,selectionRange:r},cy=!1,be=t;be!==null;)if(t=be,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,be=e;else for(;be!==null;){t=be;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:Oi(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,be=e;break}be=t.return}return p=Xk,Xk=!1,p}function bh(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&&fC(t,r,a)}i=i.next}while(i!==n)}}function r1(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 dC(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 G3(e){var t=e.alternate;t!==null&&(e.alternate=null,G3(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[da],delete t[sp],delete t[Qw],delete t[pq],delete t[vq])),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 H3(e){return e.tag===5||e.tag===3||e.tag===4}function Zk(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||H3(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 hC(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=hy));else if(n!==4&&(e=e.child,e!==null))for(hC(e,t,r),e=e.sibling;e!==null;)hC(e,t,r),e=e.sibling}function pC(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(pC(e,t,r),e=e.sibling;e!==null;)pC(e,t,r),e=e.sibling}var Pr=null,zi=!1;function Po(e,t,r){for(r=r.child;r!==null;)W3(e,t,r),r=r.sibling}function W3(e,t,r){if(Ca&&typeof Ca.onCommitFiberUnmount=="function")try{Ca.onCommitFiberUnmount(q0,r)}catch{}switch(r.tag){case 5:qr||Lc(r,t);case 6:var n=Pr,i=zi;Pr=null,Po(e,t,r),Pr=n,zi=i,Pr!==null&&(zi?(e=Pr,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Pr.removeChild(r.stateNode));break;case 18:Pr!==null&&(zi?(e=Pr,r=r.stateNode,e.nodeType===8?dS(e.parentNode,r):e.nodeType===1&&dS(e,r),rp(e)):dS(Pr,r.stateNode));break;case 4:n=Pr,i=zi,Pr=r.stateNode.containerInfo,zi=!0,Po(e,t,r),Pr=n,zi=i;break;case 0:case 11:case 14:case 15:if(!qr&&(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)&&fC(r,t,o),i=i.next}while(i!==n)}Po(e,t,r);break;case 1:if(!qr&&(Lc(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)}Po(e,t,r);break;case 21:Po(e,t,r);break;case 22:r.mode&1?(qr=(n=qr)||r.memoizedState!==null,Po(e,t,r),qr=n):Po(e,t,r);break;default:Po(e,t,r)}}function Kk(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Dq),t.forEach(function(n){var i=Vq.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Pi(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*Eq(n/1960))-n,10e?16:e,Qo===null)var n=!1;else{if(e=Qo,Qo=null,Ay=0,ht&6)throw Error(ae(331));var i=ht;for(ht|=4,be=e.current;be!==null;){var a=be,o=a.child;if(be.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lar()-CM?Kl(e,0):wM|=r),Cn(e,t)}function Q3(e,t){t===0&&(e.mode&1?(t=Hv,Hv<<=1,!(Hv&130023424)&&(Hv=4194304)):t=1);var r=an();e=uo(e,t),e!==null&&(tv(e,t,r),Cn(e,r))}function $q(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Q3(e,r)}function Vq(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),Q3(e,r)}var J3;J3=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||_n.current)bn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return bn=!1,Iq(e,t,r);bn=!!(e.flags&131072)}else bn=!1,Wt&&t.flags&1048576&&r3(t,my,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Am(e,t),e=t.pendingProps;var i=af(t,Xr.current);Wc(t,r),i=mM(null,t,n,e,i,r);var a=yM();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,wn(n)?(a=!0,vy(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,dM(t),i.updater=e1,t.stateNode=i,i._reactInternals=t,iC(t,n,e,r),t=sC(null,t,n,!0,a,r)):(t.tag=0,Wt&&a&&aM(t),tn(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Am(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=Hq(n),e=Oi(n,e),i){case 0:t=oC(null,t,n,e,r);break e;case 1:t=jk(null,t,n,e,r);break e;case 11:t=Wk(null,t,n,e,r);break e;case 14:t=Uk(null,t,n,Oi(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:Oi(n,i),oC(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Oi(n,i),jk(e,t,n,i,r);case 3:e:{if(N3(t),e===null)throw Error(ae(387));n=t.pendingProps,a=t.memoizedState,i=a.element,o3(e,t),Sy(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=uf(Error(ae(423)),t),t=Yk(e,t,n,r,i);break e}else if(n!==i){i=uf(Error(ae(424)),t),t=Yk(e,t,n,r,i);break e}else for(zn=fs(t.stateNode.containerInfo.firstChild),Fn=t,Wt=!0,Bi=null,r=c3(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(of(),n===i){t=co(e,t,r);break e}tn(e,t,n,r)}t=t.child}return t;case 5:return f3(t),e===null&&tC(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Zw(n,i)?o=null:a!==null&&Zw(n,a)&&(t.flags|=32),O3(e,t),tn(e,t,o,r),t.child;case 6:return e===null&&tC(t),null;case 13:return z3(e,t,r);case 4:return hM(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=sf(t,null,n,r):tn(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Oi(n,i),Wk(e,t,n,i,r);case 7:return tn(e,t,t.pendingProps,r),t.child;case 8:return tn(e,t,t.pendingProps.children,r),t.child;case 12:return tn(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(yy,n._currentValue),n._currentValue=o,a!==null)if(ji(a.value,o)){if(a.children===i.children&&!_n.current){t=co(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=to(-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),rC(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),rC(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}tn(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Wc(t,r),i=Si(i),n=n(i),t.flags|=1,tn(e,t,n,r),t.child;case 14:return n=t.type,i=Oi(n,t.pendingProps),i=Oi(n.type,i),Uk(e,t,n,i,r);case 15:return L3(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Oi(n,i),Am(e,t),t.tag=1,wn(n)?(e=!0,vy(t)):e=!1,Wc(t,r),l3(t,n,i),iC(t,n,i,r),sC(null,t,n,!0,e,r);case 19:return B3(e,t,r);case 22:return E3(e,t,r)}throw Error(ae(156,t.tag))};function eV(e,t){return A$(e,t)}function Gq(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 vi(e,t,r,n){return new Gq(e,t,r,n)}function IM(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Hq(e){if(typeof e=="function")return IM(e)?1:0;if(e!=null){if(e=e.$$typeof,e===YA)return 11;if(e===qA)return 14}return 2}function vs(e,t){var r=e.alternate;return r===null?(r=vi(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 Pm(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")IM(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Cc:return Ql(r.children,i,a,t);case jA:o=8,i|=8;break;case Iw:return e=vi(12,r,t,i|2),e.elementType=Iw,e.lanes=a,e;case Pw:return e=vi(13,r,t,i),e.elementType=Pw,e.lanes=a,e;case kw:return e=vi(19,r,t,i),e.elementType=kw,e.lanes=a,e;case u$:return i1(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case s$:o=10;break e;case l$:o=9;break e;case YA:o=11;break e;case qA:o=14;break e;case Wo:o=16,n=null;break e}throw Error(ae(130,e==null?e:typeof e,""))}return t=vi(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function Ql(e,t,r,n){return e=vi(7,e,n,t),e.lanes=r,e}function i1(e,t,r,n){return e=vi(22,e,n,t),e.elementType=u$,e.lanes=r,e.stateNode={isHidden:!1},e}function SS(e,t,r){return e=vi(6,e,null,t),e.lanes=r,e}function bS(e,t,r){return t=vi(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Wq(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=tS(0),this.expirationTimes=tS(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tS(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function PM(e,t,r,n,i,a,o,s,l){return e=new Wq(e,t,r,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=vi(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},dM(a),e}function Uq(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(iV)}catch(e){console.error(e)}}iV(),r$.exports=jn;var kf=r$.exports;const tg=Jp(kf);var aD=kf;Aw.createRoot=aD.createRoot,Aw.hydrateRoot=aD.hydrateRoot;var aV={exports:{}},oV={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -45,7 +45,7 @@ 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 ff=O;function jq(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Yq=typeof Object.is=="function"?Object.is:jq,qq=ff.useState,Xq=ff.useEffect,Zq=ff.useLayoutEffect,Kq=ff.useDebugValue;function Qq(e,t){var r=t(),n=qq({inst:{value:r,getSnapshot:t}}),i=n[0].inst,a=n[1];return Zq(function(){i.value=r,i.getSnapshot=t,_S(i)&&a({inst:i})},[e,r,t]),Xq(function(){return _S(i)&&a({inst:i}),e(function(){_S(i)&&a({inst:i})})},[e]),Kq(r),r}function _S(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Yq(e,r)}catch{return!0}}function Jq(e,t){return t()}var eX=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Jq:Qq;iV.useSyncExternalStore=ff.useSyncExternalStore!==void 0?ff.useSyncExternalStore:eX;nV.exports=iV;var aV=nV.exports,oV={exports:{}},sV={};/** + */var ff=O;function Zq(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Kq=typeof Object.is=="function"?Object.is:Zq,Qq=ff.useState,Jq=ff.useEffect,eX=ff.useLayoutEffect,tX=ff.useDebugValue;function rX(e,t){var r=t(),n=Qq({inst:{value:r,getSnapshot:t}}),i=n[0].inst,a=n[1];return eX(function(){i.value=r,i.getSnapshot=t,_S(i)&&a({inst:i})},[e,r,t]),Jq(function(){return _S(i)&&a({inst:i}),e(function(){_S(i)&&a({inst:i})})},[e]),tX(r),r}function _S(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Kq(e,r)}catch{return!0}}function nX(e,t){return t()}var iX=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?nX:rX;oV.useSyncExternalStore=ff.useSyncExternalStore!==void 0?ff.useSyncExternalStore:iX;aV.exports=oV;var sV=aV.exports,lV={exports:{}},uV={};/** * @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 s1=O,tX=aV;function rX(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nX=typeof Object.is=="function"?Object.is:rX,iX=tX.useSyncExternalStore,aX=s1.useRef,oX=s1.useEffect,sX=s1.useMemo,lX=s1.useDebugValue;sV.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var a=aX(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=sX(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,nX(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=iX(e,a[0],a[1]);return oX(function(){o.hasValue=!0,o.value=s},[s]),lX(s),s};oV.exports=sV;var uX=oV.exports;function cX(e){e()}let lV=cX;const fX=e=>lV=e,dX=()=>lV,aD=Symbol.for("react-redux-context"),oD=typeof globalThis<"u"?globalThis:{};function hX(){var e;if(!O.createContext)return{};const t=(e=oD[aD])!=null?e:oD[aD]=new Map;let r=t.get(O.createContext);return r||(r=O.createContext(null),t.set(O.createContext,r)),r}const fo=hX();function LM(e=fo){return function(){return O.useContext(e)}}const uV=LM(),cV=()=>{throw new Error("uSES not initialized!")};let fV=cV;const pX=e=>{fV=e},vX=(e,t)=>e===t;function gX(e=fo){const t=e===fo?uV:LM(e);return function(n,i={}){const{equalityFn:a=vX,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=fV(u.addNestedSub,l.getState,c||l.getState,h,a);return O.useDebugValue(p),p}}const dV=gX();function F(){return F=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}var hV={exports:{}},At={};/** @license React v16.13.1 + */var u1=O,aX=sV;function oX(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var sX=typeof Object.is=="function"?Object.is:oX,lX=aX.useSyncExternalStore,uX=u1.useRef,cX=u1.useEffect,fX=u1.useMemo,dX=u1.useDebugValue;uV.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var a=uX(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=fX(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,sX(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=lX(e,a[0],a[1]);return cX(function(){o.hasValue=!0,o.value=s},[s]),dX(s),s};lV.exports=uV;var hX=lV.exports;function pX(e){e()}let cV=pX;const vX=e=>cV=e,gX=()=>cV,oD=Symbol.for("react-redux-context"),sD=typeof globalThis<"u"?globalThis:{};function mX(){var e;if(!O.createContext)return{};const t=(e=sD[oD])!=null?e:sD[oD]=new Map;let r=t.get(O.createContext);return r||(r=O.createContext(null),t.set(O.createContext,r)),r}const fo=mX();function LM(e=fo){return function(){return O.useContext(e)}}const fV=LM(),dV=()=>{throw new Error("uSES not initialized!")};let hV=dV;const yX=e=>{hV=e},xX=(e,t)=>e===t;function SX(e=fo){const t=e===fo?fV:LM(e);return function(n,i={}){const{equalityFn:a=xX,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=hV(u.addNestedSub,l.getState,c||l.getState,h,a);return O.useDebugValue(p),p}}const pV=SX();function F(){return F=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}var vV={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 Ir=typeof Symbol=="function"&&Symbol.for,EM=Ir?Symbol.for("react.element"):60103,OM=Ir?Symbol.for("react.portal"):60106,l1=Ir?Symbol.for("react.fragment"):60107,u1=Ir?Symbol.for("react.strict_mode"):60108,c1=Ir?Symbol.for("react.profiler"):60114,f1=Ir?Symbol.for("react.provider"):60109,d1=Ir?Symbol.for("react.context"):60110,NM=Ir?Symbol.for("react.async_mode"):60111,h1=Ir?Symbol.for("react.concurrent_mode"):60111,p1=Ir?Symbol.for("react.forward_ref"):60112,v1=Ir?Symbol.for("react.suspense"):60113,mX=Ir?Symbol.for("react.suspense_list"):60120,g1=Ir?Symbol.for("react.memo"):60115,m1=Ir?Symbol.for("react.lazy"):60116,yX=Ir?Symbol.for("react.block"):60121,xX=Ir?Symbol.for("react.fundamental"):60117,SX=Ir?Symbol.for("react.responder"):60118,bX=Ir?Symbol.for("react.scope"):60119;function qn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case EM:switch(e=e.type,e){case NM:case h1:case l1:case c1:case u1:case v1:return e;default:switch(e=e&&e.$$typeof,e){case d1:case p1:case m1:case g1:case f1:return e;default:return t}}case OM:return t}}}function pV(e){return qn(e)===h1}At.AsyncMode=NM;At.ConcurrentMode=h1;At.ContextConsumer=d1;At.ContextProvider=f1;At.Element=EM;At.ForwardRef=p1;At.Fragment=l1;At.Lazy=m1;At.Memo=g1;At.Portal=OM;At.Profiler=c1;At.StrictMode=u1;At.Suspense=v1;At.isAsyncMode=function(e){return pV(e)||qn(e)===NM};At.isConcurrentMode=pV;At.isContextConsumer=function(e){return qn(e)===d1};At.isContextProvider=function(e){return qn(e)===f1};At.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===EM};At.isForwardRef=function(e){return qn(e)===p1};At.isFragment=function(e){return qn(e)===l1};At.isLazy=function(e){return qn(e)===m1};At.isMemo=function(e){return qn(e)===g1};At.isPortal=function(e){return qn(e)===OM};At.isProfiler=function(e){return qn(e)===c1};At.isStrictMode=function(e){return qn(e)===u1};At.isSuspense=function(e){return qn(e)===v1};At.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===l1||e===h1||e===c1||e===u1||e===v1||e===mX||typeof e=="object"&&e!==null&&(e.$$typeof===m1||e.$$typeof===g1||e.$$typeof===f1||e.$$typeof===d1||e.$$typeof===p1||e.$$typeof===xX||e.$$typeof===SX||e.$$typeof===bX||e.$$typeof===yX)};At.typeOf=qn;hV.exports=At;var _X=hV.exports,zM=_X,wX={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},CX={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},TX={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},vV={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},BM={};BM[zM.ForwardRef]=TX;BM[zM.Memo]=vV;function sD(e){return zM.isMemo(e)?vV:BM[e.$$typeof]||wX}var AX=Object.defineProperty,MX=Object.getOwnPropertyNames,lD=Object.getOwnPropertySymbols,IX=Object.getOwnPropertyDescriptor,PX=Object.getPrototypeOf,uD=Object.prototype;function gV(e,t,r){if(typeof t!="string"){if(uD){var n=PX(t);n&&n!==uD&&gV(e,n,r)}var i=MX(t);lD&&(i=i.concat(lD(t)));for(var a=sD(e),o=sD(t),s=0;st(i(...a)))}return r}function xC(e){return function(r){const n=e(r);function i(){return n}return i.dependsOnOwnProps=!1,i}}function fD(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function xV(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=fD(e);let u=a(s,l);return typeof u=="function"&&(a.mapToProps=u,a.dependsOnOwnProps=fD(u),u=a(s,l)),u},a}}function VM(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function BX(e){return e&&typeof e=="object"?xC(t=>zX(e,t)):e?typeof e=="function"?xV(e):VM(e,"mapDispatchToProps"):xC(t=>({dispatch:t}))}function FX(e){return e?typeof e=="function"?xV(e):VM(e,"mapStateToProps"):xC(()=>({}))}function $X(e,t,r){return F({},r,e,t)}function VX(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 GX(e){return e?typeof e=="function"?VX(e):VM(e,"mergeProps"):()=>$X}function HX(){const e=dX();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 dD={notify(){},get:()=>[]};function SV(e,t){let r,n=dD;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=HX())}function u(){r&&(r(),r=void 0,n.clear(),n=dD)}const c={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:s,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>n};return c}const WX=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",My=WX?O.useLayoutEffect:O.useEffect;function hD(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Jl(e,t){if(hD(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{bV=e},YX=[null,null];function qX(e,t,r){My(()=>e(...t),r)}function XX(e,t,r,n,i,a){e.current=n,r.current=!1,i.current&&(i.current=null,a())}function ZX(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 KX(e,t){return e===t}function Xn(e,t,r,{pure:n,areStatesEqual:i=KX,areOwnPropsEqual:a=Jl,areStatePropsEqual:o=Jl,areMergedPropsEqual:s=Jl,forwardRef:l=!1,context:u=fo}={}){const c=u,f=FX(e),d=BX(t),h=GX(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,fe=ye(w,UX);return[w.context,J,fe]},[w]),M=O.useMemo(()=>C&&C.Consumer&&LX.isContextConsumer(O.createElement(C.Consumer,null))?C:c,[C,c]),I=O.useContext(M),P=!!w.store&&!!w.store.getState&&!!w.store.dispatch,k=!!I&&!!I.store,R=P?w.store:I.store,z=k?I.getServerState:R.getState,$=O.useMemo(()=>NX(R.dispatch,x),[R]),[N,V]=O.useMemo(()=>{if(!p)return YX;const J=SV(R,P?void 0:I.subscription),fe=J.notifyNestedSubs.bind(J);return[J,fe]},[R,P,I]),L=O.useMemo(()=>P?I:F({},I,{subscription:N}),[P,I,N]),G=O.useRef(),U=O.useRef(T),B=O.useRef(),j=O.useRef(!1);O.useRef(!1);const X=O.useRef(!1),W=O.useRef();My(()=>(X.current=!0,()=>{X.current=!1}),[]);const ee=O.useMemo(()=>()=>B.current&&T===U.current?B.current:$(R.getState(),T),[R,T]),te=O.useMemo(()=>fe=>N?ZX(p,R,N,$,U,G,j,X,B,V,fe):()=>{},[N]);qX(XX,[U,G,j,T,B,V]);let ie;try{ie=bV(te,ee,z?()=>$(z(),T):ee)}catch(J){throw W.current&&(J.message+=` + */var FM=Symbol.for("react.element"),$M=Symbol.for("react.portal"),S1=Symbol.for("react.fragment"),b1=Symbol.for("react.strict_mode"),_1=Symbol.for("react.profiler"),w1=Symbol.for("react.provider"),C1=Symbol.for("react.context"),OX=Symbol.for("react.server_context"),T1=Symbol.for("react.forward_ref"),A1=Symbol.for("react.suspense"),M1=Symbol.for("react.suspense_list"),I1=Symbol.for("react.memo"),P1=Symbol.for("react.lazy"),NX=Symbol.for("react.offscreen"),SV;SV=Symbol.for("react.module.reference");function Ci(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case FM:switch(e=e.type,e){case S1:case _1:case b1:case A1:case M1:return e;default:switch(e=e&&e.$$typeof,e){case OX:case C1:case T1:case P1:case I1:case w1:return e;default:return t}}case $M:return t}}}Mt.ContextConsumer=C1;Mt.ContextProvider=w1;Mt.Element=FM;Mt.ForwardRef=T1;Mt.Fragment=S1;Mt.Lazy=P1;Mt.Memo=I1;Mt.Portal=$M;Mt.Profiler=_1;Mt.StrictMode=b1;Mt.Suspense=A1;Mt.SuspenseList=M1;Mt.isAsyncMode=function(){return!1};Mt.isConcurrentMode=function(){return!1};Mt.isContextConsumer=function(e){return Ci(e)===C1};Mt.isContextProvider=function(e){return Ci(e)===w1};Mt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===FM};Mt.isForwardRef=function(e){return Ci(e)===T1};Mt.isFragment=function(e){return Ci(e)===S1};Mt.isLazy=function(e){return Ci(e)===P1};Mt.isMemo=function(e){return Ci(e)===I1};Mt.isPortal=function(e){return Ci(e)===$M};Mt.isProfiler=function(e){return Ci(e)===_1};Mt.isStrictMode=function(e){return Ci(e)===b1};Mt.isSuspense=function(e){return Ci(e)===A1};Mt.isSuspenseList=function(e){return Ci(e)===M1};Mt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===S1||e===_1||e===b1||e===A1||e===M1||e===NX||typeof e=="object"&&e!==null&&(e.$$typeof===P1||e.$$typeof===I1||e.$$typeof===w1||e.$$typeof===C1||e.$$typeof===T1||e.$$typeof===SV||e.getModuleId!==void 0)};Mt.typeOf=Ci;xV.exports=Mt;var zX=xV.exports;const BX=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function FX(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 $X(e,t){let{initMapStateToProps:r,initMapDispatchToProps:n,initMergeProps:i}=t,a=ye(t,BX);const o=r(e,a),s=n(e,a),l=i(e,a);return FX(o,s,l,e,a)}function VX(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 xC(e){return function(r){const n=e(r);function i(){return n}return i.dependsOnOwnProps=!1,i}}function dD(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function bV(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=dD(e);let u=a(s,l);return typeof u=="function"&&(a.mapToProps=u,a.dependsOnOwnProps=dD(u),u=a(s,l)),u},a}}function VM(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function GX(e){return e&&typeof e=="object"?xC(t=>VX(e,t)):e?typeof e=="function"?bV(e):VM(e,"mapDispatchToProps"):xC(t=>({dispatch:t}))}function HX(e){return e?typeof e=="function"?bV(e):VM(e,"mapStateToProps"):xC(()=>({}))}function WX(e,t,r){return F({},r,e,t)}function UX(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 jX(e){return e?typeof e=="function"?UX(e):VM(e,"mergeProps"):()=>WX}function YX(){const e=gX();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 hD={notify(){},get:()=>[]};function _V(e,t){let r,n=hD;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=YX())}function u(){r&&(r(),r=void 0,n.clear(),n=hD)}const c={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:s,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>n};return c}const qX=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Py=qX?O.useLayoutEffect:O.useEffect;function pD(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Jl(e,t){if(pD(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{wV=e},KX=[null,null];function QX(e,t,r){Py(()=>e(...t),r)}function JX(e,t,r,n,i,a){e.current=n,r.current=!1,i.current&&(i.current=null,a())}function eZ(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 tZ(e,t){return e===t}function Xn(e,t,r,{pure:n,areStatesEqual:i=tZ,areOwnPropsEqual:a=Jl,areStatePropsEqual:o=Jl,areMergedPropsEqual:s=Jl,forwardRef:l=!1,context:u=fo}={}){const c=u,f=HX(e),d=GX(t),h=jX(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,fe=ye(w,XX);return[w.context,J,fe]},[w]),M=O.useMemo(()=>C&&C.Consumer&&zX.isContextConsumer(O.createElement(C.Consumer,null))?C:c,[C,c]),I=O.useContext(M),P=!!w.store&&!!w.store.getState&&!!w.store.dispatch,k=!!I&&!!I.store,R=P?w.store:I.store,z=k?I.getServerState:R.getState,$=O.useMemo(()=>$X(R.dispatch,x),[R]),[N,V]=O.useMemo(()=>{if(!p)return KX;const J=_V(R,P?void 0:I.subscription),fe=J.notifyNestedSubs.bind(J);return[J,fe]},[R,P,I]),L=O.useMemo(()=>P?I:F({},I,{subscription:N}),[P,I,N]),G=O.useRef(),U=O.useRef(T),B=O.useRef(),j=O.useRef(!1);O.useRef(!1);const X=O.useRef(!1),W=O.useRef();Py(()=>(X.current=!0,()=>{X.current=!1}),[]);const ee=O.useMemo(()=>()=>B.current&&T===U.current?B.current:$(R.getState(),T),[R,T]),te=O.useMemo(()=>fe=>N?eZ(p,R,N,$,U,G,j,X,B,V,fe):()=>{},[N]);QX(JX,[U,G,j,T,B,V]);let ie;try{ie=wV(te,ee,z?()=>$(z(),T):ee)}catch(J){throw W.current&&(J.message+=` The error may be correlated with this previous error: ${W.current.stack} -`),J}My(()=>{W.current=void 0,B.current=void 0,G.current=ie});const re=O.useMemo(()=>O.createElement(g,F({},ie,{ref:A})),[A,g,ie]);return O.useMemo(()=>p?O.createElement(M.Provider,{value:L},re):re,[M,re,L])}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,F({},T,{reactReduxForwardedRef:M}))});return C.displayName=y,C.WrappedComponent=g,cD(C,g)}return cD(b,g)}}function QX({store:e,context:t,children:r,serverState:n,stabilityCheck:i="once",noopCheck:a="once"}){const o=O.useMemo(()=>{const u=SV(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]);My(()=>{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||fo;return O.createElement(l.Provider,{value:o},r)}function _V(e=fo){const t=e===fo?uV:LM(e);return function(){const{store:n}=t();return n}}const wV=_V();function JX(e=fo){const t=e===fo?wV:_V(e);return function(){return t().dispatch}}const CV=JX();pX(uX.useSyncExternalStoreWithSelector);jX(aV.useSyncExternalStore);fX(kf.unstable_batchedUpdates);function Pl(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function TV(e){if(!Pl(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=TV(e[r])}),t}function yi(e,t,r={clone:!0}){const n=r.clone?F({},e):e;return Pl(e)&&Pl(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(Pl(t[i])&&i in e&&Pl(e[i])?n[i]=yi(e[i],t[i],r):r.clone?n[i]=Pl(t[i])?TV(t[i]):t[i]:n[i]=t[i])}),n}function Cs(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 av(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 eZ(e,t){return()=>null}function Ch(e,t){return O.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function on(e){return e&&e.ownerDocument||document}function Da(e){return on(e).defaultView||window}function tZ(e,t){return()=>null}function Iy(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const rZ=typeof window<"u"?O.useLayoutEffect:O.useEffect,ho=rZ;let pD=0;function nZ(e){const[t,r]=O.useState(e),n=e||t;return O.useEffect(()=>{t==null&&(pD+=1,r(`mui-${pD}`))},[t]),n}const vD=Tw["useId".toString()];function AV(e){if(vD!==void 0){const t=vD();return e??t}return nZ(e)}function iZ(e,t,r,n,i){return null}function Py({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 ya(e){const t=O.useRef(e);return ho(()=>{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=>{Iy(r,t)})},e)}let I1=!0,bC=!1,gD;const aZ={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 oZ(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&aZ[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function sZ(e){e.metaKey||e.altKey||e.ctrlKey||(I1=!0)}function wS(){I1=!1}function lZ(){this.visibilityState==="hidden"&&bC&&(I1=!0)}function uZ(e){e.addEventListener("keydown",sZ,!0),e.addEventListener("mousedown",wS,!0),e.addEventListener("pointerdown",wS,!0),e.addEventListener("touchstart",wS,!0),e.addEventListener("visibilitychange",lZ,!0)}function cZ(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return I1||oZ(t)}function GM(){const e=O.useCallback(i=>{i!=null&&uZ(i.ownerDocument)},[]),t=O.useRef(!1);function r(){return t.current?(bC=!0,window.clearTimeout(gD),gD=window.setTimeout(()=>{bC=!1},100),t.current=!1,!0):!1}function n(i){return cZ(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function MV(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Fu;function IV(){if(Fu)return Fu;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),Fu="reverse",e.scrollLeft>0?Fu="default":(e.scrollLeft=1,e.scrollLeft===0&&(Fu="negative")),document.body.removeChild(e),Fu}function fZ(e,t){const r=e.scrollLeft;if(t!=="rtl")return r;switch(IV()){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=F({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=F({},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]=F({},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 Ze(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 mD=e=>e,dZ=()=>{let e=mD;return{configure(t){e=t},generate(t){return e(t)},reset(){e=mD}}},hZ=dZ(),WM=hZ,pZ={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 Ue(e,t,r="Mui"){const n=pZ[t];return n?`${r}-${n}`:`${WM.generate(e)}-${t}`}function je(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=Ue(e,i,r)}),n}function PV(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var vZ=/^((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)-.*))$/,gZ=PV(function(e){return vZ.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function mZ(e){if(e.sheet)return e.sheet;for(var t=0;t0?Dr(Df,--Mn):0,df--,cr===10&&(df=1,k1--),cr}function $n(){return cr=Mn2||vp(cr)>3?"":" "}function kZ(e,t){for(;--t&&$n()&&!(cr<48||cr>102||cr>57&&cr<65||cr>70&&cr<97););return ov(e,Im()+(t<6&&Aa()==32&&$n()==32))}function wC(e){for(;$n();)switch(cr){case e:return Mn;case 34:case 39:e!==34&&e!==39&&wC(cr);break;case 40:e===41&&wC(e);break;case 92:$n();break}return Mn}function DZ(e,t){for(;$n()&&e+cr!==47+10;)if(e+cr===42+42&&Aa()===47)break;return"/*"+ov(t,Mn-1)+"*"+P1(e===47?e:$n())}function RZ(e){for(;!vp(Aa());)$n();return ov(e,Mn)}function LZ(e){return OV(km("",null,null,null,[""],e=EV(e),0,[0],e))}function km(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=$n()){case 40:if(p!=108&&Dr(w,f-1)==58){_C(w+=gt(Pm(y),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:w+=Pm(y);break;case 9:case 10:case 13:case 32:w+=PZ(p);break;case 92:w+=kZ(Im()-1,7);continue;case 47:switch(Aa()){case 42:case 47:eg(EZ(DZ($n(),Im()),t,r),l);break;default:w+="/"}break;case 123*v:s[u++]=ca(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&&ca(w)-f&&eg(h>32?xD(w+";",n,r,f-1):xD(gt(w," ","")+";",n,r,f-2),l);break;case 59:w+=";";default:if(eg(b=yD(w,t,r,u,c,i,s,x,S=[],_=[],f),a),y===123)if(c===0)km(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:km(e,b,b,n&&eg(yD(e,b,b,0,0,i,s,x,i,S=[],f),_),i,_,f,s,n?S:_);break;default:km(w,b,b,b,[""],_,0,s,_)}}u=c=h=0,v=m=1,x=w="",f=o;break;case 58:f=1+ca(w),h=p;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&IZ()==125)continue}switch(w+=P1(y),y*v){case 38:m=c>0?1:(w+="\f",-1);break;case 44:s[u++]=(ca(w)-1)*m,m=1;break;case 64:Aa()===45&&(w+=Pm($n())),d=Aa(),c=f=ca(x=w+=RZ(Im())),y++;break;case 45:p===45&&ca(w)==2&&(v=0)}}return a}function yD(e,t,r,n,i,a,o,s,l,u,c){for(var f=i-1,d=i===0?a:[""],h=YM(d),p=0,v=0,g=0;p0?d[m]+" "+y:gt(y,/&\f/g,d[m])))&&(l[g++]=x);return D1(e,t,r,i===0?UM:s,l,u,c)}function EZ(e,t,r){return D1(e,t,r,kV,P1(MZ()),pp(e,2,-2),0)}function xD(e,t,r,n){return D1(e,t,r,jM,pp(e,0,n),pp(e,n+1,-1),n)}function jc(e,t){for(var r="",n=YM(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"+ky+(Dr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~_C(e,"stretch")?NV(gt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Dr(e,t+1)!==115)break;case 6444:switch(Dr(e,ca(e)-3-(~_C(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"+Ur+"$2box$3")+e}break;case 5936:switch(Dr(e,t+11)){case 114:return vt+e+Ur+gt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return vt+e+Ur+gt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return vt+e+Ur+gt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return vt+e+Ur+e+e}return e}var HZ=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case jM:t.return=NV(t.value,t.length);break;case DV:return jc([fd(t,{value:gt(t.value,"@","@"+vt)})],i);case UM:if(t.length)return AZ(t.props,function(a){switch(TZ(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return jc([fd(t,{props:[gt(a,/:(read-\w+)/,":"+ky+"$1")]})],i);case"::placeholder":return jc([fd(t,{props:[gt(a,/:(plac\w+)/,":"+vt+"input-$1")]}),fd(t,{props:[gt(a,/:(plac\w+)/,":"+ky+"$1")]}),fd(t,{props:[gt(a,/:(plac\w+)/,Ur+"input-$1")]})],i)}return""})}},WZ=[HZ],UZ=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||WZ,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 XZ={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},ZZ=/[A-Z]|^ms/g,KZ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,FV=function(t){return t.charCodeAt(1)===45},bD=function(t){return t!=null&&typeof t!="boolean"},CS=PV(function(e){return FV(e)?e:e.replace(ZZ,"-$&").toLowerCase()}),_D=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(KZ,function(n,i,a){return fa={name:i,styles:a,next:fa},i})}return XZ[t]!==1&&!FV(t)&&typeof r=="number"&&r!==0?r+"px":r};function gp(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 fa={name:r.name,styles:r.styles,next:fa},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)fa={name:n.name,styles:n.styles,next:fa},n=n.next;var i=r.styles+";";return i}return QZ(e,t,r)}case"function":{if(e!==void 0){var a=fa,o=r(e);return fa=a,gp(e,t,o)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function QZ(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i96?nK:iK},AD=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},aK=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return zV(r,n,i),eK(function(){return BV(r,n,i)}),null},oK=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=AD(t,r,n),l=s||TD(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(lK(i)?r:i):t;return E.jsx(tK,{styles:n})}/** +`),J}Py(()=>{W.current=void 0,B.current=void 0,G.current=ie});const re=O.useMemo(()=>O.createElement(g,F({},ie,{ref:A})),[A,g,ie]);return O.useMemo(()=>p?O.createElement(M.Provider,{value:L},re):re,[M,re,L])}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,F({},T,{reactReduxForwardedRef:M}))});return C.displayName=y,C.WrappedComponent=g,fD(C,g)}return fD(b,g)}}function rZ({store:e,context:t,children:r,serverState:n,stabilityCheck:i="once",noopCheck:a="once"}){const o=O.useMemo(()=>{const u=_V(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]);Py(()=>{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||fo;return O.createElement(l.Provider,{value:o},r)}function CV(e=fo){const t=e===fo?fV:LM(e);return function(){const{store:n}=t();return n}}const TV=CV();function nZ(e=fo){const t=e===fo?TV:CV(e);return function(){return t().dispatch}}const AV=nZ();yX(hX.useSyncExternalStoreWithSelector);ZX(sV.useSyncExternalStore);vX(kf.unstable_batchedUpdates);function Pl(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function MV(e){if(!Pl(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=MV(e[r])}),t}function yi(e,t,r={clone:!0}){const n=r.clone?F({},e):e;return Pl(e)&&Pl(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(Pl(t[i])&&i in e&&Pl(e[i])?n[i]=yi(e[i],t[i],r):r.clone?n[i]=Pl(t[i])?MV(t[i]):t[i]:n[i]=t[i])}),n}function Cs(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 av(e,t=166){let r;function n(...i){const a=()=>{e.apply(this,i)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function iZ(e,t){return()=>null}function Ch(e,t){return O.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function on(e){return e&&e.ownerDocument||document}function Da(e){return on(e).defaultView||window}function aZ(e,t){return()=>null}function ky(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const oZ=typeof window<"u"?O.useLayoutEffect:O.useEffect,ho=oZ;let vD=0;function sZ(e){const[t,r]=O.useState(e),n=e||t;return O.useEffect(()=>{t==null&&(vD+=1,r(`mui-${vD}`))},[t]),n}const gD=Tw["useId".toString()];function IV(e){if(gD!==void 0){const t=gD();return e??t}return sZ(e)}function lZ(e,t,r,n,i){return null}function Dy({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 ya(e){const t=O.useRef(e);return ho(()=>{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=>{ky(r,t)})},e)}let k1=!0,bC=!1,mD;const uZ={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 cZ(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&uZ[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function fZ(e){e.metaKey||e.altKey||e.ctrlKey||(k1=!0)}function wS(){k1=!1}function dZ(){this.visibilityState==="hidden"&&bC&&(k1=!0)}function hZ(e){e.addEventListener("keydown",fZ,!0),e.addEventListener("mousedown",wS,!0),e.addEventListener("pointerdown",wS,!0),e.addEventListener("touchstart",wS,!0),e.addEventListener("visibilitychange",dZ,!0)}function pZ(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return k1||cZ(t)}function GM(){const e=O.useCallback(i=>{i!=null&&hZ(i.ownerDocument)},[]),t=O.useRef(!1);function r(){return t.current?(bC=!0,window.clearTimeout(mD),mD=window.setTimeout(()=>{bC=!1},100),t.current=!1,!0):!1}function n(i){return pZ(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function PV(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Fu;function kV(){if(Fu)return Fu;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),Fu="reverse",e.scrollLeft>0?Fu="default":(e.scrollLeft=1,e.scrollLeft===0&&(Fu="negative")),document.body.removeChild(e),Fu}function vZ(e,t){const r=e.scrollLeft;if(t!=="rtl")return r;switch(kV()){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=F({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=F({},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]=F({},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 Ze(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 yD=e=>e,gZ=()=>{let e=yD;return{configure(t){e=t},generate(t){return e(t)},reset(){e=yD}}},mZ=gZ(),WM=mZ,yZ={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 Ue(e,t,r="Mui"){const n=yZ[t];return n?`${r}-${n}`:`${WM.generate(e)}-${t}`}function je(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=Ue(e,i,r)}),n}function DV(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var xZ=/^((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)-.*))$/,SZ=DV(function(e){return xZ.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function bZ(e){if(e.sheet)return e.sheet;for(var t=0;t0?Dr(Df,--Mn):0,df--,cr===10&&(df=1,R1--),cr}function $n(){return cr=Mn2||vp(cr)>3?"":" "}function EZ(e,t){for(;--t&&$n()&&!(cr<48||cr>102||cr>57&&cr<65||cr>70&&cr<97););return ov(e,km()+(t<6&&Aa()==32&&$n()==32))}function wC(e){for(;$n();)switch(cr){case e:return Mn;case 34:case 39:e!==34&&e!==39&&wC(cr);break;case 40:e===41&&wC(e);break;case 92:$n();break}return Mn}function OZ(e,t){for(;$n()&&e+cr!==47+10;)if(e+cr===42+42&&Aa()===47)break;return"/*"+ov(t,Mn-1)+"*"+D1(e===47?e:$n())}function NZ(e){for(;!vp(Aa());)$n();return ov(e,Mn)}function zZ(e){return zV(Rm("",null,null,null,[""],e=NV(e),0,[0],e))}function Rm(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=$n()){case 40:if(p!=108&&Dr(w,f-1)==58){_C(w+=gt(Dm(y),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:w+=Dm(y);break;case 9:case 10:case 13:case 32:w+=LZ(p);break;case 92:w+=EZ(km()-1,7);continue;case 47:switch(Aa()){case 42:case 47:rg(BZ(OZ($n(),km()),t,r),l);break;default:w+="/"}break;case 123*v:s[u++]=ca(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&&ca(w)-f&&rg(h>32?SD(w+";",n,r,f-1):SD(gt(w," ","")+";",n,r,f-2),l);break;case 59:w+=";";default:if(rg(b=xD(w,t,r,u,c,i,s,x,S=[],_=[],f),a),y===123)if(c===0)Rm(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:Rm(e,b,b,n&&rg(xD(e,b,b,0,0,i,s,x,i,S=[],f),_),i,_,f,s,n?S:_);break;default:Rm(w,b,b,b,[""],_,0,s,_)}}u=c=h=0,v=m=1,x=w="",f=o;break;case 58:f=1+ca(w),h=p;default:if(v<1){if(y==123)--v;else if(y==125&&v++==0&&RZ()==125)continue}switch(w+=D1(y),y*v){case 38:m=c>0?1:(w+="\f",-1);break;case 44:s[u++]=(ca(w)-1)*m,m=1;break;case 64:Aa()===45&&(w+=Dm($n())),d=Aa(),c=f=ca(x=w+=NZ(km())),y++;break;case 45:p===45&&ca(w)==2&&(v=0)}}return a}function xD(e,t,r,n,i,a,o,s,l,u,c){for(var f=i-1,d=i===0?a:[""],h=YM(d),p=0,v=0,g=0;p0?d[m]+" "+y:gt(y,/&\f/g,d[m])))&&(l[g++]=x);return L1(e,t,r,i===0?UM:s,l,u,c)}function BZ(e,t,r){return L1(e,t,r,RV,D1(DZ()),pp(e,2,-2),0)}function SD(e,t,r,n){return L1(e,t,r,jM,pp(e,0,n),pp(e,n+1,-1),n)}function jc(e,t){for(var r="",n=YM(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"+Ry+(Dr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~_C(e,"stretch")?BV(gt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Dr(e,t+1)!==115)break;case 6444:switch(Dr(e,ca(e)-3-(~_C(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"+Ur+"$2box$3")+e}break;case 5936:switch(Dr(e,t+11)){case 114:return vt+e+Ur+gt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return vt+e+Ur+gt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return vt+e+Ur+gt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return vt+e+Ur+e+e}return e}var YZ=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case jM:t.return=BV(t.value,t.length);break;case LV:return jc([fd(t,{value:gt(t.value,"@","@"+vt)})],i);case UM:if(t.length)return kZ(t.props,function(a){switch(PZ(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return jc([fd(t,{props:[gt(a,/:(read-\w+)/,":"+Ry+"$1")]})],i);case"::placeholder":return jc([fd(t,{props:[gt(a,/:(plac\w+)/,":"+vt+"input-$1")]}),fd(t,{props:[gt(a,/:(plac\w+)/,":"+Ry+"$1")]}),fd(t,{props:[gt(a,/:(plac\w+)/,Ur+"input-$1")]})],i)}return""})}},qZ=[YZ],XZ=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||qZ,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 JZ={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},eK=/[A-Z]|^ms/g,tK=/_EMO_([^_]+?)_([^]*?)_EMO_/g,VV=function(t){return t.charCodeAt(1)===45},_D=function(t){return t!=null&&typeof t!="boolean"},CS=DV(function(e){return VV(e)?e:e.replace(eK,"-$&").toLowerCase()}),wD=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(tK,function(n,i,a){return fa={name:i,styles:a,next:fa},i})}return JZ[t]!==1&&!VV(t)&&typeof r=="number"&&r!==0?r+"px":r};function gp(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 fa={name:r.name,styles:r.styles,next:fa},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)fa={name:n.name,styles:n.styles,next:fa},n=n.next;var i=r.styles+";";return i}return rK(e,t,r)}case"function":{if(e!==void 0){var a=fa,o=r(e);return fa=a,gp(e,t,o)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function rK(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i96?sK:lK},MD=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},uK=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return FV(r,n,i),iK(function(){return $V(r,n,i)}),null},cK=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=MD(t,r,n),l=s||AD(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(dK(i)?r:i):t;return E.jsx(aK,{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 HV(e,t){return CC(e,t)}const cK=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},fK=["values","unit","step"],dK=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)=>F({},r,{[n.key]:n.val}),{})};function hK(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,i=ye(e,fK),a=dK(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:${ZM[e]}px)`};function po(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||MD;return t.reduce((o,s,l)=>(o[a.up(a.keys[l])]=r(t[l]),o),{})}if(typeof t=="object"){const a=n.breakpoints||MD;return Object.keys(t).reduce((o,s)=>{if(Object.keys(a.values||ZM).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 gK(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,i)=>{const a=e.up(i);return n[a]={},n},{}))||{}}function mK(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function hf(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 Dy(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=hf(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=hf(l,n)||{};return po(o,s,f=>{let d=Dy(u,i,f);return f===d&&typeof f=="string"&&(d=Dy(u,i,`${t}${f==="default"?"":Me(f)}`,f)),r===!1?d:{[r]:d}})};return a.propTypes={},a.filterProps=[t],a}function yK(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const xK={m:"margin",p:"padding"},SK={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ID={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},bK=yK(e=>{if(e.length>2)if(ID[e])e=ID[e];else return[e];const[t,r]=e.split(""),n=xK[t],i=SK[r]||"";return Array.isArray(i)?i.map(a=>n+a):[n+i]}),KM=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],QM=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...KM,...QM];function sv(e,t,r,n){var i;const a=(i=hf(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 WV(e){return sv(e,"spacing",8)}function lv(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 _K(e,t){return r=>e.reduce((n,i)=>(n[i]=lv(t,r),n),{})}function wK(e,t,r,n){if(t.indexOf(r)===-1)return null;const i=bK(r),a=_K(i,n),o=e[r];return po(e,o,a)}function UV(e,t){const r=WV(e.theme);return Object.keys(e).map(n=>wK(e,t,n,r)).reduce(Th,{})}function Qt(e){return UV(e,KM)}Qt.propTypes={};Qt.filterProps=KM;function Jt(e){return UV(e,QM)}Jt.propTypes={};Jt.filterProps=QM;function CK(e=8){if(e.mui)return e;const t=WV({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 L1(...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]?Th(i,t[a](n)):i,{});return r.propTypes={},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function ha(e){return typeof e!="number"?e:`${e}px solid`}const TK=St({prop:"border",themeKey:"borders",transform:ha}),AK=St({prop:"borderTop",themeKey:"borders",transform:ha}),MK=St({prop:"borderRight",themeKey:"borders",transform:ha}),IK=St({prop:"borderBottom",themeKey:"borders",transform:ha}),PK=St({prop:"borderLeft",themeKey:"borders",transform:ha}),kK=St({prop:"borderColor",themeKey:"palette"}),DK=St({prop:"borderTopColor",themeKey:"palette"}),RK=St({prop:"borderRightColor",themeKey:"palette"}),LK=St({prop:"borderBottomColor",themeKey:"palette"}),EK=St({prop:"borderLeftColor",themeKey:"palette"}),E1=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=sv(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:lv(t,n)});return po(e,e.borderRadius,r)}return null};E1.propTypes={};E1.filterProps=["borderRadius"];L1(TK,AK,MK,IK,PK,kK,DK,RK,LK,EK,E1);const O1=e=>{if(e.gap!==void 0&&e.gap!==null){const t=sv(e.theme,"spacing",8),r=n=>({gap:lv(t,n)});return po(e,e.gap,r)}return null};O1.propTypes={};O1.filterProps=["gap"];const N1=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=sv(e.theme,"spacing",8),r=n=>({columnGap:lv(t,n)});return po(e,e.columnGap,r)}return null};N1.propTypes={};N1.filterProps=["columnGap"];const z1=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=sv(e.theme,"spacing",8),r=n=>({rowGap:lv(t,n)});return po(e,e.rowGap,r)}return null};z1.propTypes={};z1.filterProps=["rowGap"];const OK=St({prop:"gridColumn"}),NK=St({prop:"gridRow"}),zK=St({prop:"gridAutoFlow"}),BK=St({prop:"gridAutoColumns"}),FK=St({prop:"gridAutoRows"}),$K=St({prop:"gridTemplateColumns"}),VK=St({prop:"gridTemplateRows"}),GK=St({prop:"gridTemplateAreas"}),HK=St({prop:"gridArea"});L1(O1,N1,z1,OK,NK,zK,BK,FK,$K,VK,GK,HK);function Yc(e,t){return t==="grey"?t:e}const WK=St({prop:"color",themeKey:"palette",transform:Yc}),UK=St({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Yc}),jK=St({prop:"backgroundColor",themeKey:"palette",transform:Yc});L1(WK,UK,jK);function On(e){return e<=1&&e!==0?`${e*100}%`:e}const YK=St({prop:"width",transform:On}),JM=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])||ZM[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:On(r)}};return po(e,e.maxWidth,t)}return null};JM.filterProps=["maxWidth"];const qK=St({prop:"minWidth",transform:On}),XK=St({prop:"height",transform:On}),ZK=St({prop:"maxHeight",transform:On}),KK=St({prop:"minHeight",transform:On});St({prop:"size",cssProperty:"width",transform:On});St({prop:"size",cssProperty:"height",transform:On});const QK=St({prop:"boxSizing"});L1(YK,JM,qK,XK,ZK,KK,QK);const JK={border:{themeKey:"borders",transform:ha},borderTop:{themeKey:"borders",transform:ha},borderRight:{themeKey:"borders",transform:ha},borderBottom:{themeKey:"borders",transform:ha},borderLeft:{themeKey:"borders",transform:ha},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:E1},color:{themeKey:"palette",transform:Yc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Yc},backgroundColor:{themeKey:"palette",transform:Yc},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:O1},rowGap:{style:z1},columnGap:{style:N1},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:On},maxWidth:{style:JM},minWidth:{transform:On},height:{transform:On},maxHeight:{transform:On},minHeight:{transform:On},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},B1=JK;function eQ(...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 tQ(e,t){return typeof e=="function"?e(t):e}function rQ(){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=hf(i,u)||{};return f?f(o):po(o,n,p=>{let v=Dy(d,c,p);return p===v&&typeof p=="string"&&(v=Dy(d,c,`${r}${p==="default"?"":Me(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:B1;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=gK(a.breakpoints),f=Object.keys(c);let d=c;return Object.keys(u).forEach(h=>{const p=tQ(u[h],a);if(p!=null)if(typeof p=="object")if(o[h])d=Th(d,e(h,p,a,o));else{const v=po({theme:a},p,g=>({[h]:g}));eQ(v,p)?d[h]=t({sx:p,theme:a}):d=Th(d,v)}else d=Th(d,e(h,p,a,o))}),mK(f,d)}return Array.isArray(i)?i.map(s):s(i)}return t}const jV=rQ();jV.filterProps=["sx"];const F1=jV,nQ=["breakpoints","palette","spacing","shape"];function $1(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:a={}}=e,o=ye(e,nQ),s=hK(r),l=CK(i);let u=yi({breakpoints:s,direction:"ltr",components:{},palette:F({mode:"light"},n),spacing:l,shape:F({},vK,a)},o);return u=t.reduce((c,f)=>yi(c,f),u),u.unstable_sxConfig=F({},B1,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(f){return F1({sx:f,theme:this})},u}function iQ(e){return Object.keys(e).length===0}function YV(e=null){const t=O.useContext(R1);return!t||iQ(t)?e:t}const aQ=$1();function V1(e=aQ){return YV(e)}function oQ({styles:e,themeId:t,defaultTheme:r={}}){const n=V1(r),i=typeof e=="function"?e(t&&n[t]||n):e;return E.jsx(uK,{styles:i})}const sQ=["sx"],lQ=e=>{var t,r;const n={systemProps:{},otherProps:{}},i=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:B1;return Object.keys(e).forEach(a=>{i[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function qV(e){const{sx:t}=e,r=ye(e,sQ),{systemProps:n,otherProps:i}=lQ(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...o)=>{const s=t(...o);return Pl(s)?F({},n,s):n}:a=F({},n,t),F({},i,{sx:a})}function XV(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"})(F1);return O.forwardRef(function(l,u){const c=V1(r),f=qV(l),{className:d,component:h="div"}=f,p=ye(f,uQ);return E.jsx(a,F({as:h,ref:u,className:Ce(d,i?i(n):n),theme:t&&c[t]||c},p))})}const fQ=["variant"];function PD(e){return e.length===0}function ZV(e){const{variant:t}=e,r=ye(e,fQ);let n=t||"";return Object.keys(r).sort().forEach(i=>{i==="color"?n+=PD(n)?e[i]:Me(e[i]):n+=`${PD(n)?i:Me(i)}${Me(e[i].toString())}`}),n}const dQ=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function hQ(e){return Object.keys(e).length===0}function pQ(e){return typeof e=="string"&&e.charCodeAt(0)>96}const vQ=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,gQ=(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=ZV(i.props);n[a]=i.style}),n},mQ=(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[ZV(l.props)])}),o};function Ah(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const yQ=$1(),xQ=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function dd({defaultTheme:e,theme:t,themeId:r}){return hQ(t)?e:t[r]||t}function SQ(e){return e?(t,r)=>r[e]:null}function KV(e={}){const{themeId:t,defaultTheme:r=yQ,rootShouldForwardProp:n=Ah,slotShouldForwardProp:i=Ah}=e,a=o=>F1(F({},o,{theme:dd(F({},o,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(o,s={})=>{cK(o,S=>S.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:d=SQ(xQ(u))}=s,h=ye(s,dQ),p=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,v=f||!1;let g,m=Ah;u==="Root"||u==="root"?m=n:u?m=i:pQ(o)&&(m=void 0);const y=HV(o,F({shouldForwardProp:m,label:g},h)),x=(S,..._)=>{const b=_?_.map(T=>typeof T=="function"&&T.__emotion_real!==T?M=>T(F({},M,{theme:dd(F({},M,{defaultTheme:r,themeId:t}))})):T):[];let w=S;l&&d&&b.push(T=>{const M=dd(F({},T,{defaultTheme:r,themeId:t})),I=vQ(l,M);if(I){const P={};return Object.entries(I).forEach(([k,R])=>{P[k]=typeof R=="function"?R(F({},T,{theme:M})):R}),d(T,P)}return null}),l&&!p&&b.push(T=>{const M=dd(F({},T,{defaultTheme:r,themeId:t}));return mQ(T,gQ(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(F({},T,{theme:dd(F({},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 bQ=KV(),_Q=bQ;function wQ(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 QV({props:e,name:t,defaultTheme:r,themeId:n}){let i=V1(r);return n&&(i=i[n]||i),wQ({theme:i,name:t,props:e})}function e2(e,t=0,r=1){return Math.min(Math.max(t,e),r)}function CQ(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 vu(e){if(e.type)return e;if(e.charAt(0)==="#")return vu(CQ(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(Cs(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(Cs(10,i))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:i}}function G1(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 TQ(e){e=vu(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])),G1({type:s,values:l})}function kD(e){e=vu(e);let t=e.type==="hsl"||e.type==="hsla"?vu(TQ(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 AQ(e,t){const r=kD(e),n=kD(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function wr(e,t){return e=vu(e),t=e2(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,G1(e)}function JV(e,t){if(e=vu(e),t=e2(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 G1(e)}function e4(e,t){if(e=vu(e),t=e2(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 G1(e)}const MQ=O.createContext(null),t4=MQ;function r4(){return O.useContext(t4)}const IQ=typeof Symbol=="function"&&Symbol.for,PQ=IQ?Symbol.for("mui.nested"):"__THEME_NESTED__";function kQ(e,t){return typeof t=="function"?t(e):F({},e,t)}function DQ(e){const{children:t,theme:r}=e,n=r4(),i=O.useMemo(()=>{const a=n===null?r:kQ(n,r);return a!=null&&(a[PQ]=n!==null),a},[r,n]);return E.jsx(t4.Provider,{value:i,children:t})}const DD={};function RD(e,t,r,n=!1){return O.useMemo(()=>{const i=e&&t[e]||t;if(typeof r=="function"){const a=r(i),o=e?F({},t,{[e]:a}):a;return n?()=>o:o}return e?F({},t,{[e]:r}):F({},t,r)},[e,t,r,n])}function RQ(e){const{children:t,theme:r,themeId:n}=e,i=YV(DD),a=r4()||DD,o=RD(n,i,r),s=RD(n,a,r,!0);return E.jsx(DQ,{theme:s,children:E.jsx(R1.Provider,{value:o,children:t})})}const LQ=["className","component","disableGutters","fixed","maxWidth","classes"],EQ=$1(),OQ=_Q("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Me(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),NQ=e=>QV({props:e,name:"MuiContainer",defaultTheme:EQ}),zQ=(e,t)=>{const r=l=>Ue(t,l),{classes:n,fixed:i,disableGutters:a,maxWidth:o}=e,s={root:["root",o&&`maxWidth${Me(String(o))}`,i&&"fixed",a&&"disableGutters"]};return Ze(s,r,n)};function BQ(e={}){const{createStyledComponent:t=OQ,useThemeProps:r=NQ,componentName:n="MuiContainer"}=e,i=t(({theme:o,ownerState:s})=>F({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})=>F({},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=ye(u,LQ),g=F({},u,{component:f,disableGutters:d,fixed:h,maxWidth:p}),m=zQ(g,n);return E.jsx(i,F({as:f,ownerState:g,className:Ce(m.root,c),ref:l},v))})}function FQ(e,t){return F({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const $Q={black:"#000",white:"#fff"},mp=$Q,VQ={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"},GQ=VQ,HQ={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"},$u=HQ,WQ={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"},Vu=WQ,UQ={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"},hd=UQ,jQ={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"},Gu=jQ,YQ={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"},Hu=YQ,qQ={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"},Wu=qQ,XQ=["mode","contrastThreshold","tonalOffset"],LD={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:mp.white,default:mp.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}},TS={text:{primary:mp.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:mp.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 ED(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=e4(e.main,i):t==="dark"&&(e.dark=JV(e.main,a)))}function ZQ(e="light"){return e==="dark"?{main:Gu[200],light:Gu[50],dark:Gu[400]}:{main:Gu[700],light:Gu[400],dark:Gu[800]}}function KQ(e="light"){return e==="dark"?{main:$u[200],light:$u[50],dark:$u[400]}:{main:$u[500],light:$u[300],dark:$u[700]}}function QQ(e="light"){return e==="dark"?{main:Vu[500],light:Vu[300],dark:Vu[700]}:{main:Vu[700],light:Vu[400],dark:Vu[800]}}function JQ(e="light"){return e==="dark"?{main:Hu[400],light:Hu[300],dark:Hu[700]}:{main:Hu[700],light:Hu[500],dark:Hu[900]}}function eJ(e="light"){return e==="dark"?{main:Wu[400],light:Wu[300],dark:Wu[700]}:{main:Wu[800],light:Wu[500],dark:Wu[900]}}function tJ(e="light"){return e==="dark"?{main:hd[400],light:hd[300],dark:hd[700]}:{main:"#ed6c02",light:hd[500],dark:hd[900]}}function rJ(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,i=ye(e,XQ),a=e.primary||ZQ(t),o=e.secondary||KQ(t),s=e.error||QQ(t),l=e.info||JQ(t),u=e.success||eJ(t),c=e.warning||tJ(t);function f(v){return AQ(v,TS.text.primary)>=r?TS.text.primary:LD.text.primary}const d=({color:v,name:g,mainShade:m=500,lightShade:y=300,darkShade:x=700})=>{if(v=F({},v),!v.main&&v[m]&&(v.main=v[m]),!v.hasOwnProperty("main"))throw new Error(Cs(11,g?` (${g})`:"",m));if(typeof v.main!="string")throw new Error(Cs(12,g?` (${g})`:"",JSON.stringify(v.main)));return ED(v,"light",y,n),ED(v,"dark",x,n),v.contrastText||(v.contrastText=f(v.main)),v},h={dark:TS,light:LD};return yi(F({common:F({},mp),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:GQ,contrastThreshold:r,getContrastText:f,augmentColor:d,tonalOffset:n},h[t]),i)}const nJ=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function iJ(e){return Math.round(e*1e5)/1e5}const OD={textTransform:"uppercase"},ND='"Roboto", "Helvetica", "Arial", sans-serif';function aJ(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=ND,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:o=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:f}=r,d=ye(r,nJ),h=i/14,p=f||(m=>`${m/u*h}rem`),v=(m,y,x,S,_)=>F({fontFamily:n,fontWeight:m,fontSize:p(y),lineHeight:x},n===ND?{letterSpacing:`${iJ(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,OD),caption:v(o,12,1.66,.4),overline:v(o,12,2.66,1,OD),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return yi(F({htmlFontSize:u,pxToRem:p,fontFamily:n,fontSize:i,fontWeightLight:a,fontWeightRegular:o,fontWeightMedium:s,fontWeightBold:l},g),d,{clone:!1})}const oJ=.2,sJ=.14,lJ=.12;function Gt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${oJ})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${sJ})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${lJ})`].join(",")}const uJ=["none",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)],cJ=uJ,fJ=["duration","easing","delay"],dJ={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)"},n4={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function zD(e){return`${Math.round(e)}ms`}function hJ(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function pJ(e){const t=F({},dJ,e.easing),r=F({},n4,e.duration);return F({getAutoHeightDuration:hJ,create:(i=["all"],a={})=>{const{duration:o=r.standard,easing:s=t.easeInOut,delay:l=0}=a;return ye(a,fJ),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof o=="string"?o:zD(o)} ${s} ${typeof l=="string"?l:zD(l)}`).join(",")}},e,{easing:t,duration:r})}const vJ={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},gJ=vJ,mJ=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function t2(e={},...t){const{mixins:r={},palette:n={},transitions:i={},typography:a={}}=e,o=ye(e,mJ);if(e.vars)throw new Error(Cs(18));const s=rJ(n),l=$1(e);let u=yi(l,{mixins:FQ(l.breakpoints,r),palette:s,shadows:cJ.slice(),typography:aJ(s,a),transitions:pJ(i),zIndex:F({},gJ)});return u=yi(u,o),u=t.reduce((c,f)=>yi(c,f),u),u.unstable_sxConfig=F({},B1,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(f){return F1({sx:f,theme:this})},u}const yJ=t2(),H1=yJ,gu="$$material";function Ye({props:e,name:t}){return QV({props:e,name:t,defaultTheme:H1,themeId:gu})}function i4(e){return E.jsx(oQ,F({},e,{defaultTheme:H1,themeId:gu}))}const xJ=(e,t)=>F({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),SJ=e=>F({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}}),bJ=(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=F({html:xJ(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:F({margin:0},SJ(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 a4(e){const t=Ye({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return E.jsxs(O.Fragment,{children:[E.jsx(i4,{styles:i=>bJ(i,n)}),r]})}function Rf(){const e=V1(H1);return e[gu]||e}const wo=e=>Ah(e)&&e!=="classes",_J=Ah,wJ=KV({themeId:gu,defaultTheme:H1,rootShouldForwardProp:wo}),ge=wJ,CJ=["theme"];function o4(e){let{theme:t}=e,r=ye(e,CJ);const n=t[gu];return E.jsx(RQ,F({},r,{themeId:n?gu:void 0,theme:n||t}))}const TJ=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},BD=TJ;function AJ(e){return Ue("MuiSvgIcon",e)}je("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const MJ=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],IJ=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${Me(t)}`,`fontSize${Me(r)}`]};return Ze(i,AJ,n)},PJ=ge("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Me(r.color)}`],t[`fontSize${Me(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]}}),s4=O.forwardRef(function(t,r){const n=Ye({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=ye(n,MJ),p=O.isValidElement(i)&&i.type==="svg",v=F({},n,{color:o,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:p}),g={};c||(g.viewBox=d);const m=IJ(v);return E.jsxs(PJ,F({as:s,className:Ce(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?E.jsx("title",{children:f}):null]}))});s4.muiName="SvgIcon";const FD=s4;function W1(e,t){function r(n,i){return E.jsx(FD,F({"data-testid":`${t}Icon`,ref:i},n,{children:e}))}return r.muiName=FD.muiName,O.memo(O.forwardRef(r))}const kJ={configure:e=>{WM.configure(e)}},DJ=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Me,createChainedFunction:SC,createSvgIcon:W1,debounce:av,deprecatedPropType:eZ,isMuiElement:Ch,ownerDocument:on,ownerWindow:Da,requirePropFactory:tZ,setRef:Iy,unstable_ClassNameGenerator:kJ,unstable_useEnhancedEffect:ho,unstable_useId:AV,unsupportedProp:iZ,useControlled:Py,useEventCallback:ya,useForkRef:Mr,useIsFocusVisible:GM},Symbol.toStringTag,{value:"Module"}));function TC(e,t){return TC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},TC(e,t)}function l4(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,TC(e,t)}const $D={disabled:!1},Ry=ma.createContext(null);var RJ=function(t){return t.scrollTop},Jd="unmounted",xl="exited",Sl="entering",vc="entered",AC="exiting",Co=function(e){l4(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=xl,a.appearStatus=Sl):l=vc:n.unmountOnExit||n.mountOnEnter?l=Jd:l=xl,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===Jd?{status:xl}: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!==Sl&&o!==vc&&(a=Sl):(o===Sl||o===vc)&&(a=AC)}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===Sl){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Jv.findDOMNode(this);o&&RJ(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===xl&&this.setState({status:Jd})},r.performEnter=function(i){var a=this,o=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[Jv.findDOMNode(this),s],u=l[0],c=l[1],f=this.getTimeouts(),d=s?f.appear:f.enter;if(!i&&!o||$D.disabled){this.safeSetState({status:vc},function(){a.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Sl},function(){a.props.onEntering(u,c),a.onTransitionEnd(d,function(){a.safeSetState({status:vc},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:Jv.findDOMNode(this);if(!a||$D.disabled){this.safeSetState({status:xl},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:AC},function(){i.props.onExiting(s),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:xl},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:Jv.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===Jd)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=ye(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ma.createElement(Ry.Provider,{value:null},typeof o=="function"?o(i,s):ma.cloneElement(ma.Children.only(o),s))},t}(ma.Component);Co.contextType=Ry;Co.propTypes={};function Uu(){}Co.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Uu,onEntering:Uu,onEntered:Uu,onExit:Uu,onExiting:Uu,onExited:Uu};Co.UNMOUNTED=Jd;Co.EXITED=xl;Co.ENTERING=Sl;Co.ENTERED=vc;Co.EXITING=AC;const r2=Co;function LJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function n2(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 EJ(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 pf(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 $J(e){return Ue("MuiCollapse",e)}je("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const VJ=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],GJ=e=>{const{orientation:t,classes:r}=e,n={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Ze(n,$J,r)},HJ=ge("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})=>F({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&F({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),WJ=ge("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>F({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),UJ=ge("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>F({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),c4=O.forwardRef(function(t,r){const n=Ye({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=n4.standard,TransitionComponent:S=r2}=n,_=ye(n,VJ),b=F({},n,{orientation:m,collapsedSize:s}),w=GJ(b),C=Rf(),A=O.useRef(),T=O.useRef(null),M=O.useRef(),I=typeof s=="number"?`${s}px`:s,P=m==="horizontal",k=P?"width":"height";O.useEffect(()=>()=>{clearTimeout(A.current)},[]);const R=O.useRef(null),z=Mr(r,R),$=W=>ee=>{if(W){const te=R.current;ee===void 0?W(te):W(te,ee)}},N=()=>T.current?T.current[P?"clientWidth":"clientHeight"]:0,V=$((W,ee)=>{T.current&&P&&(T.current.style.position="absolute"),W.style[k]=I,f&&f(W,ee)}),L=$((W,ee)=>{const te=N();T.current&&P&&(T.current.style.position="");const{duration:ie,easing:re}=pf({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[k]=`${te}px`,W.style.transitionTimingFunction=re,h&&h(W,ee)}),G=$((W,ee)=>{W.style[k]="auto",d&&d(W,ee)}),U=$(W=>{W.style[k]=`${N()}px`,p&&p(W)}),B=$(v),j=$(W=>{const ee=N(),{duration:te,easing:ie}=pf({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[k]=I,W.style.transitionTimingFunction=ie,g&&g(W)}),X=W=>{x==="auto"&&(A.current=setTimeout(W,M.current||0)),i&&i(R.current,W)};return E.jsx(S,F({in:c,onEnter:V,onEntered:G,onEntering:L,onExit:U,onExited:B,onExiting:j,addEndListener:X,nodeRef:R,timeout:x==="auto"?null:x},_,{children:(W,ee)=>E.jsx(HJ,F({as:l,className:Ce(w.root,o,{entered:w.entered,exited:!c&&I==="0px"&&w.hidden}[W]),style:F({[P?"minWidth":"minHeight"]:I},y),ownerState:F({},b,{state:W}),ref:z},ee,{children:E.jsx(WJ,{ownerState:F({},b,{state:W}),className:w.wrapper,ref:T,children:E.jsx(UJ,{ownerState:F({},b,{state:W}),className:w.wrapperInner,children:a})})}))}))});c4.muiSupportAuto=!0;const jJ=c4;function YJ(e){return Ue("MuiPaper",e)}je("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 qJ=["className","component","elevation","square","variant"],XJ=e=>{const{square:t,elevation:r,variant:n,classes:i}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Ze(a,YJ,i)},ZJ=ge("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 F({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"&&F({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${wr("#fff",BD(t.elevation))}, ${wr("#fff",BD(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),KJ=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiPaper"}),{className:i,component:a="div",elevation:o=1,square:s=!1,variant:l="elevation"}=n,u=ye(n,qJ),c=F({},n,{component:a,elevation:o,square:s,variant:l}),f=XJ(c);return E.jsx(ZJ,F({as:a,ownerState:c,className:Ce(f.root,i),ref:r},u))}),U1=KJ,QJ=O.createContext({}),f4=QJ;function JJ(e){return Ue("MuiAccordion",e)}const eee=je("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),tg=eee,tee=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],ree=e=>{const{classes:t,square:r,expanded:n,disabled:i,disableGutters:a}=e;return Ze({root:["root",!r&&"rounded",n&&"expanded",i&&"disabled",!a&&"gutters"],region:["region"]},JJ,t)},nee=ge(U1,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${tg.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"}},[`&.${tg.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${tg.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e,ownerState:t})=>F({},!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&&{[`&.${tg.expanded}`]:{margin:"16px 0"}})),iee=O.forwardRef(function(t,r){const n=Ye({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=jJ,TransitionProps:h}=n,p=ye(n,tee),[v,g]=Py({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]),_=F({},n,{square:f,disabled:s,disableGutters:l,expanded:v}),b=ree(_);return E.jsxs(nee,F({className:Ce(b.root,a),ref:r,ownerState:_,square:f},p,{children:[E.jsx(f4.Provider,{value:S,children:y}),E.jsx(d,F({in:v,timeout:"auto"},h,{children:E.jsx("div",{"aria-labelledby":y.props.id,id:y.props["aria-controls"],role:"region",className:b.region,children:x})}))]}))}),d4=iee;function aee(e){return Ue("MuiAccordionDetails",e)}je("MuiAccordionDetails",["root"]);const oee=["className"],see=e=>{const{classes:t}=e;return Ze({root:["root"]},aee,t)},lee=ge("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),uee=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiAccordionDetails"}),{className:i}=n,a=ye(n,oee),o=n,s=see(o);return E.jsx(lee,F({className:Ce(s.root,i),ref:r,ownerState:o},a))}),h4=uee;function cee(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=Ce(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),h={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},p=Ce(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]),E.jsx("span",{className:d,style:h,children:E.jsx("span",{className:p})})}const fee=je("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ai=fee,dee=["center","classes","className"];let j1=e=>e,VD,GD,HD,WD;const MC=550,hee=80,pee=XM(VD||(VD=j1` + */function UV(e,t){return CC(e,t)}const pK=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},vK=["values","unit","step"],gK=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)=>F({},r,{[n.key]:n.val}),{})};function mK(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,i=ye(e,vK),a=gK(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:${ZM[e]}px)`};function po(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||ID;return t.reduce((o,s,l)=>(o[a.up(a.keys[l])]=r(t[l]),o),{})}if(typeof t=="object"){const a=n.breakpoints||ID;return Object.keys(t).reduce((o,s)=>{if(Object.keys(a.values||ZM).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 SK(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,i)=>{const a=e.up(i);return n[a]={},n},{}))||{}}function bK(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function hf(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 Ly(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=hf(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=hf(l,n)||{};return po(o,s,f=>{let d=Ly(u,i,f);return f===d&&typeof f=="string"&&(d=Ly(u,i,`${t}${f==="default"?"":Me(f)}`,f)),r===!1?d:{[r]:d}})};return a.propTypes={},a.filterProps=[t],a}function _K(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const wK={m:"margin",p:"padding"},CK={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},PD={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},TK=_K(e=>{if(e.length>2)if(PD[e])e=PD[e];else return[e];const[t,r]=e.split(""),n=wK[t],i=CK[r]||"";return Array.isArray(i)?i.map(a=>n+a):[n+i]}),KM=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],QM=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...KM,...QM];function sv(e,t,r,n){var i;const a=(i=hf(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 jV(e){return sv(e,"spacing",8)}function lv(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 AK(e,t){return r=>e.reduce((n,i)=>(n[i]=lv(t,r),n),{})}function MK(e,t,r,n){if(t.indexOf(r)===-1)return null;const i=TK(r),a=AK(i,n),o=e[r];return po(e,o,a)}function YV(e,t){const r=jV(e.theme);return Object.keys(e).map(n=>MK(e,t,n,r)).reduce(Th,{})}function Qt(e){return YV(e,KM)}Qt.propTypes={};Qt.filterProps=KM;function Jt(e){return YV(e,QM)}Jt.propTypes={};Jt.filterProps=QM;function IK(e=8){if(e.mui)return e;const t=jV({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 O1(...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]?Th(i,t[a](n)):i,{});return r.propTypes={},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function ha(e){return typeof e!="number"?e:`${e}px solid`}const PK=St({prop:"border",themeKey:"borders",transform:ha}),kK=St({prop:"borderTop",themeKey:"borders",transform:ha}),DK=St({prop:"borderRight",themeKey:"borders",transform:ha}),RK=St({prop:"borderBottom",themeKey:"borders",transform:ha}),LK=St({prop:"borderLeft",themeKey:"borders",transform:ha}),EK=St({prop:"borderColor",themeKey:"palette"}),OK=St({prop:"borderTopColor",themeKey:"palette"}),NK=St({prop:"borderRightColor",themeKey:"palette"}),zK=St({prop:"borderBottomColor",themeKey:"palette"}),BK=St({prop:"borderLeftColor",themeKey:"palette"}),N1=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=sv(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:lv(t,n)});return po(e,e.borderRadius,r)}return null};N1.propTypes={};N1.filterProps=["borderRadius"];O1(PK,kK,DK,RK,LK,EK,OK,NK,zK,BK,N1);const z1=e=>{if(e.gap!==void 0&&e.gap!==null){const t=sv(e.theme,"spacing",8),r=n=>({gap:lv(t,n)});return po(e,e.gap,r)}return null};z1.propTypes={};z1.filterProps=["gap"];const B1=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=sv(e.theme,"spacing",8),r=n=>({columnGap:lv(t,n)});return po(e,e.columnGap,r)}return null};B1.propTypes={};B1.filterProps=["columnGap"];const F1=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=sv(e.theme,"spacing",8),r=n=>({rowGap:lv(t,n)});return po(e,e.rowGap,r)}return null};F1.propTypes={};F1.filterProps=["rowGap"];const FK=St({prop:"gridColumn"}),$K=St({prop:"gridRow"}),VK=St({prop:"gridAutoFlow"}),GK=St({prop:"gridAutoColumns"}),HK=St({prop:"gridAutoRows"}),WK=St({prop:"gridTemplateColumns"}),UK=St({prop:"gridTemplateRows"}),jK=St({prop:"gridTemplateAreas"}),YK=St({prop:"gridArea"});O1(z1,B1,F1,FK,$K,VK,GK,HK,WK,UK,jK,YK);function Yc(e,t){return t==="grey"?t:e}const qK=St({prop:"color",themeKey:"palette",transform:Yc}),XK=St({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Yc}),ZK=St({prop:"backgroundColor",themeKey:"palette",transform:Yc});O1(qK,XK,ZK);function On(e){return e<=1&&e!==0?`${e*100}%`:e}const KK=St({prop:"width",transform:On}),JM=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])||ZM[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:On(r)}};return po(e,e.maxWidth,t)}return null};JM.filterProps=["maxWidth"];const QK=St({prop:"minWidth",transform:On}),JK=St({prop:"height",transform:On}),eQ=St({prop:"maxHeight",transform:On}),tQ=St({prop:"minHeight",transform:On});St({prop:"size",cssProperty:"width",transform:On});St({prop:"size",cssProperty:"height",transform:On});const rQ=St({prop:"boxSizing"});O1(KK,JM,QK,JK,eQ,tQ,rQ);const nQ={border:{themeKey:"borders",transform:ha},borderTop:{themeKey:"borders",transform:ha},borderRight:{themeKey:"borders",transform:ha},borderBottom:{themeKey:"borders",transform:ha},borderLeft:{themeKey:"borders",transform:ha},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:N1},color:{themeKey:"palette",transform:Yc},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Yc},backgroundColor:{themeKey:"palette",transform:Yc},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:z1},rowGap:{style:F1},columnGap:{style:B1},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:On},maxWidth:{style:JM},minWidth:{transform:On},height:{transform:On},maxHeight:{transform:On},minHeight:{transform:On},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},$1=nQ;function iQ(...e){const t=e.reduce((n,i)=>n.concat(Object.keys(i)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function aQ(e,t){return typeof e=="function"?e(t):e}function oQ(){function e(r,n,i,a){const o={[r]:n,theme:i},s=a[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:u,transform:c,style:f}=s;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const d=hf(i,u)||{};return f?f(o):po(o,n,p=>{let v=Ly(d,c,p);return p===v&&typeof p=="string"&&(v=Ly(d,c,`${r}${p==="default"?"":Me(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:$1;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=SK(a.breakpoints),f=Object.keys(c);let d=c;return Object.keys(u).forEach(h=>{const p=aQ(u[h],a);if(p!=null)if(typeof p=="object")if(o[h])d=Th(d,e(h,p,a,o));else{const v=po({theme:a},p,g=>({[h]:g}));iQ(v,p)?d[h]=t({sx:p,theme:a}):d=Th(d,v)}else d=Th(d,e(h,p,a,o))}),bK(f,d)}return Array.isArray(i)?i.map(s):s(i)}return t}const qV=oQ();qV.filterProps=["sx"];const V1=qV,sQ=["breakpoints","palette","spacing","shape"];function G1(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:a={}}=e,o=ye(e,sQ),s=mK(r),l=IK(i);let u=yi({breakpoints:s,direction:"ltr",components:{},palette:F({mode:"light"},n),spacing:l,shape:F({},xK,a)},o);return u=t.reduce((c,f)=>yi(c,f),u),u.unstable_sxConfig=F({},$1,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(f){return V1({sx:f,theme:this})},u}function lQ(e){return Object.keys(e).length===0}function XV(e=null){const t=O.useContext(E1);return!t||lQ(t)?e:t}const uQ=G1();function H1(e=uQ){return XV(e)}function cQ({styles:e,themeId:t,defaultTheme:r={}}){const n=H1(r),i=typeof e=="function"?e(t&&n[t]||n):e;return E.jsx(hK,{styles:i})}const fQ=["sx"],dQ=e=>{var t,r;const n={systemProps:{},otherProps:{}},i=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:$1;return Object.keys(e).forEach(a=>{i[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function ZV(e){const{sx:t}=e,r=ye(e,fQ),{systemProps:n,otherProps:i}=dQ(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...o)=>{const s=t(...o);return Pl(s)?F({},n,s):n}:a=F({},n,t),F({},i,{sx:a})}function KV(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"})(V1);return O.forwardRef(function(l,u){const c=H1(r),f=ZV(l),{className:d,component:h="div"}=f,p=ye(f,hQ);return E.jsx(a,F({as:h,ref:u,className:Ce(d,i?i(n):n),theme:t&&c[t]||c},p))})}const vQ=["variant"];function kD(e){return e.length===0}function QV(e){const{variant:t}=e,r=ye(e,vQ);let n=t||"";return Object.keys(r).sort().forEach(i=>{i==="color"?n+=kD(n)?e[i]:Me(e[i]):n+=`${kD(n)?i:Me(i)}${Me(e[i].toString())}`}),n}const gQ=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function mQ(e){return Object.keys(e).length===0}function yQ(e){return typeof e=="string"&&e.charCodeAt(0)>96}const xQ=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,SQ=(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},bQ=(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 Ah(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const _Q=G1(),wQ=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function dd({defaultTheme:e,theme:t,themeId:r}){return mQ(t)?e:t[r]||t}function CQ(e){return e?(t,r)=>r[e]:null}function JV(e={}){const{themeId:t,defaultTheme:r=_Q,rootShouldForwardProp:n=Ah,slotShouldForwardProp:i=Ah}=e,a=o=>V1(F({},o,{theme:dd(F({},o,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(o,s={})=>{pK(o,S=>S.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:d=CQ(wQ(u))}=s,h=ye(s,gQ),p=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,v=f||!1;let g,m=Ah;u==="Root"||u==="root"?m=n:u?m=i:yQ(o)&&(m=void 0);const y=UV(o,F({shouldForwardProp:m,label:g},h)),x=(S,..._)=>{const b=_?_.map(T=>typeof T=="function"&&T.__emotion_real!==T?M=>T(F({},M,{theme:dd(F({},M,{defaultTheme:r,themeId:t}))})):T):[];let w=S;l&&d&&b.push(T=>{const M=dd(F({},T,{defaultTheme:r,themeId:t})),I=xQ(l,M);if(I){const P={};return Object.entries(I).forEach(([k,R])=>{P[k]=typeof R=="function"?R(F({},T,{theme:M})):R}),d(T,P)}return null}),l&&!p&&b.push(T=>{const M=dd(F({},T,{defaultTheme:r,themeId:t}));return bQ(T,SQ(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(F({},T,{theme:dd(F({},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 TQ=JV(),AQ=TQ;function MQ(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 e4({props:e,name:t,defaultTheme:r,themeId:n}){let i=H1(r);return n&&(i=i[n]||i),MQ({theme:i,name:t,props:e})}function e2(e,t=0,r=1){return Math.min(Math.max(t,e),r)}function IQ(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 vu(e){if(e.type)return e;if(e.charAt(0)==="#")return vu(IQ(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(Cs(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(Cs(10,i))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:i}}function W1(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 PQ(e){e=vu(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])),W1({type:s,values:l})}function DD(e){e=vu(e);let t=e.type==="hsl"||e.type==="hsla"?vu(PQ(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 kQ(e,t){const r=DD(e),n=DD(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function wr(e,t){return e=vu(e),t=e2(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,W1(e)}function t4(e,t){if(e=vu(e),t=e2(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 W1(e)}function r4(e,t){if(e=vu(e),t=e2(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 W1(e)}const DQ=O.createContext(null),n4=DQ;function i4(){return O.useContext(n4)}const RQ=typeof Symbol=="function"&&Symbol.for,LQ=RQ?Symbol.for("mui.nested"):"__THEME_NESTED__";function EQ(e,t){return typeof t=="function"?t(e):F({},e,t)}function OQ(e){const{children:t,theme:r}=e,n=i4(),i=O.useMemo(()=>{const a=n===null?r:EQ(n,r);return a!=null&&(a[LQ]=n!==null),a},[r,n]);return E.jsx(n4.Provider,{value:i,children:t})}const RD={};function LD(e,t,r,n=!1){return O.useMemo(()=>{const i=e&&t[e]||t;if(typeof r=="function"){const a=r(i),o=e?F({},t,{[e]:a}):a;return n?()=>o:o}return e?F({},t,{[e]:r}):F({},t,r)},[e,t,r,n])}function NQ(e){const{children:t,theme:r,themeId:n}=e,i=XV(RD),a=i4()||RD,o=LD(n,i,r),s=LD(n,a,r,!0);return E.jsx(OQ,{theme:s,children:E.jsx(E1.Provider,{value:o,children:t})})}const zQ=["className","component","disableGutters","fixed","maxWidth","classes"],BQ=G1(),FQ=AQ("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Me(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),$Q=e=>e4({props:e,name:"MuiContainer",defaultTheme:BQ}),VQ=(e,t)=>{const r=l=>Ue(t,l),{classes:n,fixed:i,disableGutters:a,maxWidth:o}=e,s={root:["root",o&&`maxWidth${Me(String(o))}`,i&&"fixed",a&&"disableGutters"]};return Ze(s,r,n)};function GQ(e={}){const{createStyledComponent:t=FQ,useThemeProps:r=$Q,componentName:n="MuiContainer"}=e,i=t(({theme:o,ownerState:s})=>F({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})=>F({},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=ye(u,zQ),g=F({},u,{component:f,disableGutters:d,fixed:h,maxWidth:p}),m=VQ(g,n);return E.jsx(i,F({as:f,ownerState:g,className:Ce(m.root,c),ref:l},v))})}function HQ(e,t){return F({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const WQ={black:"#000",white:"#fff"},mp=WQ,UQ={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"},jQ=UQ,YQ={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"},$u=YQ,qQ={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"},Vu=qQ,XQ={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"},hd=XQ,ZQ={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"},Gu=ZQ,KQ={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"},Hu=KQ,QQ={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"},Wu=QQ,JQ=["mode","contrastThreshold","tonalOffset"],ED={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:mp.white,default:mp.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}},TS={text:{primary:mp.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:mp.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 OD(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=r4(e.main,i):t==="dark"&&(e.dark=t4(e.main,a)))}function eJ(e="light"){return e==="dark"?{main:Gu[200],light:Gu[50],dark:Gu[400]}:{main:Gu[700],light:Gu[400],dark:Gu[800]}}function tJ(e="light"){return e==="dark"?{main:$u[200],light:$u[50],dark:$u[400]}:{main:$u[500],light:$u[300],dark:$u[700]}}function rJ(e="light"){return e==="dark"?{main:Vu[500],light:Vu[300],dark:Vu[700]}:{main:Vu[700],light:Vu[400],dark:Vu[800]}}function nJ(e="light"){return e==="dark"?{main:Hu[400],light:Hu[300],dark:Hu[700]}:{main:Hu[700],light:Hu[500],dark:Hu[900]}}function iJ(e="light"){return e==="dark"?{main:Wu[400],light:Wu[300],dark:Wu[700]}:{main:Wu[800],light:Wu[500],dark:Wu[900]}}function aJ(e="light"){return e==="dark"?{main:hd[400],light:hd[300],dark:hd[700]}:{main:"#ed6c02",light:hd[500],dark:hd[900]}}function oJ(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,i=ye(e,JQ),a=e.primary||eJ(t),o=e.secondary||tJ(t),s=e.error||rJ(t),l=e.info||nJ(t),u=e.success||iJ(t),c=e.warning||aJ(t);function f(v){return kQ(v,TS.text.primary)>=r?TS.text.primary:ED.text.primary}const d=({color:v,name:g,mainShade:m=500,lightShade:y=300,darkShade:x=700})=>{if(v=F({},v),!v.main&&v[m]&&(v.main=v[m]),!v.hasOwnProperty("main"))throw new Error(Cs(11,g?` (${g})`:"",m));if(typeof v.main!="string")throw new Error(Cs(12,g?` (${g})`:"",JSON.stringify(v.main)));return OD(v,"light",y,n),OD(v,"dark",x,n),v.contrastText||(v.contrastText=f(v.main)),v},h={dark:TS,light:ED};return yi(F({common:F({},mp),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:jQ,contrastThreshold:r,getContrastText:f,augmentColor:d,tonalOffset:n},h[t]),i)}const sJ=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function lJ(e){return Math.round(e*1e5)/1e5}const ND={textTransform:"uppercase"},zD='"Roboto", "Helvetica", "Arial", sans-serif';function uJ(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=zD,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:o=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:f}=r,d=ye(r,sJ),h=i/14,p=f||(m=>`${m/u*h}rem`),v=(m,y,x,S,_)=>F({fontFamily:n,fontWeight:m,fontSize:p(y),lineHeight:x},n===zD?{letterSpacing:`${lJ(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,ND),caption:v(o,12,1.66,.4),overline:v(o,12,2.66,1,ND),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return yi(F({htmlFontSize:u,pxToRem:p,fontFamily:n,fontSize:i,fontWeightLight:a,fontWeightRegular:o,fontWeightMedium:s,fontWeightBold:l},g),d,{clone:!1})}const cJ=.2,fJ=.14,dJ=.12;function Gt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${cJ})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${fJ})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${dJ})`].join(",")}const hJ=["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)],pJ=hJ,vJ=["duration","easing","delay"],gJ={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)"},a4={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function BD(e){return`${Math.round(e)}ms`}function mJ(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function yJ(e){const t=F({},gJ,e.easing),r=F({},a4,e.duration);return F({getAutoHeightDuration:mJ,create:(i=["all"],a={})=>{const{duration:o=r.standard,easing:s=t.easeInOut,delay:l=0}=a;return ye(a,vJ),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof o=="string"?o:BD(o)} ${s} ${typeof l=="string"?l:BD(l)}`).join(",")}},e,{easing:t,duration:r})}const xJ={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},SJ=xJ,bJ=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function t2(e={},...t){const{mixins:r={},palette:n={},transitions:i={},typography:a={}}=e,o=ye(e,bJ);if(e.vars)throw new Error(Cs(18));const s=oJ(n),l=G1(e);let u=yi(l,{mixins:HQ(l.breakpoints,r),palette:s,shadows:pJ.slice(),typography:uJ(s,a),transitions:yJ(i),zIndex:F({},SJ)});return u=yi(u,o),u=t.reduce((c,f)=>yi(c,f),u),u.unstable_sxConfig=F({},$1,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(f){return V1({sx:f,theme:this})},u}const _J=t2(),U1=_J,gu="$$material";function Ye({props:e,name:t}){return e4({props:e,name:t,defaultTheme:U1,themeId:gu})}function o4(e){return E.jsx(cQ,F({},e,{defaultTheme:U1,themeId:gu}))}const wJ=(e,t)=>F({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),CJ=e=>F({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}}),TJ=(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=F({html:wJ(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:F({margin:0},CJ(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 s4(e){const t=Ye({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return E.jsxs(O.Fragment,{children:[E.jsx(o4,{styles:i=>TJ(i,n)}),r]})}function Rf(){const e=H1(U1);return e[gu]||e}const wo=e=>Ah(e)&&e!=="classes",AJ=Ah,MJ=JV({themeId:gu,defaultTheme:U1,rootShouldForwardProp:wo}),ge=MJ,IJ=["theme"];function l4(e){let{theme:t}=e,r=ye(e,IJ);const n=t[gu];return E.jsx(NQ,F({},r,{themeId:n?gu:void 0,theme:n||t}))}const PJ=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},FD=PJ;function kJ(e){return Ue("MuiSvgIcon",e)}je("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const DJ=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],RJ=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${Me(t)}`,`fontSize${Me(r)}`]};return Ze(i,kJ,n)},LJ=ge("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Me(r.color)}`],t[`fontSize${Me(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]}}),u4=O.forwardRef(function(t,r){const n=Ye({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=ye(n,DJ),p=O.isValidElement(i)&&i.type==="svg",v=F({},n,{color:o,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:p}),g={};c||(g.viewBox=d);const m=RJ(v);return E.jsxs(LJ,F({as:s,className:Ce(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?E.jsx("title",{children:f}):null]}))});u4.muiName="SvgIcon";const $D=u4;function j1(e,t){function r(n,i){return E.jsx($D,F({"data-testid":`${t}Icon`,ref:i},n,{children:e}))}return r.muiName=$D.muiName,O.memo(O.forwardRef(r))}const EJ={configure:e=>{WM.configure(e)}},OJ=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Me,createChainedFunction:SC,createSvgIcon:j1,debounce:av,deprecatedPropType:iZ,isMuiElement:Ch,ownerDocument:on,ownerWindow:Da,requirePropFactory:aZ,setRef:ky,unstable_ClassNameGenerator:EJ,unstable_useEnhancedEffect:ho,unstable_useId:IV,unsupportedProp:lZ,useControlled:Dy,useEventCallback:ya,useForkRef:Mr,useIsFocusVisible:GM},Symbol.toStringTag,{value:"Module"}));function TC(e,t){return TC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},TC(e,t)}function c4(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,TC(e,t)}const VD={disabled:!1},Ey=ma.createContext(null);var NJ=function(t){return t.scrollTop},Jd="unmounted",xl="exited",Sl="entering",vc="entered",AC="exiting",Co=function(e){c4(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=xl,a.appearStatus=Sl):l=vc:n.unmountOnExit||n.mountOnEnter?l=Jd:l=xl,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===Jd?{status:xl}: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!==Sl&&o!==vc&&(a=Sl):(o===Sl||o===vc)&&(a=AC)}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===Sl){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:tg.findDOMNode(this);o&&NJ(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===xl&&this.setState({status:Jd})},r.performEnter=function(i){var a=this,o=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[tg.findDOMNode(this),s],u=l[0],c=l[1],f=this.getTimeouts(),d=s?f.appear:f.enter;if(!i&&!o||VD.disabled){this.safeSetState({status:vc},function(){a.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Sl},function(){a.props.onEntering(u,c),a.onTransitionEnd(d,function(){a.safeSetState({status:vc},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:tg.findDOMNode(this);if(!a||VD.disabled){this.safeSetState({status:xl},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:AC},function(){i.props.onExiting(s),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:xl},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:tg.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===Jd)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=ye(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ma.createElement(Ey.Provider,{value:null},typeof o=="function"?o(i,s):ma.cloneElement(ma.Children.only(o),s))},t}(ma.Component);Co.contextType=Ey;Co.propTypes={};function Uu(){}Co.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Uu,onEntering:Uu,onEntered:Uu,onExit:Uu,onExiting:Uu,onExited:Uu};Co.UNMOUNTED=Jd;Co.EXITED=xl;Co.ENTERING=Sl;Co.ENTERED=vc;Co.EXITING=AC;const r2=Co;function zJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function n2(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 BJ(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 pf(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 WJ(e){return Ue("MuiCollapse",e)}je("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const UJ=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],jJ=e=>{const{orientation:t,classes:r}=e,n={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Ze(n,WJ,r)},YJ=ge("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})=>F({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&F({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),qJ=ge("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>F({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),XJ=ge("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>F({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),d4=O.forwardRef(function(t,r){const n=Ye({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=a4.standard,TransitionComponent:S=r2}=n,_=ye(n,UJ),b=F({},n,{orientation:m,collapsedSize:s}),w=jJ(b),C=Rf(),A=O.useRef(),T=O.useRef(null),M=O.useRef(),I=typeof s=="number"?`${s}px`:s,P=m==="horizontal",k=P?"width":"height";O.useEffect(()=>()=>{clearTimeout(A.current)},[]);const R=O.useRef(null),z=Mr(r,R),$=W=>ee=>{if(W){const te=R.current;ee===void 0?W(te):W(te,ee)}},N=()=>T.current?T.current[P?"clientWidth":"clientHeight"]:0,V=$((W,ee)=>{T.current&&P&&(T.current.style.position="absolute"),W.style[k]=I,f&&f(W,ee)}),L=$((W,ee)=>{const te=N();T.current&&P&&(T.current.style.position="");const{duration:ie,easing:re}=pf({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[k]=`${te}px`,W.style.transitionTimingFunction=re,h&&h(W,ee)}),G=$((W,ee)=>{W.style[k]="auto",d&&d(W,ee)}),U=$(W=>{W.style[k]=`${N()}px`,p&&p(W)}),B=$(v),j=$(W=>{const ee=N(),{duration:te,easing:ie}=pf({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[k]=I,W.style.transitionTimingFunction=ie,g&&g(W)}),X=W=>{x==="auto"&&(A.current=setTimeout(W,M.current||0)),i&&i(R.current,W)};return E.jsx(S,F({in:c,onEnter:V,onEntered:G,onEntering:L,onExit:U,onExited:B,onExiting:j,addEndListener:X,nodeRef:R,timeout:x==="auto"?null:x},_,{children:(W,ee)=>E.jsx(YJ,F({as:l,className:Ce(w.root,o,{entered:w.entered,exited:!c&&I==="0px"&&w.hidden}[W]),style:F({[P?"minWidth":"minHeight"]:I},y),ownerState:F({},b,{state:W}),ref:z},ee,{children:E.jsx(qJ,{ownerState:F({},b,{state:W}),className:w.wrapper,ref:T,children:E.jsx(XJ,{ownerState:F({},b,{state:W}),className:w.wrapperInner,children:a})})}))}))});d4.muiSupportAuto=!0;const ZJ=d4;function KJ(e){return Ue("MuiPaper",e)}je("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 QJ=["className","component","elevation","square","variant"],JJ=e=>{const{square:t,elevation:r,variant:n,classes:i}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Ze(a,KJ,i)},eee=ge("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 F({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"&&F({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${wr("#fff",FD(t.elevation))}, ${wr("#fff",FD(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),tee=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiPaper"}),{className:i,component:a="div",elevation:o=1,square:s=!1,variant:l="elevation"}=n,u=ye(n,QJ),c=F({},n,{component:a,elevation:o,square:s,variant:l}),f=JJ(c);return E.jsx(eee,F({as:a,ownerState:c,className:Ce(f.root,i),ref:r},u))}),Y1=tee,ree=O.createContext({}),h4=ree;function nee(e){return Ue("MuiAccordion",e)}const iee=je("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),ng=iee,aee=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],oee=e=>{const{classes:t,square:r,expanded:n,disabled:i,disableGutters:a}=e;return Ze({root:["root",!r&&"rounded",n&&"expanded",i&&"disabled",!a&&"gutters"],region:["region"]},nee,t)},see=ge(Y1,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${ng.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"}},[`&.${ng.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${ng.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e,ownerState:t})=>F({},!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&&{[`&.${ng.expanded}`]:{margin:"16px 0"}})),lee=O.forwardRef(function(t,r){const n=Ye({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=ZJ,TransitionProps:h}=n,p=ye(n,aee),[v,g]=Dy({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]),_=F({},n,{square:f,disabled:s,disableGutters:l,expanded:v}),b=oee(_);return E.jsxs(see,F({className:Ce(b.root,a),ref:r,ownerState:_,square:f},p,{children:[E.jsx(h4.Provider,{value:S,children:y}),E.jsx(d,F({in:v,timeout:"auto"},h,{children:E.jsx("div",{"aria-labelledby":y.props.id,id:y.props["aria-controls"],role:"region",className:b.region,children:x})}))]}))}),p4=lee;function uee(e){return Ue("MuiAccordionDetails",e)}je("MuiAccordionDetails",["root"]);const cee=["className"],fee=e=>{const{classes:t}=e;return Ze({root:["root"]},uee,t)},dee=ge("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),hee=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiAccordionDetails"}),{className:i}=n,a=ye(n,cee),o=n,s=fee(o);return E.jsx(dee,F({className:Ce(s.root,i),ref:r,ownerState:o},a))}),v4=hee;function pee(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=Ce(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),h={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},p=Ce(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]),E.jsx("span",{className:d,style:h,children:E.jsx("span",{className:p})})}const vee=je("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ai=vee,gee=["center","classes","className"];let q1=e=>e,GD,HD,WD,UD;const MC=550,mee=80,yee=XM(GD||(GD=q1` 0% { transform: scale(0); opacity: 0.1; @@ -88,7 +88,7 @@ ${W.current.stack} transform: scale(1); opacity: 0.3; } -`)),vee=XM(GD||(GD=j1` +`)),xee=XM(HD||(HD=q1` 0% { opacity: 1; } @@ -96,7 +96,7 @@ ${W.current.stack} 100% { opacity: 0; } -`)),gee=XM(HD||(HD=j1` +`)),See=XM(WD||(WD=q1` 0% { transform: scale(1); } @@ -108,7 +108,7 @@ ${W.current.stack} 100% { transform: scale(1); } -`)),mee=ge("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),yee=ge(cee,{name:"MuiTouchRipple",slot:"Ripple"})(WD||(WD=j1` +`)),bee=ge("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),_ee=ge(pee,{name:"MuiTouchRipple",slot:"Ripple"})(UD||(UD=q1` opacity: 0; position: absolute; @@ -151,24 +151,24 @@ ${W.current.stack} animation-iteration-count: infinite; animation-delay: 200ms; } -`),ai.rippleVisible,pee,MC,({theme:e})=>e.transitions.easing.easeInOut,ai.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ai.child,ai.childLeaving,vee,MC,({theme:e})=>e.transitions.easing.easeInOut,ai.childPulsate,gee,({theme:e})=>e.transitions.easing.easeInOut),xee=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:o}=n,s=ye(n,dee),[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,E.jsx(yee,{classes:{ripple:Ce(a.ripple,ai.ripple),rippleVisible:Ce(a.rippleVisible,ai.rippleVisible),ripplePulsate:Ce(a.ripplePulsate,ai.ripplePulsate),child:Ce(a.child,ai.child),childLeaving:Ce(a.childLeaving,ai.childLeaving),childPulsate:Ce(a.childPulsate,ai.childPulsate)},timeout:MC,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 I,P,k;if(C||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)I=Math.round(M.width/2),P=Math.round(M.height/2);else{const{clientX:R,clientY:z}=S.touches&&S.touches.length>0?S.touches[0]:S;I=Math.round(R-M.left),P=Math.round(z-M.top)}if(C)k=Math.sqrt((2*M.width**2+M.height**2)/3),k%2===0&&(k+=1);else{const R=Math.max(Math.abs((T?T.clientWidth:0)-I),I)*2+2,z=Math.max(Math.abs((T?T.clientHeight:0)-P),P)*2+2;k=Math.sqrt(R**2+z**2)}S!=null&&S.touches?p.current===null&&(p.current=()=>{g({pulsate:w,rippleX:I,rippleY:P,rippleSize:k,cb:b})},h.current=setTimeout(()=>{p.current&&(p.current(),p.current=null)},hee)):g({pulsate:w,rippleX:I,rippleY:P,rippleSize:k,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]),E.jsx(mee,F({className:Ce(ai.root,a.root,o),ref:v},s,{children:E.jsx(FJ,{component:null,exit:!0,children:l})}))}),See=xee;function bee(e){return Ue("MuiButtonBase",e)}const _ee=je("MuiButtonBase",["root","disabled","focusVisible"]),wee=_ee,Cee=["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"],Tee=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,o=Ze({root:["root",t&&"disabled",r&&"focusVisible"]},bee,i);return r&&n&&(o.root+=` ${n}`),o},Aee=ge("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"},[`&.${wee.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Mee=O.forwardRef(function(t,r){const n=Ye({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:I=0,TouchRippleProps:P,touchRippleRef:k,type:R}=n,z=ye(n,Cee),$=O.useRef(null),N=O.useRef(null),V=Mr(N,k),{isFocusVisibleRef:L,onFocus:G,onBlur:U,ref:B}=GM(),[j,X]=O.useState(!1);u&&j&&X(!1),O.useImperativeHandle(i,()=>({focusVisible:()=>{X(!0),$.current.focus()}}),[]);const[W,ee]=O.useState(!1);O.useEffect(()=>{ee(!0)},[]);const te=W&&!c&&!u;O.useEffect(()=>{j&&d&&!c&&W&&N.current.pulsate()},[c,d,j,W]);function ie(he,Vt,Sr=f){return ya(Te=>(Vt&&Vt(Te),!Sr&&N.current&&N.current[he](Te),!0))}const re=ie("start",b),Q=ie("stop",g),J=ie("stop",m),fe=ie("stop",C),de=ie("stop",he=>{j&&he.preventDefault(),w&&w(he)}),ke=ie("start",M),We=ie("stop",A),Ge=ie("stop",T),at=ie("stop",he=>{U(he),L.current===!1&&X(!1),p&&p(he)},!1),ot=ya(he=>{$.current||($.current=he.currentTarget),G(he),L.current===!0&&(X(!0),x&&x(he)),y&&y(he)}),It=()=>{const he=$.current;return l&&l!=="button"&&!(he.tagName==="A"&&he.href)},Be=O.useRef(!1),Pt=ya(he=>{d&&!Be.current&&j&&N.current&&he.key===" "&&(Be.current=!0,N.current.stop(he,()=>{N.current.start(he)})),he.target===he.currentTarget&&It()&&he.key===" "&&he.preventDefault(),S&&S(he),he.target===he.currentTarget&&It()&&he.key==="Enter"&&!u&&(he.preventDefault(),v&&v(he))}),Yt=ya(he=>{d&&he.key===" "&&N.current&&j&&!he.defaultPrevented&&(Be.current=!1,N.current.stop(he,()=>{N.current.pulsate(he)})),_&&_(he),v&&he.target===he.currentTarget&&It()&&he.key===" "&&!he.defaultPrevented&&v(he)});let kt=l;kt==="button"&&(z.href||z.to)&&(kt=h);const K={};kt==="button"?(K.type=R===void 0?"button":R,K.disabled=u):(!z.href&&!z.to&&(K.role="button"),u&&(K["aria-disabled"]=u));const le=Mr(r,B,$),Re=F({},n,{centerRipple:a,component:l,disabled:u,disableRipple:c,disableTouchRipple:f,focusRipple:d,tabIndex:I,focusVisible:j}),_e=Tee(Re);return E.jsxs(Aee,F({as:kt,className:Ce(_e.root,s),ownerState:Re,onBlur:at,onClick:v,onContextMenu:Q,onFocus:ot,onKeyDown:Pt,onKeyUp:Yt,onMouseDown:re,onMouseLeave:de,onMouseUp:fe,onDragLeave:J,onTouchEnd:We,onTouchMove:Ge,onTouchStart:ke,ref:le,tabIndex:u?-1:I,type:R},K,z,{children:[o,te?E.jsx(See,F({ref:V,center:a},P)):null]}))}),Lf=Mee;function Iee(e){return Ue("MuiAccordionSummary",e)}const Pee=je("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),Oc=Pee,kee=["children","className","expandIcon","focusVisibleClassName","onClick"],Dee=e=>{const{classes:t,expanded:r,disabled:n,disableGutters:i}=e;return Ze({root:["root",r&&"expanded",n&&"disabled",!i&&"gutters"],focusVisible:["focusVisible"],content:["content",r&&"expanded",!i&&"contentGutters"],expandIconWrapper:["expandIconWrapper",r&&"expanded"]},Iee,t)},Ree=ge(Lf,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const r={duration:e.transitions.duration.shortest};return F({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],r),[`&.${Oc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Oc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${Oc.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${Oc.expanded}`]:{minHeight:64}})}),Lee=ge("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>F({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${Oc.expanded}`]:{margin:"20px 0"}})),Eee=ge("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}),[`&.${Oc.expanded}`]:{transform:"rotate(180deg)"}})),Oee=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiAccordionSummary"}),{children:i,className:a,expandIcon:o,focusVisibleClassName:s,onClick:l}=n,u=ye(n,kee),{disabled:c=!1,disableGutters:f,expanded:d,toggle:h}=O.useContext(f4),p=m=>{h&&h(m),l&&l(m)},v=F({},n,{expanded:d,disabled:c,disableGutters:f}),g=Dee(v);return E.jsxs(Ree,F({focusRipple:!1,disableRipple:!0,disabled:c,component:"div","aria-expanded":d,className:Ce(g.root,a),focusVisibleClassName:Ce(g.focusVisible,s),onClick:p,ref:r,ownerState:v},u,{children:[E.jsx(Lee,{className:g.content,ownerState:v,children:i}),o&&E.jsx(Eee,{className:g.expandIconWrapper,ownerState:v,children:o})]}))}),p4=Oee;function Nee(e){return Ue("MuiIconButton",e)}const zee=je("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Bee=zee,Fee=["edge","children","className","color","disabled","disableFocusRipple","size"],$ee=e=>{const{classes:t,disabled:r,color:n,edge:i,size:a}=e,o={root:["root",r&&"disabled",n!=="default"&&`color${Me(n)}`,i&&`edge${Me(i)}`,`size${Me(a)}`]};return Ze(o,Nee,t)},Vee=ge(Lf,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${Me(r.color)}`],r.edge&&t[`edge${Me(r.edge)}`],t[`size${Me(r.size)}`]]}})(({theme:e,ownerState:t})=>F({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})`:wr(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 F({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&F({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":F({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:wr(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)},{[`&.${Bee.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Gee=O.forwardRef(function(t,r){const n=Ye({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=ye(n,Fee),d=F({},n,{edge:i,color:s,disabled:l,disableFocusRipple:u,size:c}),h=$ee(d);return E.jsx(Vee,F({className:Ce(h.root,o),centerRipple:!0,focusRipple:!u,disabled:l,ref:r,ownerState:d},f,{children:a}))}),v4=Gee;function Hee(e){return Ue("MuiTypography",e)}je("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Wee=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Uee=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:a,classes:o}=e,s={root:["root",a,e.align!=="inherit"&&`align${Me(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return Ze(s,Hee,o)},jee=ge("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${Me(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>F({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})),UD={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Yee={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},qee=e=>Yee[e]||e,Xee=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTypography"}),i=qee(n.color),a=qV(F({},n,{color:i})),{align:o="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:f=!1,variant:d="body1",variantMapping:h=UD}=a,p=ye(a,Wee),v=F({},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]||UD[d])||"span",m=Uee(v);return E.jsx(jee,F({as:g,ref:r,ownerState:v,className:Ce(m.root,s)},p))}),Xe=Xee;function Zee(e){return Ue("MuiAppBar",e)}je("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const Kee=["className","color","enableColorOnDark","position"],Qee=e=>{const{color:t,position:r,classes:n}=e,i={root:["root",`color${Me(t)}`,`position${Me(r)}`]};return Ze(i,Zee,n)},rg=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Jee=ge(U1,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Me(r.position)}`],t[`color${Me(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return F({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&&F({},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"&&F({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&F({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:rg(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:rg(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:rg(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:rg(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"}))}),ete=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiAppBar"}),{className:i,color:a="primary",enableColorOnDark:o=!1,position:s="fixed"}=n,l=ye(n,Kee),u=F({},n,{color:a,position:s,enableColorOnDark:o}),c=Qee(u);return E.jsx(Jee,F({square:!0,component:"header",ownerState:u,elevation:4,className:Ce(c.root,i,s==="fixed"&&"mui-fixed"),ref:r},l))}),tte=ete;function vf(e){return typeof e=="string"}function rte(e,t,r){return e===void 0||vf(e)?t:F({},t,{ownerState:F({},t.ownerState,r)})}function g4(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 nte(e,t,r){return typeof e=="function"?e(t,r):e}function jD(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 ite(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:a}=e;if(!t){const h=Ce(i==null?void 0:i.className,n==null?void 0:n.className,a,r==null?void 0:r.className),p=F({},r==null?void 0:r.style,i==null?void 0:i.style,n==null?void 0:n.style),v=F({},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=g4(F({},i,n)),s=jD(n),l=jD(i),u=t(o),c=Ce(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=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=F({},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 ate=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ra(e){var t;const{elementType:r,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:a=!1}=e,o=ye(e,ate),s=a?{}:nte(n,i),{props:l,internalRef:u}=ite(F({},o,{externalSlotProps:s})),c=Mr(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return rte(r,F({},l,{ref:c}),i)}const ote=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ste(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 lte(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 ute(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||lte(e))}function cte(e){const t=[],r=[];return Array.from(e.querySelectorAll(ote)).forEach((n,i)=>{const a=ste(n);a===-1||!ute(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 fte(){return!0}function dte(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:a=cte,isEnabled:o=fte,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=on(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=on(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"),I=C[0],P=C[C.length-1];typeof I!="string"&&typeof P!="string"&&(M?P.focus():I.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 E.jsxs(O.Fragment,{children:[E.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelStart"}),O.cloneElement(t,{ref:v,onFocus:m}),E.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelEnd"})]})}function hte(e){return typeof e=="function"?e():e}const pte=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(ho(()=>{a||s(hte(i)||document.body)},[i,a]),ho(()=>{if(o&&!a)return Iy(r,o),()=>{Iy(r,null)}},[r,o,a]),a){if(O.isValidElement(n)){const u={ref:l};return O.cloneElement(n,u)}return E.jsx(O.Fragment,{children:n})}return E.jsx(O.Fragment,{children:o&&kf.createPortal(n,o)})});function vte(e){const t=on(e);return t.body===e?Da(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Mh(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function YD(e){return parseInt(Da(e).getComputedStyle(e).paddingRight,10)||0}function gte(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 qD(e,t,r,n,i){const a=[t,r,...n];[].forEach.call(e.children,o=>{const s=a.indexOf(o)===-1,l=!gte(o);s&&l&&Mh(o,i)})}function AS(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function mte(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(vte(n)){const o=MV(on(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${YD(n)+o}px`;const s=on(n).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${YD(l)+o}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=on(n).body;else{const o=n.parentElement,s=Da(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 yte(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class xte{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&&Mh(t.modalRef,!1);const i=yte(r);qD(r,t.mount,t.modalRef,i,!0);const a=AS(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=AS(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[n];i.restore||(i.restore=mte(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=AS(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&&Mh(t.modalRef,r),qD(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&&Mh(o.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Ste(e){return typeof e=="function"?e():e}function bte(e){return e?e.props.hasOwnProperty("in"):!1}const _te=new xte;function wte(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:i=_te,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=bte(l);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const S=()=>on(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=ya(()=>{const z=Ste(t)||S().body;i.add(_(),z),p.current&&b()}),C=O.useCallback(()=>i.isTopModal(_()),[i]),A=ya(z=>{h.current=z,z&&(c&&C()?b():p.current&&Mh(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=>$=>{var N;(N=z.onKeyDown)==null||N.call(z,$),!($.key!=="Escape"||!C())&&(r||($.stopPropagation(),u&&u($,"escapeKeyDown")))},I=z=>$=>{var N;(N=z.onClick)==null||N.call(z,$),$.target===$.currentTarget&&u&&u($,"backdropClick")};return{getRootProps:(z={})=>{const $=g4(e);delete $.onTransitionEnter,delete $.onTransitionExited;const N=F({},$,z);return F({role:"presentation"},N,{onKeyDown:M(N),ref:v})},getBackdropProps:(z={})=>{const $=z;return F({"aria-hidden":!0},$,{onClick:I($),open:c})},getTransitionProps:()=>{const z=()=>{m(!1),o&&o()},$=()=>{m(!0),s&&s(),a&&T()};return{onEnter:SC(z,l==null?void 0:l.props.onEnter),onExited:SC($,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:A,isTopModal:C,exited:g,hasTransition:y}}const Cte=["onChange","maxRows","minRows","style","value"];function ng(e){return parseInt(e,10)||0}const Tte={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function XD(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const Ate=O.forwardRef(function(t,r){const{onChange:n,maxRows:i,minRows:a=1,style:o,value:s}=t,l=ye(t,Cte),{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=Da(_).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=ng(w.paddingBottom)+ng(w.paddingTop),M=ng(w.borderBottomWidth)+ng(w.borderTopWidth),I=C.scrollHeight;C.value="x";const P=C.scrollHeight;let k=I;a&&(k=Math.max(Number(a)*P,k)),i&&(k=Math.min(Number(i)*P,k)),k=Math.max(k,P);const R=k+(A==="border-box"?T+M:0),z=Math.abs(k-I)<=1;return{outerHeightStyle:R,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();XD(_)||v(b=>m(b,_))},[g]),x=()=>{const _=g();XD(_)||kf.flushSync(()=>{v(b=>m(b,_))})};O.useEffect(()=>{const _=()=>{h.current=0,c.current&&x()},b=av(()=>{h.current=0,c.current&&x()});let w;const C=c.current,A=Da(C);return A.addEventListener("resize",b),typeof ResizeObserver<"u"&&(w=new ResizeObserver(_),w.observe(C)),()=>{b.clear(),A.removeEventListener("resize",b),w&&w.disconnect()}}),ho(()=>{y()}),O.useEffect(()=>{h.current=0},[s]);const S=_=>{h.current=0,u||y(),n&&n(_)};return E.jsxs(O.Fragment,{children:[E.jsx("textarea",F({value:s,onChange:S,ref:f,rows:a,style:F({height:p.outerHeightStyle,overflow:p.overflow?"hidden":void 0},o)},l)),E.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:d,tabIndex:-1,style:F({},Tte.shadow,o,{paddingTop:0,paddingBottom:0})})]})});function Ef({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 Mte=O.createContext(void 0),a2=Mte;function Of(){return O.useContext(a2)}function ZD(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Ly(e,t=!1){return e&&(ZD(e.value)&&e.value!==""||t&&ZD(e.defaultValue)&&e.defaultValue!=="")}function Ite(e){return e.startAdornment}function Pte(e){return Ue("MuiInputBase",e)}const kte=je("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),gf=kte,Dte=["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"],Y1=(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${Me(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},q1=(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]},Rte=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${Me(r)}`,n&&"disabled",i&&"error",l&&"fullWidth",o&&"focused",s&&"formControl",d&&d!=="medium"&&`size${Me(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 Ze(v,Pte,t)},X1=ge("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Y1})(({theme:e,ownerState:t})=>F({},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",[`&.${gf.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&F({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Z1=ge("input",{name:"MuiInputBase",slot:"Input",overridesResolver:q1})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=F({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 F({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] + .${gf.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},[`&.${gf.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"})}),Lte=E.jsx(i4,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Ete=O.forwardRef(function(t,r){var n;const i=Ye({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:I,onKeyUp:P,placeholder:k,readOnly:R,renderSuffix:z,rows:$,slotProps:N={},slots:V={},startAdornment:L,type:G="text",value:U}=i,B=ye(i,Dte),j=y.value!=null?y.value:U,{current:X}=O.useRef(j!=null),W=O.useRef(),ee=O.useCallback(_e=>{},[]),te=Mr(W,x,y.ref,ee),[ie,re]=O.useState(!1),Q=Of(),J=Ef({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 fe=Q&&Q.onFilled,de=Q&&Q.onEmpty,ke=O.useCallback(_e=>{Ly(_e)?fe&&fe():de&&de()},[fe,de]);ho(()=>{X&&ke({value:j})},[j,ke,X]);const We=_e=>{if(J.disabled){_e.stopPropagation();return}M&&M(_e),y.onFocus&&y.onFocus(_e),Q&&Q.onFocus?Q.onFocus(_e):re(!0)},Ge=_e=>{C&&C(_e),y.onBlur&&y.onBlur(_e),Q&&Q.onBlur?Q.onBlur(_e):re(!1)},at=(_e,...he)=>{if(!X){const Vt=_e.target||W.current;if(Vt==null)throw new Error(Cs(1));ke({value:Vt.value})}y.onChange&&y.onChange(_e,...he),A&&A(_e,...he)};O.useEffect(()=>{ke(W.current)},[]);const ot=_e=>{W.current&&_e.currentTarget===_e.target&&W.current.focus(),T&&T(_e)};let It=m,Be=y;b&&It==="input"&&($?Be=F({type:void 0,minRows:$,maxRows:$},Be):Be=F({type:void 0,maxRows:S,minRows:_},Be),It=Ate);const Pt=_e=>{ke(_e.animationName==="mui-auto-fill-cancel"?W.current:{value:"x"})};O.useEffect(()=>{Q&&Q.setAdornedStart(!!L)},[Q,L]);const Yt=F({},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:L,type:G}),kt=Rte(Yt),K=V.root||u.Root||X1,le=N.root||c.root||{},Re=V.input||u.Input||Z1;return Be=F({},Be,(n=N.input)!=null?n:c.input),E.jsxs(O.Fragment,{children:[!h&&Lte,E.jsxs(K,F({},le,!vf(K)&&{ownerState:F({},Yt,le.ownerState)},{ref:r,onClick:ot},B,{className:Ce(kt.root,le.className,l,R&&"MuiInputBase-readOnly"),children:[L,E.jsx(a2.Provider,{value:null,children:E.jsx(Re,F({ownerState:Yt,"aria-invalid":J.error,"aria-describedby":a,autoComplete:o,autoFocus:s,defaultValue:f,disabled:J.disabled,id:g,onAnimationStart:Pt,name:w,placeholder:k,readOnly:R,required:J.required,rows:$,value:j,onKeyDown:I,onKeyUp:P,type:G},Be,!vf(Re)&&{as:It,ownerState:F({},Yt,Be.ownerState)},{ref:te,className:Ce(kt.input,Be.className,R&&"MuiInputBase-readOnly"),onBlur:Ge,onChange:at,onFocus:We}))}),p,z?z(F({},J,{startAdornment:L})):null]}))]})}),o2=Ete;function Ote(e){return Ue("MuiInput",e)}const Nte=F({},gf,je("MuiInput",["root","underline","input"])),pd=Nte;function zte(e){return Ue("MuiOutlinedInput",e)}const Bte=F({},gf,je("MuiOutlinedInput",["root","notchedOutline","input"])),ko=Bte;function Fte(e){return Ue("MuiFilledInput",e)}const $te=F({},gf,je("MuiFilledInput",["root","underline","input"])),Us=$te,Vte=W1(E.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Gte=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Hte={entering:{opacity:1},entered:{opacity:1}},Wte=O.forwardRef(function(t,r){const n=Rf(),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=r2}=t,x=ye(t,Gte),S=O.useRef(null),_=Mr(S,s.ref,r),b=k=>R=>{if(k){const z=S.current;R===void 0?k(z):k(z,R)}},w=b(d),C=b((k,R)=>{u4(k);const z=pf({style:g,timeout:m,easing:l},{mode:"enter"});k.style.webkitTransition=n.transitions.create("opacity",z),k.style.transition=n.transitions.create("opacity",z),c&&c(k,R)}),A=b(f),T=b(v),M=b(k=>{const R=pf({style:g,timeout:m,easing:l},{mode:"exit"});k.style.webkitTransition=n.transitions.create("opacity",R),k.style.transition=n.transitions.create("opacity",R),h&&h(k)}),I=b(p),P=k=>{a&&a(S.current,k)};return E.jsx(y,F({appear:o,in:u,nodeRef:S,onEnter:C,onEntered:A,onEntering:w,onExit:M,onExited:I,onExiting:T,addEndListener:P,timeout:m},x,{children:(k,R)=>O.cloneElement(s,F({style:F({opacity:0,visibility:k==="exited"&&!u?"hidden":void 0},Hte[k],g,s.props.style),ref:_},R))}))}),Ute=Wte;function jte(e){return Ue("MuiBackdrop",e)}je("MuiBackdrop",["root","invisible"]);const Yte=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],qte=e=>{const{classes:t,invisible:r}=e;return Ze({root:["root",r&&"invisible"]},jte,t)},Xte=ge("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>F({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"})),Zte=O.forwardRef(function(t,r){var n,i,a;const o=Ye({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=Ute,transitionDuration:m}=o,y=ye(o,Yte),x=F({},o,{component:u,invisible:d}),S=qte(x),_=(n=p.root)!=null?n:f.root;return E.jsx(g,F({in:h,timeout:m},y,{children:E.jsx(Xte,F({"aria-hidden":!0},_,{as:(i=(a=v.root)!=null?a:c.Root)!=null?i:u,className:Ce(S.root,l,_==null?void 0:_.className),ownerState:F({},x,_==null?void 0:_.ownerState),classes:S,ref:r,children:s}))}))}),Kte=Zte,Qte=t2(),Jte=cQ({themeId:gu,defaultTheme:Qte,defaultClassName:"MuiBox-root",generateClassName:WM.generate}),ht=Jte;function ere(e){return Ue("MuiButton",e)}const tre=je("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"]),ig=tre,rre=O.createContext({}),nre=rre,ire=O.createContext(void 0),are=ire,ore=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],sre=e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:a,classes:o}=e,s={root:["root",a,`${a}${Me(t)}`,`size${Me(i)}`,`${a}Size${Me(i)}`,t==="inherit"&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Me(i)}`],endIcon:["endIcon",`iconSize${Me(i)}`]},l=Ze(s,ere,o);return F({},o,l)},m4=e=>F({},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}}),lre=ge(Lf,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Me(r.color)}`],t[`size${Me(r.size)}`],t[`${r.variant}Size${Me(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 F({},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":F({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:wr(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})`:wr(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})`:wr(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":F({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${ig.focusVisible}`]:F({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${ig.disabled}`]:F({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 ${wr(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"},[`&.${ig.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ig.disabled}`]:{boxShadow:"none"}}),ure=ge("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Me(r.size)}`]]}})(({ownerState:e})=>F({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},m4(e))),cre=ge("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Me(r.size)}`]]}})(({ownerState:e})=>F({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},m4(e))),fre=O.forwardRef(function(t,r){const n=O.useContext(nre),i=O.useContext(are),a=HM(n,t),o=Ye({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,_=ye(o,ore),b=F({},o,{color:l,component:u,disabled:f,disableElevation:d,disableFocusRipple:h,fullWidth:g,size:m,type:x,variant:S}),w=sre(b),C=y&&E.jsx(ure,{className:w.startIcon,ownerState:b,children:y}),A=p&&E.jsx(cre,{className:w.endIcon,ownerState:b,children:p}),T=i||"";return E.jsxs(lre,F({ownerState:b,className:Ce(n.className,w.root,c,T),component:u,disabled:f,focusRipple:!h,focusVisibleClassName:Ce(w.focusVisible,v),ref:r,type:x},_,{classes:w,children:[C,s,A]}))}),Au=fre,dre=BQ({createStyledComponent:ge("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Me(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Ye({props:e,name:"MuiContainer"})}),Nf=dre;function hre(e){return Ue("MuiModal",e)}je("MuiModal",["root","hidden","backdrop"]);const pre=["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"],vre=e=>{const{open:t,exited:r,classes:n}=e;return Ze({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},hre,n)},gre=ge("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})=>F({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),mre=ge(Kte,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),yre=O.forwardRef(function(t,r){var n,i,a,o,s,l;const u=Ye({name:"MuiModal",props:t}),{BackdropComponent:c=mre,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:I,slotProps:P,slots:k}=u,R=ye(u,pre),z=F({},u,{closeAfterTransition:h,disableAutoFocus:x,disableEnforceFocus:S,disableEscapeKeyDown:_,disablePortal:b,disableRestoreFocus:w,disableScrollLock:C,hideBackdrop:A,keepMounted:T}),{getRootProps:$,getBackdropProps:N,getTransitionProps:V,portalRef:L,isTopModal:G,exited:U,hasTransition:B}=wte(F({},z,{rootRef:r})),j=F({},z,{exited:U}),X=vre(j),W={};if(p.props.tabIndex===void 0&&(W.tabIndex="-1"),B){const{onEnter:fe,onExited:de}=V();W.onEnter=fe,W.onExited=de}const ee=(n=(i=k==null?void 0:k.root)!=null?i:m.Root)!=null?n:gre,te=(a=(o=k==null?void 0:k.backdrop)!=null?o:m.Backdrop)!=null?a:c,ie=(s=P==null?void 0:P.root)!=null?s:y.root,re=(l=P==null?void 0:P.backdrop)!=null?l:y.backdrop,Q=Ra({elementType:ee,externalSlotProps:ie,externalForwardedProps:R,getSlotProps:$,additionalProps:{ref:r,as:g},ownerState:j,className:Ce(d,ie==null?void 0:ie.className,X==null?void 0:X.root,!j.open&&j.exited&&(X==null?void 0:X.hidden))}),J=Ra({elementType:te,externalSlotProps:re,additionalProps:f,getSlotProps:fe=>N(F({},fe,{onClick:de=>{M&&M(de),fe!=null&&fe.onClick&&fe.onClick(de)}})),className:Ce(re==null?void 0:re.className,f==null?void 0:f.className,X==null?void 0:X.backdrop),ownerState:j});return!T&&!I&&(!B||U)?null:E.jsx(pte,{ref:L,container:v,disablePortal:b,children:E.jsxs(ee,F({},Q,{children:[!A&&c?E.jsx(te,F({},J)):null,E.jsx(dte,{disableEnforceFocus:S,disableAutoFocus:x,disableRestoreFocus:w,isEnabled:G,open:I,children:O.cloneElement(p,W)})]}))})}),y4=yre;function xre(e){return Ue("MuiDivider",e)}je("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Sre=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],bre=e=>{const{absolute:t,children:r,classes:n,flexItem:i,light:a,orientation:o,textAlign:s,variant:l}=e;return Ze({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"]},xre,n)},_re=ge("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})=>F({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)`:wr(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})=>F({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>F({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>F({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>F({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),wre=ge("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>F({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)`})),x4=O.forwardRef(function(t,r){const n=Ye({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=ye(n,Sre),v=F({},n,{absolute:i,component:s,flexItem:l,light:u,orientation:c,role:f,textAlign:d,variant:h}),g=bre(v);return E.jsx(_re,F({as:s,className:Ce(g.root,o),role:f,ref:r,ownerState:v},p,{children:a?E.jsx(wre,{className:g.wrapper,ownerState:v,children:a}):null}))});x4.muiSkipListHighlight=!0;const vd=x4,Cre=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Tre=e=>{const{classes:t,disableUnderline:r}=e,i=Ze({root:["root",!r&&"underline"],input:["input"]},Fte,t);return F({},t,i)},Are=ge(X1,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Y1(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 F({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}},[`&.${Us.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${Us.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"},[`&.${Us.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Us.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(.${Us.disabled}, .${Us.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Us.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&F({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),Mre=ge(Z1,{name:"MuiFilledInput",slot:"Input",overridesResolver:q1})(({theme:e,ownerState:t})=>F({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})),S4=O.forwardRef(function(t,r){var n,i,a,o;const s=Ye({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=ye(s,Cre),m=F({},s,{fullWidth:c,inputComponent:f,multiline:d,type:v}),y=Tre(s),x={root:{ownerState:m},input:{ownerState:m}},S=h??u?yi(h??u,x):x,_=(n=(i=p.root)!=null?i:l.Root)!=null?n:Are,b=(a=(o=p.input)!=null?o:l.Input)!=null?a:Mre;return E.jsx(o2,F({slots:{root:_,input:b},componentsProps:S,fullWidth:c,inputComponent:f,multiline:d,ref:r,type:v},g,{classes:y}))});S4.muiName="Input";const b4=S4;function Ire(e){return Ue("MuiFormControl",e)}je("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Pre=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],kre=e=>{const{classes:t,margin:r,fullWidth:n}=e,i={root:["root",r!=="none"&&`margin${Me(r)}`,n&&"fullWidth"]};return Ze(i,Ire,t)},Dre=ge("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>F({},t.root,t[`margin${Me(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>F({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%"})),Rre=O.forwardRef(function(t,r){const n=Ye({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=ye(n,Pre),y=F({},n,{color:o,component:s,disabled:l,error:u,fullWidth:f,hiddenLabel:d,margin:h,required:p,size:v,variant:g}),x=kre(y),[S,_]=O.useState(()=>{let P=!1;return i&&O.Children.forEach(i,k=>{if(!Ch(k,["Input","Select"]))return;const R=Ch(k,["Select"])?k.props.input:k;R&&Ite(R.props)&&(P=!0)}),P}),[b,w]=O.useState(()=>{let P=!1;return i&&O.Children.forEach(i,k=>{Ch(k,["Input","Select"])&&(Ly(k.props,!0)||Ly(k.props.inputProps,!0))&&(P=!0)}),P}),[C,A]=O.useState(!1);l&&C&&A(!1);const T=c!==void 0&&!l?c:C;let M;const I=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 E.jsx(a2.Provider,{value:I,children:E.jsx(Dre,F({as:s,ownerState:y,className:Ce(x.root,a),ref:r},m,{children:i}))})}),_4=Rre;function Lre(e){return Ue("MuiFormHelperText",e)}const Ere=je("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),KD=Ere;var QD;const Ore=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Nre=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${Me(n)}`,r&&"contained",s&&"focused",o&&"filled",l&&"required"]};return Ze(u,Lre,t)},zre=ge("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${Me(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>F({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${KD.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${KD.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Bre=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:o="p"}=n,s=ye(n,Ore),l=Of(),u=Ef({props:n,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=F({},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=Nre(c);return E.jsx(zre,F({as:o,ownerState:c,className:Ce(f.root,a),ref:r},s,{children:i===" "?QD||(QD=E.jsx("span",{className:"notranslate",children:"​"})):i}))}),Fre=Bre;function $re(e){return Ue("MuiFormLabel",e)}const Vre=je("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ih=Vre,Gre=["children","className","color","component","disabled","error","filled","focused","required"],Hre=e=>{const{classes:t,color:r,focused:n,disabled:i,error:a,filled:o,required:s}=e,l={root:["root",`color${Me(r)}`,i&&"disabled",a&&"error",o&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return Ze(l,$re,t)},Wre=ge("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>F({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>F({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Ih.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Ih.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ih.error}`]:{color:(e.vars||e).palette.error.main}})),Ure=ge("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ih.error}`]:{color:(e.vars||e).palette.error.main}})),jre=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiFormLabel"}),{children:i,className:a,component:o="label"}=n,s=ye(n,Gre),l=Of(),u=Ef({props:n,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=F({},n,{color:u.color||"primary",component:o,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=Hre(c);return E.jsxs(Wre,F({as:o,ownerState:c,className:Ce(f.root,a),ref:r},s,{children:[i,u.required&&E.jsxs(Ure,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),Yre=jre,qre=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function IC(e){return`scale(${e}, ${e**2})`}const Xre={entering:{opacity:1,transform:IC(1)},entered:{opacity:1,transform:"none"}},MS=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),w4=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=r2}=t,m=ye(t,qre),y=O.useRef(),x=O.useRef(),S=Rf(),_=O.useRef(null),b=Mr(_,a.ref,r),w=R=>z=>{if(R){const $=_.current;z===void 0?R($):R($,z)}},C=w(c),A=w((R,z)=>{u4(R);const{duration:$,delay:N,easing:V}=pf({style:p,timeout:v,easing:o},{mode:"enter"});let L;v==="auto"?(L=S.transitions.getAutoHeightDuration(R.clientHeight),x.current=L):L=$,R.style.transition=[S.transitions.create("opacity",{duration:L,delay:N}),S.transitions.create("transform",{duration:MS?L:L*.666,delay:N,easing:V})].join(","),l&&l(R,z)}),T=w(u),M=w(h),I=w(R=>{const{duration:z,delay:$,easing:N}=pf({style:p,timeout:v,easing:o},{mode:"exit"});let V;v==="auto"?(V=S.transitions.getAutoHeightDuration(R.clientHeight),x.current=V):V=z,R.style.transition=[S.transitions.create("opacity",{duration:V,delay:$}),S.transitions.create("transform",{duration:MS?V:V*.666,delay:MS?$:$||V*.333,easing:N})].join(","),R.style.opacity=0,R.style.transform=IC(.75),f&&f(R)}),P=w(d),k=R=>{v==="auto"&&(y.current=setTimeout(R,x.current||0)),n&&n(_.current,R)};return O.useEffect(()=>()=>{clearTimeout(y.current)},[]),E.jsx(g,F({appear:i,in:s,nodeRef:_,onEnter:A,onEntered:T,onEntering:C,onExit:I,onExited:P,onExiting:M,addEndListener:k,timeout:v==="auto"?null:v},m,{children:(R,z)=>O.cloneElement(a,F({style:F({opacity:0,transform:IC(.75),visibility:R==="exited"&&!s?"hidden":void 0},Xre[R],p,a.props.style),ref:b},z))}))});w4.muiSupportAuto=!0;const Zre=w4,Kre=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Qre=e=>{const{classes:t,disableUnderline:r}=e,i=Ze({root:["root",!r&&"underline"],input:["input"]},Ote,t);return F({},t,i)},Jre=ge(X1,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Y1(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})`),F({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"},[`&.${pd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${pd.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(.${pd.disabled}, .${pd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${pd.disabled}:before`]:{borderBottomStyle:"dotted"}})}),ene=ge(Z1,{name:"MuiInput",slot:"Input",overridesResolver:q1})({}),C4=O.forwardRef(function(t,r){var n,i,a,o;const s=Ye({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=ye(s,Kre),y=Qre(s),S={root:{ownerState:{disableUnderline:l}}},_=p??c?yi(p??c,S):S,b=(n=(i=v.root)!=null?i:u.Root)!=null?n:Jre,w=(a=(o=v.input)!=null?o:u.Input)!=null?a:ene;return E.jsx(o2,F({slots:{root:b,input:w},slotProps:_,fullWidth:f,inputComponent:d,multiline:h,ref:r,type:g},m,{classes:y}))});C4.muiName="Input";const T4=C4;function tne(e){return Ue("MuiInputLabel",e)}je("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const rne=["disableAnimation","margin","shrink","variant","className"],nne=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${Me(n)}`,o],asterisk:[s&&"asterisk"]},u=Ze(l,tne,t);return F({},t,u)},ine=ge(Yre,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Ih.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})=>F({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"&&F({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&&F({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"&&F({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)"}))),ane=O.forwardRef(function(t,r){const n=Ye({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:a,className:o}=n,s=ye(n,rne),l=Of();let u=a;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=Ef({props:n,muiFormControl:l,states:["size","variant","required"]}),f=F({},n,{disableAnimation:i,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required}),d=nne(f);return E.jsx(ine,F({"data-shrink":u,ownerState:f,ref:r,className:Ce(d.root,o)},s,{classes:d}))}),A4=ane;function one(e){return Ue("MuiLink",e)}const sne=je("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),lne=sne,M4={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},une=e=>M4[e]||e,cne=({theme:e,ownerState:t})=>{const r=une(t.color),n=hf(e,`palette.${r}`,!1)||t.color,i=hf(e,`palette.${r}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:wr(n,.4)},fne=cne,dne=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],hne=e=>{const{classes:t,component:r,focusVisible:n,underline:i}=e,a={root:["root",`underline${Me(i)}`,r==="button"&&"button",n&&"focusVisible"]};return Ze(a,one,t)},pne=ge(Xe,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Me(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>F({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&F({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:fne({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"},[`&.${lne.focusVisible}`]:{outline:"auto"}})),vne=O.forwardRef(function(t,r){const n=Ye({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=ye(n,dne),{isFocusVisibleRef:p,onBlur:v,onFocus:g,ref:m}=GM(),[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=F({},n,{color:a,component:o,focusVisible:y,underline:c,variant:f}),C=hne(w);return E.jsx(pne,F({color:a,className:Ce(C.root,i),classes:u,component:o,onBlur:_,onFocus:b,ref:S,ownerState:w,variant:f,sx:[...Object.keys(M4).includes(a)?[]:[{color:a}],...Array.isArray(d)?d:[d]]},h))}),li=vne,gne=O.createContext({}),Ph=gne;function mne(e){return Ue("MuiList",e)}je("MuiList",["root","padding","dense","subheader"]);const yne=["children","className","component","dense","disablePadding","subheader"],xne=e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return Ze({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},mne,t)},Sne=ge("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})=>F({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),bne=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiList"}),{children:i,className:a,component:o="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=n,c=ye(n,yne),f=O.useMemo(()=>({dense:s}),[s]),d=F({},n,{component:o,dense:s,disablePadding:l}),h=xne(d);return E.jsx(Ph.Provider,{value:f,children:E.jsxs(Sne,F({as:o,className:Ce(h.root,a),ref:r,ownerState:d},c,{children:[u,i]}))})}),I4=bne;function _ne(e){return Ue("MuiListItem",e)}const wne=je("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),gc=wne,Cne=je("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Tne=Cne;function Ane(e){return Ue("MuiListItemSecondaryAction",e)}je("MuiListItemSecondaryAction",["root","disableGutters"]);const Mne=["className"],Ine=e=>{const{disableGutters:t,classes:r}=e;return Ze({root:["root",t&&"disableGutters"]},Ane,r)},Pne=ge("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})(({ownerState:e})=>F({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),P4=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=n,a=ye(n,Mne),o=O.useContext(Ph),s=F({},n,{disableGutters:o.disableGutters}),l=Ine(s);return E.jsx(Pne,F({className:Ce(l.root,i),ownerState:s,ref:r},a))});P4.muiName="ListItemSecondaryAction";const kne=P4,Dne=["className"],Rne=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Lne=(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]},Ene=e=>{const{alignItems:t,button:r,classes:n,dense:i,disabled:a,disableGutters:o,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return Ze({root:["root",i&&"dense",!o&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",r&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},_ne,n)},One=ge("div",{name:"MuiListItem",slot:"Root",overridesResolver:Lne})(({theme:e,ownerState:t})=>F({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&F({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Tne.root}`]:{paddingRight:48}},{[`&.${gc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${gc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:wr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${gc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:wr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${gc.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"}},[`&.${gc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:wr(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})`:wr(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Nne=ge("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),zne=O.forwardRef(function(t,r){const n=Ye({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=ye(n.ContainerProps,Dne),A=ye(n,Rne),T=O.useContext(Ph),M=O.useMemo(()=>({dense:p||T.dense||!1,alignItems:i,disableGutters:g}),[i,T.dense,p,g]),I=O.useRef(null);ho(()=>{a&&I.current&&I.current.focus()},[a]);const P=O.Children.toArray(s),k=P.length&&Ch(P[P.length-1],["ListItemSecondaryAction"]),R=F({},n,{alignItems:i,autoFocus:a,button:o,dense:M.dense,disabled:v,disableGutters:g,disablePadding:m,divider:y,hasSecondaryAction:k,selected:_}),z=Ene(R),$=Mr(I,r),N=w.root||c.Root||One,V=b.root||f.root||{},L=F({className:Ce(z.root,V.className,l),disabled:v},A);let G=u||"li";return o&&(L.component=u||"div",L.focusVisibleClassName=Ce(gc.focusVisible,x),G=Lf),k?(G=!L.component&&!u?"div":G,d==="li"&&(G==="li"?G="div":L.component==="li"&&(L.component="div")),E.jsx(Ph.Provider,{value:M,children:E.jsxs(Nne,F({as:d,className:Ce(z.container,h),ref:$,ownerState:R},C,{children:[E.jsx(N,F({},V,!vf(N)&&{as:G,ownerState:F({},R,V.ownerState)},L,{children:P})),P.pop()]}))})):E.jsx(Ph.Provider,{value:M,children:E.jsxs(N,F({},V,{as:G,ref:$},!vf(N)&&{ownerState:F({},R,V.ownerState)},L,{children:[P,S&&E.jsx(kne,{children:S})]}))})}),ju=zne,Bne=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function IS(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function JD(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function k4(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 gd(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")||!k4(s,a)||l)s=i(e,s,r);else return s.focus(),!0}return!1}const Fne=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=ye(t,Bne),h=O.useRef(null),p=O.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ho(()=>{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=on(S).activeElement;if(_==="ArrowDown")x.preventDefault(),gd(S,b,u,l,IS);else if(_==="ArrowUp")x.preventDefault(),gd(S,b,u,l,JD);else if(_==="Home")x.preventDefault(),gd(S,null,u,l,IS);else if(_==="End")x.preventDefault(),gd(S,null,u,l,JD);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&&k4(b,w);w.previousKeyMatched&&(T||gd(S,b,!1,l,IS,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 E.jsx(I4,F({role:"menu",ref:g,className:s,onKeyDown:v,tabIndex:i?0:-1},d,{children:y}))}),$ne=Fne;function Vne(e){return Ue("MuiPopover",e)}je("MuiPopover",["root","paper"]);const Gne=["onEntering"],Hne=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Wne=["slotProps"];function eR(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function tR(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function rR(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function PS(e){return typeof e=="function"?e():e}const Une=e=>{const{classes:t}=e;return Ze({root:["root"],paper:["paper"]},Vne,t)},jne=ge(y4,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),D4=ge(U1,{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}),Yne=O.forwardRef(function(t,r){var n,i,a;const o=Ye({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=Zre,transitionDuration:w="auto",TransitionProps:{onEntering:C}={},disableScrollLock:A=!1}=o,T=ye(o.TransitionProps,Gne),M=ye(o,Hne),I=(n=S==null?void 0:S.paper)!=null?n:y,P=O.useRef(),k=Mr(P,I.ref),R=F({},o,{anchorOrigin:u,anchorReference:f,elevation:v,marginThreshold:g,externalPaperSlotProps:I,transformOrigin:_,TransitionComponent:b,transitionDuration:w,TransitionProps:T}),z=Une(R),$=O.useCallback(()=>{if(f==="anchorPosition")return c;const fe=PS(l),ke=(fe&&fe.nodeType===1?fe:on(P.current).body).getBoundingClientRect();return{top:ke.top+eR(ke,u.vertical),left:ke.left+tR(ke,u.horizontal)}},[l,u.horizontal,u.vertical,c,f]),N=O.useCallback(fe=>({vertical:eR(fe,_.vertical),horizontal:tR(fe,_.horizontal)}),[_.horizontal,_.vertical]),V=O.useCallback(fe=>{const de={width:fe.offsetWidth,height:fe.offsetHeight},ke=N(de);if(f==="none")return{top:null,left:null,transformOrigin:rR(ke)};const We=$();let Ge=We.top-ke.vertical,at=We.left-ke.horizontal;const ot=Ge+de.height,It=at+de.width,Be=Da(PS(l)),Pt=Be.innerHeight-g,Yt=Be.innerWidth-g;if(g!==null&&GePt){const kt=ot-Pt;Ge-=kt,ke.vertical+=kt}if(g!==null&&atYt){const kt=It-Yt;at-=kt,ke.horizontal+=kt}return{top:`${Math.round(Ge)}px`,left:`${Math.round(at)}px`,transformOrigin:rR(ke)}},[l,f,$,N,g]),[L,G]=O.useState(m),U=O.useCallback(()=>{const fe=P.current;if(!fe)return;const de=V(fe);de.top!==null&&(fe.style.top=de.top),de.left!==null&&(fe.style.left=de.left),fe.style.transformOrigin=de.transformOrigin,G(!0)},[V]);O.useEffect(()=>(A&&window.addEventListener("scroll",U),()=>window.removeEventListener("scroll",U)),[l,A,U]);const B=(fe,de)=>{C&&C(fe,de),U()},j=()=>{G(!1)};O.useEffect(()=>{m&&U()}),O.useImperativeHandle(s,()=>m?{updatePosition:()=>{U()}}:null,[m,U]),O.useEffect(()=>{if(!m)return;const fe=av(()=>{U()}),de=Da(l);return de.addEventListener("resize",fe),()=>{fe.clear(),de.removeEventListener("resize",fe)}},[l,m,U]);let X=w;w==="auto"&&!b.muiSupportAuto&&(X=void 0);const W=p||(l?on(PS(l)).body:void 0),ee=(i=x==null?void 0:x.root)!=null?i:jne,te=(a=x==null?void 0:x.paper)!=null?a:D4,ie=Ra({elementType:te,externalSlotProps:F({},I,{style:L?I.style:F({},I.style,{opacity:0})}),additionalProps:{elevation:v,ref:k},ownerState:R,className:Ce(z.paper,I==null?void 0:I.className)}),re=Ra({elementType:ee,externalSlotProps:(S==null?void 0:S.root)||{},externalForwardedProps:M,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:W,open:m},ownerState:R,className:Ce(z.root,h)}),{slotProps:Q}=re,J=ye(re,Wne);return E.jsx(ee,F({},J,!vf(ee)&&{slotProps:Q,disableScrollLock:A},{children:E.jsx(b,F({appear:!0,in:m,onEntering:B,onExited:j,timeout:X},T,{children:E.jsx(te,F({},ie,{children:d}))}))}))}),qne=Yne;function Xne(e){return Ue("MuiMenu",e)}je("MuiMenu",["root","paper","list"]);const Zne=["onEntering"],Kne=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Qne={vertical:"top",horizontal:"right"},Jne={vertical:"top",horizontal:"left"},eie=e=>{const{classes:t}=e;return Ze({root:["root"],paper:["paper"],list:["list"]},Xne,t)},tie=ge(qne,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),rie=ge(D4,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),nie=ge($ne,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),iie=O.forwardRef(function(t,r){var n,i;const a=Ye({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=ye(a.TransitionProps,Zne),_=ye(a,Kne),b=Rf(),w=b.direction==="rtl",C=F({},a,{autoFocus:o,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:h,transitionDuration:v,TransitionProps:S,variant:m}),A=eie(C),T=o&&!u&&d,M=O.useRef(null),I=(V,L)=>{M.current&&M.current.adjustStyleForScrollbar(V,b),g&&g(V,L)},P=V=>{V.key==="Tab"&&(V.preventDefault(),f&&f(V,"tabKeyDown"))};let k=-1;O.Children.map(s,(V,L)=>{O.isValidElement(V)&&(V.props.disabled||(m==="selectedMenu"&&V.props.selected||k===-1)&&(k=L))});const R=(n=y.paper)!=null?n:rie,z=(i=x.paper)!=null?i:h,$=Ra({elementType:y.root,externalSlotProps:x.root,ownerState:C,className:[A.root,l]}),N=Ra({elementType:R,externalSlotProps:z,ownerState:C,className:A.paper});return E.jsx(tie,F({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Qne:Jne,slots:{paper:R,root:y.root},slotProps:{root:$,paper:N},open:d,ref:r,transitionDuration:v,TransitionProps:F({onEntering:I},S),ownerState:C},_,{classes:p,children:E.jsx(nie,F({onKeyDown:P,actions:M,autoFocus:o&&(k===-1||u),autoFocusItem:T,variant:m},c,{className:Ce(A.list,c.className),children:s}))}))}),aie=iie;function oie(e){return Ue("MuiNativeSelect",e)}const sie=je("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),s2=sie,lie=["className","disabled","error","IconComponent","inputRef","variant"],uie=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${Me(r)}`,a&&"iconOpen",n&&"disabled"]};return Ze(s,oie,t)},R4=({ownerState:e,theme:t})=>F({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":F({},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"},[`&.${s2.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}}),cie=ge("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:wo,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${s2.multiple}`]:t.multiple}]}})(R4),L4=({ownerState:e,theme:t})=>F({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${s2.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),fie=ge("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Me(r.variant)}`],r.open&&t.iconOpen]}})(L4),die=O.forwardRef(function(t,r){const{className:n,disabled:i,error:a,IconComponent:o,inputRef:s,variant:l="standard"}=t,u=ye(t,lie),c=F({},t,{disabled:i,variant:l,error:a}),f=uie(c);return E.jsxs(O.Fragment,{children:[E.jsx(cie,F({ownerState:c,className:Ce(f.select,n),disabled:i,ref:s||r},u)),t.multiple?null:E.jsx(fie,{as:o,ownerState:c,className:f.icon})]})}),hie=die;var nR;const pie=["children","classes","className","label","notched"],vie=ge("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%"}),gie=ge("legend")(({ownerState:e,theme:t})=>F({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&&F({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 mie(e){const{className:t,label:r,notched:n}=e,i=ye(e,pie),a=r!=null&&r!=="",o=F({},e,{notched:n,withLabel:a});return E.jsx(vie,F({"aria-hidden":!0,className:t,ownerState:o},i,{children:E.jsx(gie,{ownerState:o,children:a?E.jsx("span",{children:r}):nR||(nR=E.jsx("span",{className:"notranslate",children:"​"}))})}))}const yie=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],xie=e=>{const{classes:t}=e,n=Ze({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},zte,t);return F({},t,n)},Sie=ge(X1,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Y1})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return F({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ko.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ko.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${ko.focused} .${ko.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ko.error} .${ko.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ko.disabled} .${ko.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&F({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),bie=ge(mie,{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}}),_ie=ge(Z1,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:q1})(({theme:e,ownerState:t})=>F({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})),E4=O.forwardRef(function(t,r){var n,i,a,o,s;const l=Ye({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=ye(l,yie),y=xie(l),x=Of(),S=Ef({props:l,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=F({},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:Sie,w=(a=(o=v.input)!=null?o:u.Input)!=null?a:_ie;return E.jsx(o2,F({slots:{root:b,input:w},renderSuffix:C=>E.jsx(bie,{ownerState:_,className:y.notchedOutline,label:d!=null&&d!==""&&S.required?s||(s=E.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:F({},y,{notchedOutline:null})}))});E4.muiName="Input";const O4=E4;function wie(e){return Ue("MuiSelect",e)}const Cie=je("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),md=Cie;var iR;const Tie=["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"],Aie=ge("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${md.select}`]:t.select},{[`&.${md.select}`]:t[r.variant]},{[`&.${md.error}`]:t.error},{[`&.${md.multiple}`]:t.multiple}]}})(R4,{[`&.${md.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Mie=ge("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Me(r.variant)}`],r.open&&t.iconOpen]}})(L4),Iie=ge("input",{shouldForwardProp:e=>_J(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 aR(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Pie(e){return e==null||typeof e=="string"&&!e.trim()}const kie=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${Me(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Ze(s,wie,t)},Die=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:I,SelectDisplayProps:P={},tabIndex:k,value:R,variant:z="standard"}=t,$=ye(t,Tie),[N,V]=Py({controlled:R,default:f,name:"Select"}),[L,G]=Py({controlled:T,default:c,name:"Select"}),U=O.useRef(null),B=O.useRef(null),[j,X]=O.useState(null),{current:W}=O.useRef(T!=null),[ee,te]=O.useState(),ie=Mr(r,g),re=O.useCallback(Te=>{B.current=Te,Te&&X(Te)},[]),Q=j==null?void 0:j.parentNode;O.useImperativeHandle(ie,()=>({focus:()=>{B.current.focus()},node:U.current,value:N}),[N]),O.useEffect(()=>{c&&L&&j&&!W&&(te(s?null:Q.clientWidth),B.current.focus())},[j,s]),O.useEffect(()=>{o&&B.current.focus()},[o]),O.useEffect(()=>{if(!m)return;const Te=on(B.current).getElementById(m);if(Te){const ut=()=>{getSelection().isCollapsed&&B.current.focus()};return Te.addEventListener("click",ut),()=>{Te.removeEventListener("click",ut)}}},[m]);const J=(Te,ut)=>{Te?A&&A(ut):w&&w(ut),W||(te(s?null:Q.clientWidth),G(Te))},fe=Te=>{Te.button===0&&(Te.preventDefault(),B.current.focus(),J(!0,Te))},de=Te=>{J(!1,Te)},ke=O.Children.toArray(l),We=Te=>{const ut=ke.find(Rt=>Rt.props.value===Te.target.value);ut!==void 0&&(V(ut.props.value),b&&b(Te,ut))},Ge=Te=>ut=>{let Rt;if(ut.currentTarget.hasAttribute("tabindex")){if(x){Rt=Array.isArray(N)?N.slice():[];const pe=N.indexOf(Te.props.value);pe===-1?Rt.push(Te.props.value):Rt.splice(pe,1)}else Rt=Te.props.value;if(Te.props.onClick&&Te.props.onClick(ut),N!==Rt&&(V(Rt),b)){const pe=ut.nativeEvent||ut,De=new pe.constructor(pe.type,pe);Object.defineProperty(De,"target",{writable:!0,value:{value:Rt,name:S}}),b(De,Te)}x||J(!1,ut)}},at=Te=>{M||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Te.key)!==-1&&(Te.preventDefault(),J(!0,Te))},ot=j!==null&&L,It=Te=>{!ot&&_&&(Object.defineProperty(Te,"target",{writable:!0,value:{value:N,name:S}}),_(Te))};delete $["aria-invalid"];let Be,Pt;const Yt=[];let kt=!1;(Ly({value:N})||h)&&(I?Be=I(N):kt=!0);const K=ke.map(Te=>{if(!O.isValidElement(Te))return null;let ut;if(x){if(!Array.isArray(N))throw new Error(Cs(2));ut=N.some(Rt=>aR(Rt,Te.props.value)),ut&&kt&&Yt.push(Te.props.children)}else ut=aR(N,Te.props.value),ut&&kt&&(Pt=Te.props.children);return O.cloneElement(Te,{"aria-selected":ut?"true":"false",onClick:Ge(Te),onKeyUp:Rt=>{Rt.key===" "&&Rt.preventDefault(),Te.props.onKeyUp&&Te.props.onKeyUp(Rt)},role:"option",selected:ut,value:void 0,"data-value":Te.props.value})});kt&&(x?Yt.length===0?Be=null:Be=Yt.reduce((Te,ut,Rt)=>(Te.push(ut),Rt{const{classes:t}=e;return t},l2={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>wo(e)&&e!=="variant",slot:"Root"},Nie=ge(T4,l2)(""),zie=ge(O4,l2)(""),Bie=ge(b4,l2)(""),N4=O.forwardRef(function(t,r){const n=Ye({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:o={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=Vte,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=ye(n,Lie),T=y?hie:Rie,M=Of(),I=Ef({props:n,muiFormControl:M,states:["variant","error"]}),P=I.variant||C,k=F({},n,{variant:P,classes:o}),R=Oie(k),z=ye(R,Eie),$=d||{standard:E.jsx(Nie,{ownerState:k}),outlined:E.jsx(zie,{label:p,ownerState:k}),filled:E.jsx(Bie,{ownerState:k})}[P],N=Mr(r,$.ref);return E.jsx(O.Fragment,{children:O.cloneElement($,F({inputComponent:T,inputProps:F({children:a,error:I.error,IconComponent:c,variant:P,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:F({id:f},w)},h,{classes:h?yi(z,h.classes):z},d?d.props.inputProps:{})},m&&y&&P==="outlined"?{notched:!0}:{},{ref:N,className:Ce($.props.className,s,R.root)},!d&&{variant:P},A))})});N4.muiName="Select";const z4=N4;function Fie(e){return Ue("MuiTab",e)}const $ie=je("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),js=$ie,Vie=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Gie=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${Me(r)}`,n&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Ze(u,Fie,t)},Hie=ge(Lf,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${Me(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>F({},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,[`& > .${js.iconWrapper}`]:F({},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,[`&.${js.selected}`]:{opacity:1},[`&.${js.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${js.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${js.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${js.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${js.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)})),Wie=O.forwardRef(function(t,r){const n=Ye({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=ye(n,Vie),_=F({},n,{disabled:a,disableFocusRipple:o,selected:v,icon:!!l,iconPosition:u,label:!!f,fullWidth:s,textColor:m,wrapped:x}),b=Gie(_),w=l&&f&&O.isValidElement(l)?O.cloneElement(l,{className:Ce(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 E.jsxs(Hie,F({focusRipple:!o,className:Ce(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"?E.jsxs(O.Fragment,{children:[w,f]}):E.jsxs(O.Fragment,{children:[f,w]}),c]}))}),Uie=Wie,jie=O.createContext(),B4=jie;function Yie(e){return Ue("MuiTable",e)}je("MuiTable",["root","stickyHeader"]);const qie=["className","component","padding","size","stickyHeader"],Xie=e=>{const{classes:t,stickyHeader:r}=e;return Ze({root:["root",r&&"stickyHeader"]},Yie,t)},Zie=ge("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>F({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":F({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),oR="table",Kie=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTable"}),{className:i,component:a=oR,padding:o="normal",size:s="medium",stickyHeader:l=!1}=n,u=ye(n,qie),c=F({},n,{component:a,padding:o,size:s,stickyHeader:l}),f=Xie(c),d=O.useMemo(()=>({padding:o,size:s,stickyHeader:l}),[o,s,l]);return E.jsx(B4.Provider,{value:d,children:E.jsx(Zie,F({as:a,role:a===oR?null:"table",ref:r,className:Ce(f.root,i),ownerState:c},u))})}),Qie=Kie,Jie=O.createContext(),K1=Jie;function eae(e){return Ue("MuiTableBody",e)}je("MuiTableBody",["root"]);const tae=["className","component"],rae=e=>{const{classes:t}=e;return Ze({root:["root"]},eae,t)},nae=ge("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),iae={variant:"body"},sR="tbody",aae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableBody"}),{className:i,component:a=sR}=n,o=ye(n,tae),s=F({},n,{component:a}),l=rae(s);return E.jsx(K1.Provider,{value:iae,children:E.jsx(nae,F({className:Ce(l.root,i),as:a,ref:r,role:a===sR?null:"rowgroup",ownerState:s},o))})}),oae=aae;function sae(e){return Ue("MuiTableCell",e)}const lae=je("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),uae=lae,cae=["align","className","component","padding","scope","size","sortDirection","variant"],fae=e=>{const{classes:t,variant:r,align:n,padding:i,size:a,stickyHeader:o}=e,s={root:["root",r,o&&"stickyHeader",n!=="inherit"&&`align${Me(n)}`,i!=="normal"&&`padding${Me(i)}`,`size${Me(a)}`]};return Ze(s,sae,t)},dae=ge("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Me(r.size)}`],r.padding!=="normal"&&t[`padding${Me(r.padding)}`],r.align!=="inherit"&&t[`align${Me(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>F({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?e4(wr(e.palette.divider,1),.88):JV(wr(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",[`&.${uae.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})),hae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:o,padding:s,scope:l,size:u,sortDirection:c,variant:f}=n,d=ye(n,cae),h=O.useContext(B4),p=O.useContext(K1),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=F({},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=fae(x);let _=null;return c&&(_=c==="asc"?"ascending":"descending"),E.jsx(dae,F({as:g,ref:r,className:Ce(S.root,a),"aria-sort":_,scope:m,ownerState:x},d))}),lR=hae;function pae(e){return Ue("MuiTableContainer",e)}je("MuiTableContainer",["root"]);const vae=["className","component"],gae=e=>{const{classes:t}=e;return Ze({root:["root"]},pae,t)},mae=ge("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),yae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableContainer"}),{className:i,component:a="div"}=n,o=ye(n,vae),s=F({},n,{component:a}),l=gae(s);return E.jsx(mae,F({ref:r,as:a,className:Ce(l.root,i),ownerState:s},o))}),xae=yae;function Sae(e){return Ue("MuiTableHead",e)}je("MuiTableHead",["root"]);const bae=["className","component"],_ae=e=>{const{classes:t}=e;return Ze({root:["root"]},Sae,t)},wae=ge("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Cae={variant:"head"},uR="thead",Tae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableHead"}),{className:i,component:a=uR}=n,o=ye(n,bae),s=F({},n,{component:a}),l=_ae(s);return E.jsx(K1.Provider,{value:Cae,children:E.jsx(wae,F({as:a,className:Ce(l.root,i),ref:r,role:a===uR?null:"rowgroup",ownerState:s},o))})}),Aae=Tae;function Mae(e){return Ue("MuiToolbar",e)}je("MuiToolbar",["root","gutters","regular","dense"]);const Iae=["className","component","disableGutters","variant"],Pae=e=>{const{classes:t,disableGutters:r,variant:n}=e;return Ze({root:["root",!r&&"gutters",n]},Mae,t)},kae=ge("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})=>F({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),Dae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiToolbar"}),{className:i,component:a="div",disableGutters:o=!1,variant:s="regular"}=n,l=ye(n,Iae),u=F({},n,{component:a,disableGutters:o,variant:s}),c=Pae(u);return E.jsx(kae,F({as:a,className:Ce(c.root,i),ref:r,ownerState:u},l))}),Rae=Dae,Lae=W1(E.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Eae=W1(E.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Oae(e){return Ue("MuiTableRow",e)}const Nae=je("MuiTableRow",["root","selected","hover","head","footer"]),cR=Nae,zae=["className","component","hover","selected"],Bae=e=>{const{classes:t,selected:r,hover:n,head:i,footer:a}=e;return Ze({root:["root",r&&"selected",n&&"hover",i&&"head",a&&"footer"]},Oae,t)},Fae=ge("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,[`&.${cR.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${cR.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:wr(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}))`:wr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),fR="tr",$ae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableRow"}),{className:i,component:a=fR,hover:o=!1,selected:s=!1}=n,l=ye(n,zae),u=O.useContext(K1),c=F({},n,{component:a,hover:o,selected:s,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),f=Bae(c);return E.jsx(Fae,F({as:a,ref:r,className:Ce(f.root,i),role:a===fR?null:"row",ownerState:c},l))}),dR=$ae;function Vae(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Gae(e,t,r,n={},i=()=>{}){const{ease:a=Vae,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 Hae=["onChange"],Wae={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Uae(e){const{onChange:t}=e,r=ye(e,Hae),n=O.useRef(),i=O.useRef(null),a=()=>{n.current=i.current.offsetHeight-i.current.clientHeight};return ho(()=>{const o=av(()=>{const l=n.current;a(),l!==n.current&&t(n.current)}),s=Da(i.current);return s.addEventListener("resize",o),()=>{o.clear(),s.removeEventListener("resize",o)}},[t]),O.useEffect(()=>{a(),t(n.current)},[t]),E.jsx("div",F({style:Wae,ref:i},r))}function jae(e){return Ue("MuiTabScrollButton",e)}const Yae=je("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),qae=Yae,Xae=["className","slots","slotProps","direction","orientation","disabled"],Zae=e=>{const{classes:t,orientation:r,disabled:n}=e;return Ze({root:["root",r,n&&"disabled"]},jae,t)},Kae=ge(Lf,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>F({width:40,flexShrink:0,opacity:.8,[`&.${qae.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Qae=O.forwardRef(function(t,r){var n,i;const a=Ye({props:t,name:"MuiTabScrollButton"}),{className:o,slots:s={},slotProps:l={},direction:u}=a,c=ye(a,Xae),d=Rf().direction==="rtl",h=F({isRtl:d},a),p=Zae(h),v=(n=s.StartScrollButtonIcon)!=null?n:Lae,g=(i=s.EndScrollButtonIcon)!=null?i:Eae,m=Ra({elementType:v,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),y=Ra({elementType:g,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return E.jsx(Kae,F({component:"div",className:Ce(p.root,o),ref:r,role:null,ownerState:h,tabIndex:null},c,{children:u==="left"?E.jsx(v,F({},m)):E.jsx(g,F({},y))}))}),Jae=Qae;function eoe(e){return Ue("MuiTabs",e)}const toe=je("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),kS=toe,roe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],hR=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,pR=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,ag=(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}}},noe=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:i,scrollableY:a,centered:o,scrollButtonsHideMobile:s,classes:l}=e;return Ze({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"]},eoe,l)},ioe=ge("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${kS.scrollButtons}`]:t.scrollButtons},{[`& .${kS.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>F({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${kS.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),aoe=ge("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})=>F({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"})),ooe=ge("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})=>F({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),soe=ge("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>F({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})),loe=ge(Uae)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),vR={},uoe=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTabs"}),i=Rf(),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=Jae,scrollButtons:y="auto",selectionFollowsFocus:x,slots:S={},slotProps:_={},TabIndicatorProps:b={},TabScrollButtonProps:w={},textColor:C="primary",value:A,variant:T="standard",visibleScrollbar:M=!1}=n,I=ye(n,roe),P=T==="scrollable",k=g==="vertical",R=k?"scrollTop":"scrollLeft",z=k?"top":"left",$=k?"bottom":"right",N=k?"clientHeight":"clientWidth",V=k?"height":"width",L=F({},n,{component:d,allowScrollButtonsMobile:h,indicatorColor:p,orientation:g,vertical:k,scrollButtons:y,textColor:C,variant:T,visibleScrollbar:M,fixed:!P,hideScrollbar:P&&!M,scrollableX:P&&!k,scrollableY:P&&k,centered:u&&!P,scrollButtonsHideMobile:!h}),G=noe(L),U=Ra({elementType:S.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:L}),B=Ra({elementType:S.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:L}),[j,X]=O.useState(!1),[W,ee]=O.useState(vR),[te,ie]=O.useState(!1),[re,Q]=O.useState(!1),[J,fe]=O.useState(!1),[de,ke]=O.useState({overflow:"hidden",scrollbarWidth:0}),We=new Map,Ge=O.useRef(null),at=O.useRef(null),ot=()=>{const pe=Ge.current;let De;if(pe){const yt=pe.getBoundingClientRect();De={clientWidth:pe.clientWidth,scrollLeft:pe.scrollLeft,scrollTop:pe.scrollTop,scrollLeftNormalized:fZ(pe,i.direction),scrollWidth:pe.scrollWidth,top:yt.top,bottom:yt.bottom,left:yt.left,right:yt.right}}let qe;if(pe&&A!==!1){const yt=at.current.children;if(yt.length>0){const $r=yt[We.get(A)];qe=$r?$r.getBoundingClientRect():null}}return{tabsMeta:De,tabMeta:qe}},It=ya(()=>{const{tabsMeta:pe,tabMeta:De}=ot();let qe=0,yt;if(k)yt="top",De&&pe&&(qe=De.top-pe.top+pe.scrollTop);else if(yt=a?"right":"left",De&&pe){const Io=a?pe.scrollLeftNormalized+pe.clientWidth-pe.scrollWidth:pe.scrollLeft;qe=(a?-1:1)*(De[yt]-pe[yt]+Io)}const $r={[yt]:qe,[V]:De?De[V]:0};if(isNaN(W[yt])||isNaN(W[V]))ee($r);else{const Io=Math.abs(W[yt]-$r[yt]),Ov=Math.abs(W[V]-$r[V]);(Io>=1||Ov>=1)&&ee($r)}}),Be=(pe,{animation:De=!0}={})=>{De?Gae(R,Ge.current,pe,{duration:i.transitions.duration.standard}):Ge.current[R]=pe},Pt=pe=>{let De=Ge.current[R];k?De+=pe:(De+=pe*(a?-1:1),De*=a&&IV()==="reverse"?-1:1),Be(De)},Yt=()=>{const pe=Ge.current[N];let De=0;const qe=Array.from(at.current.children);for(let yt=0;ytpe){yt===0&&(De=pe);break}De+=$r[N]}return De},kt=()=>{Pt(-1*Yt())},K=()=>{Pt(Yt())},le=O.useCallback(pe=>{ke({overflow:null,scrollbarWidth:pe})},[]),Re=()=>{const pe={};pe.scrollbarSizeListener=P?E.jsx(loe,{onChange:le,className:Ce(G.scrollableX,G.hideScrollbar)}):null;const qe=P&&(y==="auto"&&(te||re)||y===!0);return pe.scrollButtonStart=qe?E.jsx(m,F({slots:{StartScrollButtonIcon:S.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:U},orientation:g,direction:a?"right":"left",onClick:kt,disabled:!te},w,{className:Ce(G.scrollButtons,w.className)})):null,pe.scrollButtonEnd=qe?E.jsx(m,F({slots:{EndScrollButtonIcon:S.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:B},orientation:g,direction:a?"left":"right",onClick:K,disabled:!re},w,{className:Ce(G.scrollButtons,w.className)})):null,pe},_e=ya(pe=>{const{tabsMeta:De,tabMeta:qe}=ot();if(!(!qe||!De)){if(qe[z]De[$]){const yt=De[R]+(qe[$]-De[$]);Be(yt,{animation:pe})}}}),he=ya(()=>{P&&y!==!1&&fe(!J)});O.useEffect(()=>{const pe=av(()=>{Ge.current&&It()}),De=Da(Ge.current);De.addEventListener("resize",pe);let qe;return typeof ResizeObserver<"u"&&(qe=new ResizeObserver(pe),Array.from(at.current.children).forEach(yt=>{qe.observe(yt)})),()=>{pe.clear(),De.removeEventListener("resize",pe),qe&&qe.disconnect()}},[It]),O.useEffect(()=>{const pe=Array.from(at.current.children),De=pe.length;if(typeof IntersectionObserver<"u"&&De>0&&P&&y!==!1){const qe=pe[0],yt=pe[De-1],$r={root:Ge.current,threshold:.99},Io=Xx=>{ie(!Xx[0].isIntersecting)},Ov=new IntersectionObserver(Io,$r);Ov.observe(qe);const x7=Xx=>{Q(!Xx[0].isIntersecting)},XP=new IntersectionObserver(x7,$r);return XP.observe(yt),()=>{Ov.disconnect(),XP.disconnect()}}},[P,y,J,c==null?void 0:c.length]),O.useEffect(()=>{X(!0)},[]),O.useEffect(()=>{It()}),O.useEffect(()=>{_e(vR!==W)},[_e,W]),O.useImperativeHandle(l,()=>({updateIndicator:It,updateScrollButtons:he}),[It,he]);const Vt=E.jsx(soe,F({},b,{className:Ce(G.indicator,b.className),ownerState:L,style:F({},W,b.style)}));let Sr=0;const Te=O.Children.map(c,pe=>{if(!O.isValidElement(pe))return null;const De=pe.props.value===void 0?Sr:pe.props.value;We.set(De,Sr);const qe=De===A;return Sr+=1,O.cloneElement(pe,F({fullWidth:T==="fullWidth",indicator:qe&&!j&&Vt,selected:qe,selectionFollowsFocus:x,onChange:v,textColor:C,value:De},Sr===1&&A===!1&&!pe.props.tabIndex?{tabIndex:0}:{}))}),ut=pe=>{const De=at.current,qe=on(De).activeElement;if(qe.getAttribute("role")!=="tab")return;let $r=g==="horizontal"?"ArrowLeft":"ArrowUp",Io=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&a&&($r="ArrowRight",Io="ArrowLeft"),pe.key){case $r:pe.preventDefault(),ag(De,qe,pR);break;case Io:pe.preventDefault(),ag(De,qe,hR);break;case"Home":pe.preventDefault(),ag(De,null,hR);break;case"End":pe.preventDefault(),ag(De,null,pR);break}},Rt=Re();return E.jsxs(ioe,F({className:Ce(G.root,f),ownerState:L,ref:r,as:d},I,{children:[Rt.scrollButtonStart,Rt.scrollbarSizeListener,E.jsxs(aoe,{className:G.scroller,ownerState:L,style:{overflow:de.overflow,[k?`margin${a?"Left":"Right"}`:"marginBottom"]:M?void 0:-de.scrollbarWidth},ref:Ge,children:[E.jsx(ooe,{"aria-label":o,"aria-labelledby":s,"aria-orientation":g==="vertical"?"vertical":null,className:G.flexContainer,ownerState:L,onKeyDown:ut,ref:at,role:"tablist",children:Te}),j&&Vt]}),Rt.scrollButtonEnd]}))}),coe=uoe;function foe(e){return Ue("MuiTextField",e)}je("MuiTextField",["root"]);const doe=["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"],hoe={standard:T4,filled:b4,outlined:O4},poe=e=>{const{classes:t}=e;return Ze({root:["root"]},foe,t)},voe=ge(_4,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),goe=O.forwardRef(function(t,r){const n=Ye({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:I,required:P=!1,rows:k,select:R=!1,SelectProps:z,type:$,value:N,variant:V="outlined"}=n,L=ye(n,doe),G=F({},n,{autoFocus:a,color:l,disabled:c,error:f,fullWidth:h,multiline:w,required:P,select:R,variant:V}),U=poe(G),B={};V==="outlined"&&(g&&typeof g.shrink<"u"&&(B.notched=g.shrink),B.label=S),R&&((!z||!z.native)&&(B.id=void 0),B["aria-describedby"]=void 0);const j=AV(v),X=p&&j?`${j}-helper-text`:void 0,W=S&&j?`${j}-label`:void 0,ee=hoe[V],te=E.jsx(ee,F({"aria-describedby":X,autoComplete:i,autoFocus:a,defaultValue:u,fullWidth:h,multiline:w,name:C,rows:k,maxRows:_,minRows:b,type:$,value:N,id:j,inputRef:x,onBlur:A,onChange:T,onFocus:M,placeholder:I,inputProps:m},B,y));return E.jsxs(voe,F({className:Ce(U.root,s),disabled:c,error:f,fullWidth:h,ref:r,required:P,color:l,variant:V,ownerState:G},L,{children:[S!=null&&S!==""&&E.jsx(A4,F({htmlFor:j,id:W},g,{children:S})),R?E.jsx(z4,F({"aria-describedby":X,id:j,labelId:W,value:N,input:te},z,{children:o})):te,p&&E.jsx(Fre,F({id:X},d,{children:p}))]}))}),Fl=goe;var u2={},F4={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})(F4);var Q1=F4.exports,DS={};const moe=b7(DJ);var gR;function J1(){return gR||(gR=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=moe}(DS)),DS}var yoe=Q1;Object.defineProperty(u2,"__esModule",{value:!0});var $4=u2.default=void 0,xoe=yoe(J1()),Soe=E,boe=(0,xoe.default)((0,Soe.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");$4=u2.default=boe;function c2({open:e,onClose:t,children:r}){return E.jsx(y4,{onClose:t,open:e,children:E.jsxs(ht,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"md",display:"flex",flexDirection:"column",rowGap:2,bgcolor:"background.paper",boxShadow:24,borderRadius:2,p:4},children:[E.jsx(v4,{color:"inherit",onClick:t,sx:{position:"absolute",top:1,right:1},children:E.jsx($4,{})}),r]})})}const Vs=dV,_oe=CV;function $l(e){const t=_oe();return O.useCallback(r=>{t(e(r))},[e,t])}const woe=[{name:"Carl Byström",website:"http://cgbystrom.com/",social:{handle:"@cgbystrom",link:"https://twitter.com/cgbystrom/"}},{name:"Jonatan Heyman",website:"http://heyman.info/",social:{handle:"@jonatanheyman",link:"https://twitter.com/jonatanheyman/"}},{name:"Joakim Hamrén",social:{handle:"@jahaaja",link:"https://twitter.com/Jahaaja/"}},{name:"ESN Social Software",website:"http://esn.me/",social:{handle:"@uprise_ea",link:"https://twitter.com/uprise_ea"}},{name:"Hugo Heyman",social:{handle:"@hugoheyman",link:"https://twitter.com/hugoheyman/"}}];function Coe(){const[e,t]=O.useState(!1),r=Vs(({swarm:n})=>n.version);return E.jsxs(E.Fragment,{children:[E.jsx(ht,{sx:{display:"flex",justifyContent:"flex-end"},children:E.jsx(Au,{color:"inherit",onClick:()=>t(!0),variant:"text",children:"About"})}),E.jsxs(c2,{onClose:()=>t(!1),open:e,children:[E.jsxs("div",{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"About"}),E.jsx(Xe,{component:"p",variant:"subtitle1",children:"The original idea for Locust was Carl Byström's who made a first proof of concept in June 2010. Jonatan Heyman picked up Locust in January 2011, implemented the current concept of Locust classes and made it work distributed across multiple machines."}),E.jsx(Xe,{component:"p",sx:{mt:2},variant:"subtitle1",children:"Jonatan, Carl and Joakim Hamrén has continued the development of Locust at their job, ESN Social Software, who have adopted Locust as an inhouse Open Source project."})]}),E.jsxs("div",{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"Authors and Copyright"}),E.jsx(ht,{sx:{display:"flex",flexDirection:"column",rowGap:.5},children:woe.map(({name:n,website:i,social:{handle:a,link:o}},s)=>E.jsxs("div",{children:[i?E.jsx(li,{href:i,children:n}):n,E.jsxs(ht,{sx:{display:"inline",ml:.5},children:["(",E.jsx(li,{href:o,children:a}),")"]})]},`author-${s}`))})]}),E.jsxs("div",{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"License"}),E.jsx(Xe,{component:"p",variant:"subtitle1",children:"Open source licensed under the MIT license."})]}),E.jsxs("div",{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"Version"}),E.jsx(li,{href:`https://github.com/locustio/locust/releases/tag/${r}`,children:r})]}),E.jsxs("div",{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"Website"}),E.jsx(li,{href:"https://locust.io/",children:"https://locust.io"})]})]})]})}function Toe(){return E.jsx(ht,{component:"nav",sx:{position:"fixed",bottom:0,width:"100%"},children:E.jsx(Nf,{maxWidth:"xl",sx:{display:"flex",justifyContent:"flex-end"},children:E.jsx(Coe,{})})})}var f2={},Aoe=Q1;Object.defineProperty(f2,"__esModule",{value:!0});var V4=f2.default=void 0,Moe=Aoe(J1()),Ioe=E,Poe=(0,Moe.default)((0,Ioe.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");V4=f2.default=Poe;var d2={},koe=Q1;Object.defineProperty(d2,"__esModule",{value:!0});var G4=d2.default=void 0,Doe=koe(J1()),Roe=E,Loe=(0,Doe.default)((0,Roe.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");G4=d2.default=Loe;const Ma={DARK:"dark",LIGHT:"light"},H4=localStorage.theme===Ma.DARK||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?Ma.DARK:Ma.LIGHT;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:ex(e)?2:tx(e)?3:0}function gs(e,t){return As(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Dm(e,t){return As(e)===2?e.get(t):e[t]}function W4(e,t,r){var n=As(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function U4(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function ex(e){return $oe&&e instanceof Map}function tx(e){return Voe&&e instanceof Set}function bl(e){return e.o||e.t}function h2(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Y4(e);delete t[Ft];for(var r=qc(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=Ooe),Object.freeze(e),t&&Ts(e,function(r,n){return p2(n,!0)},!0)),e}function Ooe(){Rr(2)}function v2(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ia(e){var t=RC[e];return t||Rr(18,e),t}function j4(e,t){RC[e]||(RC[e]=t)}function PC(){return yp}function RS(e,t){t&&(Ia("Patches"),e.u=[],e.s=[],e.v=t)}function Ey(e){kC(e),e.p.forEach(Noe),e.p=null}function kC(e){e===yp&&(yp=e.l)}function mR(e){return yp={p:[],l:yp,h:e,m:!0,_:0}}function Noe(e){var t=e[Ft];t.i===0||t.i===1?t.j():t.g=!0}function LS(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||Ia("ES5").S(t,e,n),n?(r[Ft].P&&(Ey(t),Rr(4)),qi(e)&&(e=Oy(t,e),t.l||Ny(t,e)),t.u&&Ia("Patches").M(r[Ft].t,e,t.u,t.s)):e=Oy(t,r,[]),Ey(t),t.u&&t.v(t.u,t.s),e!==m2?e:void 0}function Oy(e,t,r){if(v2(t))return t;var n=t[Ft];if(!n)return Ts(t,function(s,l){return yR(e,n,t,s,l,r)},!0),t;if(n.A!==e)return t;if(!n.P)return Ny(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=h2(n.k):n.o,a=i,o=!1;n.i===3&&(a=new Set(i),i.clear(),o=!0),Ts(a,function(s,l){return yR(e,n,i,s,l,r,o)}),Ny(e,i,!1),r&&e.u&&Ia("Patches").N(n,r,e.u,e.s)}return n.o}function yR(e,t,r,n,i,a,o){if(Yi(i)){var s=Oy(e,i,a&&t&&t.i!==3&&!gs(t.R,n)?a.concat(n):void 0);if(W4(r,n,s),!Yi(s))return;e.m=!1}else o&&r.add(i);if(qi(i)&&!v2(i)){if(!e.h.D&&e._<1)return;Oy(e,i),t&&t.A.l||Ny(e,i)}}function Ny(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&p2(t,r)}function ES(e,t){var r=e[Ft];return(r?bl(r):e)[t]}function xR(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 Zo(e){e.P||(e.P=!0,e.l&&Zo(e.l))}function OS(e){e.o||(e.o=h2(e.t))}function DC(e,t,r){var n=ex(t)?Ia("MapSet").F(t,r):tx(t)?Ia("MapSet").T(t,r):e.O?function(i,a){var o=Array.isArray(i),s={i:o?1:0,A:a?a.A:PC(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},l=s,u=xp;o&&(l=[s],u=eh);var c=Proxy.revocable(l,u),f=c.revoke,d=c.proxy;return s.k=d,s.j=f,d}(t,r):Ia("ES5").J(t,r);return(r?r.A:PC()).p.push(n),n}function zoe(e){return Yi(e)||Rr(22,e),function t(r){if(!qi(r))return r;var n,i=r[Ft],a=As(r);if(i){if(!i.P&&(i.i<4||!Ia("ES5").K(i)))return i.t;i.I=!0,n=SR(r,a),i.I=!1}else n=SR(r,a);return Ts(n,function(o,s){i&&Dm(i.t,o)===s||W4(n,o,t(s))}),a===3?new Set(n):n}(e)}function SR(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return h2(e)}function Boe(){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[Ft];return xp.get(l,a)},set:function(l){var u=this[Ft];xp.set(u,a,l)}},s}function t(a){for(var o=a.length-1;o>=0;o--){var s=a[o][Ft];if(!s.P)switch(s.i){case 5:n(s)&&Zo(s);break;case 4:r(s)&&Zo(s)}}}function r(a){for(var o=a.t,s=a.k,l=qc(s),u=l.length-1;u>=0;u--){var c=l[u];if(c!==Ft){var f=o[c];if(f===void 0&&!gs(o,c))return!0;var d=s[c],h=d&&d[Ft];if(h?h.t!==f:!U4(d,f))return!0}}var p=!!o[Ft];return l.length!==qc(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=Ia("Patches").$;return Yi(r)?o(r,n):this.produce(r,function(s){return o(s,n)})},e}(),Wn=new Hoe,uv=Wn.produce,q4=Wn.produceWithPatches.bind(Wn);Wn.setAutoFreeze.bind(Wn);Wn.setUseProxies.bind(Wn);var wR=Wn.applyPatches.bind(Wn);Wn.createDraft.bind(Wn);Wn.finishDraft.bind(Wn);function Sp(e){"@babel/helpers - typeof";return Sp=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},Sp(e)}function Woe(e,t){if(Sp(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Sp(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Uoe(e){var t=Woe(e,"string");return Sp(t)==="symbol"?t:String(t)}function joe(e,t,r){return t=Uoe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CR(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 TR(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(jr(1));return r(X4)(e,t)}if(typeof e!="function")throw new Error(jr(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(jr(3));return a}function f(v){if(typeof v!="function")throw new Error(jr(4));if(l)throw new Error(jr(5));var g=!0;return u(),s.push(v),function(){if(g){if(l)throw new Error(jr(6));g=!1,u();var y=s.indexOf(v);s.splice(y,1),o=null}}}function d(v){if(!Yoe(v))throw new Error(jr(7));if(typeof v.type>"u")throw new Error(jr(8));if(l)throw new Error(jr(9));try{l=!0,a=i(a,v)}finally{l=!1}for(var g=o=s,m=0;m"u")throw new Error(jr(12));if(typeof r(void 0,{type:zy.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(jr(13))})}function y2(e){for(var t=Object.keys(e),r={},n=0;n"u")throw u&&u.type,new Error(jr(14));f[h]=g,c=c||g!==v}return c=c||a.length!==Object.keys(l).length,c?f:l}}function By(){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 Fy}function i(s,l){n(s)===Fy&&(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 Qoe=function(t,r){return t===r};function Joe(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 cv(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function x2(){for(var e=[],t=0;t{e.isDarkMode=t}}}),Mse=rG.actions,Ise=rG.reducer;function Pse(){const e=Vs(({theme:{isDarkMode:n}})=>n),t=$l(Mse.setIsDarkMode);O.useEffect(()=>{t(H4===Ma.DARK)},[]);const r=()=>{localStorage.theme=e?Ma.LIGHT:Ma.DARK,t(!e)};return E.jsx(v4,{color:"inherit",onClick:r,children:e?E.jsx(G4,{}):E.jsx(V4,{})})}const En={READY:"ready",RUNNING:"running",STOPPED:"stopped",SPAWNING:"spawning",CLEANUP:"cleanup",STOPPING:"stopping",MISSING:"missing"};function kse({isDistributed:e,state:t,host:r,totalRps:n,failRatio:i,userCount:a,workerCount:o}){return E.jsxs(ht,{sx:{display:"flex",columnGap:2},children:[E.jsxs(ht,{sx:{display:"flex",flexDirection:"column"},children:[E.jsx(Xe,{variant:"button",children:"Host"}),E.jsx(Xe,{children:r})]}),E.jsx(vd,{flexItem:!0,orientation:"vertical"}),E.jsxs(ht,{sx:{display:"flex",flexDirection:"column"},children:[E.jsx(Xe,{variant:"button",children:"Status"}),E.jsx(Xe,{variant:"button",children:t})]}),t===En.RUNNING&&E.jsxs(E.Fragment,{children:[E.jsx(vd,{flexItem:!0,orientation:"vertical"}),E.jsxs(ht,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[E.jsx(Xe,{variant:"button",children:"Users"}),E.jsx(Xe,{variant:"button",children:a})]})]}),e&&E.jsxs(E.Fragment,{children:[E.jsx(vd,{flexItem:!0,orientation:"vertical"}),E.jsxs(ht,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[E.jsx(Xe,{variant:"button",children:"Workers"}),E.jsx(Xe,{variant:"button",children:o})]})]}),E.jsx(vd,{flexItem:!0,orientation:"vertical"}),E.jsxs(ht,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[E.jsx(Xe,{variant:"button",children:"RPS"}),E.jsx(Xe,{variant:"button",children:n})]}),E.jsx(vd,{flexItem:!0,orientation:"vertical"}),E.jsxs(ht,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[E.jsx(Xe,{variant:"button",children:"Failures"}),E.jsx(Xe,{variant:"button",children:`${i}%`})]})]})}const Dse=({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}),Rse=Xn(Dse)(kse);function nG({children:e,onSubmit:t}){const r=O.useCallback(async n=>{n.preventDefault();const i=new FormData(n.target),a={};for(const[o,s]of i.entries())a.hasOwnProperty(o)?(Array.isArray(a[o])||(a[o]=[a[o]]),a[o].push(s)):a[o]=s;t(a)},[t]);return E.jsx("form",{onSubmit:r,children:e})}var $y=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 Gse(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var NR=Ms;function oG(e,t){if(e===t||!(NR(e)&&NR(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},Wse=function(e){return/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"")};function BR(e){if(!Ms(e))return e;for(var t=ir({},e),r=0,n=Object.entries(t);r"u"&&s===zR&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),function(x,S){return Hy(t,null,function(){var _,b,w,C,A,T,M,I,P,k,R,z,$,N,V,L,G,U,B,j,X,W,ee,te,ie,re,Q,J,fe,de,ke,We,Ge,at,ot,It;return $y(this,function(Be){switch(Be.label){case 0:return _=S.signal,b=S.getState,w=S.extra,C=S.endpoint,A=S.forced,T=S.type,I=typeof x=="string"?{url:x}:x,P=I.url,k=I.headers,R=k===void 0?new Headers(m.headers):k,z=I.params,$=z===void 0?void 0:z,N=I.responseHandler,V=N===void 0?v??"json":N,L=I.validateStatus,G=L===void 0?g??Hse:L,U=I.timeout,B=U===void 0?p:U,j=ER(I,["url","headers","params","responseHandler","validateStatus","timeout"]),X=ir(xa(ir({},m),{signal:_}),j),R=new Headers(BR(R)),W=X,[4,a(R,{getState:b,extra:w,endpoint:C,forced:A,type:T})];case 1:W.headers=Be.sent()||R,ee=function(Pt){return typeof Pt=="object"&&(Ms(Pt)||Array.isArray(Pt)||typeof Pt.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)),$&&(te=~P.indexOf("?")?"&":"?",ie=l?l($):new URLSearchParams(BR($)),P+=te+ie),P=$se(n,P),re=new Request(P,X),Q=re.clone(),M={request:Q},fe=!1,de=B&&setTimeout(function(){fe=!0,S.abort()},B),Be.label=2;case 2:return Be.trys.push([2,4,5,6]),[4,s(re)];case 3:return J=Be.sent(),[3,6];case 4:return ke=Be.sent(),[2,{error:{status:fe?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(ke)},meta:M}];case 5:return de&&clearTimeout(de),[7];case 6:We=J.clone(),M.response=We,at="",Be.label=7;case 7:return Be.trys.push([7,9,,10]),[4,Promise.all([y(J,V).then(function(Pt){return Ge=Pt},function(Pt){return ot=Pt}),We.text().then(function(Pt){return at=Pt},function(){})])];case 8:if(Be.sent(),ot)throw ot;return[3,10];case 9:return It=Be.sent(),[2,{error:{status:"PARSING_ERROR",originalStatus:J.status,data:at,error:String(It)},meta:M}];case 10:return[2,G(J,Ge)?{data:Ge,meta:M}:{error:{status:J.status,data:Ge},meta:M}]}})})};function y(x,S){return Hy(this,null,function(){var _;return $y(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 FR=function(){function e(t,r){r===void 0&&(r=void 0),this.value=t,this.meta=r}return e}(),b2=Tn("__rtkq/focused"),sG=Tn("__rtkq/unfocused"),_2=Tn("__rtkq/online"),lG=Tn("__rtkq/offline"),La;(function(e){e.query="query",e.mutation="mutation"})(La||(La={}));function uG(e){return e.type===La.query}function jse(e){return e.type===La.mutation}function cG(e,t,r,n,i,a){return Yse(e)?e(t,r,n,i).map(NC).map(a):Array.isArray(e)?e.map(NC).map(a):[]}function Yse(e){return typeof e=="function"}function NC(e){return typeof e=="string"?{type:e}:e}function $S(e){return e!=null}var _p=Symbol("forceQueryFn"),zC=function(e){return typeof e[_p]=="function"};function qse(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. +`),ai.rippleVisible,yee,MC,({theme:e})=>e.transitions.easing.easeInOut,ai.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ai.child,ai.childLeaving,xee,MC,({theme:e})=>e.transitions.easing.easeInOut,ai.childPulsate,See,({theme:e})=>e.transitions.easing.easeInOut),wee=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:o}=n,s=ye(n,gee),[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,E.jsx(_ee,{classes:{ripple:Ce(a.ripple,ai.ripple),rippleVisible:Ce(a.rippleVisible,ai.rippleVisible),ripplePulsate:Ce(a.ripplePulsate,ai.ripplePulsate),child:Ce(a.child,ai.child),childLeaving:Ce(a.childLeaving,ai.childLeaving),childPulsate:Ce(a.childPulsate,ai.childPulsate)},timeout:MC,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 I,P,k;if(C||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)I=Math.round(M.width/2),P=Math.round(M.height/2);else{const{clientX:R,clientY:z}=S.touches&&S.touches.length>0?S.touches[0]:S;I=Math.round(R-M.left),P=Math.round(z-M.top)}if(C)k=Math.sqrt((2*M.width**2+M.height**2)/3),k%2===0&&(k+=1);else{const R=Math.max(Math.abs((T?T.clientWidth:0)-I),I)*2+2,z=Math.max(Math.abs((T?T.clientHeight:0)-P),P)*2+2;k=Math.sqrt(R**2+z**2)}S!=null&&S.touches?p.current===null&&(p.current=()=>{g({pulsate:w,rippleX:I,rippleY:P,rippleSize:k,cb:b})},h.current=setTimeout(()=>{p.current&&(p.current(),p.current=null)},mee)):g({pulsate:w,rippleX:I,rippleY:P,rippleSize:k,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]),E.jsx(bee,F({className:Ce(ai.root,a.root,o),ref:v},s,{children:E.jsx(HJ,{component:null,exit:!0,children:l})}))}),Cee=wee;function Tee(e){return Ue("MuiButtonBase",e)}const Aee=je("MuiButtonBase",["root","disabled","focusVisible"]),Mee=Aee,Iee=["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"],Pee=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,o=Ze({root:["root",t&&"disabled",r&&"focusVisible"]},Tee,i);return r&&n&&(o.root+=` ${n}`),o},kee=ge("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"},[`&.${Mee.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Dee=O.forwardRef(function(t,r){const n=Ye({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:I=0,TouchRippleProps:P,touchRippleRef:k,type:R}=n,z=ye(n,Iee),$=O.useRef(null),N=O.useRef(null),V=Mr(N,k),{isFocusVisibleRef:L,onFocus:G,onBlur:U,ref:B}=GM(),[j,X]=O.useState(!1);u&&j&&X(!1),O.useImperativeHandle(i,()=>({focusVisible:()=>{X(!0),$.current.focus()}}),[]);const[W,ee]=O.useState(!1);O.useEffect(()=>{ee(!0)},[]);const te=W&&!c&&!u;O.useEffect(()=>{j&&d&&!c&&W&&N.current.pulsate()},[c,d,j,W]);function ie(he,Vt,Sr=f){return ya(Te=>(Vt&&Vt(Te),!Sr&&N.current&&N.current[he](Te),!0))}const re=ie("start",b),Q=ie("stop",g),J=ie("stop",m),fe=ie("stop",C),de=ie("stop",he=>{j&&he.preventDefault(),w&&w(he)}),ke=ie("start",M),We=ie("stop",A),Ge=ie("stop",T),at=ie("stop",he=>{U(he),L.current===!1&&X(!1),p&&p(he)},!1),ot=ya(he=>{$.current||($.current=he.currentTarget),G(he),L.current===!0&&(X(!0),x&&x(he)),y&&y(he)}),It=()=>{const he=$.current;return l&&l!=="button"&&!(he.tagName==="A"&&he.href)},Be=O.useRef(!1),Pt=ya(he=>{d&&!Be.current&&j&&N.current&&he.key===" "&&(Be.current=!0,N.current.stop(he,()=>{N.current.start(he)})),he.target===he.currentTarget&&It()&&he.key===" "&&he.preventDefault(),S&&S(he),he.target===he.currentTarget&&It()&&he.key==="Enter"&&!u&&(he.preventDefault(),v&&v(he))}),Yt=ya(he=>{d&&he.key===" "&&N.current&&j&&!he.defaultPrevented&&(Be.current=!1,N.current.stop(he,()=>{N.current.pulsate(he)})),_&&_(he),v&&he.target===he.currentTarget&&It()&&he.key===" "&&!he.defaultPrevented&&v(he)});let kt=l;kt==="button"&&(z.href||z.to)&&(kt=h);const K={};kt==="button"?(K.type=R===void 0?"button":R,K.disabled=u):(!z.href&&!z.to&&(K.role="button"),u&&(K["aria-disabled"]=u));const le=Mr(r,B,$),Re=F({},n,{centerRipple:a,component:l,disabled:u,disableRipple:c,disableTouchRipple:f,focusRipple:d,tabIndex:I,focusVisible:j}),_e=Pee(Re);return E.jsxs(kee,F({as:kt,className:Ce(_e.root,s),ownerState:Re,onBlur:at,onClick:v,onContextMenu:Q,onFocus:ot,onKeyDown:Pt,onKeyUp:Yt,onMouseDown:re,onMouseLeave:de,onMouseUp:fe,onDragLeave:J,onTouchEnd:We,onTouchMove:Ge,onTouchStart:ke,ref:le,tabIndex:u?-1:I,type:R},K,z,{children:[o,te?E.jsx(Cee,F({ref:V,center:a},P)):null]}))}),Lf=Dee;function Ree(e){return Ue("MuiAccordionSummary",e)}const Lee=je("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),Oc=Lee,Eee=["children","className","expandIcon","focusVisibleClassName","onClick"],Oee=e=>{const{classes:t,expanded:r,disabled:n,disableGutters:i}=e;return Ze({root:["root",r&&"expanded",n&&"disabled",!i&&"gutters"],focusVisible:["focusVisible"],content:["content",r&&"expanded",!i&&"contentGutters"],expandIconWrapper:["expandIconWrapper",r&&"expanded"]},Ree,t)},Nee=ge(Lf,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const r={duration:e.transitions.duration.shortest};return F({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],r),[`&.${Oc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Oc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${Oc.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${Oc.expanded}`]:{minHeight:64}})}),zee=ge("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>F({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${Oc.expanded}`]:{margin:"20px 0"}})),Bee=ge("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}),[`&.${Oc.expanded}`]:{transform:"rotate(180deg)"}})),Fee=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiAccordionSummary"}),{children:i,className:a,expandIcon:o,focusVisibleClassName:s,onClick:l}=n,u=ye(n,Eee),{disabled:c=!1,disableGutters:f,expanded:d,toggle:h}=O.useContext(h4),p=m=>{h&&h(m),l&&l(m)},v=F({},n,{expanded:d,disabled:c,disableGutters:f}),g=Oee(v);return E.jsxs(Nee,F({focusRipple:!1,disableRipple:!0,disabled:c,component:"div","aria-expanded":d,className:Ce(g.root,a),focusVisibleClassName:Ce(g.focusVisible,s),onClick:p,ref:r,ownerState:v},u,{children:[E.jsx(zee,{className:g.content,ownerState:v,children:i}),o&&E.jsx(Bee,{className:g.expandIconWrapper,ownerState:v,children:o})]}))}),g4=Fee;function $ee(e){return Ue("MuiIconButton",e)}const Vee=je("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Gee=Vee,Hee=["edge","children","className","color","disabled","disableFocusRipple","size"],Wee=e=>{const{classes:t,disabled:r,color:n,edge:i,size:a}=e,o={root:["root",r&&"disabled",n!=="default"&&`color${Me(n)}`,i&&`edge${Me(i)}`,`size${Me(a)}`]};return Ze(o,$ee,t)},Uee=ge(Lf,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${Me(r.color)}`],r.edge&&t[`edge${Me(r.edge)}`],t[`size${Me(r.size)}`]]}})(({theme:e,ownerState:t})=>F({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})`:wr(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 F({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&F({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":F({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:wr(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)},{[`&.${Gee.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),jee=O.forwardRef(function(t,r){const n=Ye({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=ye(n,Hee),d=F({},n,{edge:i,color:s,disabled:l,disableFocusRipple:u,size:c}),h=Wee(d);return E.jsx(Uee,F({className:Ce(h.root,o),centerRipple:!0,focusRipple:!u,disabled:l,ref:r,ownerState:d},f,{children:a}))}),m4=jee;function Yee(e){return Ue("MuiTypography",e)}je("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const qee=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Xee=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:a,classes:o}=e,s={root:["root",a,e.align!=="inherit"&&`align${Me(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return Ze(s,Yee,o)},Zee=ge("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${Me(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>F({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})),jD={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Kee={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Qee=e=>Kee[e]||e,Jee=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTypography"}),i=Qee(n.color),a=ZV(F({},n,{color:i})),{align:o="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:f=!1,variant:d="body1",variantMapping:h=jD}=a,p=ye(a,qee),v=F({},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]||jD[d])||"span",m=Xee(v);return E.jsx(Zee,F({as:g,ref:r,ownerState:v,className:Ce(m.root,s)},p))}),Xe=Jee;function ete(e){return Ue("MuiAppBar",e)}je("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const tte=["className","color","enableColorOnDark","position"],rte=e=>{const{color:t,position:r,classes:n}=e,i={root:["root",`color${Me(t)}`,`position${Me(r)}`]};return Ze(i,ete,n)},ig=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,nte=ge(Y1,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Me(r.position)}`],t[`color${Me(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return F({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&&F({},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"&&F({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&F({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:ig(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:ig(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:ig(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:ig(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"}))}),ite=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiAppBar"}),{className:i,color:a="primary",enableColorOnDark:o=!1,position:s="fixed"}=n,l=ye(n,tte),u=F({},n,{color:a,position:s,enableColorOnDark:o}),c=rte(u);return E.jsx(nte,F({square:!0,component:"header",ownerState:u,elevation:4,className:Ce(c.root,i,s==="fixed"&&"mui-fixed"),ref:r},l))}),ate=ite;function vf(e){return typeof e=="string"}function ote(e,t,r){return e===void 0||vf(e)?t:F({},t,{ownerState:F({},t.ownerState,r)})}function y4(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 ste(e,t,r){return typeof e=="function"?e(t,r):e}function YD(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 lte(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:a}=e;if(!t){const h=Ce(i==null?void 0:i.className,n==null?void 0:n.className,a,r==null?void 0:r.className),p=F({},r==null?void 0:r.style,i==null?void 0:i.style,n==null?void 0:n.style),v=F({},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=y4(F({},i,n)),s=YD(n),l=YD(i),u=t(o),c=Ce(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=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=F({},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 ute=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ra(e){var t;const{elementType:r,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:a=!1}=e,o=ye(e,ute),s=a?{}:ste(n,i),{props:l,internalRef:u}=lte(F({},o,{externalSlotProps:s})),c=Mr(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return ote(r,F({},l,{ref:c}),i)}const cte=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function fte(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 dte(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 hte(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||dte(e))}function pte(e){const t=[],r=[];return Array.from(e.querySelectorAll(cte)).forEach((n,i)=>{const a=fte(n);a===-1||!hte(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 vte(){return!0}function gte(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:a=pte,isEnabled:o=vte,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=on(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=on(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"),I=C[0],P=C[C.length-1];typeof I!="string"&&typeof P!="string"&&(M?P.focus():I.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 E.jsxs(O.Fragment,{children:[E.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelStart"}),O.cloneElement(t,{ref:v,onFocus:m}),E.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelEnd"})]})}function mte(e){return typeof e=="function"?e():e}const yte=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(ho(()=>{a||s(mte(i)||document.body)},[i,a]),ho(()=>{if(o&&!a)return ky(r,o),()=>{ky(r,null)}},[r,o,a]),a){if(O.isValidElement(n)){const u={ref:l};return O.cloneElement(n,u)}return E.jsx(O.Fragment,{children:n})}return E.jsx(O.Fragment,{children:o&&kf.createPortal(n,o)})});function xte(e){const t=on(e);return t.body===e?Da(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Mh(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function qD(e){return parseInt(Da(e).getComputedStyle(e).paddingRight,10)||0}function Ste(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 XD(e,t,r,n,i){const a=[t,r,...n];[].forEach.call(e.children,o=>{const s=a.indexOf(o)===-1,l=!Ste(o);s&&l&&Mh(o,i)})}function AS(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function bte(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(xte(n)){const o=PV(on(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${qD(n)+o}px`;const s=on(n).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${qD(l)+o}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=on(n).body;else{const o=n.parentElement,s=Da(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 _te(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class wte{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&&Mh(t.modalRef,!1);const i=_te(r);XD(r,t.mount,t.modalRef,i,!0);const a=AS(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=AS(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[n];i.restore||(i.restore=bte(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=AS(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&&Mh(t.modalRef,r),XD(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&&Mh(o.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Cte(e){return typeof e=="function"?e():e}function Tte(e){return e?e.props.hasOwnProperty("in"):!1}const Ate=new wte;function Mte(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:i=Ate,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=Tte(l);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const S=()=>on(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=ya(()=>{const z=Cte(t)||S().body;i.add(_(),z),p.current&&b()}),C=O.useCallback(()=>i.isTopModal(_()),[i]),A=ya(z=>{h.current=z,z&&(c&&C()?b():p.current&&Mh(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=>$=>{var N;(N=z.onKeyDown)==null||N.call(z,$),!($.key!=="Escape"||!C())&&(r||($.stopPropagation(),u&&u($,"escapeKeyDown")))},I=z=>$=>{var N;(N=z.onClick)==null||N.call(z,$),$.target===$.currentTarget&&u&&u($,"backdropClick")};return{getRootProps:(z={})=>{const $=y4(e);delete $.onTransitionEnter,delete $.onTransitionExited;const N=F({},$,z);return F({role:"presentation"},N,{onKeyDown:M(N),ref:v})},getBackdropProps:(z={})=>{const $=z;return F({"aria-hidden":!0},$,{onClick:I($),open:c})},getTransitionProps:()=>{const z=()=>{m(!1),o&&o()},$=()=>{m(!0),s&&s(),a&&T()};return{onEnter:SC(z,l==null?void 0:l.props.onEnter),onExited:SC($,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:A,isTopModal:C,exited:g,hasTransition:y}}const Ite=["onChange","maxRows","minRows","style","value"];function ag(e){return parseInt(e,10)||0}const Pte={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function ZD(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const kte=O.forwardRef(function(t,r){const{onChange:n,maxRows:i,minRows:a=1,style:o,value:s}=t,l=ye(t,Ite),{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=Da(_).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=ag(w.paddingBottom)+ag(w.paddingTop),M=ag(w.borderBottomWidth)+ag(w.borderTopWidth),I=C.scrollHeight;C.value="x";const P=C.scrollHeight;let k=I;a&&(k=Math.max(Number(a)*P,k)),i&&(k=Math.min(Number(i)*P,k)),k=Math.max(k,P);const R=k+(A==="border-box"?T+M:0),z=Math.abs(k-I)<=1;return{outerHeightStyle:R,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();ZD(_)||v(b=>m(b,_))},[g]),x=()=>{const _=g();ZD(_)||kf.flushSync(()=>{v(b=>m(b,_))})};O.useEffect(()=>{const _=()=>{h.current=0,c.current&&x()},b=av(()=>{h.current=0,c.current&&x()});let w;const C=c.current,A=Da(C);return A.addEventListener("resize",b),typeof ResizeObserver<"u"&&(w=new ResizeObserver(_),w.observe(C)),()=>{b.clear(),A.removeEventListener("resize",b),w&&w.disconnect()}}),ho(()=>{y()}),O.useEffect(()=>{h.current=0},[s]);const S=_=>{h.current=0,u||y(),n&&n(_)};return E.jsxs(O.Fragment,{children:[E.jsx("textarea",F({value:s,onChange:S,ref:f,rows:a,style:F({height:p.outerHeightStyle,overflow:p.overflow?"hidden":void 0},o)},l)),E.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:d,tabIndex:-1,style:F({},Pte.shadow,o,{paddingTop:0,paddingBottom:0})})]})});function Ef({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 Dte=O.createContext(void 0),a2=Dte;function Of(){return O.useContext(a2)}function KD(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Oy(e,t=!1){return e&&(KD(e.value)&&e.value!==""||t&&KD(e.defaultValue)&&e.defaultValue!=="")}function Rte(e){return e.startAdornment}function Lte(e){return Ue("MuiInputBase",e)}const Ete=je("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),gf=Ete,Ote=["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"],X1=(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${Me(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Z1=(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]},Nte=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${Me(r)}`,n&&"disabled",i&&"error",l&&"fullWidth",o&&"focused",s&&"formControl",d&&d!=="medium"&&`size${Me(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 Ze(v,Lte,t)},K1=ge("div",{name:"MuiInputBase",slot:"Root",overridesResolver:X1})(({theme:e,ownerState:t})=>F({},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",[`&.${gf.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&F({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Q1=ge("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Z1})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=F({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 F({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] + .${gf.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},[`&.${gf.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"})}),zte=E.jsx(o4,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Bte=O.forwardRef(function(t,r){var n;const i=Ye({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:I,onKeyUp:P,placeholder:k,readOnly:R,renderSuffix:z,rows:$,slotProps:N={},slots:V={},startAdornment:L,type:G="text",value:U}=i,B=ye(i,Ote),j=y.value!=null?y.value:U,{current:X}=O.useRef(j!=null),W=O.useRef(),ee=O.useCallback(_e=>{},[]),te=Mr(W,x,y.ref,ee),[ie,re]=O.useState(!1),Q=Of(),J=Ef({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 fe=Q&&Q.onFilled,de=Q&&Q.onEmpty,ke=O.useCallback(_e=>{Oy(_e)?fe&&fe():de&&de()},[fe,de]);ho(()=>{X&&ke({value:j})},[j,ke,X]);const We=_e=>{if(J.disabled){_e.stopPropagation();return}M&&M(_e),y.onFocus&&y.onFocus(_e),Q&&Q.onFocus?Q.onFocus(_e):re(!0)},Ge=_e=>{C&&C(_e),y.onBlur&&y.onBlur(_e),Q&&Q.onBlur?Q.onBlur(_e):re(!1)},at=(_e,...he)=>{if(!X){const Vt=_e.target||W.current;if(Vt==null)throw new Error(Cs(1));ke({value:Vt.value})}y.onChange&&y.onChange(_e,...he),A&&A(_e,...he)};O.useEffect(()=>{ke(W.current)},[]);const ot=_e=>{W.current&&_e.currentTarget===_e.target&&W.current.focus(),T&&T(_e)};let It=m,Be=y;b&&It==="input"&&($?Be=F({type:void 0,minRows:$,maxRows:$},Be):Be=F({type:void 0,maxRows:S,minRows:_},Be),It=kte);const Pt=_e=>{ke(_e.animationName==="mui-auto-fill-cancel"?W.current:{value:"x"})};O.useEffect(()=>{Q&&Q.setAdornedStart(!!L)},[Q,L]);const Yt=F({},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:L,type:G}),kt=Nte(Yt),K=V.root||u.Root||K1,le=N.root||c.root||{},Re=V.input||u.Input||Q1;return Be=F({},Be,(n=N.input)!=null?n:c.input),E.jsxs(O.Fragment,{children:[!h&&zte,E.jsxs(K,F({},le,!vf(K)&&{ownerState:F({},Yt,le.ownerState)},{ref:r,onClick:ot},B,{className:Ce(kt.root,le.className,l,R&&"MuiInputBase-readOnly"),children:[L,E.jsx(a2.Provider,{value:null,children:E.jsx(Re,F({ownerState:Yt,"aria-invalid":J.error,"aria-describedby":a,autoComplete:o,autoFocus:s,defaultValue:f,disabled:J.disabled,id:g,onAnimationStart:Pt,name:w,placeholder:k,readOnly:R,required:J.required,rows:$,value:j,onKeyDown:I,onKeyUp:P,type:G},Be,!vf(Re)&&{as:It,ownerState:F({},Yt,Be.ownerState)},{ref:te,className:Ce(kt.input,Be.className,R&&"MuiInputBase-readOnly"),onBlur:Ge,onChange:at,onFocus:We}))}),p,z?z(F({},J,{startAdornment:L})):null]}))]})}),o2=Bte;function Fte(e){return Ue("MuiInput",e)}const $te=F({},gf,je("MuiInput",["root","underline","input"])),pd=$te;function Vte(e){return Ue("MuiOutlinedInput",e)}const Gte=F({},gf,je("MuiOutlinedInput",["root","notchedOutline","input"])),ko=Gte;function Hte(e){return Ue("MuiFilledInput",e)}const Wte=F({},gf,je("MuiFilledInput",["root","underline","input"])),Us=Wte,Ute=j1(E.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),jte=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Yte={entering:{opacity:1},entered:{opacity:1}},qte=O.forwardRef(function(t,r){const n=Rf(),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=r2}=t,x=ye(t,jte),S=O.useRef(null),_=Mr(S,s.ref,r),b=k=>R=>{if(k){const z=S.current;R===void 0?k(z):k(z,R)}},w=b(d),C=b((k,R)=>{f4(k);const z=pf({style:g,timeout:m,easing:l},{mode:"enter"});k.style.webkitTransition=n.transitions.create("opacity",z),k.style.transition=n.transitions.create("opacity",z),c&&c(k,R)}),A=b(f),T=b(v),M=b(k=>{const R=pf({style:g,timeout:m,easing:l},{mode:"exit"});k.style.webkitTransition=n.transitions.create("opacity",R),k.style.transition=n.transitions.create("opacity",R),h&&h(k)}),I=b(p),P=k=>{a&&a(S.current,k)};return E.jsx(y,F({appear:o,in:u,nodeRef:S,onEnter:C,onEntered:A,onEntering:w,onExit:M,onExited:I,onExiting:T,addEndListener:P,timeout:m},x,{children:(k,R)=>O.cloneElement(s,F({style:F({opacity:0,visibility:k==="exited"&&!u?"hidden":void 0},Yte[k],g,s.props.style),ref:_},R))}))}),Xte=qte;function Zte(e){return Ue("MuiBackdrop",e)}je("MuiBackdrop",["root","invisible"]);const Kte=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Qte=e=>{const{classes:t,invisible:r}=e;return Ze({root:["root",r&&"invisible"]},Zte,t)},Jte=ge("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>F({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"})),ere=O.forwardRef(function(t,r){var n,i,a;const o=Ye({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=Xte,transitionDuration:m}=o,y=ye(o,Kte),x=F({},o,{component:u,invisible:d}),S=Qte(x),_=(n=p.root)!=null?n:f.root;return E.jsx(g,F({in:h,timeout:m},y,{children:E.jsx(Jte,F({"aria-hidden":!0},_,{as:(i=(a=v.root)!=null?a:c.Root)!=null?i:u,className:Ce(S.root,l,_==null?void 0:_.className),ownerState:F({},x,_==null?void 0:_.ownerState),classes:S,ref:r,children:s}))}))}),tre=ere,rre=t2(),nre=pQ({themeId:gu,defaultTheme:rre,defaultClassName:"MuiBox-root",generateClassName:WM.generate}),ft=nre;function ire(e){return Ue("MuiButton",e)}const are=je("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"]),og=are,ore=O.createContext({}),sre=ore,lre=O.createContext(void 0),ure=lre,cre=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],fre=e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:a,classes:o}=e,s={root:["root",a,`${a}${Me(t)}`,`size${Me(i)}`,`${a}Size${Me(i)}`,t==="inherit"&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Me(i)}`],endIcon:["endIcon",`iconSize${Me(i)}`]},l=Ze(s,ire,o);return F({},o,l)},x4=e=>F({},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}}),dre=ge(Lf,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Me(r.color)}`],t[`size${Me(r.size)}`],t[`${r.variant}Size${Me(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 F({},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":F({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:wr(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})`:wr(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})`:wr(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":F({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${og.focusVisible}`]:F({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${og.disabled}`]:F({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 ${wr(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"},[`&.${og.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${og.disabled}`]:{boxShadow:"none"}}),hre=ge("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Me(r.size)}`]]}})(({ownerState:e})=>F({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},x4(e))),pre=ge("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Me(r.size)}`]]}})(({ownerState:e})=>F({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},x4(e))),vre=O.forwardRef(function(t,r){const n=O.useContext(sre),i=O.useContext(ure),a=HM(n,t),o=Ye({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,_=ye(o,cre),b=F({},o,{color:l,component:u,disabled:f,disableElevation:d,disableFocusRipple:h,fullWidth:g,size:m,type:x,variant:S}),w=fre(b),C=y&&E.jsx(hre,{className:w.startIcon,ownerState:b,children:y}),A=p&&E.jsx(pre,{className:w.endIcon,ownerState:b,children:p}),T=i||"";return E.jsxs(dre,F({ownerState:b,className:Ce(n.className,w.root,c,T),component:u,disabled:f,focusRipple:!h,focusVisibleClassName:Ce(w.focusVisible,v),ref:r,type:x},_,{classes:w,children:[C,s,A]}))}),Au=vre,gre=GQ({createStyledComponent:ge("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Me(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Ye({props:e,name:"MuiContainer"})}),Nf=gre;function mre(e){return Ue("MuiModal",e)}je("MuiModal",["root","hidden","backdrop"]);const yre=["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"],xre=e=>{const{open:t,exited:r,classes:n}=e;return Ze({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},mre,n)},Sre=ge("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})=>F({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),bre=ge(tre,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),_re=O.forwardRef(function(t,r){var n,i,a,o,s,l;const u=Ye({name:"MuiModal",props:t}),{BackdropComponent:c=bre,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:I,slotProps:P,slots:k}=u,R=ye(u,yre),z=F({},u,{closeAfterTransition:h,disableAutoFocus:x,disableEnforceFocus:S,disableEscapeKeyDown:_,disablePortal:b,disableRestoreFocus:w,disableScrollLock:C,hideBackdrop:A,keepMounted:T}),{getRootProps:$,getBackdropProps:N,getTransitionProps:V,portalRef:L,isTopModal:G,exited:U,hasTransition:B}=Mte(F({},z,{rootRef:r})),j=F({},z,{exited:U}),X=xre(j),W={};if(p.props.tabIndex===void 0&&(W.tabIndex="-1"),B){const{onEnter:fe,onExited:de}=V();W.onEnter=fe,W.onExited=de}const ee=(n=(i=k==null?void 0:k.root)!=null?i:m.Root)!=null?n:Sre,te=(a=(o=k==null?void 0:k.backdrop)!=null?o:m.Backdrop)!=null?a:c,ie=(s=P==null?void 0:P.root)!=null?s:y.root,re=(l=P==null?void 0:P.backdrop)!=null?l:y.backdrop,Q=Ra({elementType:ee,externalSlotProps:ie,externalForwardedProps:R,getSlotProps:$,additionalProps:{ref:r,as:g},ownerState:j,className:Ce(d,ie==null?void 0:ie.className,X==null?void 0:X.root,!j.open&&j.exited&&(X==null?void 0:X.hidden))}),J=Ra({elementType:te,externalSlotProps:re,additionalProps:f,getSlotProps:fe=>N(F({},fe,{onClick:de=>{M&&M(de),fe!=null&&fe.onClick&&fe.onClick(de)}})),className:Ce(re==null?void 0:re.className,f==null?void 0:f.className,X==null?void 0:X.backdrop),ownerState:j});return!T&&!I&&(!B||U)?null:E.jsx(yte,{ref:L,container:v,disablePortal:b,children:E.jsxs(ee,F({},Q,{children:[!A&&c?E.jsx(te,F({},J)):null,E.jsx(gte,{disableEnforceFocus:S,disableAutoFocus:x,disableRestoreFocus:w,isEnabled:G,open:I,children:O.cloneElement(p,W)})]}))})}),S4=_re;function wre(e){return Ue("MuiDivider",e)}je("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Cre=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Tre=e=>{const{absolute:t,children:r,classes:n,flexItem:i,light:a,orientation:o,textAlign:s,variant:l}=e;return Ze({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"]},wre,n)},Are=ge("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})=>F({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)`:wr(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})=>F({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>F({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>F({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>F({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Mre=ge("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>F({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)`})),b4=O.forwardRef(function(t,r){const n=Ye({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=ye(n,Cre),v=F({},n,{absolute:i,component:s,flexItem:l,light:u,orientation:c,role:f,textAlign:d,variant:h}),g=Tre(v);return E.jsx(Are,F({as:s,className:Ce(g.root,o),role:f,ref:r,ownerState:v},p,{children:a?E.jsx(Mre,{className:g.wrapper,ownerState:v,children:a}):null}))});b4.muiSkipListHighlight=!0;const vd=b4,Ire=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Pre=e=>{const{classes:t,disableUnderline:r}=e,i=Ze({root:["root",!r&&"underline"],input:["input"]},Hte,t);return F({},t,i)},kre=ge(K1,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...X1(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 F({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}},[`&.${Us.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${Us.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"},[`&.${Us.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Us.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(.${Us.disabled}, .${Us.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Us.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&F({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),Dre=ge(Q1,{name:"MuiFilledInput",slot:"Input",overridesResolver:Z1})(({theme:e,ownerState:t})=>F({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})),_4=O.forwardRef(function(t,r){var n,i,a,o;const s=Ye({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=ye(s,Ire),m=F({},s,{fullWidth:c,inputComponent:f,multiline:d,type:v}),y=Pre(s),x={root:{ownerState:m},input:{ownerState:m}},S=h??u?yi(h??u,x):x,_=(n=(i=p.root)!=null?i:l.Root)!=null?n:kre,b=(a=(o=p.input)!=null?o:l.Input)!=null?a:Dre;return E.jsx(o2,F({slots:{root:_,input:b},componentsProps:S,fullWidth:c,inputComponent:f,multiline:d,ref:r,type:v},g,{classes:y}))});_4.muiName="Input";const w4=_4;function Rre(e){return Ue("MuiFormControl",e)}je("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Lre=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Ere=e=>{const{classes:t,margin:r,fullWidth:n}=e,i={root:["root",r!=="none"&&`margin${Me(r)}`,n&&"fullWidth"]};return Ze(i,Rre,t)},Ore=ge("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>F({},t.root,t[`margin${Me(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>F({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%"})),Nre=O.forwardRef(function(t,r){const n=Ye({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=ye(n,Lre),y=F({},n,{color:o,component:s,disabled:l,error:u,fullWidth:f,hiddenLabel:d,margin:h,required:p,size:v,variant:g}),x=Ere(y),[S,_]=O.useState(()=>{let P=!1;return i&&O.Children.forEach(i,k=>{if(!Ch(k,["Input","Select"]))return;const R=Ch(k,["Select"])?k.props.input:k;R&&Rte(R.props)&&(P=!0)}),P}),[b,w]=O.useState(()=>{let P=!1;return i&&O.Children.forEach(i,k=>{Ch(k,["Input","Select"])&&(Oy(k.props,!0)||Oy(k.props.inputProps,!0))&&(P=!0)}),P}),[C,A]=O.useState(!1);l&&C&&A(!1);const T=c!==void 0&&!l?c:C;let M;const I=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 E.jsx(a2.Provider,{value:I,children:E.jsx(Ore,F({as:s,ownerState:y,className:Ce(x.root,a),ref:r},m,{children:i}))})}),C4=Nre;function zre(e){return Ue("MuiFormHelperText",e)}const Bre=je("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),QD=Bre;var JD;const Fre=["children","className","component","disabled","error","filled","focused","margin","required","variant"],$re=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${Me(n)}`,r&&"contained",s&&"focused",o&&"filled",l&&"required"]};return Ze(u,zre,t)},Vre=ge("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${Me(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>F({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${QD.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${QD.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Gre=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:o="p"}=n,s=ye(n,Fre),l=Of(),u=Ef({props:n,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=F({},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=$re(c);return E.jsx(Vre,F({as:o,ownerState:c,className:Ce(f.root,a),ref:r},s,{children:i===" "?JD||(JD=E.jsx("span",{className:"notranslate",children:"​"})):i}))}),Hre=Gre;function Wre(e){return Ue("MuiFormLabel",e)}const Ure=je("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ih=Ure,jre=["children","className","color","component","disabled","error","filled","focused","required"],Yre=e=>{const{classes:t,color:r,focused:n,disabled:i,error:a,filled:o,required:s}=e,l={root:["root",`color${Me(r)}`,i&&"disabled",a&&"error",o&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return Ze(l,Wre,t)},qre=ge("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>F({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>F({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Ih.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Ih.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ih.error}`]:{color:(e.vars||e).palette.error.main}})),Xre=ge("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ih.error}`]:{color:(e.vars||e).palette.error.main}})),Zre=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiFormLabel"}),{children:i,className:a,component:o="label"}=n,s=ye(n,jre),l=Of(),u=Ef({props:n,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=F({},n,{color:u.color||"primary",component:o,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=Yre(c);return E.jsxs(qre,F({as:o,ownerState:c,className:Ce(f.root,a),ref:r},s,{children:[i,u.required&&E.jsxs(Xre,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),Kre=Zre,Qre=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function IC(e){return`scale(${e}, ${e**2})`}const Jre={entering:{opacity:1,transform:IC(1)},entered:{opacity:1,transform:"none"}},MS=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),T4=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=r2}=t,m=ye(t,Qre),y=O.useRef(),x=O.useRef(),S=Rf(),_=O.useRef(null),b=Mr(_,a.ref,r),w=R=>z=>{if(R){const $=_.current;z===void 0?R($):R($,z)}},C=w(c),A=w((R,z)=>{f4(R);const{duration:$,delay:N,easing:V}=pf({style:p,timeout:v,easing:o},{mode:"enter"});let L;v==="auto"?(L=S.transitions.getAutoHeightDuration(R.clientHeight),x.current=L):L=$,R.style.transition=[S.transitions.create("opacity",{duration:L,delay:N}),S.transitions.create("transform",{duration:MS?L:L*.666,delay:N,easing:V})].join(","),l&&l(R,z)}),T=w(u),M=w(h),I=w(R=>{const{duration:z,delay:$,easing:N}=pf({style:p,timeout:v,easing:o},{mode:"exit"});let V;v==="auto"?(V=S.transitions.getAutoHeightDuration(R.clientHeight),x.current=V):V=z,R.style.transition=[S.transitions.create("opacity",{duration:V,delay:$}),S.transitions.create("transform",{duration:MS?V:V*.666,delay:MS?$:$||V*.333,easing:N})].join(","),R.style.opacity=0,R.style.transform=IC(.75),f&&f(R)}),P=w(d),k=R=>{v==="auto"&&(y.current=setTimeout(R,x.current||0)),n&&n(_.current,R)};return O.useEffect(()=>()=>{clearTimeout(y.current)},[]),E.jsx(g,F({appear:i,in:s,nodeRef:_,onEnter:A,onEntered:T,onEntering:C,onExit:I,onExited:P,onExiting:M,addEndListener:k,timeout:v==="auto"?null:v},m,{children:(R,z)=>O.cloneElement(a,F({style:F({opacity:0,transform:IC(.75),visibility:R==="exited"&&!s?"hidden":void 0},Jre[R],p,a.props.style),ref:b},z))}))});T4.muiSupportAuto=!0;const ene=T4,tne=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],rne=e=>{const{classes:t,disableUnderline:r}=e,i=Ze({root:["root",!r&&"underline"],input:["input"]},Fte,t);return F({},t,i)},nne=ge(K1,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...X1(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})`),F({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"},[`&.${pd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${pd.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(.${pd.disabled}, .${pd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${pd.disabled}:before`]:{borderBottomStyle:"dotted"}})}),ine=ge(Q1,{name:"MuiInput",slot:"Input",overridesResolver:Z1})({}),A4=O.forwardRef(function(t,r){var n,i,a,o;const s=Ye({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=ye(s,tne),y=rne(s),S={root:{ownerState:{disableUnderline:l}}},_=p??c?yi(p??c,S):S,b=(n=(i=v.root)!=null?i:u.Root)!=null?n:nne,w=(a=(o=v.input)!=null?o:u.Input)!=null?a:ine;return E.jsx(o2,F({slots:{root:b,input:w},slotProps:_,fullWidth:f,inputComponent:d,multiline:h,ref:r,type:g},m,{classes:y}))});A4.muiName="Input";const M4=A4;function ane(e){return Ue("MuiInputLabel",e)}je("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const one=["disableAnimation","margin","shrink","variant","className"],sne=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${Me(n)}`,o],asterisk:[s&&"asterisk"]},u=Ze(l,ane,t);return F({},t,u)},lne=ge(Kre,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Ih.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})=>F({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"&&F({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&&F({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"&&F({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)"}))),une=O.forwardRef(function(t,r){const n=Ye({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:a,className:o}=n,s=ye(n,one),l=Of();let u=a;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=Ef({props:n,muiFormControl:l,states:["size","variant","required"]}),f=F({},n,{disableAnimation:i,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required}),d=sne(f);return E.jsx(lne,F({"data-shrink":u,ownerState:f,ref:r,className:Ce(d.root,o)},s,{classes:d}))}),I4=une;function cne(e){return Ue("MuiLink",e)}const fne=je("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),dne=fne,P4={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},hne=e=>P4[e]||e,pne=({theme:e,ownerState:t})=>{const r=hne(t.color),n=hf(e,`palette.${r}`,!1)||t.color,i=hf(e,`palette.${r}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:wr(n,.4)},vne=pne,gne=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],mne=e=>{const{classes:t,component:r,focusVisible:n,underline:i}=e,a={root:["root",`underline${Me(i)}`,r==="button"&&"button",n&&"focusVisible"]};return Ze(a,cne,t)},yne=ge(Xe,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Me(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>F({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&F({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:vne({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"},[`&.${dne.focusVisible}`]:{outline:"auto"}})),xne=O.forwardRef(function(t,r){const n=Ye({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=ye(n,gne),{isFocusVisibleRef:p,onBlur:v,onFocus:g,ref:m}=GM(),[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=F({},n,{color:a,component:o,focusVisible:y,underline:c,variant:f}),C=mne(w);return E.jsx(yne,F({color:a,className:Ce(C.root,i),classes:u,component:o,onBlur:_,onFocus:b,ref:S,ownerState:w,variant:f,sx:[...Object.keys(P4).includes(a)?[]:[{color:a}],...Array.isArray(d)?d:[d]]},h))}),li=xne,Sne=O.createContext({}),Ph=Sne;function bne(e){return Ue("MuiList",e)}je("MuiList",["root","padding","dense","subheader"]);const _ne=["children","className","component","dense","disablePadding","subheader"],wne=e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return Ze({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},bne,t)},Cne=ge("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})=>F({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Tne=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiList"}),{children:i,className:a,component:o="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=n,c=ye(n,_ne),f=O.useMemo(()=>({dense:s}),[s]),d=F({},n,{component:o,dense:s,disablePadding:l}),h=wne(d);return E.jsx(Ph.Provider,{value:f,children:E.jsxs(Cne,F({as:o,className:Ce(h.root,a),ref:r,ownerState:d},c,{children:[u,i]}))})}),k4=Tne;function Ane(e){return Ue("MuiListItem",e)}const Mne=je("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),gc=Mne,Ine=je("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Pne=Ine;function kne(e){return Ue("MuiListItemSecondaryAction",e)}je("MuiListItemSecondaryAction",["root","disableGutters"]);const Dne=["className"],Rne=e=>{const{disableGutters:t,classes:r}=e;return Ze({root:["root",t&&"disableGutters"]},kne,r)},Lne=ge("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})(({ownerState:e})=>F({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),D4=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=n,a=ye(n,Dne),o=O.useContext(Ph),s=F({},n,{disableGutters:o.disableGutters}),l=Rne(s);return E.jsx(Lne,F({className:Ce(l.root,i),ownerState:s,ref:r},a))});D4.muiName="ListItemSecondaryAction";const Ene=D4,One=["className"],Nne=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],zne=(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]},Bne=e=>{const{alignItems:t,button:r,classes:n,dense:i,disabled:a,disableGutters:o,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return Ze({root:["root",i&&"dense",!o&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",r&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},Ane,n)},Fne=ge("div",{name:"MuiListItem",slot:"Root",overridesResolver:zne})(({theme:e,ownerState:t})=>F({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&F({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Pne.root}`]:{paddingRight:48}},{[`&.${gc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${gc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:wr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${gc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:wr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${gc.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"}},[`&.${gc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:wr(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})`:wr(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),$ne=ge("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Vne=O.forwardRef(function(t,r){const n=Ye({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=ye(n.ContainerProps,One),A=ye(n,Nne),T=O.useContext(Ph),M=O.useMemo(()=>({dense:p||T.dense||!1,alignItems:i,disableGutters:g}),[i,T.dense,p,g]),I=O.useRef(null);ho(()=>{a&&I.current&&I.current.focus()},[a]);const P=O.Children.toArray(s),k=P.length&&Ch(P[P.length-1],["ListItemSecondaryAction"]),R=F({},n,{alignItems:i,autoFocus:a,button:o,dense:M.dense,disabled:v,disableGutters:g,disablePadding:m,divider:y,hasSecondaryAction:k,selected:_}),z=Bne(R),$=Mr(I,r),N=w.root||c.Root||Fne,V=b.root||f.root||{},L=F({className:Ce(z.root,V.className,l),disabled:v},A);let G=u||"li";return o&&(L.component=u||"div",L.focusVisibleClassName=Ce(gc.focusVisible,x),G=Lf),k?(G=!L.component&&!u?"div":G,d==="li"&&(G==="li"?G="div":L.component==="li"&&(L.component="div")),E.jsx(Ph.Provider,{value:M,children:E.jsxs($ne,F({as:d,className:Ce(z.container,h),ref:$,ownerState:R},C,{children:[E.jsx(N,F({},V,!vf(N)&&{as:G,ownerState:F({},R,V.ownerState)},L,{children:P})),P.pop()]}))})):E.jsx(Ph.Provider,{value:M,children:E.jsxs(N,F({},V,{as:G,ref:$},!vf(N)&&{ownerState:F({},R,V.ownerState)},L,{children:[P,S&&E.jsx(Ene,{children:S})]}))})}),ju=Vne,Gne=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function IS(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function eR(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function R4(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 gd(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")||!R4(s,a)||l)s=i(e,s,r);else return s.focus(),!0}return!1}const Hne=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=ye(t,Gne),h=O.useRef(null),p=O.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ho(()=>{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=on(S).activeElement;if(_==="ArrowDown")x.preventDefault(),gd(S,b,u,l,IS);else if(_==="ArrowUp")x.preventDefault(),gd(S,b,u,l,eR);else if(_==="Home")x.preventDefault(),gd(S,null,u,l,IS);else if(_==="End")x.preventDefault(),gd(S,null,u,l,eR);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&&R4(b,w);w.previousKeyMatched&&(T||gd(S,b,!1,l,IS,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 E.jsx(k4,F({role:"menu",ref:g,className:s,onKeyDown:v,tabIndex:i?0:-1},d,{children:y}))}),Wne=Hne;function Une(e){return Ue("MuiPopover",e)}je("MuiPopover",["root","paper"]);const jne=["onEntering"],Yne=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],qne=["slotProps"];function tR(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function rR(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function nR(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function PS(e){return typeof e=="function"?e():e}const Xne=e=>{const{classes:t}=e;return Ze({root:["root"],paper:["paper"]},Une,t)},Zne=ge(S4,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),L4=ge(Y1,{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}),Kne=O.forwardRef(function(t,r){var n,i,a;const o=Ye({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=ene,transitionDuration:w="auto",TransitionProps:{onEntering:C}={},disableScrollLock:A=!1}=o,T=ye(o.TransitionProps,jne),M=ye(o,Yne),I=(n=S==null?void 0:S.paper)!=null?n:y,P=O.useRef(),k=Mr(P,I.ref),R=F({},o,{anchorOrigin:u,anchorReference:f,elevation:v,marginThreshold:g,externalPaperSlotProps:I,transformOrigin:_,TransitionComponent:b,transitionDuration:w,TransitionProps:T}),z=Xne(R),$=O.useCallback(()=>{if(f==="anchorPosition")return c;const fe=PS(l),ke=(fe&&fe.nodeType===1?fe:on(P.current).body).getBoundingClientRect();return{top:ke.top+tR(ke,u.vertical),left:ke.left+rR(ke,u.horizontal)}},[l,u.horizontal,u.vertical,c,f]),N=O.useCallback(fe=>({vertical:tR(fe,_.vertical),horizontal:rR(fe,_.horizontal)}),[_.horizontal,_.vertical]),V=O.useCallback(fe=>{const de={width:fe.offsetWidth,height:fe.offsetHeight},ke=N(de);if(f==="none")return{top:null,left:null,transformOrigin:nR(ke)};const We=$();let Ge=We.top-ke.vertical,at=We.left-ke.horizontal;const ot=Ge+de.height,It=at+de.width,Be=Da(PS(l)),Pt=Be.innerHeight-g,Yt=Be.innerWidth-g;if(g!==null&&GePt){const kt=ot-Pt;Ge-=kt,ke.vertical+=kt}if(g!==null&&atYt){const kt=It-Yt;at-=kt,ke.horizontal+=kt}return{top:`${Math.round(Ge)}px`,left:`${Math.round(at)}px`,transformOrigin:nR(ke)}},[l,f,$,N,g]),[L,G]=O.useState(m),U=O.useCallback(()=>{const fe=P.current;if(!fe)return;const de=V(fe);de.top!==null&&(fe.style.top=de.top),de.left!==null&&(fe.style.left=de.left),fe.style.transformOrigin=de.transformOrigin,G(!0)},[V]);O.useEffect(()=>(A&&window.addEventListener("scroll",U),()=>window.removeEventListener("scroll",U)),[l,A,U]);const B=(fe,de)=>{C&&C(fe,de),U()},j=()=>{G(!1)};O.useEffect(()=>{m&&U()}),O.useImperativeHandle(s,()=>m?{updatePosition:()=>{U()}}:null,[m,U]),O.useEffect(()=>{if(!m)return;const fe=av(()=>{U()}),de=Da(l);return de.addEventListener("resize",fe),()=>{fe.clear(),de.removeEventListener("resize",fe)}},[l,m,U]);let X=w;w==="auto"&&!b.muiSupportAuto&&(X=void 0);const W=p||(l?on(PS(l)).body:void 0),ee=(i=x==null?void 0:x.root)!=null?i:Zne,te=(a=x==null?void 0:x.paper)!=null?a:L4,ie=Ra({elementType:te,externalSlotProps:F({},I,{style:L?I.style:F({},I.style,{opacity:0})}),additionalProps:{elevation:v,ref:k},ownerState:R,className:Ce(z.paper,I==null?void 0:I.className)}),re=Ra({elementType:ee,externalSlotProps:(S==null?void 0:S.root)||{},externalForwardedProps:M,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:W,open:m},ownerState:R,className:Ce(z.root,h)}),{slotProps:Q}=re,J=ye(re,qne);return E.jsx(ee,F({},J,!vf(ee)&&{slotProps:Q,disableScrollLock:A},{children:E.jsx(b,F({appear:!0,in:m,onEntering:B,onExited:j,timeout:X},T,{children:E.jsx(te,F({},ie,{children:d}))}))}))}),Qne=Kne;function Jne(e){return Ue("MuiMenu",e)}je("MuiMenu",["root","paper","list"]);const eie=["onEntering"],tie=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],rie={vertical:"top",horizontal:"right"},nie={vertical:"top",horizontal:"left"},iie=e=>{const{classes:t}=e;return Ze({root:["root"],paper:["paper"],list:["list"]},Jne,t)},aie=ge(Qne,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),oie=ge(L4,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),sie=ge(Wne,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),lie=O.forwardRef(function(t,r){var n,i;const a=Ye({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=ye(a.TransitionProps,eie),_=ye(a,tie),b=Rf(),w=b.direction==="rtl",C=F({},a,{autoFocus:o,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:h,transitionDuration:v,TransitionProps:S,variant:m}),A=iie(C),T=o&&!u&&d,M=O.useRef(null),I=(V,L)=>{M.current&&M.current.adjustStyleForScrollbar(V,b),g&&g(V,L)},P=V=>{V.key==="Tab"&&(V.preventDefault(),f&&f(V,"tabKeyDown"))};let k=-1;O.Children.map(s,(V,L)=>{O.isValidElement(V)&&(V.props.disabled||(m==="selectedMenu"&&V.props.selected||k===-1)&&(k=L))});const R=(n=y.paper)!=null?n:oie,z=(i=x.paper)!=null?i:h,$=Ra({elementType:y.root,externalSlotProps:x.root,ownerState:C,className:[A.root,l]}),N=Ra({elementType:R,externalSlotProps:z,ownerState:C,className:A.paper});return E.jsx(aie,F({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?rie:nie,slots:{paper:R,root:y.root},slotProps:{root:$,paper:N},open:d,ref:r,transitionDuration:v,TransitionProps:F({onEntering:I},S),ownerState:C},_,{classes:p,children:E.jsx(sie,F({onKeyDown:P,actions:M,autoFocus:o&&(k===-1||u),autoFocusItem:T,variant:m},c,{className:Ce(A.list,c.className),children:s}))}))}),uie=lie;function cie(e){return Ue("MuiNativeSelect",e)}const fie=je("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),s2=fie,die=["className","disabled","error","IconComponent","inputRef","variant"],hie=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${Me(r)}`,a&&"iconOpen",n&&"disabled"]};return Ze(s,cie,t)},E4=({ownerState:e,theme:t})=>F({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":F({},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"},[`&.${s2.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}}),pie=ge("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:wo,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${s2.multiple}`]:t.multiple}]}})(E4),O4=({ownerState:e,theme:t})=>F({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${s2.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),vie=ge("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Me(r.variant)}`],r.open&&t.iconOpen]}})(O4),gie=O.forwardRef(function(t,r){const{className:n,disabled:i,error:a,IconComponent:o,inputRef:s,variant:l="standard"}=t,u=ye(t,die),c=F({},t,{disabled:i,variant:l,error:a}),f=hie(c);return E.jsxs(O.Fragment,{children:[E.jsx(pie,F({ownerState:c,className:Ce(f.select,n),disabled:i,ref:s||r},u)),t.multiple?null:E.jsx(vie,{as:o,ownerState:c,className:f.icon})]})}),mie=gie;var iR;const yie=["children","classes","className","label","notched"],xie=ge("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%"}),Sie=ge("legend")(({ownerState:e,theme:t})=>F({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&&F({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 bie(e){const{className:t,label:r,notched:n}=e,i=ye(e,yie),a=r!=null&&r!=="",o=F({},e,{notched:n,withLabel:a});return E.jsx(xie,F({"aria-hidden":!0,className:t,ownerState:o},i,{children:E.jsx(Sie,{ownerState:o,children:a?E.jsx("span",{children:r}):iR||(iR=E.jsx("span",{className:"notranslate",children:"​"}))})}))}const _ie=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],wie=e=>{const{classes:t}=e,n=Ze({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Vte,t);return F({},t,n)},Cie=ge(K1,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:X1})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return F({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ko.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ko.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${ko.focused} .${ko.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ko.error} .${ko.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ko.disabled} .${ko.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&F({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Tie=ge(bie,{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}}),Aie=ge(Q1,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Z1})(({theme:e,ownerState:t})=>F({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})),N4=O.forwardRef(function(t,r){var n,i,a,o,s;const l=Ye({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=ye(l,_ie),y=wie(l),x=Of(),S=Ef({props:l,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=F({},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:Cie,w=(a=(o=v.input)!=null?o:u.Input)!=null?a:Aie;return E.jsx(o2,F({slots:{root:b,input:w},renderSuffix:C=>E.jsx(Tie,{ownerState:_,className:y.notchedOutline,label:d!=null&&d!==""&&S.required?s||(s=E.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:F({},y,{notchedOutline:null})}))});N4.muiName="Input";const z4=N4;function Mie(e){return Ue("MuiSelect",e)}const Iie=je("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),md=Iie;var aR;const Pie=["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"],kie=ge("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${md.select}`]:t.select},{[`&.${md.select}`]:t[r.variant]},{[`&.${md.error}`]:t.error},{[`&.${md.multiple}`]:t.multiple}]}})(E4,{[`&.${md.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Die=ge("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Me(r.variant)}`],r.open&&t.iconOpen]}})(O4),Rie=ge("input",{shouldForwardProp:e=>AJ(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 oR(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Lie(e){return e==null||typeof e=="string"&&!e.trim()}const Eie=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${Me(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Ze(s,Mie,t)},Oie=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:I,SelectDisplayProps:P={},tabIndex:k,value:R,variant:z="standard"}=t,$=ye(t,Pie),[N,V]=Dy({controlled:R,default:f,name:"Select"}),[L,G]=Dy({controlled:T,default:c,name:"Select"}),U=O.useRef(null),B=O.useRef(null),[j,X]=O.useState(null),{current:W}=O.useRef(T!=null),[ee,te]=O.useState(),ie=Mr(r,g),re=O.useCallback(Te=>{B.current=Te,Te&&X(Te)},[]),Q=j==null?void 0:j.parentNode;O.useImperativeHandle(ie,()=>({focus:()=>{B.current.focus()},node:U.current,value:N}),[N]),O.useEffect(()=>{c&&L&&j&&!W&&(te(s?null:Q.clientWidth),B.current.focus())},[j,s]),O.useEffect(()=>{o&&B.current.focus()},[o]),O.useEffect(()=>{if(!m)return;const Te=on(B.current).getElementById(m);if(Te){const ut=()=>{getSelection().isCollapsed&&B.current.focus()};return Te.addEventListener("click",ut),()=>{Te.removeEventListener("click",ut)}}},[m]);const J=(Te,ut)=>{Te?A&&A(ut):w&&w(ut),W||(te(s?null:Q.clientWidth),G(Te))},fe=Te=>{Te.button===0&&(Te.preventDefault(),B.current.focus(),J(!0,Te))},de=Te=>{J(!1,Te)},ke=O.Children.toArray(l),We=Te=>{const ut=ke.find(Rt=>Rt.props.value===Te.target.value);ut!==void 0&&(V(ut.props.value),b&&b(Te,ut))},Ge=Te=>ut=>{let Rt;if(ut.currentTarget.hasAttribute("tabindex")){if(x){Rt=Array.isArray(N)?N.slice():[];const pe=N.indexOf(Te.props.value);pe===-1?Rt.push(Te.props.value):Rt.splice(pe,1)}else Rt=Te.props.value;if(Te.props.onClick&&Te.props.onClick(ut),N!==Rt&&(V(Rt),b)){const pe=ut.nativeEvent||ut,De=new pe.constructor(pe.type,pe);Object.defineProperty(De,"target",{writable:!0,value:{value:Rt,name:S}}),b(De,Te)}x||J(!1,ut)}},at=Te=>{M||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Te.key)!==-1&&(Te.preventDefault(),J(!0,Te))},ot=j!==null&&L,It=Te=>{!ot&&_&&(Object.defineProperty(Te,"target",{writable:!0,value:{value:N,name:S}}),_(Te))};delete $["aria-invalid"];let Be,Pt;const Yt=[];let kt=!1;(Oy({value:N})||h)&&(I?Be=I(N):kt=!0);const K=ke.map(Te=>{if(!O.isValidElement(Te))return null;let ut;if(x){if(!Array.isArray(N))throw new Error(Cs(2));ut=N.some(Rt=>oR(Rt,Te.props.value)),ut&&kt&&Yt.push(Te.props.children)}else ut=oR(N,Te.props.value),ut&&kt&&(Pt=Te.props.children);return O.cloneElement(Te,{"aria-selected":ut?"true":"false",onClick:Ge(Te),onKeyUp:Rt=>{Rt.key===" "&&Rt.preventDefault(),Te.props.onKeyUp&&Te.props.onKeyUp(Rt)},role:"option",selected:ut,value:void 0,"data-value":Te.props.value})});kt&&(x?Yt.length===0?Be=null:Be=Yt.reduce((Te,ut,Rt)=>(Te.push(ut),Rt{const{classes:t}=e;return t},l2={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>wo(e)&&e!=="variant",slot:"Root"},$ie=ge(M4,l2)(""),Vie=ge(z4,l2)(""),Gie=ge(w4,l2)(""),B4=O.forwardRef(function(t,r){const n=Ye({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:o={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=Ute,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=ye(n,zie),T=y?mie:Nie,M=Of(),I=Ef({props:n,muiFormControl:M,states:["variant","error"]}),P=I.variant||C,k=F({},n,{variant:P,classes:o}),R=Fie(k),z=ye(R,Bie),$=d||{standard:E.jsx($ie,{ownerState:k}),outlined:E.jsx(Vie,{label:p,ownerState:k}),filled:E.jsx(Gie,{ownerState:k})}[P],N=Mr(r,$.ref);return E.jsx(O.Fragment,{children:O.cloneElement($,F({inputComponent:T,inputProps:F({children:a,error:I.error,IconComponent:c,variant:P,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:F({id:f},w)},h,{classes:h?yi(z,h.classes):z},d?d.props.inputProps:{})},m&&y&&P==="outlined"?{notched:!0}:{},{ref:N,className:Ce($.props.className,s,R.root)},!d&&{variant:P},A))})});B4.muiName="Select";const F4=B4;function Hie(e){return Ue("MuiTab",e)}const Wie=je("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),js=Wie,Uie=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],jie=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${Me(r)}`,n&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Ze(u,Hie,t)},Yie=ge(Lf,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${Me(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>F({},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,[`& > .${js.iconWrapper}`]:F({},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,[`&.${js.selected}`]:{opacity:1},[`&.${js.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${js.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${js.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${js.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${js.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)})),qie=O.forwardRef(function(t,r){const n=Ye({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=ye(n,Uie),_=F({},n,{disabled:a,disableFocusRipple:o,selected:v,icon:!!l,iconPosition:u,label:!!f,fullWidth:s,textColor:m,wrapped:x}),b=jie(_),w=l&&f&&O.isValidElement(l)?O.cloneElement(l,{className:Ce(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 E.jsxs(Yie,F({focusRipple:!o,className:Ce(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"?E.jsxs(O.Fragment,{children:[w,f]}):E.jsxs(O.Fragment,{children:[f,w]}),c]}))}),Xie=qie,Zie=O.createContext(),$4=Zie;function Kie(e){return Ue("MuiTable",e)}je("MuiTable",["root","stickyHeader"]);const Qie=["className","component","padding","size","stickyHeader"],Jie=e=>{const{classes:t,stickyHeader:r}=e;return Ze({root:["root",r&&"stickyHeader"]},Kie,t)},eae=ge("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>F({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":F({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),sR="table",tae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTable"}),{className:i,component:a=sR,padding:o="normal",size:s="medium",stickyHeader:l=!1}=n,u=ye(n,Qie),c=F({},n,{component:a,padding:o,size:s,stickyHeader:l}),f=Jie(c),d=O.useMemo(()=>({padding:o,size:s,stickyHeader:l}),[o,s,l]);return E.jsx($4.Provider,{value:d,children:E.jsx(eae,F({as:a,role:a===sR?null:"table",ref:r,className:Ce(f.root,i),ownerState:c},u))})}),rae=tae,nae=O.createContext(),J1=nae;function iae(e){return Ue("MuiTableBody",e)}je("MuiTableBody",["root"]);const aae=["className","component"],oae=e=>{const{classes:t}=e;return Ze({root:["root"]},iae,t)},sae=ge("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),lae={variant:"body"},lR="tbody",uae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableBody"}),{className:i,component:a=lR}=n,o=ye(n,aae),s=F({},n,{component:a}),l=oae(s);return E.jsx(J1.Provider,{value:lae,children:E.jsx(sae,F({className:Ce(l.root,i),as:a,ref:r,role:a===lR?null:"rowgroup",ownerState:s},o))})}),cae=uae;function fae(e){return Ue("MuiTableCell",e)}const dae=je("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),hae=dae,pae=["align","className","component","padding","scope","size","sortDirection","variant"],vae=e=>{const{classes:t,variant:r,align:n,padding:i,size:a,stickyHeader:o}=e,s={root:["root",r,o&&"stickyHeader",n!=="inherit"&&`align${Me(n)}`,i!=="normal"&&`padding${Me(i)}`,`size${Me(a)}`]};return Ze(s,fae,t)},gae=ge("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Me(r.size)}`],r.padding!=="normal"&&t[`padding${Me(r.padding)}`],r.align!=="inherit"&&t[`align${Me(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>F({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?r4(wr(e.palette.divider,1),.88):t4(wr(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",[`&.${hae.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})),mae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:o,padding:s,scope:l,size:u,sortDirection:c,variant:f}=n,d=ye(n,pae),h=O.useContext($4),p=O.useContext(J1),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=F({},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=vae(x);let _=null;return c&&(_=c==="asc"?"ascending":"descending"),E.jsx(gae,F({as:g,ref:r,className:Ce(S.root,a),"aria-sort":_,scope:m,ownerState:x},d))}),uR=mae;function yae(e){return Ue("MuiTableContainer",e)}je("MuiTableContainer",["root"]);const xae=["className","component"],Sae=e=>{const{classes:t}=e;return Ze({root:["root"]},yae,t)},bae=ge("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),_ae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableContainer"}),{className:i,component:a="div"}=n,o=ye(n,xae),s=F({},n,{component:a}),l=Sae(s);return E.jsx(bae,F({ref:r,as:a,className:Ce(l.root,i),ownerState:s},o))}),wae=_ae;function Cae(e){return Ue("MuiTableHead",e)}je("MuiTableHead",["root"]);const Tae=["className","component"],Aae=e=>{const{classes:t}=e;return Ze({root:["root"]},Cae,t)},Mae=ge("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Iae={variant:"head"},cR="thead",Pae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableHead"}),{className:i,component:a=cR}=n,o=ye(n,Tae),s=F({},n,{component:a}),l=Aae(s);return E.jsx(J1.Provider,{value:Iae,children:E.jsx(Mae,F({as:a,className:Ce(l.root,i),ref:r,role:a===cR?null:"rowgroup",ownerState:s},o))})}),kae=Pae;function Dae(e){return Ue("MuiToolbar",e)}je("MuiToolbar",["root","gutters","regular","dense"]);const Rae=["className","component","disableGutters","variant"],Lae=e=>{const{classes:t,disableGutters:r,variant:n}=e;return Ze({root:["root",!r&&"gutters",n]},Dae,t)},Eae=ge("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})=>F({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),Oae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiToolbar"}),{className:i,component:a="div",disableGutters:o=!1,variant:s="regular"}=n,l=ye(n,Rae),u=F({},n,{component:a,disableGutters:o,variant:s}),c=Lae(u);return E.jsx(Eae,F({as:a,className:Ce(c.root,i),ref:r,ownerState:u},l))}),Nae=Oae,zae=j1(E.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Bae=j1(E.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Fae(e){return Ue("MuiTableRow",e)}const $ae=je("MuiTableRow",["root","selected","hover","head","footer"]),fR=$ae,Vae=["className","component","hover","selected"],Gae=e=>{const{classes:t,selected:r,hover:n,head:i,footer:a}=e;return Ze({root:["root",r&&"selected",n&&"hover",i&&"head",a&&"footer"]},Fae,t)},Hae=ge("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,[`&.${fR.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${fR.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:wr(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}))`:wr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),dR="tr",Wae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableRow"}),{className:i,component:a=dR,hover:o=!1,selected:s=!1}=n,l=ye(n,Vae),u=O.useContext(J1),c=F({},n,{component:a,hover:o,selected:s,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),f=Gae(c);return E.jsx(Hae,F({as:a,ref:r,className:Ce(f.root,i),role:a===dR?null:"row",ownerState:c},l))}),hR=Wae;function Uae(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function jae(e,t,r,n={},i=()=>{}){const{ease:a=Uae,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 Yae=["onChange"],qae={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Xae(e){const{onChange:t}=e,r=ye(e,Yae),n=O.useRef(),i=O.useRef(null),a=()=>{n.current=i.current.offsetHeight-i.current.clientHeight};return ho(()=>{const o=av(()=>{const l=n.current;a(),l!==n.current&&t(n.current)}),s=Da(i.current);return s.addEventListener("resize",o),()=>{o.clear(),s.removeEventListener("resize",o)}},[t]),O.useEffect(()=>{a(),t(n.current)},[t]),E.jsx("div",F({style:qae,ref:i},r))}function Zae(e){return Ue("MuiTabScrollButton",e)}const Kae=je("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Qae=Kae,Jae=["className","slots","slotProps","direction","orientation","disabled"],eoe=e=>{const{classes:t,orientation:r,disabled:n}=e;return Ze({root:["root",r,n&&"disabled"]},Zae,t)},toe=ge(Lf,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>F({width:40,flexShrink:0,opacity:.8,[`&.${Qae.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),roe=O.forwardRef(function(t,r){var n,i;const a=Ye({props:t,name:"MuiTabScrollButton"}),{className:o,slots:s={},slotProps:l={},direction:u}=a,c=ye(a,Jae),d=Rf().direction==="rtl",h=F({isRtl:d},a),p=eoe(h),v=(n=s.StartScrollButtonIcon)!=null?n:zae,g=(i=s.EndScrollButtonIcon)!=null?i:Bae,m=Ra({elementType:v,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),y=Ra({elementType:g,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return E.jsx(toe,F({component:"div",className:Ce(p.root,o),ref:r,role:null,ownerState:h,tabIndex:null},c,{children:u==="left"?E.jsx(v,F({},m)):E.jsx(g,F({},y))}))}),noe=roe;function ioe(e){return Ue("MuiTabs",e)}const aoe=je("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),kS=aoe,ooe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],pR=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,vR=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,sg=(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}}},soe=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:i,scrollableY:a,centered:o,scrollButtonsHideMobile:s,classes:l}=e;return Ze({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"]},ioe,l)},loe=ge("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${kS.scrollButtons}`]:t.scrollButtons},{[`& .${kS.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>F({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${kS.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),uoe=ge("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})=>F({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"})),coe=ge("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})=>F({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),foe=ge("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>F({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})),doe=ge(Xae)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),gR={},hoe=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTabs"}),i=Rf(),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=noe,scrollButtons:y="auto",selectionFollowsFocus:x,slots:S={},slotProps:_={},TabIndicatorProps:b={},TabScrollButtonProps:w={},textColor:C="primary",value:A,variant:T="standard",visibleScrollbar:M=!1}=n,I=ye(n,ooe),P=T==="scrollable",k=g==="vertical",R=k?"scrollTop":"scrollLeft",z=k?"top":"left",$=k?"bottom":"right",N=k?"clientHeight":"clientWidth",V=k?"height":"width",L=F({},n,{component:d,allowScrollButtonsMobile:h,indicatorColor:p,orientation:g,vertical:k,scrollButtons:y,textColor:C,variant:T,visibleScrollbar:M,fixed:!P,hideScrollbar:P&&!M,scrollableX:P&&!k,scrollableY:P&&k,centered:u&&!P,scrollButtonsHideMobile:!h}),G=soe(L),U=Ra({elementType:S.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:L}),B=Ra({elementType:S.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:L}),[j,X]=O.useState(!1),[W,ee]=O.useState(gR),[te,ie]=O.useState(!1),[re,Q]=O.useState(!1),[J,fe]=O.useState(!1),[de,ke]=O.useState({overflow:"hidden",scrollbarWidth:0}),We=new Map,Ge=O.useRef(null),at=O.useRef(null),ot=()=>{const pe=Ge.current;let De;if(pe){const yt=pe.getBoundingClientRect();De={clientWidth:pe.clientWidth,scrollLeft:pe.scrollLeft,scrollTop:pe.scrollTop,scrollLeftNormalized:vZ(pe,i.direction),scrollWidth:pe.scrollWidth,top:yt.top,bottom:yt.bottom,left:yt.left,right:yt.right}}let qe;if(pe&&A!==!1){const yt=at.current.children;if(yt.length>0){const $r=yt[We.get(A)];qe=$r?$r.getBoundingClientRect():null}}return{tabsMeta:De,tabMeta:qe}},It=ya(()=>{const{tabsMeta:pe,tabMeta:De}=ot();let qe=0,yt;if(k)yt="top",De&&pe&&(qe=De.top-pe.top+pe.scrollTop);else if(yt=a?"right":"left",De&&pe){const Io=a?pe.scrollLeftNormalized+pe.clientWidth-pe.scrollWidth:pe.scrollLeft;qe=(a?-1:1)*(De[yt]-pe[yt]+Io)}const $r={[yt]:qe,[V]:De?De[V]:0};if(isNaN(W[yt])||isNaN(W[V]))ee($r);else{const Io=Math.abs(W[yt]-$r[yt]),zv=Math.abs(W[V]-$r[V]);(Io>=1||zv>=1)&&ee($r)}}),Be=(pe,{animation:De=!0}={})=>{De?jae(R,Ge.current,pe,{duration:i.transitions.duration.standard}):Ge.current[R]=pe},Pt=pe=>{let De=Ge.current[R];k?De+=pe:(De+=pe*(a?-1:1),De*=a&&kV()==="reverse"?-1:1),Be(De)},Yt=()=>{const pe=Ge.current[N];let De=0;const qe=Array.from(at.current.children);for(let yt=0;ytpe){yt===0&&(De=pe);break}De+=$r[N]}return De},kt=()=>{Pt(-1*Yt())},K=()=>{Pt(Yt())},le=O.useCallback(pe=>{ke({overflow:null,scrollbarWidth:pe})},[]),Re=()=>{const pe={};pe.scrollbarSizeListener=P?E.jsx(doe,{onChange:le,className:Ce(G.scrollableX,G.hideScrollbar)}):null;const qe=P&&(y==="auto"&&(te||re)||y===!0);return pe.scrollButtonStart=qe?E.jsx(m,F({slots:{StartScrollButtonIcon:S.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:U},orientation:g,direction:a?"right":"left",onClick:kt,disabled:!te},w,{className:Ce(G.scrollButtons,w.className)})):null,pe.scrollButtonEnd=qe?E.jsx(m,F({slots:{EndScrollButtonIcon:S.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:B},orientation:g,direction:a?"left":"right",onClick:K,disabled:!re},w,{className:Ce(G.scrollButtons,w.className)})):null,pe},_e=ya(pe=>{const{tabsMeta:De,tabMeta:qe}=ot();if(!(!qe||!De)){if(qe[z]De[$]){const yt=De[R]+(qe[$]-De[$]);Be(yt,{animation:pe})}}}),he=ya(()=>{P&&y!==!1&&fe(!J)});O.useEffect(()=>{const pe=av(()=>{Ge.current&&It()}),De=Da(Ge.current);De.addEventListener("resize",pe);let qe;return typeof ResizeObserver<"u"&&(qe=new ResizeObserver(pe),Array.from(at.current.children).forEach(yt=>{qe.observe(yt)})),()=>{pe.clear(),De.removeEventListener("resize",pe),qe&&qe.disconnect()}},[It]),O.useEffect(()=>{const pe=Array.from(at.current.children),De=pe.length;if(typeof IntersectionObserver<"u"&&De>0&&P&&y!==!1){const qe=pe[0],yt=pe[De-1],$r={root:Ge.current,threshold:.99},Io=Xx=>{ie(!Xx[0].isIntersecting)},zv=new IntersectionObserver(Io,$r);zv.observe(qe);const w7=Xx=>{Q(!Xx[0].isIntersecting)},ZP=new IntersectionObserver(w7,$r);return ZP.observe(yt),()=>{zv.disconnect(),ZP.disconnect()}}},[P,y,J,c==null?void 0:c.length]),O.useEffect(()=>{X(!0)},[]),O.useEffect(()=>{It()}),O.useEffect(()=>{_e(gR!==W)},[_e,W]),O.useImperativeHandle(l,()=>({updateIndicator:It,updateScrollButtons:he}),[It,he]);const Vt=E.jsx(foe,F({},b,{className:Ce(G.indicator,b.className),ownerState:L,style:F({},W,b.style)}));let Sr=0;const Te=O.Children.map(c,pe=>{if(!O.isValidElement(pe))return null;const De=pe.props.value===void 0?Sr:pe.props.value;We.set(De,Sr);const qe=De===A;return Sr+=1,O.cloneElement(pe,F({fullWidth:T==="fullWidth",indicator:qe&&!j&&Vt,selected:qe,selectionFollowsFocus:x,onChange:v,textColor:C,value:De},Sr===1&&A===!1&&!pe.props.tabIndex?{tabIndex:0}:{}))}),ut=pe=>{const De=at.current,qe=on(De).activeElement;if(qe.getAttribute("role")!=="tab")return;let $r=g==="horizontal"?"ArrowLeft":"ArrowUp",Io=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&a&&($r="ArrowRight",Io="ArrowLeft"),pe.key){case $r:pe.preventDefault(),sg(De,qe,vR);break;case Io:pe.preventDefault(),sg(De,qe,pR);break;case"Home":pe.preventDefault(),sg(De,null,pR);break;case"End":pe.preventDefault(),sg(De,null,vR);break}},Rt=Re();return E.jsxs(loe,F({className:Ce(G.root,f),ownerState:L,ref:r,as:d},I,{children:[Rt.scrollButtonStart,Rt.scrollbarSizeListener,E.jsxs(uoe,{className:G.scroller,ownerState:L,style:{overflow:de.overflow,[k?`margin${a?"Left":"Right"}`:"marginBottom"]:M?void 0:-de.scrollbarWidth},ref:Ge,children:[E.jsx(coe,{"aria-label":o,"aria-labelledby":s,"aria-orientation":g==="vertical"?"vertical":null,className:G.flexContainer,ownerState:L,onKeyDown:ut,ref:at,role:"tablist",children:Te}),j&&Vt]}),Rt.scrollButtonEnd]}))}),poe=hoe;function voe(e){return Ue("MuiTextField",e)}je("MuiTextField",["root"]);const goe=["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"],moe={standard:M4,filled:w4,outlined:z4},yoe=e=>{const{classes:t}=e;return Ze({root:["root"]},voe,t)},xoe=ge(C4,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Soe=O.forwardRef(function(t,r){const n=Ye({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:I,required:P=!1,rows:k,select:R=!1,SelectProps:z,type:$,value:N,variant:V="outlined"}=n,L=ye(n,goe),G=F({},n,{autoFocus:a,color:l,disabled:c,error:f,fullWidth:h,multiline:w,required:P,select:R,variant:V}),U=yoe(G),B={};V==="outlined"&&(g&&typeof g.shrink<"u"&&(B.notched=g.shrink),B.label=S),R&&((!z||!z.native)&&(B.id=void 0),B["aria-describedby"]=void 0);const j=IV(v),X=p&&j?`${j}-helper-text`:void 0,W=S&&j?`${j}-label`:void 0,ee=moe[V],te=E.jsx(ee,F({"aria-describedby":X,autoComplete:i,autoFocus:a,defaultValue:u,fullWidth:h,multiline:w,name:C,rows:k,maxRows:_,minRows:b,type:$,value:N,id:j,inputRef:x,onBlur:A,onChange:T,onFocus:M,placeholder:I,inputProps:m},B,y));return E.jsxs(xoe,F({className:Ce(U.root,s),disabled:c,error:f,fullWidth:h,ref:r,required:P,color:l,variant:V,ownerState:G},L,{children:[S!=null&&S!==""&&E.jsx(I4,F({htmlFor:j,id:W},g,{children:S})),R?E.jsx(F4,F({"aria-describedby":X,id:j,labelId:W,value:N,input:te},z,{children:o})):te,p&&E.jsx(Hre,F({id:X},d,{children:p}))]}))}),Fl=Soe;var u2={},V4={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})(V4);var uv=V4.exports,DS={};const boe=T7(OJ);var mR;function cv(){return mR||(mR=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=boe}(DS)),DS}var _oe=uv;Object.defineProperty(u2,"__esModule",{value:!0});var G4=u2.default=void 0,woe=_oe(cv()),Coe=E,Toe=(0,woe.default)((0,Coe.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");G4=u2.default=Toe;function c2({open:e,onClose:t,children:r}){return E.jsx(S4,{onClose:t,open:e,children:E.jsxs(ft,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"md",display:"flex",flexDirection:"column",rowGap:2,bgcolor:"background.paper",boxShadow:24,borderRadius:2,p:4},children:[E.jsx(m4,{color:"inherit",onClick:t,sx:{position:"absolute",top:1,right:1},children:E.jsx(G4,{})}),r]})})}const Vs=pV,Aoe=AV;function $l(e){const t=Aoe();return O.useCallback(r=>{t(e(r))},[e,t])}const Moe=[{name:"Carl Byström",website:"http://cgbystrom.com/",social:{handle:"@cgbystrom",link:"https://twitter.com/cgbystrom/"}},{name:"Jonatan Heyman",website:"http://heyman.info/",social:{handle:"@jonatanheyman",link:"https://twitter.com/jonatanheyman/"}},{name:"Joakim Hamrén",social:{handle:"@jahaaja",link:"https://twitter.com/Jahaaja/"}},{name:"ESN Social Software",website:"http://esn.me/",social:{handle:"@uprise_ea",link:"https://twitter.com/uprise_ea"}},{name:"Hugo Heyman",social:{handle:"@hugoheyman",link:"https://twitter.com/hugoheyman/"}}];function Ioe(){const[e,t]=O.useState(!1),r=Vs(({swarm:n})=>n.version);return E.jsxs(E.Fragment,{children:[E.jsx(ft,{sx:{display:"flex",justifyContent:"flex-end"},children:E.jsx(Au,{color:"inherit",onClick:()=>t(!0),variant:"text",children:"About"})}),E.jsxs(c2,{onClose:()=>t(!1),open:e,children:[E.jsxs("div",{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"About"}),E.jsx(Xe,{component:"p",variant:"subtitle1",children:"The original idea for Locust was Carl Byström's who made a first proof of concept in June 2010. Jonatan Heyman picked up Locust in January 2011, implemented the current concept of Locust classes and made it work distributed across multiple machines."}),E.jsx(Xe,{component:"p",sx:{mt:2},variant:"subtitle1",children:"Jonatan, Carl and Joakim Hamrén has continued the development of Locust at their job, ESN Social Software, who have adopted Locust as an inhouse Open Source project."})]}),E.jsxs("div",{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"Authors and Copyright"}),E.jsx(ft,{sx:{display:"flex",flexDirection:"column",rowGap:.5},children:Moe.map(({name:n,website:i,social:{handle:a,link:o}},s)=>E.jsxs("div",{children:[i?E.jsx(li,{href:i,children:n}):n,E.jsxs(ft,{sx:{display:"inline",ml:.5},children:["(",E.jsx(li,{href:o,children:a}),")"]})]},`author-${s}`))})]}),E.jsxs("div",{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"License"}),E.jsx(Xe,{component:"p",variant:"subtitle1",children:"Open source licensed under the MIT license."})]}),E.jsxs("div",{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"Version"}),E.jsx(li,{href:`https://github.com/locustio/locust/releases/tag/${r}`,children:r})]}),E.jsxs("div",{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"Website"}),E.jsx(li,{href:"https://locust.io/",children:"https://locust.io"})]})]})]})}function Poe(){return E.jsx(ft,{component:"nav",sx:{position:"fixed",bottom:0,width:"100%"},children:E.jsx(Nf,{maxWidth:"xl",sx:{display:"flex",justifyContent:"flex-end"},children:E.jsx(Ioe,{})})})}var f2={},koe=uv;Object.defineProperty(f2,"__esModule",{value:!0});var H4=f2.default=void 0,Doe=koe(cv()),Roe=E,Loe=(0,Doe.default)((0,Roe.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");H4=f2.default=Loe;var d2={},Eoe=uv;Object.defineProperty(d2,"__esModule",{value:!0});var W4=d2.default=void 0,Ooe=Eoe(cv()),Noe=E,zoe=(0,Ooe.default)((0,Noe.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");W4=d2.default=zoe;const Ma={DARK:"dark",LIGHT:"light"},U4=localStorage.theme===Ma.DARK||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?Ma.DARK:Ma.LIGHT;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:ex(e)?2:tx(e)?3:0}function gs(e,t){return As(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Lm(e,t){return As(e)===2?e.get(t):e[t]}function j4(e,t,r){var n=As(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function Y4(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function ex(e){return Woe&&e instanceof Map}function tx(e){return Uoe&&e instanceof Set}function bl(e){return e.o||e.t}function h2(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=X4(e);delete t[Ft];for(var r=qc(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=Foe),Object.freeze(e),t&&Ts(e,function(r,n){return p2(n,!0)},!0)),e}function Foe(){Rr(2)}function v2(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ia(e){var t=RC[e];return t||Rr(18,e),t}function q4(e,t){RC[e]||(RC[e]=t)}function PC(){return yp}function RS(e,t){t&&(Ia("Patches"),e.u=[],e.s=[],e.v=t)}function Ny(e){kC(e),e.p.forEach($oe),e.p=null}function kC(e){e===yp&&(yp=e.l)}function yR(e){return yp={p:[],l:yp,h:e,m:!0,_:0}}function $oe(e){var t=e[Ft];t.i===0||t.i===1?t.j():t.g=!0}function LS(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||Ia("ES5").S(t,e,n),n?(r[Ft].P&&(Ny(t),Rr(4)),qi(e)&&(e=zy(t,e),t.l||By(t,e)),t.u&&Ia("Patches").M(r[Ft].t,e,t.u,t.s)):e=zy(t,r,[]),Ny(t),t.u&&t.v(t.u,t.s),e!==m2?e:void 0}function zy(e,t,r){if(v2(t))return t;var n=t[Ft];if(!n)return Ts(t,function(s,l){return xR(e,n,t,s,l,r)},!0),t;if(n.A!==e)return t;if(!n.P)return By(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=h2(n.k):n.o,a=i,o=!1;n.i===3&&(a=new Set(i),i.clear(),o=!0),Ts(a,function(s,l){return xR(e,n,i,s,l,r,o)}),By(e,i,!1),r&&e.u&&Ia("Patches").N(n,r,e.u,e.s)}return n.o}function xR(e,t,r,n,i,a,o){if(Yi(i)){var s=zy(e,i,a&&t&&t.i!==3&&!gs(t.R,n)?a.concat(n):void 0);if(j4(r,n,s),!Yi(s))return;e.m=!1}else o&&r.add(i);if(qi(i)&&!v2(i)){if(!e.h.D&&e._<1)return;zy(e,i),t&&t.A.l||By(e,i)}}function By(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&p2(t,r)}function ES(e,t){var r=e[Ft];return(r?bl(r):e)[t]}function SR(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 Zo(e){e.P||(e.P=!0,e.l&&Zo(e.l))}function OS(e){e.o||(e.o=h2(e.t))}function DC(e,t,r){var n=ex(t)?Ia("MapSet").F(t,r):tx(t)?Ia("MapSet").T(t,r):e.O?function(i,a){var o=Array.isArray(i),s={i:o?1:0,A:a?a.A:PC(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},l=s,u=xp;o&&(l=[s],u=eh);var c=Proxy.revocable(l,u),f=c.revoke,d=c.proxy;return s.k=d,s.j=f,d}(t,r):Ia("ES5").J(t,r);return(r?r.A:PC()).p.push(n),n}function Voe(e){return Yi(e)||Rr(22,e),function t(r){if(!qi(r))return r;var n,i=r[Ft],a=As(r);if(i){if(!i.P&&(i.i<4||!Ia("ES5").K(i)))return i.t;i.I=!0,n=bR(r,a),i.I=!1}else n=bR(r,a);return Ts(n,function(o,s){i&&Lm(i.t,o)===s||j4(n,o,t(s))}),a===3?new Set(n):n}(e)}function bR(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return h2(e)}function Goe(){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[Ft];return xp.get(l,a)},set:function(l){var u=this[Ft];xp.set(u,a,l)}},s}function t(a){for(var o=a.length-1;o>=0;o--){var s=a[o][Ft];if(!s.P)switch(s.i){case 5:n(s)&&Zo(s);break;case 4:r(s)&&Zo(s)}}}function r(a){for(var o=a.t,s=a.k,l=qc(s),u=l.length-1;u>=0;u--){var c=l[u];if(c!==Ft){var f=o[c];if(f===void 0&&!gs(o,c))return!0;var d=s[c],h=d&&d[Ft];if(h?h.t!==f:!Y4(d,f))return!0}}var p=!!o[Ft];return l.length!==qc(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=Ia("Patches").$;return Yi(r)?o(r,n):this.produce(r,function(s){return o(s,n)})},e}(),Wn=new Yoe,fv=Wn.produce,Z4=Wn.produceWithPatches.bind(Wn);Wn.setAutoFreeze.bind(Wn);Wn.setUseProxies.bind(Wn);var CR=Wn.applyPatches.bind(Wn);Wn.createDraft.bind(Wn);Wn.finishDraft.bind(Wn);function Sp(e){"@babel/helpers - typeof";return Sp=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},Sp(e)}function qoe(e,t){if(Sp(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Sp(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xoe(e){var t=qoe(e,"string");return Sp(t)==="symbol"?t:String(t)}function Zoe(e,t,r){return t=Xoe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TR(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 AR(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(jr(1));return r(K4)(e,t)}if(typeof e!="function")throw new Error(jr(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(jr(3));return a}function f(v){if(typeof v!="function")throw new Error(jr(4));if(l)throw new Error(jr(5));var g=!0;return u(),s.push(v),function(){if(g){if(l)throw new Error(jr(6));g=!1,u();var y=s.indexOf(v);s.splice(y,1),o=null}}}function d(v){if(!Koe(v))throw new Error(jr(7));if(typeof v.type>"u")throw new Error(jr(8));if(l)throw new Error(jr(9));try{l=!0,a=i(a,v)}finally{l=!1}for(var g=o=s,m=0;m"u")throw new Error(jr(12));if(typeof r(void 0,{type:Fy.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(jr(13))})}function y2(e){for(var t=Object.keys(e),r={},n=0;n"u")throw u&&u.type,new Error(jr(14));f[h]=g,c=c||g!==v}return c=c||a.length!==Object.keys(l).length,c?f:l}}function $y(){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 Vy}function i(s,l){n(s)===Vy&&(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 rse=function(t,r){return t===r};function nse(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 dv(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function x2(){for(var e=[],t=0;t{e.isDarkMode=t}}}),Dse=iG.actions,Rse=iG.reducer;function Lse(){const e=Vs(({theme:{isDarkMode:n}})=>n),t=$l(Dse.setIsDarkMode);O.useEffect(()=>{t(U4===Ma.DARK)},[]);const r=()=>{localStorage.theme=e?Ma.LIGHT:Ma.DARK,t(!e)};return E.jsx(m4,{color:"inherit",onClick:r,children:e?E.jsx(W4,{}):E.jsx(H4,{})})}const En={READY:"ready",RUNNING:"running",STOPPED:"stopped",SPAWNING:"spawning",CLEANUP:"cleanup",STOPPING:"stopping",MISSING:"missing"};function Ese({isDistributed:e,state:t,host:r,totalRps:n,failRatio:i,userCount:a,workerCount:o}){return E.jsxs(ft,{sx:{display:"flex",columnGap:2},children:[E.jsxs(ft,{sx:{display:"flex",flexDirection:"column"},children:[E.jsx(Xe,{variant:"button",children:"Host"}),E.jsx(Xe,{children:r})]}),E.jsx(vd,{flexItem:!0,orientation:"vertical"}),E.jsxs(ft,{sx:{display:"flex",flexDirection:"column"},children:[E.jsx(Xe,{variant:"button",children:"Status"}),E.jsx(Xe,{variant:"button",children:t})]}),t===En.RUNNING&&E.jsxs(E.Fragment,{children:[E.jsx(vd,{flexItem:!0,orientation:"vertical"}),E.jsxs(ft,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[E.jsx(Xe,{variant:"button",children:"Users"}),E.jsx(Xe,{variant:"button",children:a})]})]}),e&&E.jsxs(E.Fragment,{children:[E.jsx(vd,{flexItem:!0,orientation:"vertical"}),E.jsxs(ft,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[E.jsx(Xe,{variant:"button",children:"Workers"}),E.jsx(Xe,{variant:"button",children:o})]})]}),E.jsx(vd,{flexItem:!0,orientation:"vertical"}),E.jsxs(ft,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[E.jsx(Xe,{variant:"button",children:"RPS"}),E.jsx(Xe,{variant:"button",children:n})]}),E.jsx(vd,{flexItem:!0,orientation:"vertical"}),E.jsxs(ft,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[E.jsx(Xe,{variant:"button",children:"Failures"}),E.jsx(Xe,{variant:"button",children:`${i}%`})]})]})}const Ose=({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}),Nse=Xn(Ose)(Ese);function aG({children:e,onSubmit:t}){const r=O.useCallback(async n=>{n.preventDefault();const i=new FormData(n.target),a={};for(const[o,s]of i.entries())a.hasOwnProperty(o)?(Array.isArray(a[o])||(a[o]=[a[o]]),a[o].push(s)):a[o]=s;t(a)},[t]);return E.jsx("form",{onSubmit:r,children:e})}var Gy=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 jse(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var zR=Ms;function lG(e,t){if(e===t||!(zR(e)&&zR(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},qse=function(e){return/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"")};function FR(e){if(!Ms(e))return e;for(var t=ir({},e),r=0,n=Object.entries(t);r"u"&&s===BR&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),function(x,S){return Uy(t,null,function(){var _,b,w,C,A,T,M,I,P,k,R,z,$,N,V,L,G,U,B,j,X,W,ee,te,ie,re,Q,J,fe,de,ke,We,Ge,at,ot,It;return Gy(this,function(Be){switch(Be.label){case 0:return _=S.signal,b=S.getState,w=S.extra,C=S.endpoint,A=S.forced,T=S.type,I=typeof x=="string"?{url:x}:x,P=I.url,k=I.headers,R=k===void 0?new Headers(m.headers):k,z=I.params,$=z===void 0?void 0:z,N=I.responseHandler,V=N===void 0?v??"json":N,L=I.validateStatus,G=L===void 0?g??Yse:L,U=I.timeout,B=U===void 0?p:U,j=OR(I,["url","headers","params","responseHandler","validateStatus","timeout"]),X=ir(xa(ir({},m),{signal:_}),j),R=new Headers(FR(R)),W=X,[4,a(R,{getState:b,extra:w,endpoint:C,forced:A,type:T})];case 1:W.headers=Be.sent()||R,ee=function(Pt){return typeof Pt=="object"&&(Ms(Pt)||Array.isArray(Pt)||typeof Pt.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)),$&&(te=~P.indexOf("?")?"&":"?",ie=l?l($):new URLSearchParams(FR($)),P+=te+ie),P=Wse(n,P),re=new Request(P,X),Q=re.clone(),M={request:Q},fe=!1,de=B&&setTimeout(function(){fe=!0,S.abort()},B),Be.label=2;case 2:return Be.trys.push([2,4,5,6]),[4,s(re)];case 3:return J=Be.sent(),[3,6];case 4:return ke=Be.sent(),[2,{error:{status:fe?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(ke)},meta:M}];case 5:return de&&clearTimeout(de),[7];case 6:We=J.clone(),M.response=We,at="",Be.label=7;case 7:return Be.trys.push([7,9,,10]),[4,Promise.all([y(J,V).then(function(Pt){return Ge=Pt},function(Pt){return ot=Pt}),We.text().then(function(Pt){return at=Pt},function(){})])];case 8:if(Be.sent(),ot)throw ot;return[3,10];case 9:return It=Be.sent(),[2,{error:{status:"PARSING_ERROR",originalStatus:J.status,data:at,error:String(It)},meta:M}];case 10:return[2,G(J,Ge)?{data:Ge,meta:M}:{error:{status:J.status,data:Ge},meta:M}]}})})};function y(x,S){return Uy(this,null,function(){var _;return Gy(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 $R=function(){function e(t,r){r===void 0&&(r=void 0),this.value=t,this.meta=r}return e}(),b2=Tn("__rtkq/focused"),uG=Tn("__rtkq/unfocused"),_2=Tn("__rtkq/online"),cG=Tn("__rtkq/offline"),La;(function(e){e.query="query",e.mutation="mutation"})(La||(La={}));function fG(e){return e.type===La.query}function Zse(e){return e.type===La.mutation}function dG(e,t,r,n,i,a){return Kse(e)?e(t,r,n,i).map(NC).map(a):Array.isArray(e)?e.map(NC).map(a):[]}function Kse(e){return typeof e=="function"}function NC(e){return typeof e=="string"?{type:e}:e}function $S(e){return e!=null}var _p=Symbol("forceQueryFn"),zC=function(e){return typeof e[_p]=="function"};function Qse(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 Vy(Vy([],S(o)),S(s)).filter($S)}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($S)}}function m(){return function(S){return Object.values(s.get(S)||{}).filter($S)}}function y(S,_){var b=function(w,C){var A=C===void 0?{}:C,T=A.subscribe,M=T===void 0?!0:T,I=A.forceRefetch,P=A.subscriptionOptions,k=_p,R=A[k];return function(z,$){var N,V,L=t({queryArgs:w,endpointDefinition:_,endpointName:S}),G=r((N={type:"query",subscribe:M,forceRefetch:I,subscriptionOptions:P,endpointName:S,originalArgs:w,queryCacheKey:L},N[_p]=R,N)),U=i.endpoints[S].select(w),B=z(G),j=U($()),X=B.requestId,W=B.abort,ee=j.requestId!==X,te=(V=o.get(z))==null?void 0:V[L],ie=function(){return U($())},re=Object.assign(R?B.then(ie):ee&&!te?Promise.resolve(j):Promise.all([te,B]).then(ie),{arg:w,requestId:X,subscriptionOptions:P,queryCacheKey:L,abort:W,unwrap:function(){return Hy(this,null,function(){var J;return $y(this,function(fe){switch(fe.label){case 0:return[4,re];case 1:if(J=fe.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:L,requestId:X}))},updateSubscriptionOptions:function(J){re.subscriptionOptions=J,z(f({endpointName:S,requestId:X,queryCacheKey:L,options:J}))}});if(!te&&!ee&&!R){var Q=o.get(z)||{};Q[L]=re,o.set(z,Q),re.then(function(){delete Q[L],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,I){var P=n({type:"mutation",endpointName:S,originalArgs:_,track:A,fixedCacheKey:T}),k=M(P),R=k.requestId,z=k.abort,$=k.unwrap,N=k.unwrap().then(function(U){return{data:U}}).catch(function(U){return{error:U}}),V=function(){M(c({requestId:R,fixedCacheKey:T}))},L=Object.assign(N,{arg:k.arg,requestId:R,abort:z,unwrap:$,unsubscribe:V,reset:V}),G=s.get(M)||{};return s.set(M,G),G[R]=L,L.then(function(){delete G[R],Object.keys(G).length||s.delete(M)}),T&&(G[T]=L,L.then(function(){G[T]===L&&(delete G[T],Object.keys(G).length||s.delete(M))})),L}}}}function $R(e){return e}function Xse(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(qi(T.data)){var I=q4(T.data,_),P=I[1],k=I[2];(C=M.patches).push.apply(C,P),(A=M.inversePatches).push.apply(A,k)}else{var R=_(T.data);M.patches.push({op:"replace",path:[],value:R}),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[_p]=function(){return{data:_}},w)))}},c=function(x,S){return Hy(t,[x,S],function(_,b){var w,C,A,T,M,I,P,k,R,z,$,N,V,L,G,U,B,j,X=b.signal,W=b.abort,ee=b.rejectWithValue,te=b.fulfillWithValue,ie=b.dispatch,re=b.getState,Q=b.extra;return $y(this,function(J){switch(J.label){case 0:w=i[_.endpointName],J.label=1;case 1:return J.trys.push([1,8,,13]),C=$R,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"?_[_p]: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(fe){return n(fe,T,w.extraOptions)})];case 5:A=J.sent(),J.label=6;case 6:if(typeof process<"u",A.error)throw new FR(A.error,A.meta);return $=te,[4,C(A.data,A.meta,_.originalArgs)];case 7:return[2,$.apply(void 0,[J.sent(),(B={fulfilledTimeStamp:Date.now(),baseQueryMeta:A.meta},B[th]=!0,B)])];case 8:if(N=J.sent(),V=N,!(V instanceof FR))return[3,12];L=$R,w.query&&w.transformErrorResponse&&(L=w.transformErrorResponse),J.label=9;case 9:return J.trys.push([9,11,,12]),G=ee,[4,L(V.value,V.meta,_.originalArgs)];case 10:return[2,G.apply(void 0,[J.sent(),(j={baseQueryMeta:V.meta},j[th]=!0,j)])];case 11:return U=J.sent(),V=U,[3,12];case 12:throw typeof process<"u",console.error(V),V;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,I=(C=x.forceRefetch)!=null?C:x.subscribe&&T;return I?I===!0||(Number(new Date)-Number(M))/1e3>=I:!1}var d=DR(r+"/executeQuery",c,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[th]=!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,I=x.originalArgs,P=T==null?void 0:T.originalArgs,k=i[x.endpointName];return zC(x)?!0:(T==null?void 0:T.status)==="pending"?!1:f(x,A)||uG(k)&&((C=k==null?void 0:k.forceRefetch)!=null&&C.call(k,{currentArg:I,previousArg:P,endpointState:T,state:A}))?!0:!M},dispatchConditionRejection:!0}),h=DR(r+"/executeMutation",c,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[th]=!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(k){return k===void 0&&(k=!0),o.endpoints[x].initiate(S,{forceRefetch:k})},M=o.endpoints[x].select(S)(w());if(C)b(T());else if(A){var I=M==null?void 0:M.fulfilledTimeStamp;if(!I){b(T());return}var P=(Number(new Date)-Number(new Date(I)))/1e3>=A;P&&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:Rh(x2(x),m(S)),matchFulfilled:Rh(Mu(x),m(S)),matchRejected:Rh(bp(x),m(S))}}return{queryThunk:d,mutationThunk:h,prefetch:g,updateQueryData:l,upsertQueryData:u,patchQueryData:s,buildMatchThunkActions:y}}function fG(e,t,r,n){return cG(r[e.meta.arg.endpointName][t],Mu(e)?e.payload:void 0,nx(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function og(e,t,r){var n=e[t];n&&r(n)}function wp(e){var t;return(t="arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)!=null?t:e.requestId}function VR(e,t,r){var n=e[wp(t)];n&&r(n)}var yd={};function Zse(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=Tn(t+"/resetApiState"),d=ui({name:t+"/queries",initialState:yd,reducers:{removeQueryResult:{reducer:function(_,b){var w=b.payload.queryCacheKey;delete _[w]},prepare:FS()},queryResultPatched:function(_,b){var w=b.payload,C=w.queryCacheKey,A=w.patches;og(_,C,function(T){T.data=wR(T.data,A.concat())})}},extraReducers:function(_){_.addCase(r.pending,function(b,w){var C=w.meta,A=w.meta.arg,T,M,I=zC(A);(A.subscribe||I)&&((M=b[T=A.queryCacheKey])!=null||(b[T]={status:Ht.uninitialized,endpointName:A.endpointName})),og(b,A.queryCacheKey,function(P){P.status=Ht.pending,P.requestId=I&&P.requestId?P.requestId:C.requestId,A.originalArgs!==void 0&&(P.originalArgs=A.originalArgs),P.startedTimeStamp=C.startedTimeStamp})}).addCase(r.fulfilled,function(b,w){var C=w.meta,A=w.payload;og(b,C.arg.queryCacheKey,function(T){var M;if(!(T.requestId!==C.requestId&&!zC(C.arg))){var I=a[C.arg.endpointName].merge;if(T.status=Ht.fulfilled,I)if(T.data!==void 0){var P=C.fulfilledTimeStamp,k=C.arg,R=C.baseQueryMeta,z=C.requestId,$=uv(T.data,function(N){return I(N,A,{arg:k.originalArgs,baseQueryMeta:R,fulfilledTimeStamp:P,requestId:z})});T.data=$}else T.data=A;else T.data=(M=a[C.arg.endpointName].structuralSharing)==null||M?oG(Yi(T.data)?Eoe(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,I=w.error,P=w.payload;og(b,T.queryCacheKey,function(k){if(!A){if(k.requestId!==M)return;k.status=Ht.rejected,k.error=P??I}})}).addMatcher(l,function(b,w){for(var C=s(w).queries,A=0,T=Object.entries(C);AArray.isArray(e)?e.length:Object.keys(e).length,Ile=e=>mc(e)===0;function Ple(e,t){return{...e,...t}}const kle=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},ix=(e,t)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:[...r[n]||[],i]}),e);function hG(e,t,r){return t&&(Array.isArray(t)?t.map(n=>hG(e,n,r)):typeof t=="object"?w2(t,r):t)}const w2=(e,t)=>Object.entries(e).reduce((r,[n,i])=>({...r,[t(n)]:hG(e,i,t)}),{}),pG=e=>e.replace(/_([a-z0-9])/g,(t,r)=>r.toUpperCase()),Dle=e=>e[0]===e[0].toUpperCase()?e:e.replace(/([a-z0-9])([A-Z0-9])/g,"$1_$2").toLowerCase(),Gl=e=>w2(e,pG),Rle=e=>w2(e,Dle),Lle=e=>e.replace(/([a-z0-9])([A-Z0-9])/g,"$1 $2").replace(/^./,t=>t.toUpperCase()),Ele=e=>Object.fromEntries(new URLSearchParams(e).entries()),Ole=(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]},BC=Mle({baseQuery:Use(),endpoints:e=>({getStats:e.query({query:()=>"stats/requests",transformResponse:Gl}),getTasks:e.query({query:()=>"tasks",transformResponse:Gl}),getExceptions:e.query({query:()=>"exceptions",transformResponse:Gl}),getLogs:e.query({query:()=>"logs",transformResponse:Gl}),startSwarm:e.mutation({query:t=>({url:"swarm",method:"POST",body:kle(Rle(t)),headers:{"content-type":"application/x-www-form-urlencoded"}})})})}),{useGetStatsQuery:Nle,useGetTasksQuery:zle,useGetExceptionsQuery:Ble,useGetLogsQuery:Fle,useStartSwarmMutation:vG}=BC;function $le({onSubmit:e,spawnRate:t,userCount:r}){const[n]=vG(),i=a=>{e(),n(a)};return E.jsxs(Nf,{maxWidth:"md",sx:{my:2},children:[E.jsx(Xe,{component:"h2",noWrap:!0,variant:"h6",children:"Edit running load test"}),E.jsx(nG,{onSubmit:i,children:E.jsxs(ht,{sx:{my:2,display:"flex",flexDirection:"column",rowGap:4},children:[E.jsx(Fl,{defaultValue:r||1,label:"Number of users (peak concurrency)",name:"userCount"}),E.jsx(Fl,{defaultValue:t||1,label:"Ramp Up (users started/second)",name:"spawnRate"}),E.jsx(Au,{size:"large",type:"submit",variant:"contained",children:"Update Swarm"})]})})]})}const Vle=({swarm:{spawnRate:e,userCount:t}})=>({spawnRate:e,userCount:t}),Gle=Xn(Vle)($le);function Hle(){const[e,t]=O.useState(!1);return E.jsxs(E.Fragment,{children:[E.jsx(Au,{color:"secondary",onClick:()=>t(!0),type:"button",variant:"contained",children:"Edit"}),E.jsx(c2,{onClose:()=>t(!1),open:e,children:E.jsx(Gle,{onSubmit:()=>t(!1)})})]})}var C2={},Wle=Q1;Object.defineProperty(C2,"__esModule",{value:!0});var T2=C2.default=void 0,Ule=Wle(J1()),jle=E,Yle=(0,Ule.default)((0,jle.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");T2=C2.default=Yle;function FC({label:e,name:t,options:r,multiple:n=!1,defaultValue:i,sx:a}){return E.jsxs(_4,{sx:a,children:[E.jsx(A4,{htmlFor:t,shrink:!0,children:e}),E.jsx(z4,{defaultValue:i||n&&r||r[0],id:t,label:e,multiple:n,name:t,native:!0,children:r.map((o,s)=>E.jsx("option",{value:o,children:o},`option-${o}-${s}`))})]})}const KR=e=>e.defaultValue!==null&&typeof e.defaultValue!="boolean";function qle({label:e,defaultValue:t,choices:r,helpText:n,isSecret:i}){const a=Lle(e),o=n?`${a} (${n})`:a;return r?E.jsx(FC,{defaultValue:t,label:o,name:e,options:r,sx:{width:"100%"}}):E.jsx(Fl,{defaultValue:t,label:o,name:e,sx:{width:"100%"},type:i?"password":"text"})}function Xle({extraOptions:e}){const t=O.useMemo(()=>Object.entries(e).reduce((n,[i,a])=>KR(a)?[...n,{label:i,...a}]:n,[]),[e]),r=O.useMemo(()=>Object.keys(e).reduce((n,i)=>KR(e[i])?n:[...n,i],[]),[e]);return E.jsxs(d4,{children:[E.jsx(p4,{expandIcon:E.jsx(T2,{}),children:E.jsx(Xe,{children:"Custom parameters"})}),E.jsx(h4,{children:E.jsxs(ht,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[t.map((n,i)=>E.jsx(qle,{...n},`valid-parameter-${i}`)),E.jsx(ht,{children:r&&E.jsxs(E.Fragment,{children:[E.jsx(Xe,{children:"The following custom parameters can't be set in the Web UI, because it is a boolean or None type:"}),E.jsx("ul",{children:r.map((n,i)=>E.jsx("li",{children:E.jsx(Xe,{children:n})},`invalid-parameter-${i}`))})]})})]})})]})}function fv(e,{payload:t}){return Ple(e,t)}const Zle=Gl(window.templateArgs),gG=ui({name:"swarm",initialState:Zle,reducers:{setSwarm:fv}}),mG=gG.actions,Kle=gG.reducer;function Qle({availableShapeClasses:e,availableUserClasses:t,host:r,extraOptions:n,isShape:i,numUsers:a,overrideHostWarning:o,runTime:s,setSwarm:l,showUserclassPicker:u,spawnRate:c}){const[f]=vG(),d=h=>{l({state:En.RUNNING,host:h.host||r}),f(h)};return E.jsxs(Nf,{maxWidth:"md",sx:{my:2},children:[E.jsx(Xe,{component:"h2",noWrap:!0,variant:"h6",children:"Start new load test"}),E.jsx(nG,{onSubmit:d,children:E.jsxs(ht,{sx:{my:2,display:"flex",flexDirection:"column",rowGap:4},children:[u&&E.jsxs(E.Fragment,{children:[E.jsx(FC,{label:"User Classes",multiple:!0,name:"userClasses",options:t}),E.jsx(FC,{label:"Shape Class",name:"shapeClass",options:e})]}),E.jsx(Fl,{defaultValue:i&&"-"||a||1,disabled:!!i,label:"Number of users (peak concurrency)",name:"userCount"}),E.jsx(Fl,{defaultValue:i&&"-"||c||1,disabled:!!i,label:"Ramp Up (users started/second)",name:"spawnRate",title:"Disabled for tests using LoadTestShape class"}),E.jsx(Fl,{defaultValue:r,label:`Host ${o?"(setting this will override the host for the User classes)":""}`,name:"host",title:"Disabled for tests using LoadTestShape class"}),E.jsxs(d4,{children:[E.jsx(p4,{expandIcon:E.jsx(T2,{}),children:E.jsx(Xe,{children:"Advanced options"})}),E.jsx(h4,{children:E.jsx(Fl,{defaultValue:s,label:"Run time (e.g. 20, 20s, 3m, 2h, 1h20m, 3h30m10s, etc.)",name:"runTime",sx:{width:"100%"}})})]}),!Ile(n)&&E.jsx(Xle,{extraOptions:n}),E.jsx(Au,{size:"large",type:"submit",variant:"contained",children:"Start Swarm"})]})})]})}const Jle=({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}),eue={setSwarm:mG.setSwarm},yG=Xn(Jle,eue)(Qle);function tue(){const[e,t]=O.useState(!1);return E.jsxs(E.Fragment,{children:[E.jsx(Au,{color:"success",onClick:()=>t(!0),type:"button",variant:"contained",children:"New"}),E.jsx(c2,{onClose:()=>t(!1),open:e,children:E.jsx(yG,{})})]})}function rue(){const e=()=>{fetch("stats/reset")};return E.jsx(Au,{color:"warning",onClick:e,type:"button",variant:"contained",children:"Reset"})}function nue(){const[e,t]=O.useState(!1);O.useEffect(()=>{t(!1)},[]);const r=()=>{fetch("stop"),t(!0)};return E.jsx(Au,{color:"error",disabled:e,onClick:r,type:"button",variant:"contained",children:e?"Loading":"Stop"})}function iue(){const e=Vs(({swarm:t})=>t.state);return e===En.READY?null:e===En.STOPPED?E.jsx(tue,{}):E.jsxs(ht,{sx:{display:"flex",columnGap:2},children:[E.jsx(Hle,{}),E.jsx(nue,{}),E.jsx(rue,{})]})}function aue(){return E.jsx(tte,{position:"static",children:E.jsx(Nf,{maxWidth:"xl",children:E.jsxs(Rae,{sx:{display:"flex",justifyContent:"space-between"},children:[E.jsxs(li,{color:"inherit",href:"/",sx:{display:"flex",alignItems:"center",columnGap:2},underline:"none",children:[E.jsx("img",{height:"52",src:"/assets/logo.png",width:"52"}),E.jsx(Xe,{component:"h1",noWrap:!0,sx:{fontWeight:700,display:"flex",alignItems:"center"},variant:"h3",children:"Locust"})]}),E.jsxs(ht,{sx:{display:"flex",columnGap:6},children:[E.jsx(Rse,{}),E.jsx(iue,{}),E.jsx(Pse,{})]})]})})})}function oue({children:e}){return E.jsxs(E.Fragment,{children:[E.jsx(aue,{}),E.jsx("main",{children:e}),E.jsx(Toe,{})]})}function rh(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 sue={},xG=ui({name:"notification",initialState:sue,reducers:{setNotification:fv}}),lue=xG.actions,uue=xG.reducer;function cue(e,{key:t}){const r=$l(lue.setNotification),n=Vs(({url:{query:a}})=>a&&a.tab),i=`${t}Notification`;O.useEffect(()=>{mc(e)>0&&mc(e)(localStorage[i]||0)&&(!n||n!==t)&&(r({[t]:!0}),localStorage[i]=mc(e))},[e])}const fue={logs:[]},SG=ui({name:"logViewer",initialState:fue,reducers:{setLogs:fv}}),due=SG.actions,hue=SG.reducer;function pue(){const e=Vs(({swarm:a})=>a),t=$l(due.setLogs),{data:r,refetch:n}=Fle(),i=r?r.logs:[];return rh(n,5e3,{shouldRunInterval:e.state===En.SPAWNING||e.state==En.RUNNING}),cue(i,{key:"logViewer"}),O.useEffect(()=>{t({logs:i})},[i]),i}function vue(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const gue=/[ \t\n\f\r]/g;function mue(e){return typeof e=="object"?e.type==="text"?QR(e.value):!1:QR(e)}function QR(e){return e.replace(gue,"")===""}class dv{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}}dv.prototype.property={};dv.prototype.normal={};dv.prototype.space=null;function bG(e,t){const r={},n={};let i=-1;for(;++i4&&r.slice(0,4)==="data"&&_ue.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(eL,Aue);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!eL.test(a)){let o=a.replace(wue,Tue);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=A2}return new i(n,t)}function Tue(e){return"-"+e.toLowerCase()}function Aue(e){return e.charAt(1).toUpperCase()}const Mue={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"},Iue=bG([CG,wG,MG,IG,Sue],"html"),PG=bG([CG,wG,MG,IG,bue],"svg");function Pue(e){return e.join(" ").trim()}var M2={exports:{}},tL=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,kue=/\n/g,Due=/^\s*/,Rue=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Lue=/^:\s*/,Eue=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Oue=/^[;\s]*/,Nue=/^\s+|\s+$/g,zue=` -`,rL="/",nL="*",kl="",Bue="comment",Fue="declaration",$ue=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(kue);v&&(r+=v.length);var g=p.lastIndexOf(zue);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(Due)}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)||nL!=e.charAt(1))){for(var v=2;kl!=e.charAt(v)&&(nL!=e.charAt(v)||rL!=e.charAt(v+1));)++v;if(v+=2,kl===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:Bue,comment:g})}}function d(){var p=a(),v=l(Rue);if(v){if(f(),!l(Lue))return s("property missing ':'");var g=l(Eue),m=p({type:Fue,property:iL(v[0].replace(tL,kl)),value:g?iL(g[0].replace(tL,kl)):kl});return l(Oue),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 iL(e){return e?e.replace(Nue,kl):kl}var Vue=$ue;function kG(e,t){var r=null;if(!e||typeof e!="string")return r;for(var n,i=Vue(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 Wue(e){const t=I2(e),r=DG(e);if(t&&r)return{start:t,end:r}}function Lh(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?aL(e.position):"start"in e||"end"in e?aL(e):"line"in e||"column"in e?GC(e):""}function GC(e){return oL(e&&e.line)+":"+oL(e&&e.column)}function aL(e){return GC(e&&e.start)+"-"+GC(e&&e.end)}function oL(e){return e&&typeof e=="number"?e:1}class dn 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=Lh(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}}dn.prototype.file="";dn.prototype.name="";dn.prototype.reason="";dn.prototype.message="";dn.prototype.stack="";dn.prototype.column=void 0;dn.prototype.line=void 0;dn.prototype.ancestors=void 0;dn.prototype.cause=void 0;dn.prototype.fatal=void 0;dn.prototype.place=void 0;dn.prototype.ruleId=void 0;dn.prototype.source=void 0;const P2={}.hasOwnProperty,Uue=new Map,jue=/[A-Z]/g,Yue=/-([a-z])/g,que=new Set(["table","tbody","thead","tfoot","tr"]),Xue=new Set(["td","th"]);function Zue(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=Que(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=Kue(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"?PG:Iue,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=LG(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function LG(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=PG,e.schema=i),e.ancestors.push(t);let a=Jue(e,t);const o=ece(e,e.ancestors);let s=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(a&&que.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!mue(l):!0})),P2.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 Kue(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 Que(e,t){return r;function r(n,i,a,o){const s=Array.isArray(a.children),l=I2(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 Jue(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:Uue;for(;++n-1&&e.test(String.fromCharCode(r))}}const dce={'"':"quot","&":"amp","<":"lt",">":"gt"};function hce(e){return e.replace(/["&<>]/g,t);function t(r){return"&"+dce[r]+";"}}function pce(e,t){const r=hce(Pu(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 Pu(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 vce={};function gce(e,t){const r=t||vce,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return OG(e,n,i)}function OG(e,t,r){if(mce(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 sL(e.children,t,r)}return Array.isArray(e)?sL(e,t,r):""}function sL(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?(Ea(e,e.length,0,t),e):t}const uL={}.hasOwnProperty;function yce(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 Zc(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 Tce(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 fL(e){if(e===null||An(e)||fce(e))return 1;if(cce(e))return 2}function D2(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);dL(f,-l),dL(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=ci(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=ci(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),u=ci(u,D2(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=ci(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=ci(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,Ea(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||Ve(b)?e.check(hL,v,S)(b):(e.enter("codeFlowValue"),x(b))}function x(b){return b===null||Ve(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(R){return b.enter("lineEnding"),b.consume(R),b.exit("lineEnding"),M}function M(R){return b.enter("codeFencedFence"),mt(R)?Nt(b,I,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):I(R)}function I(R){return R===s?(b.enter("codeFencedFenceSequence"),P(R)):C(R)}function P(R){return R===s?(A++,b.consume(R),P):A>=o?(b.exit("codeFencedFenceSequence"),mt(R)?Nt(b,k,"whitespace")(R):k(R)):C(R)}function k(R){return R===null||Ve(R)?(b.exit("codeFencedFence"),w(R)):C(R)}}}function zce(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 jS={name:"codeIndented",tokenize:Fce},Bce={tokenize:$ce,partial:!0};function Fce(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):Ve(u)?e.attempt(Bce,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||Ve(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function $ce(e,t,r){const n=this;return i;function i(o){return n.parser.lazy[n.now().line]?r(o):Ve(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):Ve(o)?i(o):r(o)}}const Vce={name:"codeText",tokenize:Wce,resolve:Gce,previous:Hce};function Gce(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 VG(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||HC(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||Ve(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||An(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):Ve(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||Ve(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 HG(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):Ve(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||Ve(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 Eh(e,t){let r;return n;function n(i){return Ve(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 Kce={name:"definition",tokenize:Jce},Qce={tokenize:efe,partial:!0};function Jce(e,t,r){const n=this;let i;return a;function a(h){return e.enter("definition"),o(h)}function o(h){return GG.call(n,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=Zc(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 An(h)?Eh(e,u)(h):u(h)}function u(h){return VG(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(Qce,f,f)(h)}function f(h){return mt(h)?Nt(e,d,"whitespace")(h):d(h)}function d(h){return h===null||Ve(h)?(e.exit("definition"),n.parser.defined.push(i),t(h)):r(h)}}function efe(e,t,r){return n;function n(s){return An(s)?Eh(e,i)(s):r(s)}function i(s){return HG(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||Ve(s)?t(s):r(s)}}const tfe={name:"hardBreakEscape",tokenize:rfe};function rfe(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Ve(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const nfe={name:"headingAtx",tokenize:afe,resolve:ife};function ife(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"},Ea(e,n,r-n+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function afe(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||An(c)?(e.exit("atxHeadingSequence"),s(c)):r(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||Ve(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||An(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const ofe=["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"],vL=["pre","script","style","textarea"],sfe={name:"htmlFlow",tokenize:ffe,resolveTo:cfe,concrete:!0},lfe={tokenize:hfe,partial:!0},ufe={tokenize:dfe,partial:!0};function cfe(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 ffe(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:L):pa(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):pa(B)?(e.consume(B),i=4,n.interrupt?t:L):r(B)}function h(B){return B===45?(e.consume(B),n.interrupt?t:L):r(B)}function p(B){const j="CDATA[";return B===j.charCodeAt(s++)?(e.consume(B),s===j.length?n.interrupt?t:I:p):r(B)}function v(B){return pa(B)?(e.consume(B),o=String.fromCharCode(B),g):r(B)}function g(B){if(B===null||B===47||B===62||An(B)){const j=B===47,X=o.toLowerCase();return!j&&!a&&vL.includes(X)?(i=1,n.interrupt?t(B):I(B)):ofe.includes(o.toLowerCase())?(i=6,j?(e.consume(B),m):n.interrupt?t(B):I(B)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(B):a?y(B):x(B))}return B===45||Bn(B)?(e.consume(B),o+=String.fromCharCode(B),g):r(B)}function m(B){return B===62?(e.consume(B),n.interrupt?t:I):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||pa(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||Bn(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||Ve(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||An(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||Ve(B)?I(B):mt(B)?(e.consume(B),M):r(B)}function I(B){return B===45&&i===2?(e.consume(B),z):B===60&&i===1?(e.consume(B),$):B===62&&i===4?(e.consume(B),G):B===63&&i===3?(e.consume(B),L):B===93&&i===5?(e.consume(B),V):Ve(B)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(lfe,U,P)(B)):B===null||Ve(B)?(e.exit("htmlFlowData"),P(B)):(e.consume(B),I)}function P(B){return e.check(ufe,k,U)(B)}function k(B){return e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),R}function R(B){return B===null||Ve(B)?P(B):(e.enter("htmlFlowData"),I(B))}function z(B){return B===45?(e.consume(B),L):I(B)}function $(B){return B===47?(e.consume(B),o="",N):I(B)}function N(B){if(B===62){const j=o.toLowerCase();return vL.includes(j)?(e.consume(B),G):I(B)}return pa(B)&&o.length<8?(e.consume(B),o+=String.fromCharCode(B),N):I(B)}function V(B){return B===93?(e.consume(B),L):I(B)}function L(B){return B===62?(e.consume(B),G):B===45&&i===2?(e.consume(B),L):I(B)}function G(B){return B===null||Ve(B)?(e.exit("htmlFlowData"),U(B)):(e.consume(B),G)}function U(B){return e.exit("htmlFlow"),t(B)}}function dfe(e,t,r){const n=this;return i;function i(o){return Ve(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 hfe(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(ax,t,r)}}const pfe={name:"htmlText",tokenize:vfe};function vfe(e,t,r){const n=this;let i,a,o;return s;function s(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),l}function l(L){return L===33?(e.consume(L),u):L===47?(e.consume(L),_):L===63?(e.consume(L),x):pa(L)?(e.consume(L),C):r(L)}function u(L){return L===45?(e.consume(L),c):L===91?(e.consume(L),a=0,p):pa(L)?(e.consume(L),y):r(L)}function c(L){return L===45?(e.consume(L),h):r(L)}function f(L){return L===null?r(L):L===45?(e.consume(L),d):Ve(L)?(o=f,$(L)):(e.consume(L),f)}function d(L){return L===45?(e.consume(L),h):f(L)}function h(L){return L===62?z(L):L===45?d(L):f(L)}function p(L){const G="CDATA[";return L===G.charCodeAt(a++)?(e.consume(L),a===G.length?v:p):r(L)}function v(L){return L===null?r(L):L===93?(e.consume(L),g):Ve(L)?(o=v,$(L)):(e.consume(L),v)}function g(L){return L===93?(e.consume(L),m):v(L)}function m(L){return L===62?z(L):L===93?(e.consume(L),m):v(L)}function y(L){return L===null||L===62?z(L):Ve(L)?(o=y,$(L)):(e.consume(L),y)}function x(L){return L===null?r(L):L===63?(e.consume(L),S):Ve(L)?(o=x,$(L)):(e.consume(L),x)}function S(L){return L===62?z(L):x(L)}function _(L){return pa(L)?(e.consume(L),b):r(L)}function b(L){return L===45||Bn(L)?(e.consume(L),b):w(L)}function w(L){return Ve(L)?(o=w,$(L)):mt(L)?(e.consume(L),w):z(L)}function C(L){return L===45||Bn(L)?(e.consume(L),C):L===47||L===62||An(L)?A(L):r(L)}function A(L){return L===47?(e.consume(L),z):L===58||L===95||pa(L)?(e.consume(L),T):Ve(L)?(o=A,$(L)):mt(L)?(e.consume(L),A):z(L)}function T(L){return L===45||L===46||L===58||L===95||Bn(L)?(e.consume(L),T):M(L)}function M(L){return L===61?(e.consume(L),I):Ve(L)?(o=M,$(L)):mt(L)?(e.consume(L),M):A(L)}function I(L){return L===null||L===60||L===61||L===62||L===96?r(L):L===34||L===39?(e.consume(L),i=L,P):Ve(L)?(o=I,$(L)):mt(L)?(e.consume(L),I):(e.consume(L),k)}function P(L){return L===i?(e.consume(L),i=void 0,R):L===null?r(L):Ve(L)?(o=P,$(L)):(e.consume(L),P)}function k(L){return L===null||L===34||L===39||L===60||L===61||L===96?r(L):L===47||L===62||An(L)?A(L):(e.consume(L),k)}function R(L){return L===47||L===62||An(L)?A(L):r(L)}function z(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),t):r(L)}function $(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),N}function N(L){return mt(L)?Nt(e,V,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):V(L)}function V(L){return e.enter("htmlTextData"),o(L)}}const R2={name:"labelEnd",tokenize:bfe,resolveTo:Sfe,resolveAll:xfe},gfe={tokenize:_fe},mfe={tokenize:wfe},yfe={tokenize:Cfe};function xfe(e){let t=-1;for(;++t=3&&(u===null||Ve(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 vn={name:"list",tokenize:Lfe,continuation:{tokenize:Efe},exit:Nfe},Dfe={tokenize:zfe,partial:!0},Rfe={tokenize:Ofe,partial:!0};function Lfe(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:WC(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(Lm,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 WC(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(ax,n.interrupt?r:c,e.attempt(Dfe,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 Efe(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(ax,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(Rfe,t,o)(s))}function o(s){return n.containerState._closeFlow=!0,n.interrupt=void 0,Nt(e,e.attempt(vn,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function Ofe(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 Nfe(e){e.exit(this.containerState.type)}function zfe(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 gL={name:"setextUnderline",tokenize:Ffe,resolveTo:Bfe};function Bfe(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 Ffe(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||Ve(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const $fe={tokenize:Vfe};function Vfe(e){const t=this,r=e.attempt(ax,n,e.attempt(this.parser.constructs.flowInitial,i,Nt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(jce,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 Gfe={resolveAll:UG()},Hfe=WG("string"),Wfe=WG("text");function WG(e){return{tokenize:t,resolveAll:UG(e==="text"?Ufe: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 qfe(e,t){let r=-1;const n=[];let i;for(;++r=I:!1}var d=RR(r+"/executeQuery",c,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[th]=!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,I=x.originalArgs,P=T==null?void 0:T.originalArgs,k=i[x.endpointName];return zC(x)?!0:(T==null?void 0:T.status)==="pending"?!1:f(x,A)||fG(k)&&((C=k==null?void 0:k.forceRefetch)!=null&&C.call(k,{currentArg:I,previousArg:P,endpointState:T,state:A}))?!0:!M},dispatchConditionRejection:!0}),h=RR(r+"/executeMutation",c,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[th]=!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(k){return k===void 0&&(k=!0),o.endpoints[x].initiate(S,{forceRefetch:k})},M=o.endpoints[x].select(S)(w());if(C)b(T());else if(A){var I=M==null?void 0:M.fulfilledTimeStamp;if(!I){b(T());return}var P=(Number(new Date)-Number(new Date(I)))/1e3>=A;P&&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:Rh(x2(x),m(S)),matchFulfilled:Rh(Mu(x),m(S)),matchRejected:Rh(bp(x),m(S))}}return{queryThunk:d,mutationThunk:h,prefetch:g,updateQueryData:l,upsertQueryData:u,patchQueryData:s,buildMatchThunkActions:y}}function hG(e,t,r,n){return dG(r[e.meta.arg.endpointName][t],Mu(e)?e.payload:void 0,nx(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function lg(e,t,r){var n=e[t];n&&r(n)}function wp(e){var t;return(t="arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)!=null?t:e.requestId}function GR(e,t,r){var n=e[wp(t)];n&&r(n)}var yd={};function ele(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=Tn(t+"/resetApiState"),d=ui({name:t+"/queries",initialState:yd,reducers:{removeQueryResult:{reducer:function(_,b){var w=b.payload.queryCacheKey;delete _[w]},prepare:FS()},queryResultPatched:function(_,b){var w=b.payload,C=w.queryCacheKey,A=w.patches;lg(_,C,function(T){T.data=CR(T.data,A.concat())})}},extraReducers:function(_){_.addCase(r.pending,function(b,w){var C=w.meta,A=w.meta.arg,T,M,I=zC(A);(A.subscribe||I)&&((M=b[T=A.queryCacheKey])!=null||(b[T]={status:Ht.uninitialized,endpointName:A.endpointName})),lg(b,A.queryCacheKey,function(P){P.status=Ht.pending,P.requestId=I&&P.requestId?P.requestId:C.requestId,A.originalArgs!==void 0&&(P.originalArgs=A.originalArgs),P.startedTimeStamp=C.startedTimeStamp})}).addCase(r.fulfilled,function(b,w){var C=w.meta,A=w.payload;lg(b,C.arg.queryCacheKey,function(T){var M;if(!(T.requestId!==C.requestId&&!zC(C.arg))){var I=a[C.arg.endpointName].merge;if(T.status=Ht.fulfilled,I)if(T.data!==void 0){var P=C.fulfilledTimeStamp,k=C.arg,R=C.baseQueryMeta,z=C.requestId,$=fv(T.data,function(N){return I(N,A,{arg:k.originalArgs,baseQueryMeta:R,fulfilledTimeStamp:P,requestId:z})});T.data=$}else T.data=A;else T.data=(M=a[C.arg.endpointName].structuralSharing)==null||M?lG(Yi(T.data)?Boe(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,I=w.error,P=w.payload;lg(b,T.queryCacheKey,function(k){if(!A){if(k.requestId!==M)return;k.status=Ht.rejected,k.error=P??I}})}).addMatcher(l,function(b,w){for(var C=s(w).queries,A=0,T=Object.entries(C);AArray.isArray(e)?e.length:Object.keys(e).length,Rle=e=>mc(e)===0;function Lle(e,t){return{...e,...t}}const Ele=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},ix=(e,t)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:[...r[n]||[],i]}),e);function vG(e,t,r){return t&&(Array.isArray(t)?t.map(n=>vG(e,n,r)):typeof t=="object"?w2(t,r):t)}const w2=(e,t)=>Object.entries(e).reduce((r,[n,i])=>({...r,[t(n)]:vG(e,i,t)}),{}),gG=e=>e.replace(/_([a-z0-9])/g,(t,r)=>r.toUpperCase()),Ole=e=>e[0]===e[0].toUpperCase()?e:e.replace(/([a-z0-9])([A-Z0-9])/g,"$1_$2").toLowerCase(),Gl=e=>w2(e,gG),Nle=e=>w2(e,Ole),zle=e=>e.replace(/([a-z0-9])([A-Z0-9])/g,"$1 $2").replace(/^./,t=>t.toUpperCase()),Ble=e=>Object.fromEntries(new URLSearchParams(e).entries()),Fle=(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]},BC=Dle({baseQuery:Xse(),endpoints:e=>({getStats:e.query({query:()=>"stats/requests",transformResponse:Gl}),getTasks:e.query({query:()=>"tasks",transformResponse:Gl}),getExceptions:e.query({query:()=>"exceptions",transformResponse:Gl}),getLogs:e.query({query:()=>"logs",transformResponse:Gl}),startSwarm:e.mutation({query:t=>({url:"swarm",method:"POST",body:Ele(Nle(t)),headers:{"content-type":"application/x-www-form-urlencoded"}})})})}),{useGetStatsQuery:$le,useGetTasksQuery:Vle,useGetExceptionsQuery:Gle,useGetLogsQuery:Hle,useStartSwarmMutation:mG}=BC;function Wle({onSubmit:e,spawnRate:t,userCount:r}){const[n]=mG(),i=a=>{e(),n(a)};return E.jsxs(Nf,{maxWidth:"md",sx:{my:2},children:[E.jsx(Xe,{component:"h2",noWrap:!0,variant:"h6",children:"Edit running load test"}),E.jsx(aG,{onSubmit:i,children:E.jsxs(ft,{sx:{my:2,display:"flex",flexDirection:"column",rowGap:4},children:[E.jsx(Fl,{defaultValue:r||1,label:"Number of users (peak concurrency)",name:"userCount"}),E.jsx(Fl,{defaultValue:t||1,label:"Ramp Up (users started/second)",name:"spawnRate"}),E.jsx(Au,{size:"large",type:"submit",variant:"contained",children:"Update Swarm"})]})})]})}const Ule=({swarm:{spawnRate:e,userCount:t}})=>({spawnRate:e,userCount:t}),jle=Xn(Ule)(Wle);function Yle(){const[e,t]=O.useState(!1);return E.jsxs(E.Fragment,{children:[E.jsx(Au,{color:"secondary",onClick:()=>t(!0),type:"button",variant:"contained",children:"Edit"}),E.jsx(c2,{onClose:()=>t(!1),open:e,children:E.jsx(jle,{onSubmit:()=>t(!1)})})]})}var C2={},qle=uv;Object.defineProperty(C2,"__esModule",{value:!0});var T2=C2.default=void 0,Xle=qle(cv()),Zle=E,Kle=(0,Xle.default)((0,Zle.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");T2=C2.default=Kle;function FC({label:e,name:t,options:r,multiple:n=!1,defaultValue:i,sx:a}){return E.jsxs(C4,{sx:a,children:[E.jsx(I4,{htmlFor:t,shrink:!0,children:e}),E.jsx(F4,{defaultValue:i||n&&r||r[0],id:t,label:e,multiple:n,name:t,native:!0,children:r.map((o,s)=>E.jsx("option",{value:o,children:o},`option-${o}-${s}`))})]})}const QR=e=>e.defaultValue!==null&&typeof e.defaultValue!="boolean";function Qle({label:e,defaultValue:t,choices:r,helpText:n,isSecret:i}){const a=zle(e),o=n?`${a} (${n})`:a;return r?E.jsx(FC,{defaultValue:t,label:o,name:e,options:r,sx:{width:"100%"}}):E.jsx(Fl,{defaultValue:t,label:o,name:e,sx:{width:"100%"},type:i?"password":"text"})}function Jle({extraOptions:e}){const t=O.useMemo(()=>Object.entries(e).reduce((n,[i,a])=>QR(a)?[...n,{label:i,...a}]:n,[]),[e]),r=O.useMemo(()=>Object.keys(e).reduce((n,i)=>QR(e[i])?n:[...n,i],[]),[e]);return E.jsxs(p4,{children:[E.jsx(g4,{expandIcon:E.jsx(T2,{}),children:E.jsx(Xe,{children:"Custom parameters"})}),E.jsx(v4,{children:E.jsxs(ft,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[t.map((n,i)=>E.jsx(Qle,{...n},`valid-parameter-${i}`)),E.jsx(ft,{children:r&&E.jsxs(E.Fragment,{children:[E.jsx(Xe,{children:"The following custom parameters can't be set in the Web UI, because it is a boolean or None type:"}),E.jsx("ul",{children:r.map((n,i)=>E.jsx("li",{children:E.jsx(Xe,{children:n})},`invalid-parameter-${i}`))})]})})]})})]})}function hv(e,{payload:t}){return Lle(e,t)}const eue=Gl(window.templateArgs),yG=ui({name:"swarm",initialState:eue,reducers:{setSwarm:hv}}),xG=yG.actions,tue=yG.reducer;function rue({availableShapeClasses:e,availableUserClasses:t,host:r,extraOptions:n,isShape:i,numUsers:a,overrideHostWarning:o,runTime:s,setSwarm:l,showUserclassPicker:u,spawnRate:c}){const[f]=mG(),d=h=>{l({state:En.RUNNING,host:h.host||r}),f(h)};return E.jsxs(Nf,{maxWidth:"md",sx:{my:2},children:[E.jsx(Xe,{component:"h2",noWrap:!0,variant:"h6",children:"Start new load test"}),E.jsx(aG,{onSubmit:d,children:E.jsxs(ft,{sx:{my:2,display:"flex",flexDirection:"column",rowGap:4},children:[u&&E.jsxs(E.Fragment,{children:[E.jsx(FC,{label:"User Classes",multiple:!0,name:"userClasses",options:t}),E.jsx(FC,{label:"Shape Class",name:"shapeClass",options:e})]}),E.jsx(Fl,{defaultValue:i&&"-"||a||1,disabled:!!i,label:"Number of users (peak concurrency)",name:"userCount"}),E.jsx(Fl,{defaultValue:i&&"-"||c||1,disabled:!!i,label:"Ramp Up (users started/second)",name:"spawnRate",title:"Disabled for tests using LoadTestShape class"}),E.jsx(Fl,{defaultValue:r,label:`Host ${o?"(setting this will override the host for the User classes)":""}`,name:"host",title:"Disabled for tests using LoadTestShape class"}),E.jsxs(p4,{children:[E.jsx(g4,{expandIcon:E.jsx(T2,{}),children:E.jsx(Xe,{children:"Advanced options"})}),E.jsx(v4,{children:E.jsx(Fl,{defaultValue:s,label:"Run time (e.g. 20, 20s, 3m, 2h, 1h20m, 3h30m10s, etc.)",name:"runTime",sx:{width:"100%"}})})]}),!Rle(n)&&E.jsx(Jle,{extraOptions:n}),E.jsx(Au,{size:"large",type:"submit",variant:"contained",children:"Start Swarm"})]})})]})}const nue=({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}),iue={setSwarm:xG.setSwarm},SG=Xn(nue,iue)(rue);function aue(){const[e,t]=O.useState(!1);return E.jsxs(E.Fragment,{children:[E.jsx(Au,{color:"success",onClick:()=>t(!0),type:"button",variant:"contained",children:"New"}),E.jsx(c2,{onClose:()=>t(!1),open:e,children:E.jsx(SG,{})})]})}function oue(){const e=()=>{fetch("stats/reset")};return E.jsx(Au,{color:"warning",onClick:e,type:"button",variant:"contained",children:"Reset"})}function sue(){const[e,t]=O.useState(!1);O.useEffect(()=>{t(!1)},[]);const r=()=>{fetch("stop"),t(!0)};return E.jsx(Au,{color:"error",disabled:e,onClick:r,type:"button",variant:"contained",children:e?"Loading":"Stop"})}function lue(){const e=Vs(({swarm:t})=>t.state);return e===En.READY?null:e===En.STOPPED?E.jsx(aue,{}):E.jsxs(ft,{sx:{display:"flex",columnGap:2},children:[E.jsx(Yle,{}),E.jsx(sue,{}),E.jsx(oue,{})]})}function uue(){return E.jsx(ate,{position:"static",children:E.jsx(Nf,{maxWidth:"xl",children:E.jsxs(Nae,{sx:{display:"flex",justifyContent:"space-between"},children:[E.jsxs(li,{color:"inherit",href:"/",sx:{display:"flex",alignItems:"center",columnGap:2},underline:"none",children:[E.jsx("img",{height:"52",src:"/assets/logo.png",width:"52"}),E.jsx(Xe,{component:"h1",noWrap:!0,sx:{fontWeight:700,display:"flex",alignItems:"center"},variant:"h3",children:"Locust"})]}),E.jsxs(ft,{sx:{display:"flex",columnGap:6},children:[E.jsx(Nse,{}),E.jsx(lue,{}),E.jsx(Lse,{})]})]})})})}function cue({children:e}){return E.jsxs(E.Fragment,{children:[E.jsx(uue,{}),E.jsx("main",{children:e}),E.jsx(Poe,{})]})}function rh(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 fue={},bG=ui({name:"notification",initialState:fue,reducers:{setNotification:hv}}),_G=bG.actions,due=bG.reducer;function hue(e,{key:t}){const r=$l(_G.setNotification),n=Vs(({url:{query:a}})=>a&&a.tab),i=`${t}Notification`;O.useEffect(()=>{mc(e)>0&&mc(e)(localStorage[i]||0)&&(!n||n!==t)&&(r({[t]:!0}),localStorage[i]=mc(e))},[e])}const pue={logs:[]},wG=ui({name:"logViewer",initialState:pue,reducers:{setLogs:hv}}),vue=wG.actions,gue=wG.reducer;function mue(){const e=Vs(({swarm:a})=>a),t=$l(vue.setLogs),{data:r,refetch:n}=Hle(),i=r?r.logs:[];return rh(n,5e3,{shouldRunInterval:e.state===En.SPAWNING||e.state==En.RUNNING}),hue(i,{key:"logViewer"}),O.useEffect(()=>{t({logs:i})},[i]),i}var A2={},yue=uv;Object.defineProperty(A2,"__esModule",{value:!0});var CG=A2.default=void 0,xue=yue(cv()),JR=E,Sue=(0,xue.default)([(0,JR.jsx)("circle",{cx:"12",cy:"19",r:"2"},"0"),(0,JR.jsx)("path",{d:"M10 3h4v12h-4z"},"1")],"PriorityHigh");CG=A2.default=Sue;function bue(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const _ue=/[ \t\n\f\r]/g;function wue(e){return typeof e=="object"?e.type==="text"?eL(e.value):!1:eL(e)}function eL(e){return e.replace(_ue,"")===""}class pv{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}}pv.prototype.property={};pv.prototype.normal={};pv.prototype.space=null;function TG(e,t){const r={},n={};let i=-1;for(;++i4&&r.slice(0,4)==="data"&&Iue.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(rL,Rue);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!rL.test(a)){let o=a.replace(Pue,Due);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=M2}return new i(n,t)}function Due(e){return"-"+e.toLowerCase()}function Rue(e){return e.charAt(1).toUpperCase()}const Lue={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"},Eue=TG([IG,MG,DG,RG,Aue],"html"),LG=TG([IG,MG,DG,RG,Mue],"svg");function Oue(e){return e.join(" ").trim()}var I2={exports:{}},nL=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Nue=/\n/g,zue=/^\s*/,Bue=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Fue=/^:\s*/,$ue=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Vue=/^[;\s]*/,Gue=/^\s+|\s+$/g,Hue=` +`,iL="/",aL="*",kl="",Wue="comment",Uue="declaration",jue=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(Nue);v&&(r+=v.length);var g=p.lastIndexOf(Hue);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(zue)}function c(p){var v;for(p=p||[];v=f();)v!==!1&&p.push(v);return p}function f(){var p=a();if(!(iL!=e.charAt(0)||aL!=e.charAt(1))){for(var v=2;kl!=e.charAt(v)&&(aL!=e.charAt(v)||iL!=e.charAt(v+1));)++v;if(v+=2,kl===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:Wue,comment:g})}}function d(){var p=a(),v=l(Bue);if(v){if(f(),!l(Fue))return s("property missing ':'");var g=l($ue),m=p({type:Uue,property:oL(v[0].replace(nL,kl)),value:g?oL(g[0].replace(nL,kl)):kl});return l(Vue),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 oL(e){return e?e.replace(Gue,kl):kl}var Yue=jue;function EG(e,t){var r=null;if(!e||typeof e!="string")return r;for(var n,i=Yue(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 Zue(e){const t=P2(e),r=OG(e);if(t&&r)return{start:t,end:r}}function Lh(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?sL(e.position):"start"in e||"end"in e?sL(e):"line"in e||"column"in e?GC(e):""}function GC(e){return lL(e&&e.line)+":"+lL(e&&e.column)}function sL(e){return GC(e&&e.start)+"-"+GC(e&&e.end)}function lL(e){return e&&typeof e=="number"?e:1}class dn 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=Lh(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}}dn.prototype.file="";dn.prototype.name="";dn.prototype.reason="";dn.prototype.message="";dn.prototype.stack="";dn.prototype.column=void 0;dn.prototype.line=void 0;dn.prototype.ancestors=void 0;dn.prototype.cause=void 0;dn.prototype.fatal=void 0;dn.prototype.place=void 0;dn.prototype.ruleId=void 0;dn.prototype.source=void 0;const k2={}.hasOwnProperty,Kue=new Map,Que=/[A-Z]/g,Jue=/-([a-z])/g,ece=new Set(["table","tbody","thead","tfoot","tr"]),tce=new Set(["td","th"]);function rce(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=ice(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=nce(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"?LG:Eue,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=zG(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function zG(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=LG,e.schema=i),e.ancestors.push(t);let a=ace(e,t);const o=oce(e,e.ancestors);let s=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(a&&ece.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!wue(l):!0})),k2.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 nce(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 ice(e,t){return r;function r(n,i,a,o){const s=Array.isArray(a.children),l=P2(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 ace(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:Kue;for(;++n-1&&e.test(String.fromCharCode(r))}}const yce={'"':"quot","&":"amp","<":"lt",">":"gt"};function xce(e){return e.replace(/["&<>]/g,t);function t(r){return"&"+yce[r]+";"}}function Sce(e,t){const r=xce(Pu(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 Pu(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 bce={};function _ce(e,t){const r=t||bce,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return FG(e,n,i)}function FG(e,t,r){if(wce(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 uL(e.children,t,r)}return Array.isArray(e)?uL(e,t,r):""}function uL(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?(Ea(e,e.length,0,t),e):t}const fL={}.hasOwnProperty;function Cce(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 Zc(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 Dce(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 hL(e){if(e===null||An(e)||mce(e))return 1;if(gce(e))return 2}function R2(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);pL(f,-l),pL(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=ci(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=ci(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),u=ci(u,R2(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=ci(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=ci(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,Ea(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||Ve(b)?e.check(vL,v,S)(b):(e.enter("codeFlowValue"),x(b))}function x(b){return b===null||Ve(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(R){return b.enter("lineEnding"),b.consume(R),b.exit("lineEnding"),M}function M(R){return b.enter("codeFencedFence"),mt(R)?Nt(b,I,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):I(R)}function I(R){return R===s?(b.enter("codeFencedFenceSequence"),P(R)):C(R)}function P(R){return R===s?(A++,b.consume(R),P):A>=o?(b.exit("codeFencedFenceSequence"),mt(R)?Nt(b,k,"whitespace")(R):k(R)):C(R)}function k(R){return R===null||Ve(R)?(b.exit("codeFencedFence"),w(R)):C(R)}}}function Hce(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 jS={name:"codeIndented",tokenize:Uce},Wce={tokenize:jce,partial:!0};function Uce(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):Ve(u)?e.attempt(Wce,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||Ve(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function jce(e,t,r){const n=this;return i;function i(o){return n.parser.lazy[n.now().line]?r(o):Ve(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):Ve(o)?i(o):r(o)}}const Yce={name:"codeText",tokenize:Zce,resolve:qce,previous:Xce};function qce(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 UG(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||HC(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||Ve(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||An(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):Ve(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||Ve(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 YG(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):Ve(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||Ve(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 Eh(e,t){let r;return n;function n(i){return Ve(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 nfe={name:"definition",tokenize:afe},ife={tokenize:ofe,partial:!0};function afe(e,t,r){const n=this;let i;return a;function a(h){return e.enter("definition"),o(h)}function o(h){return jG.call(n,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=Zc(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 An(h)?Eh(e,u)(h):u(h)}function u(h){return UG(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(ife,f,f)(h)}function f(h){return mt(h)?Nt(e,d,"whitespace")(h):d(h)}function d(h){return h===null||Ve(h)?(e.exit("definition"),n.parser.defined.push(i),t(h)):r(h)}}function ofe(e,t,r){return n;function n(s){return An(s)?Eh(e,i)(s):r(s)}function i(s){return YG(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||Ve(s)?t(s):r(s)}}const sfe={name:"hardBreakEscape",tokenize:lfe};function lfe(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Ve(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const ufe={name:"headingAtx",tokenize:ffe,resolve:cfe};function cfe(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"},Ea(e,n,r-n+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function ffe(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||An(c)?(e.exit("atxHeadingSequence"),s(c)):r(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||Ve(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||An(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const dfe=["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"],mL=["pre","script","style","textarea"],hfe={name:"htmlFlow",tokenize:mfe,resolveTo:gfe,concrete:!0},pfe={tokenize:xfe,partial:!0},vfe={tokenize:yfe,partial:!0};function gfe(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 mfe(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:L):pa(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):pa(B)?(e.consume(B),i=4,n.interrupt?t:L):r(B)}function h(B){return B===45?(e.consume(B),n.interrupt?t:L):r(B)}function p(B){const j="CDATA[";return B===j.charCodeAt(s++)?(e.consume(B),s===j.length?n.interrupt?t:I:p):r(B)}function v(B){return pa(B)?(e.consume(B),o=String.fromCharCode(B),g):r(B)}function g(B){if(B===null||B===47||B===62||An(B)){const j=B===47,X=o.toLowerCase();return!j&&!a&&mL.includes(X)?(i=1,n.interrupt?t(B):I(B)):dfe.includes(o.toLowerCase())?(i=6,j?(e.consume(B),m):n.interrupt?t(B):I(B)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(B):a?y(B):x(B))}return B===45||Bn(B)?(e.consume(B),o+=String.fromCharCode(B),g):r(B)}function m(B){return B===62?(e.consume(B),n.interrupt?t:I):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||pa(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||Bn(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||Ve(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||An(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||Ve(B)?I(B):mt(B)?(e.consume(B),M):r(B)}function I(B){return B===45&&i===2?(e.consume(B),z):B===60&&i===1?(e.consume(B),$):B===62&&i===4?(e.consume(B),G):B===63&&i===3?(e.consume(B),L):B===93&&i===5?(e.consume(B),V):Ve(B)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(pfe,U,P)(B)):B===null||Ve(B)?(e.exit("htmlFlowData"),P(B)):(e.consume(B),I)}function P(B){return e.check(vfe,k,U)(B)}function k(B){return e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),R}function R(B){return B===null||Ve(B)?P(B):(e.enter("htmlFlowData"),I(B))}function z(B){return B===45?(e.consume(B),L):I(B)}function $(B){return B===47?(e.consume(B),o="",N):I(B)}function N(B){if(B===62){const j=o.toLowerCase();return mL.includes(j)?(e.consume(B),G):I(B)}return pa(B)&&o.length<8?(e.consume(B),o+=String.fromCharCode(B),N):I(B)}function V(B){return B===93?(e.consume(B),L):I(B)}function L(B){return B===62?(e.consume(B),G):B===45&&i===2?(e.consume(B),L):I(B)}function G(B){return B===null||Ve(B)?(e.exit("htmlFlowData"),U(B)):(e.consume(B),G)}function U(B){return e.exit("htmlFlow"),t(B)}}function yfe(e,t,r){const n=this;return i;function i(o){return Ve(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 xfe(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(ax,t,r)}}const Sfe={name:"htmlText",tokenize:bfe};function bfe(e,t,r){const n=this;let i,a,o;return s;function s(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),l}function l(L){return L===33?(e.consume(L),u):L===47?(e.consume(L),_):L===63?(e.consume(L),x):pa(L)?(e.consume(L),C):r(L)}function u(L){return L===45?(e.consume(L),c):L===91?(e.consume(L),a=0,p):pa(L)?(e.consume(L),y):r(L)}function c(L){return L===45?(e.consume(L),h):r(L)}function f(L){return L===null?r(L):L===45?(e.consume(L),d):Ve(L)?(o=f,$(L)):(e.consume(L),f)}function d(L){return L===45?(e.consume(L),h):f(L)}function h(L){return L===62?z(L):L===45?d(L):f(L)}function p(L){const G="CDATA[";return L===G.charCodeAt(a++)?(e.consume(L),a===G.length?v:p):r(L)}function v(L){return L===null?r(L):L===93?(e.consume(L),g):Ve(L)?(o=v,$(L)):(e.consume(L),v)}function g(L){return L===93?(e.consume(L),m):v(L)}function m(L){return L===62?z(L):L===93?(e.consume(L),m):v(L)}function y(L){return L===null||L===62?z(L):Ve(L)?(o=y,$(L)):(e.consume(L),y)}function x(L){return L===null?r(L):L===63?(e.consume(L),S):Ve(L)?(o=x,$(L)):(e.consume(L),x)}function S(L){return L===62?z(L):x(L)}function _(L){return pa(L)?(e.consume(L),b):r(L)}function b(L){return L===45||Bn(L)?(e.consume(L),b):w(L)}function w(L){return Ve(L)?(o=w,$(L)):mt(L)?(e.consume(L),w):z(L)}function C(L){return L===45||Bn(L)?(e.consume(L),C):L===47||L===62||An(L)?A(L):r(L)}function A(L){return L===47?(e.consume(L),z):L===58||L===95||pa(L)?(e.consume(L),T):Ve(L)?(o=A,$(L)):mt(L)?(e.consume(L),A):z(L)}function T(L){return L===45||L===46||L===58||L===95||Bn(L)?(e.consume(L),T):M(L)}function M(L){return L===61?(e.consume(L),I):Ve(L)?(o=M,$(L)):mt(L)?(e.consume(L),M):A(L)}function I(L){return L===null||L===60||L===61||L===62||L===96?r(L):L===34||L===39?(e.consume(L),i=L,P):Ve(L)?(o=I,$(L)):mt(L)?(e.consume(L),I):(e.consume(L),k)}function P(L){return L===i?(e.consume(L),i=void 0,R):L===null?r(L):Ve(L)?(o=P,$(L)):(e.consume(L),P)}function k(L){return L===null||L===34||L===39||L===60||L===61||L===96?r(L):L===47||L===62||An(L)?A(L):(e.consume(L),k)}function R(L){return L===47||L===62||An(L)?A(L):r(L)}function z(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),t):r(L)}function $(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),N}function N(L){return mt(L)?Nt(e,V,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):V(L)}function V(L){return e.enter("htmlTextData"),o(L)}}const L2={name:"labelEnd",tokenize:Mfe,resolveTo:Afe,resolveAll:Tfe},_fe={tokenize:Ife},wfe={tokenize:Pfe},Cfe={tokenize:kfe};function Tfe(e){let t=-1;for(;++t=3&&(u===null||Ve(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 vn={name:"list",tokenize:Ffe,continuation:{tokenize:$fe},exit:Gfe},zfe={tokenize:Hfe,partial:!0},Bfe={tokenize:Vfe,partial:!0};function Ffe(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:WC(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(Om,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 WC(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(ax,n.interrupt?r:c,e.attempt(zfe,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 $fe(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(ax,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(Bfe,t,o)(s))}function o(s){return n.containerState._closeFlow=!0,n.interrupt=void 0,Nt(e,e.attempt(vn,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function Vfe(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 Gfe(e){e.exit(this.containerState.type)}function Hfe(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 yL={name:"setextUnderline",tokenize:Ufe,resolveTo:Wfe};function Wfe(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 Ufe(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||Ve(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const jfe={tokenize:Yfe};function Yfe(e){const t=this,r=e.attempt(ax,n,e.attempt(this.parser.constructs.flowInitial,i,Nt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Qce,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 qfe={resolveAll:XG()},Xfe=qG("string"),Zfe=qG("text");function qG(e){return{tokenize:t,resolveAll:XG(e==="text"?Kfe: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 ede(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(le.position={start:Ro(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:Ro(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},he=-1;++he1?"-"+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 bde(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 _de(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function qG(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 wde(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return qG(e,t);const i={src:Pu(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 Cde(e,t){const r={src:Pu(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 Tde(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 Ade(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return qG(e,t);const i={href:Pu(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 Mde(e,t){const r={href:Pu(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 Ide(e,t,r){const n=e.all(t),i=r?Pde(r):XG(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]||SL).call(Re,void 0,Vt[0])}for(le.position={start:Ro(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:Ro(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},he=-1;++he1?"-"+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 Mde(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 Ide(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function QG(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 Pde(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return QG(e,t);const i={src:Pu(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 kde(e,t){const r={src:Pu(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 Dde(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 Rde(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return QG(e,t);const i={href:Pu(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 Lde(e,t){const r={href:Pu(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 Ede(e,t,r){const n=e.all(t),i=r?Ode(r):JG(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 kde(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=I2(t.children[1]),l=DG(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 Ode(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(bL(t.slice(i),i>0,!1)),a.join("")}function bL(e,t,r){let n=0,i=e.length;if(t){let a=e.codePointAt(n);for(;a===xL||a===SL;)n++,a=e.codePointAt(n)}if(r){let a=e.codePointAt(i-1);for(;a===xL||a===SL;)i--,a=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}function Bde(e,t){const r={type:"text",value:zde(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function Fde(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const $de={blockquote:vde,break:gde,code:mde,delete:yde,emphasis:xde,footnoteReference:Sde,heading:bde,html:_de,imageReference:wde,image:Cde,inlineCode:Tde,linkReference:Ade,link:Mde,listItem:Ide,list:kde,paragraph:Dde,root:Rde,strong:Lde,table:Ede,tableCell:Nde,tableRow:Ode,text:Bde,thematicBreak:Fde,toml:cg,yaml:cg,definition:cg,footnoteDefinition:cg};function cg(){}const ZG=-1,ox=0,Uy=1,jy=2,L2=3,E2=4,O2=5,N2=6,KG=7,QG=8,_L=typeof self=="object"?self:globalThis,Vde=(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 ox:case ZG:return r(o,i);case Uy:{const s=r([],i);for(const l of o)s.push(n(l));return s}case jy:{const s=r({},i);for(const[l,u]of o)s[n(l)]=n(u);return s}case L2:return r(new Date(o),i);case E2:{const{source:s,flags:l}=o;return r(new RegExp(s,l),i)}case O2:{const s=r(new Map,i);for(const[l,u]of o)s.set(n(l),n(u));return s}case N2:{const s=r(new Set,i);for(const l of o)s.add(n(l));return s}case KG:{const{name:s,message:l}=o;return r(new _L[s](l),i)}case QG:return r(BigInt(o),i);case"BigInt":return r(Object(BigInt(o)),i)}return r(new _L[a](o),i)};return n},wL=e=>Vde(new Map,e)(0),Yu="",{toString:Gde}={},{keys:Hde}=Object,xd=e=>{const t=typeof e;if(t!=="object"||!e)return[ox,t];const r=Gde.call(e).slice(8,-1);switch(r){case"Array":return[Uy,Yu];case"Object":return[jy,Yu];case"Date":return[L2,Yu];case"RegExp":return[E2,Yu];case"Map":return[O2,Yu];case"Set":return[N2,Yu]}return r.includes("Array")?[Uy,r]:r.includes("Error")?[KG,r]:[jy,r]},fg=([e,t])=>e===ox&&(t==="function"||t==="symbol"),Wde=(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]=xd(o);switch(s){case ox:{let c=o;switch(l){case"bigint":s=QG,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([ZG],o)}return i([s,c],o)}case Uy:{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 jy:{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 Hde(o))(e||!fg(xd(o[d])))&&c.push([a(d),a(o[d])]);return f}case L2:return i([s,o.toISOString()],o);case E2:{const{source:c,flags:f}=o;return i([s,{source:c,flags:f}],o)}case O2:{const c=[],f=i([s,c],o);for(const[d,h]of o)(e||!(fg(xd(d))||fg(xd(h))))&&c.push([a(d),a(h)]);return f}case N2:{const c=[],f=i([s,c],o);for(const d of o)(e||!fg(xd(d)))&&c.push(a(d));return f}}const{message:u}=o;return i([s,{name:l,message:u}],o)};return a},CL=(e,{json:t,lossy:r}={})=>{const n=[];return Wde(!(t||r),!!t,new Map,n)(e),n},Yy=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?wL(CL(e,t)):structuredClone(e):(e,t)=>wL(CL(e,t));function Ude(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 jde(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Yde(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||Ude,n=e.options.footnoteBackLabel||jde,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:{...Yy(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 Ode(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let n=-1;for(;!t&&++n1}function Nde(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=P2(t.children[1]),l=OG(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 Vde(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(wL(t.slice(i),i>0,!1)),a.join("")}function wL(e,t,r){let n=0,i=e.length;if(t){let a=e.codePointAt(n);for(;a===bL||a===_L;)n++,a=e.codePointAt(n)}if(r){let a=e.codePointAt(i-1);for(;a===bL||a===_L;)i--,a=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}function Wde(e,t){const r={type:"text",value:Hde(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function Ude(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const jde={blockquote:bde,break:_de,code:wde,delete:Cde,emphasis:Tde,footnoteReference:Ade,heading:Mde,html:Ide,imageReference:Pde,image:kde,inlineCode:Dde,linkReference:Rde,link:Lde,listItem:Ede,list:Nde,paragraph:zde,root:Bde,strong:Fde,table:$de,tableCell:Gde,tableRow:Vde,text:Wde,thematicBreak:Ude,toml:dg,yaml:dg,definition:dg,footnoteDefinition:dg};function dg(){}const eH=-1,ox=0,Yy=1,qy=2,E2=3,O2=4,N2=5,z2=6,tH=7,rH=8,CL=typeof self=="object"?self:globalThis,Yde=(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 ox:case eH:return r(o,i);case Yy:{const s=r([],i);for(const l of o)s.push(n(l));return s}case qy:{const s=r({},i);for(const[l,u]of o)s[n(l)]=n(u);return s}case E2:return r(new Date(o),i);case O2:{const{source:s,flags:l}=o;return r(new RegExp(s,l),i)}case N2:{const s=r(new Map,i);for(const[l,u]of o)s.set(n(l),n(u));return s}case z2:{const s=r(new Set,i);for(const l of o)s.add(n(l));return s}case tH:{const{name:s,message:l}=o;return r(new CL[s](l),i)}case rH:return r(BigInt(o),i);case"BigInt":return r(Object(BigInt(o)),i)}return r(new CL[a](o),i)};return n},TL=e=>Yde(new Map,e)(0),Yu="",{toString:qde}={},{keys:Xde}=Object,xd=e=>{const t=typeof e;if(t!=="object"||!e)return[ox,t];const r=qde.call(e).slice(8,-1);switch(r){case"Array":return[Yy,Yu];case"Object":return[qy,Yu];case"Date":return[E2,Yu];case"RegExp":return[O2,Yu];case"Map":return[N2,Yu];case"Set":return[z2,Yu]}return r.includes("Array")?[Yy,r]:r.includes("Error")?[tH,r]:[qy,r]},hg=([e,t])=>e===ox&&(t==="function"||t==="symbol"),Zde=(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]=xd(o);switch(s){case ox:{let c=o;switch(l){case"bigint":s=rH,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([eH],o)}return i([s,c],o)}case Yy:{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 qy:{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 Xde(o))(e||!hg(xd(o[d])))&&c.push([a(d),a(o[d])]);return f}case E2:return i([s,o.toISOString()],o);case O2:{const{source:c,flags:f}=o;return i([s,{source:c,flags:f}],o)}case N2:{const c=[],f=i([s,c],o);for(const[d,h]of o)(e||!(hg(xd(d))||hg(xd(h))))&&c.push([a(d),a(h)]);return f}case z2:{const c=[],f=i([s,c],o);for(const d of o)(e||!hg(xd(d)))&&c.push(a(d));return f}}const{message:u}=o;return i([s,{name:l,message:u}],o)};return a},AL=(e,{json:t,lossy:r}={})=>{const n=[];return Zde(!(t||r),!!t,new Map,n)(e),n},Xy=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?TL(AL(e,t)):structuredClone(e):(e,t)=>TL(AL(e,t));function Kde(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 Qde(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Jde(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||Kde,n=e.options.footnoteBackLabel||Qde,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:{...Xy(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 JG=function(e){if(e==null)return Kde;if(typeof e=="function")return sx(e);if(typeof e=="object")return Array.isArray(e)?qde(e):Xde(e);if(typeof e=="string")return Zde(e);throw new Error("Expected function, string, or object as test")};function qde(e){const t=[];let r=-1;for(;++r":""))+")"})}return d;function d(){let h=eH,p,v,g;if((!t||a(l,u,c[c.length-1]||void 0))&&(h=rhe(r(l,c)),h[0]===TL))return h;if("children"in l&&l.children){const m=l;if(m.children&&h[0]!==ehe)for(v=(n?m.children.length:-1)+o,g=c.concat(m);v>-1&&v":""))+")"})}return d;function d(){let h=iH,p,v,g;if((!t||a(l,u,c[c.length-1]||void 0))&&(h=lhe(r(l,c)),h[0]===ML))return h;if("children"in l&&l.children){const m=l;if(m.children&&h[0]!==ohe)for(v=(n?m.children.length:-1)+o,g=c.concat(m);v>-1&&v0&&r.push({type:"text",value:` -`}),r}function AL(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function ML(e,t){const r=ihe(e,t),n=r.one(e,void 0),i=Yde(r),a=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` -`},i),a}function uhe(e,t){return e&&"run"in e?async function(r,n){const i=ML(r,t);await e.run(i,n)}:function(r){return ML(r,t||e)}}function IL(e){if(e)throw e}var Em=Object.prototype.hasOwnProperty,rH=Object.prototype.toString,PL=Object.defineProperty,kL=Object.getOwnPropertyDescriptor,DL=function(t){return typeof Array.isArray=="function"?Array.isArray(t):rH.call(t)==="[object Array]"},RL=function(t){if(!t||rH.call(t)!=="[object Object]")return!1;var r=Em.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&Em.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;var i;for(i in t);return typeof i>"u"||Em.call(t,i)},LL=function(t,r){PL&&r.name==="__proto__"?PL(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},EL=function(t,r){if(r==="__proto__")if(Em.call(t,r)){if(kL)return kL(t,r).value}else return;return t[r]},che=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 la={basename:hhe,dirname:phe,extname:vhe,join:ghe,sep:"/"};function hhe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');hv(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 phe(e){if(hv(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 vhe(e){hv(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 ghe(...e){let t=-1,r;for(;++t0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function yhe(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 hv(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const xhe={cwd:She};function She(){return"/"}function qC(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function bhe(e){if(typeof e=="string")e=new URL(e);else if(!qC(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 _he(e)}function _he(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];YC(v)&&YC(h)&&(h=qS(!0,v,h)),n[d]=[u,h,...p]}}}}const Ahe=new z2().freeze();function QS(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function JS(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function eb(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 NL(e){if(!YC(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function zL(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function dg(e){return Mhe(e)?e:new nH(e)}function Mhe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Ihe(e){return typeof e=="string"||Phe(e)}function Phe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const BL={}.hasOwnProperty,khe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",FL=[],$L={allowDangerousHtml:!0},Dhe=/^(https?|ircs?|mailto|xmpp)$/i,Rhe=[{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 Lhe(e){const t=e.allowedElements,r=e.allowElement,n=e.children||"",i=e.className,a=e.components,o=e.disallowedElements,s=e.rehypePlugins||FL,l=e.remarkPlugins||FL,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...$L}:$L,c=e.skipHtml,f=e.unwrapDisallowed,d=e.urlTransform||Ehe,h=Ahe().use(pde).use(l).use(uhe,u).use(s),p=new nH;typeof n=="string"&&(p.value=n);for(const y of Rhe)Object.hasOwn(e,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+khe+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]}),tH(g,m),Zue(g,{Fragment:E.Fragment,components:a,ignoreInvalidStyle:!0,jsx:E.jsx,jsxs:E.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 US)if(BL.call(US,_)&&BL.call(y.properties,_)){const b=y.properties[_],w=US[_];(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 Ehe(e){return pce(e,Dhe)}const Om=(e,t=0)=>{const r=Math.pow(10,t);return Math.round(e*r)/r};function Ohe({content:e,formatter:t,round:r,markdown:n}){return t?t(e):r?Om(e,r):n?E.jsx(Lhe,{skipHtml:!1,children:e}):e}function Ff({rows:e,structure:t,onTableHeadClick:r,currentSortField:n}){return E.jsx(xae,{component:U1,children:E.jsxs(Qie,{children:[E.jsx(Aae,{children:E.jsx(dR,{children:t.map(({title:i,key:a})=>E.jsx(lR,{"data-sortkey":a,onClick:r,sx:{cursor:r?"pointer":"default",color:n===a?"primary.main":"text.primary"},children:i},`table-head-${a}`))})}),E.jsx(oae,{children:e.map((i,a)=>E.jsx(dR,{children:t.map(({key:o,...s},l)=>E.jsx(lR,{children:E.jsx(Ohe,{content:i[o],...s})},`table-row=${l}`))},`${i.name}-${a}`))})]})})}function Nhe({rows:e,tableStructure:t}){return t?E.jsx(Ff,{rows:e,structure:t}):null}const zhe=({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:pG(a),...o})):null,rows:i?i.data:[]}},Bhe=Xn(zhe)(Nhe),Fhe=[{key:"count",title:"# occurrences"},{key:"traceback",title:"Traceback"}];function iH({exceptions:e}){return E.jsx(Ff,{rows:e,structure:Fhe})}const $he=({ui:{exceptions:e}})=>({exceptions:e}),Vhe=Xn($he)(iH);function Ghe(e,t){const r=t?-1:1;return function(n,i){const a=n[e],o=i[e];return ao?r*1:0}}function B2(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(Ghe(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,i(e);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,sortedStats:n,currentSortField:s.current}}const Hhe=[{key:"occurrences",title:"# Failures"},{key:"method",title:"Method"},{key:"name",title:"Name"},{key:"error",title:"Message",markdown:!0}];function aH({errors:e}){const{onTableHeadClick:t,sortedStats:r,currentSortField:n}=B2(e);return E.jsx(Ff,{currentSortField:n,onTableHeadClick:t,rows:r,structure:Hhe})}const Whe=({ui:{errors:e}})=>({errors:e}),Uhe=Xn(Whe)(aH);function jhe(){const e=Vs(({logViewer:{logs:t}})=>t);return E.jsxs(ht,{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"Logs"}),E.jsx("ul",{children:e.map((t,r)=>E.jsx("li",{children:t},`log-${r}`))})]})}function Yhe({extendedCsvFiles:e,statsHistoryEnabled:t}){const r=Vs(({theme:{isDarkMode:n}})=>n);return E.jsxs(I4,{sx:{display:"flex",flexDirection:"column"},children:[E.jsx(ju,{children:E.jsx(li,{href:"/stats/requests/csv",children:"Download requests CSV"})}),t&&E.jsx(ju,{children:E.jsx(li,{href:"/stats/requests_full_history/csv",children:"Download full request statistics history CSV"})}),E.jsx(ju,{children:E.jsx(li,{href:"/stats/failures/csv",children:"Download failures CSV"})}),E.jsx(ju,{children:E.jsx(li,{href:"/exceptions/csv",children:"Download exceptions CSV"})}),E.jsx(ju,{children:E.jsx(li,{href:`/stats/report?theme=${r?Ma.DARK:Ma.LIGHT}`,target:"_blank",children:"Download Report"})}),e&&e.map(({href:n,title:i},a)=>E.jsx(ju,{children:E.jsx(li,{href:n,children:i})},`extended-csv-${a}`))]})}const qhe=({swarm:{extendedCsvFiles:e,statsHistoryEnabled:t}})=>({extendedCsvFiles:e,statsHistoryEnabled:t}),Xhe=Xn(qhe)(Yhe),Zhe=[{key:"method",title:"Type"},{key:"name",title:"Name"},{key:"numRequests",title:"# Requests"},{key:"numFailures",title:"# Fails"},{key:"medianResponseTime",title:"Median (ms)",round:2},{key:"ninetiethResponseTime",title:"90%ile (ms)"},{key:"ninetyNinthResponseTime",title:"99%ile (ms)"},{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 oH({stats:e}){const{onTableHeadClick:t,sortedStats:r,currentSortField:n}=B2(e,{hasTotalRow:!0});return E.jsx(Ff,{currentSortField:n,onTableHeadClick:t,rows:r,structure:Zhe})}const Khe=({ui:{stats:e}})=>({stats:e}),Qhe=Xn(Khe)(oH);/*! ***************************************************************************** +`}),r}function IL(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function PL(e,t){const r=che(e,t),n=r.one(e,void 0),i=Jde(r),a=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` +`},i),a}function vhe(e,t){return e&&"run"in e?async function(r,n){const i=PL(r,t);await e.run(i,n)}:function(r){return PL(r,t||e)}}function kL(e){if(e)throw e}var Nm=Object.prototype.hasOwnProperty,oH=Object.prototype.toString,DL=Object.defineProperty,RL=Object.getOwnPropertyDescriptor,LL=function(t){return typeof Array.isArray=="function"?Array.isArray(t):oH.call(t)==="[object Array]"},EL=function(t){if(!t||oH.call(t)!=="[object Object]")return!1;var r=Nm.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&Nm.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;var i;for(i in t);return typeof i>"u"||Nm.call(t,i)},OL=function(t,r){DL&&r.name==="__proto__"?DL(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},NL=function(t,r){if(r==="__proto__")if(Nm.call(t,r)){if(RL)return RL(t,r).value}else return;return t[r]},ghe=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 la={basename:xhe,dirname:She,extname:bhe,join:_he,sep:"/"};function xhe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');vv(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 She(e){if(vv(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 bhe(e){vv(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 _he(...e){let t=-1,r;for(;++t0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function Che(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 vv(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const The={cwd:Ahe};function Ahe(){return"/"}function qC(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Mhe(e){if(typeof e=="string")e=new URL(e);else if(!qC(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 Ihe(e)}function Ihe(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];YC(v)&&YC(h)&&(h=qS(!0,v,h)),n[d]=[u,h,...p]}}}}const Rhe=new B2().freeze();function QS(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function JS(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function eb(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 BL(e){if(!YC(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function FL(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function pg(e){return Lhe(e)?e:new sH(e)}function Lhe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Ehe(e){return typeof e=="string"||Ohe(e)}function Ohe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const $L={}.hasOwnProperty,Nhe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",VL=[],GL={allowDangerousHtml:!0},zhe=/^(https?|ircs?|mailto|xmpp)$/i,Bhe=[{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 Fhe(e){const t=e.allowedElements,r=e.allowElement,n=e.children||"",i=e.className,a=e.components,o=e.disallowedElements,s=e.rehypePlugins||VL,l=e.remarkPlugins||VL,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...GL}:GL,c=e.skipHtml,f=e.unwrapDisallowed,d=e.urlTransform||$he,h=Rhe().use(Sde).use(l).use(vhe,u).use(s),p=new sH;typeof n=="string"&&(p.value=n);for(const y of Bhe)Object.hasOwn(e,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+Nhe+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]}),aH(g,m),rce(g,{Fragment:E.Fragment,components:a,ignoreInvalidStyle:!0,jsx:E.jsx,jsxs:E.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 US)if($L.call(US,_)&&$L.call(y.properties,_)){const b=y.properties[_],w=US[_];(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 $he(e){return Sce(e,zhe)}const zm=(e,t=0)=>{const r=Math.pow(10,t);return Math.round(e*r)/r};function Vhe({content:e,formatter:t,round:r,markdown:n}){return t?t(e):r?zm(e,r):n?E.jsx(Fhe,{skipHtml:!1,children:e}):e}function Ff({rows:e,structure:t,onTableHeadClick:r,currentSortField:n}){return E.jsx(wae,{component:Y1,children:E.jsxs(rae,{children:[E.jsx(kae,{children:E.jsx(hR,{children:t.map(({title:i,key:a})=>E.jsx(uR,{"data-sortkey":a,onClick:r,sx:{cursor:r?"pointer":"default",color:n===a?"primary.main":"text.primary"},children:i},`table-head-${a}`))})}),E.jsx(cae,{children:e.map((i,a)=>E.jsx(hR,{children:t.map(({key:o,...s},l)=>E.jsx(uR,{children:E.jsx(Vhe,{content:i[o],...s})},`table-row=${l}`))},`${i.name}-${a}`))})]})})}function Ghe({rows:e,tableStructure:t}){return t?E.jsx(Ff,{rows:e,structure:t}):null}const Hhe=({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:gG(a),...o})):null,rows:i?i.data:[]}},Whe=Xn(Hhe)(Ghe),Uhe=[{key:"count",title:"# occurrences"},{key:"traceback",title:"Traceback"}];function lH({exceptions:e}){return E.jsx(Ff,{rows:e,structure:Uhe})}const jhe=({ui:{exceptions:e}})=>({exceptions:e}),Yhe=Xn(jhe)(lH);function qhe(e,t){const r=t?-1:1;return function(n,i){const a=n[e],o=i[e];return ao?r*1:0}}function F2(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(qhe(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,i(e);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,sortedStats:n,currentSortField:s.current}}const Xhe=[{key:"occurrences",title:"# Failures"},{key:"method",title:"Method"},{key:"name",title:"Name"},{key:"error",title:"Message",markdown:!0}];function uH({errors:e}){const{onTableHeadClick:t,sortedStats:r,currentSortField:n}=F2(e);return E.jsx(Ff,{currentSortField:n,onTableHeadClick:t,rows:r,structure:Xhe})}const Zhe=({ui:{errors:e}})=>({errors:e}),Khe=Xn(Zhe)(uH);function Qhe(){const e=Vs(({logViewer:{logs:t}})=>t);return E.jsxs(ft,{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"Logs"}),E.jsx("ul",{children:e.map((t,r)=>E.jsx("li",{children:t},`log-${r}`))})]})}function Jhe({extendedCsvFiles:e,statsHistoryEnabled:t}){const r=Vs(({theme:{isDarkMode:n}})=>n);return E.jsxs(k4,{sx:{display:"flex",flexDirection:"column"},children:[E.jsx(ju,{children:E.jsx(li,{href:"/stats/requests/csv",children:"Download requests CSV"})}),t&&E.jsx(ju,{children:E.jsx(li,{href:"/stats/requests_full_history/csv",children:"Download full request statistics history CSV"})}),E.jsx(ju,{children:E.jsx(li,{href:"/stats/failures/csv",children:"Download failures CSV"})}),E.jsx(ju,{children:E.jsx(li,{href:"/exceptions/csv",children:"Download exceptions CSV"})}),E.jsx(ju,{children:E.jsx(li,{href:`/stats/report?theme=${r?Ma.DARK:Ma.LIGHT}`,target:"_blank",children:"Download Report"})}),e&&e.map(({href:n,title:i},a)=>E.jsx(ju,{children:E.jsx(li,{href:n,children:i})},`extended-csv-${a}`))]})}const epe=({swarm:{extendedCsvFiles:e,statsHistoryEnabled:t}})=>({extendedCsvFiles:e,statsHistoryEnabled:t}),tpe=Xn(epe)(Jhe),rpe=[{key:"method",title:"Type"},{key:"name",title:"Name"},{key:"numRequests",title:"# Requests"},{key:"numFailures",title:"# Fails"},{key:"medianResponseTime",title:"Median (ms)",round:2},{key:"ninetiethResponseTime",title:"90%ile (ms)"},{key:"ninetyNinthResponseTime",title:"99%ile (ms)"},{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 cH({stats:e}){const{onTableHeadClick:t,sortedStats:r,currentSortField:n}=F2(e,{hasTotalRow:!0});return E.jsx(Ff,{currentSortField:n,onTableHeadClick:t,rows:r,structure:rpe})}const npe=({ui:{stats:e}})=>({stats:e}),ipe=Xn(npe)(cH);/*! ***************************************************************************** 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 XC=function(e,t){return XC=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])},XC(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");XC(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Jhe=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),epe=function(){function e(){this.browser=new Jhe,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}(),_l=new epe;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(_l.wxa=!0,_l.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?_l.worker=!0:typeof navigator>"u"?(_l.node=!0,_l.svgSupported=!0):tpe(navigator.userAgent,_l);function tpe(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=_l;var F2=12,sH="sans-serif",Is=F2+"px "+sH,rpe=20,npe=100,ipe="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function ape(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"?_l.worker=!0:typeof navigator>"u"?(_l.node=!0,_l.svgSupported=!0):spe(navigator.userAgent,_l);function spe(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=_l;var $2=12,fH="sans-serif",Is=$2+"px "+fH,lpe=20,upe=100,cpe="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function fpe(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 Ipe(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?WL(s,o):WL(o,s))}function pH(e){return e.nodeName.toUpperCase()==="CANVAS"}var Ppe=/([&<>"'])/g,kpe={"&":"&","<":"<",">":">",'"':""","'":"'"};function mn(e){return e==null?"":(e+"").replace(Ppe,function(t,r){return kpe[r]})}var Dpe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,rb=[],Rpe=tt.browser.firefox&&+tt.browser.version.split(".")[0]<39;function nT(e,t,r,n){return r=r||{},n?jL(e,t,r):Rpe&&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):jL(e,t,r),r}function jL(e,t,r){if(tt.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(pH(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(rT(rb,e,n,i)){r.zrX=rb[0],r.zrY=rb[1];return}}r.zrX=r.zrY=0}function j2(e){return e||window.event}function ti(e,t,r){if(t=j2(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&&nT(e,o,t,r)}else{nT(e,t,t,r);var a=Lpe(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Dpe.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Lpe(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 iT(e,t,r,n){e.addEventListener(t,r,n)}function Epe(e,t,r,n){e.removeEventListener(t,r,n)}var vo=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function YL(e){return e.which===2||e.which===3}var Ope=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=qL(n)/qL(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Npe(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function _i(){return[1,0,0,1,0,0]}function fx(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Y2(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 no(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 Na(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 Du(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 q2(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 Gf(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 zpe(e){var t=_i();return Y2(t,e),t}var Bpe=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=Bpe;var pg=Math.min,vg=Math.max,Ys=new Le,qs=new Le,Xs=new Le,Zs=new Le,Sd=new Le,bd=new Le,Fpe=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=pg(t.x,this.x),n=pg(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=vg(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=vg(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=_i();return Na(a,a,[-r.x,-r.y]),q2(a,a,[n,i]),Na(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}Ys.x=Xs.x=r.x,Ys.y=Zs.y=r.y,qs.x=Zs.x=r.x+r.width,qs.y=Xs.y=r.y+r.height,Ys.transform(n),Zs.transform(n),qs.transform(n),Xs.transform(n),t.x=pg(Ys.x,qs.x,Xs.x,Zs.x),t.y=pg(Ys.y,qs.y,Xs.y,Zs.y);var l=vg(Ys.x,qs.x,Xs.x,Zs.x),u=vg(Ys.y,qs.y,Xs.y,Zs.y);t.width=l-t.x,t.height=u-t.y},e}();const Ne=Fpe;var vH="silent";function $pe(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:Vpe}}function Vpe(){vo(this.event)}var Gpe=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}(Ai),_d=function(){function e(t,r){this.x=t,this.y=r}return e}(),Hpe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ib=new Ne(0,0,0,0),gH=function(e){Dt(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new _d(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new Gpe,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new wpe(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(D(Hpe,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=mH(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 _d(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 _d(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=$pe(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 _d(r,n);if(XL(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)&&(ib.copy(d.getBoundingRect()),d.transform&&ib.applyTransform(d.transform),ib.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 Wpe(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?vH:!0}return!1}function XL(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=Wpe(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==vH)){t.target=o;break}}}function mH(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const Upe=gH;var yH=32,wd=7;function jpe(e){for(var t=0;e>=yH;)t|=e&1,e>>=1;return e+t}function ZL(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 Ype(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 ab(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 ob(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 qpe(e,t){var r=wd,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]=wd||w>=wd);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-ab(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=wd||A>=wd);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),KL(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 Nn=1,nh=2,yc=4,QL=!1;function sb(){QL||(QL=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function JL(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Xpe=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=JL}return e.prototype.traverse=function(t,r){for(var n=0;n0&&(c.__clipPaths=[]),isNaN(c.z)&&(sb(),c.z=0),isNaN(c.z2)&&(sb(),c.z2=0),isNaN(c.zlevel)&&(sb(),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 Zpe=Xpe;var xH;xH=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 aT=xH;var $m={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-$m.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?$m.bounceIn(e*2)*.5:$m.bounceOut(e*2-1)*.5+.5}};const SH=$m;var gg=Math.pow,ys=Math.sqrt,Zy=1e-8,bH=1e-4,eE=ys(3),mg=1/3,va=ku(),fi=ku(),Kc=ku();function rs(e){return e>-Zy&&eZy||e<-Zy}function vr(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 tE(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function Ky(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(rs(c)&&rs(f))if(rs(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(rs(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=ys(v),x=c*s+1.5*o*(-f+y),S=c*s+1.5*o*(-f-y);x<0?x=-gg(-x,mg):x=gg(x,mg),S<0?S=-gg(-S,mg):S=gg(S,mg);var p=(-s-(x+S))/(3*o);p>=0&&p<=1&&(a[h++]=p)}else{var _=(2*c*s-3*o*f)/(2*ys(c*c*c)),b=Math.acos(_)/3,w=ys(c),C=Math.cos(b),p=(-s-2*w*C)/(3*o),m=(-s+w*(C+eE*Math.sin(b)))/(3*o),A=(-s+w*(C-eE*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 wH(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(rs(o)){if(_H(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(rs(c))i[0]=-a/(2*o);else if(c>0){var f=ys(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 ks(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;va[0]=l,va[1]=u;for(var y=0;y<1;y+=.05)fi[0]=vr(e,r,i,o,y),fi[1]=vr(t,n,a,s,y),g=eu(va,fi),g=0&&g=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(rs(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=ys(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 TH(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function Ap(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 AH(e,t,r,n,i,a,o,s,l){var u,c=.005,f=1/0;va[0]=o,va[1]=s;for(var d=0;d<1;d+=.05){fi[0]=_r(e,r,i,d),fi[1]=_r(t,n,a,d);var h=eu(va,fi);h=0&&h=1?1:Ky(0,n,a,1,l,s)&&vr(0,i,o,1,s[0])}}}var tve=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=me(t)?t:SH[t]||X2(t)},e}();const rve=tve;var MH=function(){function e(t){this.value=t}return e}(),nve=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new MH(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}(),ive=function(){function e(t){this._list=new nve,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 MH(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 pv=ive;var rE={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 Wi(e){return e=Math.round(e),e<0?0:e>255?255:e}function ave(e){return e=Math.round(e),e<0?0:e>360?360:e}function Mp(e){return e<0?0:e>1?1:e}function lb(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Wi(parseFloat(t)/100*255):Wi(parseInt(t,10))}function tu(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Mp(parseFloat(t)/100):Mp(parseFloat(t))}function ub(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 ns(e,t,r){return e+(t-e)*r}function ei(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 IH=new pv(20),yg=null;function Xu(e,t){yg&&sT(yg,t),yg=IH.put(e,yg||t.slice())}function Vn(e,t){if(e){t=t||[];var r=IH.get(e);if(r)return sT(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in rE)return sT(t,rE[n]),Xu(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)){ei(t,0,0,0,1);return}return ei(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),Xu(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){ei(t,0,0,0,1);return}return ei(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Xu(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?ei(t,+u[0],+u[1],+u[2],1):ei(t,0,0,0,1);c=tu(u.pop());case"rgb":if(u.length>=3)return ei(t,lb(u[0]),lb(u[1]),lb(u[2]),u.length===3?c:tu(u[3])),Xu(e,t),t;ei(t,0,0,0,1);return;case"hsla":if(u.length!==4){ei(t,0,0,0,1);return}return u[3]=tu(u[3]),lT(u,t),Xu(e,t),t;case"hsl":if(u.length!==3){ei(t,0,0,0,1);return}return lT(u,t),Xu(e,t),t;default:return}}ei(t,0,0,0,1)}}function lT(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=tu(e[1]),i=tu(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],ei(t,Wi(ub(o,a,r+1/3)*255),Wi(ub(o,a,r)*255),Wi(ub(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function ove(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 uT(e,t){var r=Vn(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 io(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]=Wi(ns(o[0],s[0],l)),r[1]=Wi(ns(o[1],s[1],l)),r[2]=Wi(ns(o[2],s[2],l)),r[3]=Mp(ns(o[3],s[3],l)),r}}function sve(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=Vn(t[i]),s=Vn(t[a]),l=n-i,u=io([Wi(ns(o[0],s[0],l)),Wi(ns(o[1],s[1],l)),Wi(ns(o[2],s[2],l)),Mp(ns(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function Nh(e,t,r,n){var i=Vn(e);if(e)return i=ove(i),t!=null&&(i[0]=ave(t)),r!=null&&(i[1]=tu(r)),n!=null&&(i[2]=tu(n)),io(lT(i),"rgba")}function Qy(e,t){var r=Vn(e);if(r&&t!=null)return r[3]=Mp(t),io(r,"rgba")}function io(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 Jy(e,t){var r=Vn(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var e0=Math.round;function Ip(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=Vn(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var nE=1e-4;function is(e){return e-nE}function xg(e){return e0(e*1e3)/1e3}function cT(e){return e0(e*1e4)/1e4}function lve(e){return"matrix("+xg(e[0])+","+xg(e[1])+","+xg(e[2])+","+xg(e[3])+","+cT(e[4])+","+cT(e[5])+")"}var uve={left:"start",right:"end",center:"middle",middle:"middle"};function cve(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function fve(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function dve(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 PH(e){return e&&!!e.image}function hve(e){return e&&!!e.svgElement}function Z2(e){return PH(e)||hve(e)}function kH(e){return e.type==="linear"}function DH(e){return e.type==="radial"}function RH(e){return e&&(e.type==="linear"||e.type==="radial")}function dx(e){return"url(#"+e+")"}function LH(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 EH(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*Nm,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("+e0(o*Nm)+"deg, "+e0(s*Nm)+"deg)"),l.join(" ")}var pve=function(){return tt.hasGlobalWindow&&me(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}}(),fT=Array.prototype.slice;function qa(e,t,r){return(t-e)*r+e}function fb(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=aE,l=r;if(Zr(r)){var u=yve(r);s=u,(u===1&&!nt(r[0])||u===2&&!nt(r[0][0]))&&(o=!0)}else if(nt(r)&&!Tp(r))s=bg;else if(oe(r))if(!isNaN(+r))s=bg;else{var c=Vn(r);c&&(l=c,s=ih)}else if(ux(r)){var f=Y({},l);f.colorStops=Z(r.colorStops,function(h){return{offset:h.offset,color:Vn(h.color)}}),kH(r)?s=dT:DH(r)&&(s=hT),l=f}a===0?this.valType=s:(s!==this.valType||s===aE)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=me(n)?n:SH[n]||X2(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=_g(i),u=oE(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?Cd:t[l];if((_g(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?h.rawValue:p.rawValue;else if(_g(a))a===Gm?fb(y,h[i],p[i],m):vve(y,h[i],p[i],m);else if(oE(a)){var x=h[i],S=p[i],_=a===dT;t[l]={type:_?"linear":"radial",x:qa(x.x,S.x,m),y:qa(x.y,S.y,m),colorStops:Z(x.colorStops,function(w,C){var A=S.colorStops[C];return{offset:qa(w.offset,A.offset,m),color:Vm(fb([],w.color,A.color,m))}}),global:S.global},_?(t[l].x2=qa(x.x2,S.x2,m),t[l].y2=qa(x.y2,S.y2,m)):t[l].r=qa(x.r,S.r,m)}else if(u)fb(y,h[i],p[i],m),n||(t[l]=Vm(y));else{var b=qa(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===bg?t[n]=t[n]+i:r===ih?(Vn(t[n],Cd),Sg(Cd,Cd,i,1),t[n]=Vm(Cd)):r===Gm?Sg(t[n],t[n],i,1):r===OH&&iE(t[n],t[n],i,1)},e}(),K2=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){G2("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,He(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o0&&l.addKeyframe(0,zh(u),i),this._trackKeys.push(s)}l.addKeyframe(t,zh(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 Nc(){return new Date().getTime()}var Sve=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=Nc()-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&&(aT(n),!r._paused&&r.update())}aT(n)},t.prototype.start=function(){this._running||(this._time=Nc(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Nc(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Nc()-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 K2(r,n.loop);return this.addAnimator(i),i},t}(Ai);const bve=Sve;var _ve=300,db=tt.domSupported,hb=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}}(),sE={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},lE=!1;function pT(e){var t=e.pointerType;return t==="pen"||t==="touch"}function wve(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 pb(e){e&&(e.zrByTouch=!0)}function Cve(e,t){return ti(e.dom,new Tve(e,t),!0)}function NH(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 Tve=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}(),Li={mousedown:function(e){e=ti(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=ti(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=ti(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=ti(this.dom,e);var t=e.toElement||e.relatedTarget;NH(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){lE=!0,e=ti(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){lE||(e=ti(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=ti(this.dom,e),pb(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Li.mousemove.call(this,e),Li.mousedown.call(this,e)},touchmove:function(e){e=ti(this.dom,e),pb(e),this.handler.processGesture(e,"change"),Li.mousemove.call(this,e)},touchend:function(e){e=ti(this.dom,e),pb(e),this.handler.processGesture(e,"end"),Li.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<_ve&&Li.click.call(this,e)},pointerdown:function(e){Li.mousedown.call(this,e)},pointermove:function(e){pT(e)||Li.mousemove.call(this,e)},pointerup:function(e){Li.mouseup.call(this,e)},pointerout:function(e){pT(e)||Li.mouseout.call(this,e)}};D(["click","dblclick","contextmenu"],function(e){Li[e]=function(t){t=ti(this.dom,t),this.trigger(e,t)}});var vT={pointermove:function(e){pT(e)||vT.mousemove.call(this,e)},pointerup:function(e){vT.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function Ave(e,t){var r=t.domHandlers;tt.pointerEventsSupported?D(hb.pointer,function(n){Hm(t,n,function(i){r[n].call(e,i)})}):(tt.touchEventsSupported&&D(hb.touch,function(n){Hm(t,n,function(i){r[n].call(e,i),wve(t)})}),D(hb.mouse,function(n){Hm(t,n,function(i){i=j2(i),t.touching||r[n].call(e,i)})}))}function Mve(e,t){tt.pointerEventsSupported?D(sE.pointer,r):tt.touchEventsSupported||D(sE.mouse,r);function r(n){function i(a){a=j2(a),NH(e,a.target)||(a=Cve(e,a),t.domHandlers[n].call(e,a))}Hm(t,n,i,{capture:!0})}}function Hm(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,iT(e.domTarget,t,r,n)}function vb(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&Epe(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var uE=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),Ive=function(e){Dt(t,e);function t(r,n){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new uE(r,Li),db&&(i._globalHandlerScope=new uE(document,vT)),Ave(i,i._localHandlerScope),i}return t.prototype.dispose=function(){vb(this._localHandlerScope),db&&vb(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,db&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?Mve(this,n):vb(n)}},t}(Ai);const Pve=Ive;var zH=1;tt.hasGlobalWindow&&(zH=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var t0=zH,gT=.4,mT="#333",yT="#ccc",kve="#eee",cE=fx,fE=5e-5;function Ks(e){return e>fE||e<-fE}var Qs=[],Zu=[],gb=_i(),mb=Math.abs,Dve=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 Ks(this.rotation)||Ks(this.x)||Ks(this.y)||Ks(this.scaleX-1)||Ks(this.scaleY-1)||Ks(this.skewX)||Ks(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(cE(n),this.invTransform=null);return}n=n||_i(),r?this.getLocalTransform(n):cE(n),t&&(r?no(n,t,n):Y2(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Qs);var n=Qs[0]<0?-1:1,i=Qs[1]<0?-1:1,a=((Qs[0]-n)*r+n)/Qs[0]||0,o=((Qs[1]-i)*r+i)/Qs[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||_i(),Gf(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&&(no(Zu,t.invTransform,r),r=Zu);var n=this.originX,i=this.originY;(n||i)&&(gb[4]=n,gb[5]=i,no(Zu,r,gb),Zu[4]-=n,Zu[5]-=i,r=Zu),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&&mb(t[0]-1)>1e-10&&mb(t[3]-1)>1e-10?Math.sqrt(mb(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){BH(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&&Du(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}(),za=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function BH(e,t){for(var r=0;r=0?parseFloat(e)/100*t:parseFloat(e):e}function r0(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+=Xi(n[0],r.width),u+=Xi(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 yb="__zr_normal__",xb=za.concat(["ignore"]),Rve=Oa(za,function(e,t){return e[t]=!0,e},{ignore:!1}),Ku={},Lve=new Ne(0,0,0,0),Q2=function(){function e(t){this.id=cH(),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=Lve;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ku,n,c):r0(Ku,n,c),a.x=Ku.x,a.y=Ku.y,o=Ku.align,s=Ku.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=Xi(f[0],c.width),h=Xi(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|=Nn,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()?yT:mT},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Vn(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,io(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||{},Y(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(Se(t))for(var n=t,i=He(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(yb,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===yb,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){G2("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&=~Nn),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&=~Nn)}},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 Epe(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?jL(s,o):jL(o,s))}function yH(e){return e.nodeName.toUpperCase()==="CANVAS"}var Ope=/([&<>"'])/g,Npe={"&":"&","<":"<",">":">",'"':""","'":"'"};function mn(e){return e==null?"":(e+"").replace(Ope,function(t,r){return Npe[r]})}var zpe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,rb=[],Bpe=tt.browser.firefox&&+tt.browser.version.split(".")[0]<39;function nT(e,t,r,n){return r=r||{},n?qL(e,t,r):Bpe&&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):qL(e,t,r),r}function qL(e,t,r){if(tt.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(yH(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(rT(rb,e,n,i)){r.zrX=rb[0],r.zrY=rb[1];return}}r.zrX=r.zrY=0}function Y2(e){return e||window.event}function ti(e,t,r){if(t=Y2(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&&nT(e,o,t,r)}else{nT(e,t,t,r);var a=Fpe(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&zpe.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Fpe(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 iT(e,t,r,n){e.addEventListener(t,r,n)}function $pe(e,t,r,n){e.removeEventListener(t,r,n)}var vo=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function XL(e){return e.which===2||e.which===3}var Vpe=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=ZL(n)/ZL(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Gpe(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function _i(){return[1,0,0,1,0,0]}function fx(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function q2(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 no(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 Na(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 Du(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 X2(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 Gf(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 Hpe(e){var t=_i();return q2(t,e),t}var Wpe=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=Wpe;var gg=Math.min,mg=Math.max,Ys=new Le,qs=new Le,Xs=new Le,Zs=new Le,Sd=new Le,bd=new Le,Upe=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=gg(t.x,this.x),n=gg(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=mg(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=mg(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=_i();return Na(a,a,[-r.x,-r.y]),X2(a,a,[n,i]),Na(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}Ys.x=Xs.x=r.x,Ys.y=Zs.y=r.y,qs.x=Zs.x=r.x+r.width,qs.y=Xs.y=r.y+r.height,Ys.transform(n),Zs.transform(n),qs.transform(n),Xs.transform(n),t.x=gg(Ys.x,qs.x,Xs.x,Zs.x),t.y=gg(Ys.y,qs.y,Xs.y,Zs.y);var l=mg(Ys.x,qs.x,Xs.x,Zs.x),u=mg(Ys.y,qs.y,Xs.y,Zs.y);t.width=l-t.x,t.height=u-t.y},e}();const Ne=Upe;var xH="silent";function jpe(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:Ype}}function Ype(){vo(this.event)}var qpe=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}(Ai),_d=function(){function e(t,r){this.x=t,this.y=r}return e}(),Xpe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ib=new Ne(0,0,0,0),SH=function(e){Dt(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new _d(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new qpe,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new Ppe(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(D(Xpe,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=bH(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 _d(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 _d(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=jpe(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 _d(r,n);if(KL(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)&&(ib.copy(d.getBoundingRect()),d.transform&&ib.applyTransform(d.transform),ib.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 Zpe(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?xH:!0}return!1}function KL(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=Zpe(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==xH)){t.target=o;break}}}function bH(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const Kpe=SH;var _H=32,wd=7;function Qpe(e){for(var t=0;e>=_H;)t|=e&1,e>>=1;return e+t}function QL(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 Jpe(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 ab(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 ob(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 eve(e,t){var r=wd,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]=wd||w>=wd);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-ab(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=wd||A>=wd);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),JL(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 Nn=1,nh=2,yc=4,eE=!1;function sb(){eE||(eE=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function tE(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var tve=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=tE}return e.prototype.traverse=function(t,r){for(var n=0;n0&&(c.__clipPaths=[]),isNaN(c.z)&&(sb(),c.z=0),isNaN(c.z2)&&(sb(),c.z2=0),isNaN(c.zlevel)&&(sb(),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 rve=tve;var wH;wH=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 aT=wH;var Gm={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-Gm.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?Gm.bounceIn(e*2)*.5:Gm.bounceOut(e*2-1)*.5+.5}};const CH=Gm;var yg=Math.pow,ys=Math.sqrt,Qy=1e-8,TH=1e-4,rE=ys(3),xg=1/3,va=ku(),fi=ku(),Kc=ku();function rs(e){return e>-Qy&&eQy||e<-Qy}function vr(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 Jy(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(rs(c)&&rs(f))if(rs(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(rs(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=ys(v),x=c*s+1.5*o*(-f+y),S=c*s+1.5*o*(-f-y);x<0?x=-yg(-x,xg):x=yg(x,xg),S<0?S=-yg(-S,xg):S=yg(S,xg);var p=(-s-(x+S))/(3*o);p>=0&&p<=1&&(a[h++]=p)}else{var _=(2*c*s-3*o*f)/(2*ys(c*c*c)),b=Math.acos(_)/3,w=ys(c),C=Math.cos(b),p=(-s-2*w*C)/(3*o),m=(-s+w*(C+rE*Math.sin(b)))/(3*o),A=(-s+w*(C-rE*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 MH(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(rs(o)){if(AH(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(rs(c))i[0]=-a/(2*o);else if(c>0){var f=ys(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 ks(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 IH(e,t,r,n,i,a,o,s,l,u,c){var f,d=.005,h=1/0,p,v,g,m;va[0]=l,va[1]=u;for(var y=0;y<1;y+=.05)fi[0]=vr(e,r,i,o,y),fi[1]=vr(t,n,a,s,y),g=eu(va,fi),g=0&&g=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(rs(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=ys(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 PH(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function Ap(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 kH(e,t,r,n,i,a,o,s,l){var u,c=.005,f=1/0;va[0]=o,va[1]=s;for(var d=0;d<1;d+=.05){fi[0]=_r(e,r,i,d),fi[1]=_r(t,n,a,d);var h=eu(va,fi);h=0&&h=1?1:Jy(0,n,a,1,l,s)&&vr(0,i,o,1,s[0])}}}var sve=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=me(t)?t:CH[t]||Z2(t)},e}();const lve=sve;var DH=function(){function e(t){this.value=t}return e}(),uve=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new DH(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}(),cve=function(){function e(t){this._list=new uve,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 DH(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 gv=cve;var iE={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 Wi(e){return e=Math.round(e),e<0?0:e>255?255:e}function fve(e){return e=Math.round(e),e<0?0:e>360?360:e}function Mp(e){return e<0?0:e>1?1:e}function lb(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Wi(parseFloat(t)/100*255):Wi(parseInt(t,10))}function tu(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Mp(parseFloat(t)/100):Mp(parseFloat(t))}function ub(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 ns(e,t,r){return e+(t-e)*r}function ei(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 RH=new gv(20),Sg=null;function Xu(e,t){Sg&&sT(Sg,t),Sg=RH.put(e,Sg||t.slice())}function Vn(e,t){if(e){t=t||[];var r=RH.get(e);if(r)return sT(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in iE)return sT(t,iE[n]),Xu(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)){ei(t,0,0,0,1);return}return ei(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),Xu(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){ei(t,0,0,0,1);return}return ei(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Xu(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?ei(t,+u[0],+u[1],+u[2],1):ei(t,0,0,0,1);c=tu(u.pop());case"rgb":if(u.length>=3)return ei(t,lb(u[0]),lb(u[1]),lb(u[2]),u.length===3?c:tu(u[3])),Xu(e,t),t;ei(t,0,0,0,1);return;case"hsla":if(u.length!==4){ei(t,0,0,0,1);return}return u[3]=tu(u[3]),lT(u,t),Xu(e,t),t;case"hsl":if(u.length!==3){ei(t,0,0,0,1);return}return lT(u,t),Xu(e,t),t;default:return}}ei(t,0,0,0,1)}}function lT(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=tu(e[1]),i=tu(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],ei(t,Wi(ub(o,a,r+1/3)*255),Wi(ub(o,a,r)*255),Wi(ub(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function dve(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 uT(e,t){var r=Vn(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 io(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]=Wi(ns(o[0],s[0],l)),r[1]=Wi(ns(o[1],s[1],l)),r[2]=Wi(ns(o[2],s[2],l)),r[3]=Mp(ns(o[3],s[3],l)),r}}function hve(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=Vn(t[i]),s=Vn(t[a]),l=n-i,u=io([Wi(ns(o[0],s[0],l)),Wi(ns(o[1],s[1],l)),Wi(ns(o[2],s[2],l)),Mp(ns(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function Nh(e,t,r,n){var i=Vn(e);if(e)return i=dve(i),t!=null&&(i[0]=fve(t)),r!=null&&(i[1]=tu(r)),n!=null&&(i[2]=tu(n)),io(lT(i),"rgba")}function e0(e,t){var r=Vn(e);if(r&&t!=null)return r[3]=Mp(t),io(r,"rgba")}function io(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 t0(e,t){var r=Vn(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var r0=Math.round;function Ip(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=Vn(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var aE=1e-4;function is(e){return e-aE}function bg(e){return r0(e*1e3)/1e3}function cT(e){return r0(e*1e4)/1e4}function pve(e){return"matrix("+bg(e[0])+","+bg(e[1])+","+bg(e[2])+","+bg(e[3])+","+cT(e[4])+","+cT(e[5])+")"}var vve={left:"start",right:"end",center:"middle",middle:"middle"};function gve(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function mve(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function yve(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 LH(e){return e&&!!e.image}function xve(e){return e&&!!e.svgElement}function K2(e){return LH(e)||xve(e)}function EH(e){return e.type==="linear"}function OH(e){return e.type==="radial"}function NH(e){return e&&(e.type==="linear"||e.type==="radial")}function dx(e){return"url(#"+e+")"}function zH(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)*Bm,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("+r0(o*Bm)+"deg, "+r0(s*Bm)+"deg)"),l.join(" ")}var Sve=function(){return tt.hasGlobalWindow&&me(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}}(),fT=Array.prototype.slice;function qa(e,t,r){return(t-e)*r+e}function fb(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=sE,l=r;if(Zr(r)){var u=Cve(r);s=u,(u===1&&!nt(r[0])||u===2&&!nt(r[0][0]))&&(o=!0)}else if(nt(r)&&!Tp(r))s=wg;else if(oe(r))if(!isNaN(+r))s=wg;else{var c=Vn(r);c&&(l=c,s=ih)}else if(ux(r)){var f=Y({},l);f.colorStops=Z(r.colorStops,function(h){return{offset:h.offset,color:Vn(h.color)}}),EH(r)?s=dT:OH(r)&&(s=hT),l=f}a===0?this.valType=s:(s!==this.valType||s===sE)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=me(n)?n:CH[n]||Z2(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=Cg(i),u=lE(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?Cd:t[l];if((Cg(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?h.rawValue:p.rawValue;else if(Cg(a))a===Wm?fb(y,h[i],p[i],m):bve(y,h[i],p[i],m);else if(lE(a)){var x=h[i],S=p[i],_=a===dT;t[l]={type:_?"linear":"radial",x:qa(x.x,S.x,m),y:qa(x.y,S.y,m),colorStops:Z(x.colorStops,function(w,C){var A=S.colorStops[C];return{offset:qa(w.offset,A.offset,m),color:Hm(fb([],w.color,A.color,m))}}),global:S.global},_?(t[l].x2=qa(x.x2,S.x2,m),t[l].y2=qa(x.y2,S.y2,m)):t[l].r=qa(x.r,S.r,m)}else if(u)fb(y,h[i],p[i],m),n||(t[l]=Hm(y));else{var b=qa(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===wg?t[n]=t[n]+i:r===ih?(Vn(t[n],Cd),_g(Cd,Cd,i,1),t[n]=Hm(Cd)):r===Wm?_g(t[n],t[n],i,1):r===FH&&oE(t[n],t[n],i,1)},e}(),Q2=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){H2("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,He(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o0&&l.addKeyframe(0,zh(u),i),this._trackKeys.push(s)}l.addKeyframe(t,zh(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 Nc(){return new Date().getTime()}var Ave=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=Nc()-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&&(aT(n),!r._paused&&r.update())}aT(n)},t.prototype.start=function(){this._running||(this._time=Nc(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Nc(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Nc()-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 Q2(r,n.loop);return this.addAnimator(i),i},t}(Ai);const Mve=Ave;var Ive=300,db=tt.domSupported,hb=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}}(),uE={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},cE=!1;function pT(e){var t=e.pointerType;return t==="pen"||t==="touch"}function Pve(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 pb(e){e&&(e.zrByTouch=!0)}function kve(e,t){return ti(e.dom,new Dve(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 Dve=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}(),Li={mousedown:function(e){e=ti(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=ti(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=ti(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=ti(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){cE=!0,e=ti(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){cE||(e=ti(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=ti(this.dom,e),pb(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Li.mousemove.call(this,e),Li.mousedown.call(this,e)},touchmove:function(e){e=ti(this.dom,e),pb(e),this.handler.processGesture(e,"change"),Li.mousemove.call(this,e)},touchend:function(e){e=ti(this.dom,e),pb(e),this.handler.processGesture(e,"end"),Li.mouseup.call(this,e),+new Date-+this.__lastTouchMomenthE||e<-hE}var Qs=[],Zu=[],gb=_i(),mb=Math.abs,zve=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 Ks(this.rotation)||Ks(this.x)||Ks(this.y)||Ks(this.scaleX-1)||Ks(this.scaleY-1)||Ks(this.skewX)||Ks(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(dE(n),this.invTransform=null);return}n=n||_i(),r?this.getLocalTransform(n):dE(n),t&&(r?no(n,t,n):q2(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Qs);var n=Qs[0]<0?-1:1,i=Qs[1]<0?-1:1,a=((Qs[0]-n)*r+n)/Qs[0]||0,o=((Qs[1]-i)*r+i)/Qs[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||_i(),Gf(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&&(no(Zu,t.invTransform,r),r=Zu);var n=this.originX,i=this.originY;(n||i)&&(gb[4]=n,gb[5]=i,no(Zu,r,gb),Zu[4]-=n,Zu[5]-=i,r=Zu),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&&mb(t[0]-1)>1e-10&&mb(t[3]-1)>1e-10?Math.sqrt(mb(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){GH(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&&Du(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}(),za=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function GH(e,t){for(var r=0;r=0?parseFloat(e)/100*t:parseFloat(e):e}function i0(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+=Xi(n[0],r.width),u+=Xi(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 yb="__zr_normal__",xb=za.concat(["ignore"]),Bve=Oa(za,function(e,t){return e[t]=!0,e},{ignore:!1}),Ku={},Fve=new Ne(0,0,0,0),J2=function(){function e(t){this.id=pH(),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=Fve;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ku,n,c):i0(Ku,n,c),a.x=Ku.x,a.y=Ku.y,o=Ku.align,s=Ku.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=Xi(f[0],c.width),h=Xi(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|=Nn,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()?yT:mT},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Vn(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,io(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||{},Y(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(Se(t))for(var n=t,i=He(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(yb,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===yb,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){H2("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&=~Nn),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&=~Nn)}},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)?Gve(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),HH),e=(+e).toFixed(t),r?e:+e}function gi(e){return e.sort(function(t,r){return t-r}),e}function Sa(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 Hve(e)}function Hve(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 WH(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 Wve(e,t){var r=Oa(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=Oa(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 Uve(e,t){var r=Math.max(Sa(e),Sa(t)),n=e+t;return r>HH?n:Xt(n,r)}var gE=9007199254740991;function UH(e){var t=Math.PI*2;return(e%t+t)%t}function n0(e){return e>-vE&&e=10&&t++,t}function jH(e,t){var r=J2(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 _b(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 mE(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 mge=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],yge=xu(mge),xge=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return yge(this,t,r)},e}(),ST=new pv(50);function Sge(e){if(typeof e=="string"){var t=ST.get(e);return t&&t.image}else return e}function nI(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=ST.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!vx(t)&&a.pending.push(o)):(t=Ps.loadImage(e,bE,bE),t.__zrImageSrc=e,ST.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function bE(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;l++)s-=o;var u=Gn(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 a6(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=Gn(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?_ge(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=Gn(e,n)}return e===""&&(e=t.placeholder),e}function _ge(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=i6(c,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;gs&&Cb(r,e.substring(s,u),t,o),Cb(r,l[2],t,o,l[1]),s=wb.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 I=w.width,P=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")b.percentWidth=I,c.push(b),b.contentWidth=Gn(b.text,T);else{if(P){var k=w.backgroundColor,R=k&&k.image;R&&(R=Sge(R),vx(R)&&(b.width=Math.max(b.width,R.width*M/R.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=o6(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 Ige=Oa(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Pge(e){return Mge(e)?!!Ige[e]:!0}function o6(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 bT="__zr_style_"+Math.round(Math.random()*10),ru={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},gx={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ru[bT]=!0;var wE=["z","z2","invisible"],kge=["invisible"],Dge=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=He(r),i=0;i1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(wg[0]=Ib(i)*r+e,wg[1]=Mb(i)*n+t,Cg[0]=Ib(a)*r+e,Cg[1]=Mb(a)*n+t,u(s,wg,Cg),c(l,wg,Cg),i=i%el,i<0&&(i=i+el),a=a%el,a<0&&(a=a+el),i>a&&!o?a+=el:ii&&(Tg[0]=Ib(h)*r+e,Tg[1]=Mb(h)*n+t,u(s,Tg,s),c(l,Tg,l))}var xt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},tl=[],rl=[],ea=[],Lo=[],ta=[],ra=[],Pb=Math.min,kb=Math.max,nl=Math.cos,il=Math.sin,Ha=Math.abs,_T=Math.PI,Go=_T*2,Db=typeof Float32Array<"u",Td=[];function Rb(e){var t=Math.round(e/_T*1e8)/1e8;return t%2*_T}function s6(e,t){var r=Rb(e[0]);r<0&&(r+=Go);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=Go?i=r+Go:t&&r-i>=Go?i=r-Go:!t&&r>i?i=r+(Go-Rb(r-i)):t&&r0&&(this._ux=Ha(n/t0/t)||0,this._uy=Ha(n/t0/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=Ha(t-this._xi),i=Ha(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(),Td[0]=i,Td[1]=a,s6(Td,o),i=Td[0],a=Td[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=nl(a)*n+t,this._yi=il(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)&&Db&&(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(){ea[0]=ea[1]=ta[0]=ta[1]=Number.MAX_VALUE,Lo[0]=Lo[1]=ra[0]=ra[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;on||Ha(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=Kpe(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=Jpe(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++],I=t[d++],P=t[d++],k=P+I;d+=1,t[d++],p&&(s=nl(I)*T+C,l=il(I)*M+A),v=kb(T,M)*Pb(Go,Math.abs(P)),a=nl(k)*T+C,o=il(k)*M+A;break;case xt.R:{s=a=t[d++],l=o=t[d++];var R=t[d++],z=t[d++];v=R*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=Ha(f-u),T=Ha(d-c);if(A>i||T>a){if(h){var M=p[m++];if(g+M>y){var I=(y-g)/M;t.lineTo(u*(1-I)+f*I,c*(1-I)+d*I);break e}g+=M}t.lineTo(f,d),u=f,c=d,x=0}else{var P=A*A+T*T;P>x&&(S=f,_=d,x=P)}break}case xt.C:{var k=n[b++],R=n[b++],z=n[b++],$=n[b++],N=n[b++],V=n[b++];if(h){var M=p[m++];if(g+M>y){var I=(y-g)/M;ks(u,k,z,N,I,tl),ks(c,R,$,V,I,rl),t.bezierCurveTo(tl[1],rl[1],tl[2],rl[2],tl[3],rl[3]);break e}g+=M}t.bezierCurveTo(k,R,z,$,N,V),u=N,c=V;break}case xt.Q:{var k=n[b++],R=n[b++],z=n[b++],$=n[b++];if(h){var M=p[m++];if(g+M>y){var I=(y-g)/M;Ap(u,k,z,I,tl),Ap(c,R,$,I,rl),t.quadraticCurveTo(tl[1],rl[1],tl[2],rl[2]);break e}g+=M}t.quadraticCurveTo(k,R,z,$),u=z,c=$;break}case xt.A:var L=n[b++],G=n[b++],U=n[b++],B=n[b++],j=n[b++],X=n[b++],W=n[b++],ee=!n[b++],te=U>B?U:B,ie=Ha(U-B)>.001,re=j+X,Q=!1;if(h){var M=p[m++];g+M>y&&(re=j+X*(y-g)/M,Q=!0),g+=M}if(ie&&t.ellipse?t.ellipse(L,G,U,B,W,j,re,ee):t.arc(L,G,te,j,re,ee),Q)break e;C&&(s=nl(j)*U+L,l=il(j)*B+G),u=nl(re)*U+L,c=il(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++],fe=n[b++];if(h){var M=p[m++];if(g+M>y){var de=y-g;t.moveTo(f,d),t.lineTo(f+Pb(de,J),d),de-=J,de>0&&t.lineTo(f+J,d+Pb(de,fe)),de-=fe,de>0&&t.lineTo(f+kb(J-de,0),d+fe),de-=J,de>0&&t.lineTo(f,d+kb(fe-de,0));break e}g+=M}t.rect(f,d,J,fe);break;case xt.Z:if(h){var M=p[m++];if(g+M>y){var I=(y-g)/M;t.lineTo(u*(1-I)+s*I,c*(1-I)+l*I);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 Fa=Nge;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+=Ad);var d=Math.atan2(l,s);return d<0&&(d+=Ad),d>=n&&d<=i||d+Ad>=n&&d+Ad<=i}function Xa(e,t,r,n,i,a){if(a>t&&a>n||ai?s:0}var Eo=Fa.CMD,al=Math.PI*2,Fge=1e-4;function $ge(e,t){return Math.abs(e-t)t&&u>n&&u>a&&u>s||u1&&Vge(),h=vr(t,n,a,s,ni[0]),d>1&&(p=vr(t,n,a,s,ni[1]))),d===2?gt&&s>n&&s>a||s=0&&u<=1){for(var c=0,f=_r(t,n,a,u),d=0;dr||s<-r)return 0;var l=Math.sqrt(r*r-s*s);rn[0]=-l,rn[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=al-1e-4){n=0,i=al;var c=a?1:-1;return o>=rn[0]+e&&o<=rn[1]+e?c:0}if(n>i){var f=n;n=i,i=f}n<0&&(n+=al,i+=al);for(var d=0,h=0;h<2;h++){var p=rn[h];if(p+e>o){var v=Math.atan2(s,p),c=a?1:-1;v<0&&(v=al+v),(v>=n&&v<=i||v+al>=n&&v+al<=i)&&(v>Math.PI/2&&v1&&(r||(s+=Xa(l,u,c,f,n,i))),g&&(l=a[p],u=a[p+1],c=l,f=u),v){case Eo.M:c=a[p++],f=a[p++],l=c,u=f;break;case Eo.L:if(r){if(jo(l,u,a[p],a[p+1],t,n,i))return!0}else s+=Xa(l,u,a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case Eo.C:if(r){if(zge(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],t,n,i))return!0}else s+=Gge(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 Eo.Q:if(r){if(l6(l,u,a[p++],a[p++],a[p],a[p+1],t,n,i))return!0}else s+=Hge(l,u,a[p++],a[p++],a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case Eo.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+=Xa(l,u,d,h,n,i);var C=(n-m)*S/x+m;if(r){if(Bge(m,y,S,_,_+b,w,t,C,i))return!0}else s+=Wge(m,y,S,_,_+b,w,C,i);l=Math.cos(_+b)*x+m,u=Math.sin(_+b)*S+y;break;case Eo.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+=Xa(d,f,d,h,n,i),s+=Xa(c,h,c,f,n,i);break;case Eo.Z:if(r){if(jo(l,u,c,f,t,n,i))return!0}else s+=Xa(l,u,c,f,n,i);l=c,u=f;break}}return!r&&!$ge(u,f)&&(s+=Xa(l,u,c,f,n,i)||0),s!==0}function Uge(e,t,r){return u6(e,0,!1,t,r)}function jge(e,t,r,n){return u6(e,t,!0,r,n)}var i0=xe({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ru),Yge={style:xe({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},gx.style)},Lb=za.concat(["invisible","culling","z","z2","zlevel","parent"]),qge=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?mT:n>.2?kve:yT}else if(r)return yT}return mT},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(oe(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Jy(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&yc)&&(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)),jge(s,l/u,r,n)))return!0}if(this.hasFill())return Uge(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=yc,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:Y(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&yc)},t.prototype.createStyle=function(r){return cx(i0,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=Y({},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=Y({},i.shape),Y(u,n.shape)):(u=Y({},a?this.shape:i.shape),Y(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=Y({},this.shape);for(var c={},f=He(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 cx(Xge,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=vv(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}(wi);c6.prototype.type="tspan";const kp=c6;var Zge=xe({x:0,y:0},ru),Kge={style:xe({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},gx.style)};function Qge(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var f6=function(e){Dt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return cx(Zge,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=Qge(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 Kge},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}(wi);f6.prototype.type="image";const Fr=f6;function Jge(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 zc=Math.round;function d6(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&&(zc(n*2)===zc(i*2)&&(e.x1=e.x2=Wl(n,s,!0)),zc(a*2)===zc(o*2)&&(e.y1=e.y2=Wl(a,s,!0))),e}}function h6(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=Wl(n,s,!0),e.y=Wl(i,s,!0),e.width=Math.max(Wl(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Wl(i+o,s,!1)-e.y,o===0?0:1)),e}}function Wl(e,t,r){if(!t)return e;var n=zc(e*2);return(n+zc(t))%2===0?n/2:(n+(r?1:-1))/2}var eme=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),tme={},p6=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new eme},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=h6(tme,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?Jge(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}($e);p6.prototype.type="rect";const Qe=p6;var IE={fill:"#000"},PE=2,rme={style:xe({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},gx.style)},v6=function(e){Dt(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=IE,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,I=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),P=o.calculatedLineHeight,k=0;k=0&&(k=b[P],k.align==="right");)this._placeToken(k,r,C,m,I,"right",x),A-=k.width,I-=k.width,P--;for(M+=(a-(M-g)-(y-I)-A)/2;T<=P;)k=b[T],this._placeToken(k,r,C,m,M+k.width/2,"center",x),M+=k.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&&Eb(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=OE(o,s,p),f-=r.height/2-p[0]-r.innerHeight/2);var v=this._getOrCreateChild(kp),g=v.createStyle();v.useStyle(g);var m=this._defaultStyle,y=!1,x=0,S=EE("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),_=LE("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!m.autoStroke||y)?(x=PE,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||Is,g.opacity=Pa(u.opacity,n.opacity,1),DE(g,u),_&&(g.lineWidth=Pa(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(ah(g.x,w,g.textAlign),xc(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(Fr),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=Pa(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return m6(r)&&(n=[r.fontStyle,r.fontWeight,g6(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Fi(n)||r.textFont||r.font},t}(wi),nme={left:!0,right:1,center:1},ime={top:1,bottom:1,middle:1},kE=["fontStyle","fontWeight","fontSize","fontFamily"];function g6(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?F2+"px":e+"px"}function DE(e,t){for(var r=0;r=0,a=!1;if(e instanceof $e){var o=y6(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Qu(s)||Qu(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=Y({},n),u=Y({},u),u.fill=s):!Qu(u.fill)&&Qu(s)?(a=!0,n=Y({},n),u=Y({},u),u.fill=$E(s)):!Qu(u.stroke)&&Qu(l)&&(a||(n=Y({},n),u=Y({},u)),u.stroke=$E(l)),n.style=u}}if(n&&n.z2==null){a||(n=Y({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??Wf)}return n}function fme(e,t,r){if(r&&r.z2==null){r=Y({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??ome)}return r}function dme(e,t,r){var n=ze(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:ume(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=Y({},r),o=Y({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Ob(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return cme(this,e,t,r);if(e==="blur")return dme(this,e,r);if(e==="select")return fme(this,e,r)}return r}function Su(e){e.stateProxy=Ob;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Ob),r&&(r.stateProxy=Ob)}function GE(e,t){!T6(e,t)&&!e.__highByOuter&&To(e,x6)}function HE(e,t){!T6(e,t)&&!e.__highByOuter&&To(e,S6)}function mo(e,t){e.__highByOuter|=1<<(t||0),To(e,x6)}function yo(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&To(e,S6)}function _6(e){To(e,oI)}function sI(e){To(e,b6)}function w6(e){To(e,sme)}function C6(e){To(e,lme)}function T6(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function A6(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=iI(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){b6(u)}),s&&r.push(a)),o.isBlured=!1}),D(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function CT(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 iu(e,t,r){Ul(e,!0),To(e,Su),AT(e,t,r)}function yme(e){Ul(e,!1)}function Ut(e,t,r,n){n?yme(e):iu(e,t,r)}function AT(e,t,r){var n=Ie(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var UE=["emphasis","blur","select"],xme={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function zr(e,t,r,n){r=r||"itemStyle";for(var i=0;i1&&(o*=Nb(p),s*=Nb(p));var v=(i===a?-1:1)*Nb((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+Mg(f)*g-Ag(f)*m,x=(t+n)/2+Ag(f)*g+Mg(f)*m,S=XE([1,0],[(d-g)/o,(h-m)/s]),_=[(d-g)/o,(h-m)/s],b=[(-1*d-g)/o,(-1*h-m)/s],w=XE(_,b);if(IT(_,b)<=-1&&(w=Md),IT(_,b)>=1&&(w=0),w<0){var C=Math.round(w/Md*1e6)/1e6;w=Md*2+C%2*Md}c.addData(u,y,x,o,s,S,w,f,a)}var Tme=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Ame=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Mme(e){var t=new Fa;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=Fa.CMD,l=e.match(Tme);if(!l)return t;for(var u=0;uk*k+R*R&&(C=T,A=M),{cx:C,cy:A,x0:-c,y0:-f,x1:C*(i/_-1),y1:A*(i/_-1)}}function Eme(e){var t;if(q(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 Ome(e,t){var r,n=oh(t.r,0),i=oh(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=KE(u-l),p=h>zb&&h%zb;if(p>Ri&&(h=p),!(n>Ri))e.moveTo(c,f);else if(h>zb-Ri)e.moveTo(c+n*ec(l),f+n*ol(l)),e.arc(c,f,n,l,u,!d),i>Ri&&(e.moveTo(c+i*ec(u),f+i*ol(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,I=void 0,P=void 0,k=void 0,R=n*ec(l),z=n*ol(l),$=i*ec(u),N=i*ol(u),V=h>Ri;if(V){var L=t.cornerRadius;L&&(r=Eme(L),v=r[0],g=r[1],m=r[2],y=r[3]);var G=KE(n-i)/2;if(x=na(G,m),S=na(G,y),_=na(G,v),b=na(G,g),A=w=oh(x,S),T=C=oh(_,b),(w>Ri||C>Ri)&&(M=n*ec(u),I=n*ol(u),P=i*ec(l),k=i*ol(l),hRi){var ie=na(m,A),re=na(y,A),Q=Ig(P,k,R,z,n,ie,d),J=Ig(M,I,$,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+R,f+z),e.arc(c,f,n,l,u,!d);if(!(i>Ri)||!V)e.lineTo(c+$,f+N);else if(T>Ri){var ie=na(v,T),re=na(g,T),Q=Ig($,N,M,I,i,-re,d),J=Ig(R,z,P,k,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+$,f+N),e.arc(c,f,i,u,l,d)}e.closePath()}}}var Nme=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}(),O6=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Nme},t.prototype.buildPath=function(r,n){Ome(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}($e);O6.prototype.type="sector";const In=O6;var zme=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),N6=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new zme},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}($e);N6.prototype.type="ring";const Sx=N6;function Bme(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=Bme(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;sll[1]){if(s=!1,a)return s;var c=Math.abs(ll[0]-sl[1]),f=Math.abs(sl[0]-ll[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 it(e,t,r,n,i,a){hI("update",e,t,r,n,i,a)}function Lt(e,t,r,n,i,a){hI("enter",e,t,r,n,i,a)}function Qc(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 eO(e){return!e.isGroup}function iye(e){return e.shape!=null}function xv(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){eO(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return iye(o)&&(s.shape=Y({},o.shape)),s}var a=n(e);t.traverse(function(o){if(eO(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),it(o,l,r,Ie(o).dataIndex)}}})}function X6(e,t){return Z(e,function(r){var n=r[0];n=s0(n,t.x),n=l0(n,t.x+t.width);var i=r[1];return i=s0(i,t.y),i=l0(i,t.y+t.height),[n,i]})}function aye(e,t){var r=s0(e.x,t.x),n=l0(e.x+e.width,t.x+t.width),i=s0(e.y,t.y),a=l0(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 Sv(e,t,r){var n=Y({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),xe(i,r),new Fr(n)):_x(e.replace("path://",""),n,r,"center")}function sh(e,t,r,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var g=Bb(h,p,c,f)/d;return!(g<0||g>1)}function Bb(e,t,r,n){return e*n-r*t}function oye(e){return e<=1e-6&&e>=-1e-6}function jf(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&&D(He(l),function(c){ce(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Ie(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:xe({content:n,formatterParams:s},i)}}function tO(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Hs(e,t){if(e)if(q(e))for(var r=0;r=0&&s.push(l)}),s}}function Ws(e,t){return Oe(Oe({},e,!0),t,!0)}const xye={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:". "}}}},Sye={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",vI="EN",Ep=vI,qm={},gI={},nW=tt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(c0)>-1?c0:Ep}():Ep;function iW(e,t){e=e.toUpperCase(),gI[e]=new wt(t),qm[e]=t}function bye(e){if(oe(e)){var t=qm[e.toUpperCase()]||{};return e===c0||e===vI?we(t):Oe(we(t),we(qm[Ep]),!1)}else return Oe(we(e),we(qm[Ep]),!1)}function DT(e){return gI[e]}function _ye(){return gI[Ep]}iW(vI,xye);iW(c0,Sye);var mI=1e3,yI=mI*60,Hh=yI*60,pi=Hh*24,oO=pi*365,lh={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}"},Dg="{yyyy}-{MM}-{dd}",sO={year:"{yyyy}",month:"{yyyy}-{MM}",day:Dg,hour:Dg+" "+lh.hour,minute:Dg+" "+lh.minute,second:Dg+" "+lh.second,millisecond:lh.none},Vb=["year","month","day","hour","minute","second","millisecond"],aW=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Oo(e,t){return e+="","0000".substr(0,t-e.length)+e}function Jc(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 wye(e){return e===Jc(e)}function Cye(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Ax(e,t,r,n){var i=Ba(e),a=i[xI(r)](),o=i[ef(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[Mx(r)](),u=i["get"+(r?"UTC":"")+"Day"](),c=i[Op(r)](),f=(c-1)%12+1,d=i[Ix(r)](),h=i[Px(r)](),p=i[kx(r)](),v=n instanceof wt?n:DT(n||nW)||_ye(),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,Oo(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Oo(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Oo(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Oo(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Oo(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Oo(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Oo(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Oo(p,3)).replace(/{S}/g,p+"")}function Tye(e,t,r,n,i){var a=null;if(oe(r))a=r;else if(me(r))a=r(e.value,t,{level:e.level});else{var o=Y({},lh);if(e.level>0)for(var s=0;s=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(q(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 Ax(new Date(e.value),a,i,n)}function oW(e,t){var r=Ba(e),n=r[ef(t)]()+1,i=r[Mx(t)](),a=r[Op(t)](),o=r[Ix(t)](),s=r[Px(t)](),l=r[kx(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 lO(e,t,r){var n=nt(e)?Ba(e):e;switch(t=t||oW(e,r),t){case"year":return n[xI(r)]();case"half-year":return n[ef(r)]()>=6?1:0;case"quarter":return Math.floor((n[ef(r)]()+1)/4);case"month":return n[ef(r)]();case"day":return n[Mx(r)]();case"half-day":return n[Op(r)]()/24;case"hour":return n[Op(r)]();case"minute":return n[Ix(r)]();case"second":return n[Px(r)]();case"millisecond":return n[kx(r)]()}}function xI(e){return e?"getUTCFullYear":"getFullYear"}function ef(e){return e?"getUTCMonth":"getMonth"}function Mx(e){return e?"getUTCDate":"getDate"}function Op(e){return e?"getUTCHours":"getHours"}function Ix(e){return e?"getUTCMinutes":"getMinutes"}function Px(e){return e?"getUTCSeconds":"getSeconds"}function kx(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Aye(e){return e?"setUTCFullYear":"setFullYear"}function sW(e){return e?"setUTCMonth":"setMonth"}function lW(e){return e?"setUTCDate":"setDate"}function uW(e){return e?"setUTCHours":"setHours"}function cW(e){return e?"setUTCMinutes":"setMinutes"}function fW(e){return e?"setUTCSeconds":"setSeconds"}function dW(e){return e?"setUTCMilliseconds":"setMilliseconds"}function hW(e){if(!YH(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 pW(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 Xf=U2;function RT(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Fi(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?Ba(e):e;if(isNaN(+l)){if(s)return"-"}else return Ax(l,n,r)}if(t==="ordinal")return ZC(e)?i(e):nt(e)&&a(e)?e+"":"-";var u=go(e);return a(u)?hW(u):ZC(e)?i(e):typeof e=="boolean"?e+"":"-"}var uO=["a","b","c","d","e","f","g"],Gb=function(e,t){return"{"+e+(t??"")+"}"};function vW(e,t,r){q(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 bu(e,t){return t=t||"transparent",oe(e)?e:Se(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function f0(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var Xm=D,gW=["left","right","top","bottom","width","height"],jl=[["width","left","right"],["height","top","bottom"]];function SI(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 ou=SI;Pe(SI,"vertical");Pe(SI,"horizontal");function Pye(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=Xf(r||0),{width:Math.max(s-a-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function hr(e,t,r){r=Xf(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 Dx(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=hr(xe({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 kye(e,t){return e[jl[t][0]]!=null||e[jl[t][1]]!=null&&e[jl[t][2]]!=null}function Np(e){var t=e.layoutMode||e.constructor.layoutMode;return Se(t)?t:t?{type:t}:null}function Rs(e,t,r){var n=r&&r.ignoreSize;!q(n)&&(n=[n,n]);var i=o(jl[0],0),a=o(jl[1],1);u(jl[0],e,i),u(jl[1],e,a);function o(c,f){var d={},h=0,p={},v=0,g=2;if(Xm(c,function(x){p[x]=e[x]}),Xm(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 gv(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);n6(Kf,wt);px(Kf);mye(Kf);yye(Kf,Rye);function Rye(e){var t=[];return D(Kf.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=Z(t,function(r){return ba(r).main}),e!=="dataset"&&ze(t,"dataset")<=0&&t.unshift("dataset"),t}const et=Kf;var yW="";typeof navigator<"u"&&(yW=navigator.platform||"");var tc="rgba(0, 0, 0, 0.2)";const Lye={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:tc,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:tc,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:tc,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:tc,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:tc,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:tc,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:yW.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 xW=ve(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Mi="original",Kr="arrayRows",Ii="objectRows",Va="keyedColumns",xs="typedArray",SW="unknown",ka="column",Qf="row",kr={Must:1,Might:2,Not:3},bW=Je();function Eye(e){bW(e).datasetMap=ve()}function _W(e,t,r){var n={},i=_I(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=bW(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),D(e,function(v,g){var m=Se(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});D(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 TW(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:Fye(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 $ye(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Rg,Id,fO,dO="\0_ec_inner",Vye=1,AW=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=vO(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,vO(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"?fO(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&&D(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=ve(),u=n&&n.replaceMergeMainTypeMap;Eye(this),D(r,function(f,d){f!=null&&(et.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?we(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=zye(this,f,pt(r[f])),h=a.get(f),p=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",v=QH(h,d,p);rge(v,f,et),i[f]=null,a.set(f,null),o.set(f,0);var g=[],m=[],y=0,x;D(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=Y({componentIndex:_},S.keyInfo);b=new A(w,this,this,T),Y(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"&&Rg(this)}this._seriesIndices||Rg(this)},t.prototype.getOption=function(){var r=we(this.option);return D(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]&&!Pp(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[dO],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 Qye(e,t){return e.join(",")===t.join(",")}const Jye=qye;var ki=D,zp=Se,gO=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Wb(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=gO.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=Uve(d,y),v=y;break}}}return n[0]=d,n[1]=v,n})})}var Rx=function(){function e(t){this.data=t.data||(t.sourceFormat===Va?{}:[]),this.sourceFormat=t.sourceFormat||SW,this.seriesLayoutBy=t.seriesLayoutBy||ka,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};wO=(t={},t[Kr+"_"+ka]={pure:!0,appendData:a},t[Kr+"_"+Qf]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Ii]={pure:!0,appendData:a},t[Va]={pure:!0,appendData:function(o){var s=this._data;D(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[Mi]={appendData:a},t[xs]={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 xf(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function MO(e){var t,r;return Se(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Wh(e){return new g0e(e)}var g0e=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}},y0e=function(){function e(t,r){if(!nt(r)){var n="";st(n)}this._opFn=BW[t],this._rvalFloat=go(r)}return e.prototype.evaluate=function(t){return nt(t)?this._opFn(t,this._rvalFloat):this._opFn(go(t),this._rvalFloat)},e}(),FW=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:go(t),i=nt(r)?r:go(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}(),x0e=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=go(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=go(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function S0e(e,t){return e==="eq"||e==="ne"?new x0e(e==="eq",t):ce(BW,e)?new y0e(e,t):null}var b0e=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 Ss(t,r)},e}();function _0e(e,t){var r=new b0e,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==ka&&st(o);var s=[],l={},u=e.dimensionsDefine;if(u)D(u,function(v,g){var m=v.name,y={index:g,name:m,displayName:v.displayName};if(s.push(y),m!=null){var x="";ce(l,m)&&st(x),l[m]=y}});else for(var c=0;c65535?k0e:D0e}function rc(){return[1/0,-1/0]}function R0e(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function kO(e,t,r,n,i){var a=GW[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(kd(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 Ss(r[a],this._dimensions[a])}Yb={arrayRows:t,objectRows:function(r,n,i,a){return Ss(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Ss(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),HW=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(Lg(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=Un(s)?xs:Mi,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?[OT(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=[OT(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&&RO(a)}var o,s=[],l=[];return D(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&RO(f),s.push(c),l.push(u._getVersionSign())}),n?o=I0e(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[u0e(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)?qve(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),YH),e=(+e).toFixed(t),r?e:+e}function gi(e){return e.sort(function(t,r){return t-r}),e}function Sa(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 Xve(e)}function Xve(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function qH(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function Zve(e,t){var r=Oa(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=Oa(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 Kve(e,t){var r=Math.max(Sa(e),Sa(t)),n=e+t;return r>YH?n:Xt(n,r)}var yE=9007199254740991;function XH(e){var t=Math.PI*2;return(e%t+t)%t}function a0(e){return e>-mE&&e=10&&t++,t}function ZH(e,t){var r=eI(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 _b(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 xE(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 wge=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Cge=xu(wge),Tge=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return Cge(this,t,r)},e}(),ST=new gv(50);function Age(e){if(typeof e=="string"){var t=ST.get(e);return t&&t.image}else return e}function iI(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=ST.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!vx(t)&&a.pending.push(o)):(t=Ps.loadImage(e,wE,wE),t.__zrImageSrc=e,ST.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function wE(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;l++)s-=o;var u=Gn(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 u6(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=Gn(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?Ige(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=Gn(e,n)}return e===""&&(e=t.placeholder),e}function Ige(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=l6(c,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;gs&&Cb(r,e.substring(s,u),t,o),Cb(r,l[2],t,o,l[1]),s=wb.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 I=w.width,P=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")b.percentWidth=I,c.push(b),b.contentWidth=Gn(b.text,T);else{if(P){var k=w.backgroundColor,R=k&&k.image;R&&(R=Age(R),vx(R)&&(b.width=Math.max(b.width,R.width*M/R.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=c6(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 Ege=Oa(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Oge(e){return Lge(e)?!!Ege[e]:!0}function c6(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 bT="__zr_style_"+Math.round(Math.random()*10),ru={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},gx={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ru[bT]=!0;var TE=["z","z2","invisible"],Nge=["invisible"],zge=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=He(r),i=0;i1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(Tg[0]=Ib(i)*r+e,Tg[1]=Mb(i)*n+t,Ag[0]=Ib(a)*r+e,Ag[1]=Mb(a)*n+t,u(s,Tg,Ag),c(l,Tg,Ag),i=i%el,i<0&&(i=i+el),a=a%el,a<0&&(a=a+el),i>a&&!o?a+=el:ii&&(Mg[0]=Ib(h)*r+e,Mg[1]=Mb(h)*n+t,u(s,Mg,s),c(l,Mg,l))}var xt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},tl=[],rl=[],ea=[],Lo=[],ta=[],ra=[],Pb=Math.min,kb=Math.max,nl=Math.cos,il=Math.sin,Ha=Math.abs,_T=Math.PI,Go=_T*2,Db=typeof Float32Array<"u",Td=[];function Rb(e){var t=Math.round(e/_T*1e8)/1e8;return t%2*_T}function f6(e,t){var r=Rb(e[0]);r<0&&(r+=Go);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=Go?i=r+Go:t&&r-i>=Go?i=r-Go:!t&&r>i?i=r+(Go-Rb(r-i)):t&&r0&&(this._ux=Ha(n/n0/t)||0,this._uy=Ha(n/n0/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=Ha(t-this._xi),i=Ha(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(),Td[0]=i,Td[1]=a,f6(Td,o),i=Td[0],a=Td[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=nl(a)*n+t,this._yi=il(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)&&Db&&(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(){ea[0]=ea[1]=ta[0]=ta[1]=Number.MAX_VALUE,Lo[0]=Lo[1]=ra[0]=ra[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;on||Ha(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=nve(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=ave(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++],I=t[d++],P=t[d++],k=P+I;d+=1,t[d++],p&&(s=nl(I)*T+C,l=il(I)*M+A),v=kb(T,M)*Pb(Go,Math.abs(P)),a=nl(k)*T+C,o=il(k)*M+A;break;case xt.R:{s=a=t[d++],l=o=t[d++];var R=t[d++],z=t[d++];v=R*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=Ha(f-u),T=Ha(d-c);if(A>i||T>a){if(h){var M=p[m++];if(g+M>y){var I=(y-g)/M;t.lineTo(u*(1-I)+f*I,c*(1-I)+d*I);break e}g+=M}t.lineTo(f,d),u=f,c=d,x=0}else{var P=A*A+T*T;P>x&&(S=f,_=d,x=P)}break}case xt.C:{var k=n[b++],R=n[b++],z=n[b++],$=n[b++],N=n[b++],V=n[b++];if(h){var M=p[m++];if(g+M>y){var I=(y-g)/M;ks(u,k,z,N,I,tl),ks(c,R,$,V,I,rl),t.bezierCurveTo(tl[1],rl[1],tl[2],rl[2],tl[3],rl[3]);break e}g+=M}t.bezierCurveTo(k,R,z,$,N,V),u=N,c=V;break}case xt.Q:{var k=n[b++],R=n[b++],z=n[b++],$=n[b++];if(h){var M=p[m++];if(g+M>y){var I=(y-g)/M;Ap(u,k,z,I,tl),Ap(c,R,$,I,rl),t.quadraticCurveTo(tl[1],rl[1],tl[2],rl[2]);break e}g+=M}t.quadraticCurveTo(k,R,z,$),u=z,c=$;break}case xt.A:var L=n[b++],G=n[b++],U=n[b++],B=n[b++],j=n[b++],X=n[b++],W=n[b++],ee=!n[b++],te=U>B?U:B,ie=Ha(U-B)>.001,re=j+X,Q=!1;if(h){var M=p[m++];g+M>y&&(re=j+X*(y-g)/M,Q=!0),g+=M}if(ie&&t.ellipse?t.ellipse(L,G,U,B,W,j,re,ee):t.arc(L,G,te,j,re,ee),Q)break e;C&&(s=nl(j)*U+L,l=il(j)*B+G),u=nl(re)*U+L,c=il(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++],fe=n[b++];if(h){var M=p[m++];if(g+M>y){var de=y-g;t.moveTo(f,d),t.lineTo(f+Pb(de,J),d),de-=J,de>0&&t.lineTo(f+J,d+Pb(de,fe)),de-=fe,de>0&&t.lineTo(f+kb(J-de,0),d+fe),de-=J,de>0&&t.lineTo(f,d+kb(fe-de,0));break e}g+=M}t.rect(f,d,J,fe);break;case xt.Z:if(h){var M=p[m++];if(g+M>y){var I=(y-g)/M;t.lineTo(u*(1-I)+s*I,c*(1-I)+l*I);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 Fa=Gge;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+=Ad);var d=Math.atan2(l,s);return d<0&&(d+=Ad),d>=n&&d<=i||d+Ad>=n&&d+Ad<=i}function Xa(e,t,r,n,i,a){if(a>t&&a>n||ai?s:0}var Eo=Fa.CMD,al=Math.PI*2,Uge=1e-4;function jge(e,t){return Math.abs(e-t)t&&u>n&&u>a&&u>s||u1&&Yge(),h=vr(t,n,a,s,ni[0]),d>1&&(p=vr(t,n,a,s,ni[1]))),d===2?gt&&s>n&&s>a||s=0&&u<=1){for(var c=0,f=_r(t,n,a,u),d=0;dr||s<-r)return 0;var l=Math.sqrt(r*r-s*s);rn[0]=-l,rn[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=al-1e-4){n=0,i=al;var c=a?1:-1;return o>=rn[0]+e&&o<=rn[1]+e?c:0}if(n>i){var f=n;n=i,i=f}n<0&&(n+=al,i+=al);for(var d=0,h=0;h<2;h++){var p=rn[h];if(p+e>o){var v=Math.atan2(s,p),c=a?1:-1;v<0&&(v=al+v),(v>=n&&v<=i||v+al>=n&&v+al<=i)&&(v>Math.PI/2&&v1&&(r||(s+=Xa(l,u,c,f,n,i))),g&&(l=a[p],u=a[p+1],c=l,f=u),v){case Eo.M:c=a[p++],f=a[p++],l=c,u=f;break;case Eo.L:if(r){if(jo(l,u,a[p],a[p+1],t,n,i))return!0}else s+=Xa(l,u,a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case Eo.C:if(r){if(Hge(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],t,n,i))return!0}else s+=qge(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 Eo.Q:if(r){if(d6(l,u,a[p++],a[p++],a[p],a[p+1],t,n,i))return!0}else s+=Xge(l,u,a[p++],a[p++],a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case Eo.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+=Xa(l,u,d,h,n,i);var C=(n-m)*S/x+m;if(r){if(Wge(m,y,S,_,_+b,w,t,C,i))return!0}else s+=Zge(m,y,S,_,_+b,w,C,i);l=Math.cos(_+b)*x+m,u=Math.sin(_+b)*S+y;break;case Eo.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+=Xa(d,f,d,h,n,i),s+=Xa(c,h,c,f,n,i);break;case Eo.Z:if(r){if(jo(l,u,c,f,t,n,i))return!0}else s+=Xa(l,u,c,f,n,i);l=c,u=f;break}}return!r&&!jge(u,f)&&(s+=Xa(l,u,c,f,n,i)||0),s!==0}function Kge(e,t,r){return h6(e,0,!1,t,r)}function Qge(e,t,r,n){return h6(e,t,!0,r,n)}var o0=xe({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ru),Jge={style:xe({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},gx.style)},Lb=za.concat(["invisible","culling","z","z2","zlevel","parent"]),eme=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?mT:n>.2?Nve:yT}else if(r)return yT}return mT},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(oe(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=t0(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&yc)&&(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)),Qge(s,l/u,r,n)))return!0}if(this.hasFill())return Kge(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=yc,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:Y(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&yc)},t.prototype.createStyle=function(r){return cx(o0,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=Y({},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=Y({},i.shape),Y(u,n.shape)):(u=Y({},a?this.shape:i.shape),Y(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=Y({},this.shape);for(var c={},f=He(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 cx(tme,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=mv(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}(wi);p6.prototype.type="tspan";const kp=p6;var rme=xe({x:0,y:0},ru),nme={style:xe({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},gx.style)};function ime(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var v6=function(e){Dt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return cx(rme,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=ime(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 nme},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}(wi);v6.prototype.type="image";const Fr=v6;function ame(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 zc=Math.round;function g6(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&&(zc(n*2)===zc(i*2)&&(e.x1=e.x2=Wl(n,s,!0)),zc(a*2)===zc(o*2)&&(e.y1=e.y2=Wl(a,s,!0))),e}}function m6(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=Wl(n,s,!0),e.y=Wl(i,s,!0),e.width=Math.max(Wl(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Wl(i+o,s,!1)-e.y,o===0?0:1)),e}}function Wl(e,t,r){if(!t)return e;var n=zc(e*2);return(n+zc(t))%2===0?n/2:(n+(r?1:-1))/2}var ome=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),sme={},y6=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new ome},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=m6(sme,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?ame(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}($e);y6.prototype.type="rect";const Qe=y6;var kE={fill:"#000"},DE=2,lme={style:xe({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},gx.style)},x6=function(e){Dt(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=kE,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,I=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),P=o.calculatedLineHeight,k=0;k=0&&(k=b[P],k.align==="right");)this._placeToken(k,r,C,m,I,"right",x),A-=k.width,I-=k.width,P--;for(M+=(a-(M-g)-(y-I)-A)/2;T<=P;)k=b[T],this._placeToken(k,r,C,m,M+k.width/2,"center",x),M+=k.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&&Eb(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=zE(o,s,p),f-=r.height/2-p[0]-r.innerHeight/2);var v=this._getOrCreateChild(kp),g=v.createStyle();v.useStyle(g);var m=this._defaultStyle,y=!1,x=0,S=NE("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),_=OE("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!m.autoStroke||y)?(x=DE,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||Is,g.opacity=Pa(u.opacity,n.opacity,1),LE(g,u),_&&(g.lineWidth=Pa(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(ah(g.x,w,g.textAlign),xc(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(Fr),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=Pa(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return b6(r)&&(n=[r.fontStyle,r.fontWeight,S6(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Fi(n)||r.textFont||r.font},t}(wi),ume={left:!0,right:1,center:1},cme={top:1,bottom:1,middle:1},RE=["fontStyle","fontWeight","fontSize","fontFamily"];function S6(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?$2+"px":e+"px"}function LE(e,t){for(var r=0;r=0,a=!1;if(e instanceof $e){var o=_6(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Qu(s)||Qu(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=Y({},n),u=Y({},u),u.fill=s):!Qu(u.fill)&&Qu(s)?(a=!0,n=Y({},n),u=Y({},u),u.fill=GE(s)):!Qu(u.stroke)&&Qu(l)&&(a||(n=Y({},n),u=Y({},u)),u.stroke=GE(l)),n.style=u}}if(n&&n.z2==null){a||(n=Y({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??Wf)}return n}function mme(e,t,r){if(r&&r.z2==null){r=Y({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??dme)}return r}function yme(e,t,r){var n=ze(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:vme(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=Y({},r),o=Y({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Ob(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return gme(this,e,t,r);if(e==="blur")return yme(this,e,r);if(e==="select")return mme(this,e,r)}return r}function Su(e){e.stateProxy=Ob;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Ob),r&&(r.stateProxy=Ob)}function WE(e,t){!P6(e,t)&&!e.__highByOuter&&To(e,w6)}function UE(e,t){!P6(e,t)&&!e.__highByOuter&&To(e,C6)}function mo(e,t){e.__highByOuter|=1<<(t||0),To(e,w6)}function yo(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&To(e,C6)}function A6(e){To(e,sI)}function lI(e){To(e,T6)}function M6(e){To(e,hme)}function I6(e){To(e,pme)}function P6(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function k6(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=aI(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){T6(u)}),s&&r.push(a)),o.isBlured=!1}),D(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function CT(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 iu(e,t,r){Ul(e,!0),To(e,Su),AT(e,t,r)}function Cme(e){Ul(e,!1)}function Ut(e,t,r,n){n?Cme(e):iu(e,t,r)}function AT(e,t,r){var n=Ie(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var YE=["emphasis","blur","select"],Tme={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function zr(e,t,r,n){r=r||"itemStyle";for(var i=0;i1&&(o*=Nb(p),s*=Nb(p));var v=(i===a?-1:1)*Nb((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+Pg(f)*g-Ig(f)*m,x=(t+n)/2+Ig(f)*g+Pg(f)*m,S=KE([1,0],[(d-g)/o,(h-m)/s]),_=[(d-g)/o,(h-m)/s],b=[(-1*d-g)/o,(-1*h-m)/s],w=KE(_,b);if(IT(_,b)<=-1&&(w=Md),IT(_,b)>=1&&(w=0),w<0){var C=Math.round(w/Md*1e6)/1e6;w=Md*2+C%2*Md}c.addData(u,y,x,o,s,S,w,f,a)}var Dme=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Rme=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Lme(e){var t=new Fa;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=Fa.CMD,l=e.match(Dme);if(!l)return t;for(var u=0;uk*k+R*R&&(C=T,A=M),{cx:C,cy:A,x0:-c,y0:-f,x1:C*(i/_-1),y1:A*(i/_-1)}}function $me(e){var t;if(q(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 Vme(e,t){var r,n=oh(t.r,0),i=oh(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=JE(u-l),p=h>zb&&h%zb;if(p>Ri&&(h=p),!(n>Ri))e.moveTo(c,f);else if(h>zb-Ri)e.moveTo(c+n*ec(l),f+n*ol(l)),e.arc(c,f,n,l,u,!d),i>Ri&&(e.moveTo(c+i*ec(u),f+i*ol(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,I=void 0,P=void 0,k=void 0,R=n*ec(l),z=n*ol(l),$=i*ec(u),N=i*ol(u),V=h>Ri;if(V){var L=t.cornerRadius;L&&(r=$me(L),v=r[0],g=r[1],m=r[2],y=r[3]);var G=JE(n-i)/2;if(x=na(G,m),S=na(G,y),_=na(G,v),b=na(G,g),A=w=oh(x,S),T=C=oh(_,b),(w>Ri||C>Ri)&&(M=n*ec(u),I=n*ol(u),P=i*ec(l),k=i*ol(l),hRi){var ie=na(m,A),re=na(y,A),Q=kg(P,k,R,z,n,ie,d),J=kg(M,I,$,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+R,f+z),e.arc(c,f,n,l,u,!d);if(!(i>Ri)||!V)e.lineTo(c+$,f+N);else if(T>Ri){var ie=na(v,T),re=na(g,T),Q=kg($,N,M,I,i,-re,d),J=kg(R,z,P,k,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+$,f+N),e.arc(c,f,i,u,l,d)}e.closePath()}}}var Gme=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}(),F6=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Gme},t.prototype.buildPath=function(r,n){Vme(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}($e);F6.prototype.type="sector";const In=F6;var Hme=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),$6=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Hme},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}($e);$6.prototype.type="ring";const Sx=$6;function Wme(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=Wme(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;sll[1]){if(s=!1,a)return s;var c=Math.abs(ll[0]-sl[1]),f=Math.abs(sl[0]-ll[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 it(e,t,r,n,i,a){pI("update",e,t,r,n,i,a)}function Lt(e,t,r,n,i,a){pI("enter",e,t,r,n,i,a)}function Qc(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 rO(e){return!e.isGroup}function cye(e){return e.shape!=null}function bv(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){rO(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return cye(o)&&(s.shape=Y({},o.shape)),s}var a=n(e);t.traverse(function(o){if(rO(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),it(o,l,r,Ie(o).dataIndex)}}})}function J6(e,t){return Z(e,function(r){var n=r[0];n=u0(n,t.x),n=c0(n,t.x+t.width);var i=r[1];return i=u0(i,t.y),i=c0(i,t.y+t.height),[n,i]})}function fye(e,t){var r=u0(e.x,t.x),n=c0(e.x+e.width,t.x+t.width),i=u0(e.y,t.y),a=c0(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 _v(e,t,r){var n=Y({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),xe(i,r),new Fr(n)):_x(e.replace("path://",""),n,r,"center")}function sh(e,t,r,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var g=Bb(h,p,c,f)/d;return!(g<0||g>1)}function Bb(e,t,r,n){return e*n-r*t}function dye(e){return e<=1e-6&&e>=-1e-6}function jf(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&&D(He(l),function(c){ce(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Ie(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:xe({content:n,formatterParams:s},i)}}function nO(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Hs(e,t){if(e)if(q(e))for(var r=0;r=0&&s.push(l)}),s}}function Ws(e,t){return Oe(Oe({},e,!0),t,!0)}const Tye={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:". "}}}},Aye={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 d0="ZH",gI="EN",Ep=gI,Zm={},mI={},sW=tt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(d0)>-1?d0:Ep}():Ep;function lW(e,t){e=e.toUpperCase(),mI[e]=new wt(t),Zm[e]=t}function Mye(e){if(oe(e)){var t=Zm[e.toUpperCase()]||{};return e===d0||e===gI?we(t):Oe(we(t),we(Zm[Ep]),!1)}else return Oe(we(e),we(Zm[Ep]),!1)}function DT(e){return mI[e]}function Iye(){return mI[Ep]}lW(gI,Tye);lW(d0,Aye);var yI=1e3,xI=yI*60,Hh=xI*60,pi=Hh*24,lO=pi*365,lh={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}"},Lg="{yyyy}-{MM}-{dd}",uO={year:"{yyyy}",month:"{yyyy}-{MM}",day:Lg,hour:Lg+" "+lh.hour,minute:Lg+" "+lh.minute,second:Lg+" "+lh.second,millisecond:lh.none},Vb=["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 Oo(e,t){return e+="","0000".substr(0,t-e.length)+e}function Jc(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 Pye(e){return e===Jc(e)}function kye(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Ax(e,t,r,n){var i=Ba(e),a=i[SI(r)](),o=i[ef(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[Mx(r)](),u=i["get"+(r?"UTC":"")+"Day"](),c=i[Op(r)](),f=(c-1)%12+1,d=i[Ix(r)](),h=i[Px(r)](),p=i[kx(r)](),v=n instanceof wt?n:DT(n||sW)||Iye(),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,Oo(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Oo(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Oo(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Oo(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Oo(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Oo(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Oo(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Oo(p,3)).replace(/{S}/g,p+"")}function Dye(e,t,r,n,i){var a=null;if(oe(r))a=r;else if(me(r))a=r(e.value,t,{level:e.level});else{var o=Y({},lh);if(e.level>0)for(var s=0;s=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(q(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 Ax(new Date(e.value),a,i,n)}function cW(e,t){var r=Ba(e),n=r[ef(t)]()+1,i=r[Mx(t)](),a=r[Op(t)](),o=r[Ix(t)](),s=r[Px(t)](),l=r[kx(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 cO(e,t,r){var n=nt(e)?Ba(e):e;switch(t=t||cW(e,r),t){case"year":return n[SI(r)]();case"half-year":return n[ef(r)]()>=6?1:0;case"quarter":return Math.floor((n[ef(r)]()+1)/4);case"month":return n[ef(r)]();case"day":return n[Mx(r)]();case"half-day":return n[Op(r)]()/24;case"hour":return n[Op(r)]();case"minute":return n[Ix(r)]();case"second":return n[Px(r)]();case"millisecond":return n[kx(r)]()}}function SI(e){return e?"getUTCFullYear":"getFullYear"}function ef(e){return e?"getUTCMonth":"getMonth"}function Mx(e){return e?"getUTCDate":"getDate"}function Op(e){return e?"getUTCHours":"getHours"}function Ix(e){return e?"getUTCMinutes":"getMinutes"}function Px(e){return e?"getUTCSeconds":"getSeconds"}function kx(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Rye(e){return e?"setUTCFullYear":"setFullYear"}function fW(e){return e?"setUTCMonth":"setMonth"}function dW(e){return e?"setUTCDate":"setDate"}function hW(e){return e?"setUTCHours":"setHours"}function pW(e){return e?"setUTCMinutes":"setMinutes"}function vW(e){return e?"setUTCSeconds":"setSeconds"}function gW(e){return e?"setUTCMilliseconds":"setMilliseconds"}function mW(e){if(!KH(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 yW(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 Xf=j2;function RT(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Fi(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?Ba(e):e;if(isNaN(+l)){if(s)return"-"}else return Ax(l,n,r)}if(t==="ordinal")return ZC(e)?i(e):nt(e)&&a(e)?e+"":"-";var u=go(e);return a(u)?mW(u):ZC(e)?i(e):typeof e=="boolean"?e+"":"-"}var fO=["a","b","c","d","e","f","g"],Gb=function(e,t){return"{"+e+(t??"")+"}"};function xW(e,t,r){q(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 bu(e,t){return t=t||"transparent",oe(e)?e:Se(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function h0(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var Km=D,SW=["left","right","top","bottom","width","height"],jl=[["width","left","right"],["height","top","bottom"]];function bI(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 ou=bI;Pe(bI,"vertical");Pe(bI,"horizontal");function Oye(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=Xf(r||0),{width:Math.max(s-a-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function hr(e,t,r){r=Xf(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 Dx(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=hr(xe({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 Nye(e,t){return e[jl[t][0]]!=null||e[jl[t][1]]!=null&&e[jl[t][2]]!=null}function Np(e){var t=e.layoutMode||e.constructor.layoutMode;return Se(t)?t:t?{type:t}:null}function Rs(e,t,r){var n=r&&r.ignoreSize;!q(n)&&(n=[n,n]);var i=o(jl[0],0),a=o(jl[1],1);u(jl[0],e,i),u(jl[1],e,a);function o(c,f){var d={},h=0,p={},v=0,g=2;if(Km(c,function(x){p[x]=e[x]}),Km(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 yv(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);s6(Kf,wt);px(Kf);wye(Kf);Cye(Kf,Bye);function Bye(e){var t=[];return D(Kf.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=Z(t,function(r){return ba(r).main}),e!=="dataset"&&ze(t,"dataset")<=0&&t.unshift("dataset"),t}const et=Kf;var _W="";typeof navigator<"u"&&(_W=navigator.platform||"");var tc="rgba(0, 0, 0, 0.2)";const Fye={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:tc,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:tc,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:tc,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:tc,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:tc,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:tc,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:_W.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 wW=ve(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Mi="original",Kr="arrayRows",Ii="objectRows",Va="keyedColumns",xs="typedArray",CW="unknown",ka="column",Qf="row",kr={Must:1,Might:2,Not:3},TW=Je();function $ye(e){TW(e).datasetMap=ve()}function AW(e,t,r){var n={},i=wI(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=TW(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),D(e,function(v,g){var m=Se(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});D(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 PW(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:Uye(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 jye(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Eg,Id,hO,pO="\0_ec_inner",Yye=1,kW=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=mO(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,mO(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"?hO(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&&D(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=ve(),u=n&&n.replaceMergeMainTypeMap;$ye(this),D(r,function(f,d){f!=null&&(et.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?we(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=Hye(this,f,pt(r[f])),h=a.get(f),p=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",v=r6(h,d,p);lge(v,f,et),i[f]=null,a.set(f,null),o.set(f,0);var g=[],m=[],y=0,x;D(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=Y({componentIndex:_},S.keyInfo);b=new A(w,this,this,T),Y(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"&&Eg(this)}this._seriesIndices||Eg(this)},t.prototype.getOption=function(){var r=we(this.option);return D(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]&&!Pp(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[pO],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 i0e(e,t){return e.join(",")===t.join(",")}const a0e=e0e;var ki=D,zp=Se,yO=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Wb(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=yO.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=Kve(d,y),v=y;break}}}return n[0]=d,n[1]=v,n})})}var Rx=function(){function e(t){this.data=t.data||(t.sourceFormat===Va?{}:[]),this.sourceFormat=t.sourceFormat||CW,this.seriesLayoutBy=t.seriesLayoutBy||ka,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};TO=(t={},t[Kr+"_"+ka]={pure:!0,appendData:a},t[Kr+"_"+Qf]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Ii]={pure:!0,appendData:a},t[Va]={pure:!0,appendData:function(o){var s=this._data;D(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[Mi]={appendData:a},t[xs]={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 xf(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function PO(e){var t,r;return Se(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Wh(e){return new _0e(e)}var _0e=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}},C0e=function(){function e(t,r){if(!nt(r)){var n="";st(n)}this._opFn=GW[t],this._rvalFloat=go(r)}return e.prototype.evaluate=function(t){return nt(t)?this._opFn(t,this._rvalFloat):this._opFn(go(t),this._rvalFloat)},e}(),HW=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:go(t),i=nt(r)?r:go(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}(),T0e=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=go(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=go(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function A0e(e,t){return e==="eq"||e==="ne"?new T0e(e==="eq",t):ce(GW,e)?new C0e(e,t):null}var M0e=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 Ss(t,r)},e}();function I0e(e,t){var r=new M0e,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==ka&&st(o);var s=[],l={},u=e.dimensionsDefine;if(u)D(u,function(v,g){var m=v.name,y={index:g,name:m,displayName:v.displayName};if(s.push(y),m!=null){var x="";ce(l,m)&&st(x),l[m]=y}});else for(var c=0;c65535?N0e:z0e}function rc(){return[1/0,-1/0]}function B0e(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function RO(e,t,r,n,i){var a=jW[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(kd(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 Ss(r[a],this._dimensions[a])}Yb={arrayRows:t,objectRows:function(r,n,i,a){return Ss(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Ss(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),YW=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(Og(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=Un(s)?xs:Mi,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?[OT(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=[OT(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&&EO(a)}var o,s=[],l=[];return D(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&EO(f),s.push(c),l.push(u._getVersionSign())}),n?o=E0e(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[v0e(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 D(e.blocks,function(i){var a=YW(i);a>=t&&(t=a+ +(n&&(!a||zT(i)&&!i.noHeader)))}),t}return 0}function O0e(e,t,r,n){var i=t.noHeader,a=z0e(YW(t)),o=[],s=t.blocks||[];ln(!s||q(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ce(u,l)){var c=new FW(u[l],null);s.sort(function(p,v){return c.evaluate(p.sortParam,v.sortParam)})}else l==="seriesDesc"&&s.reverse()}D(s,function(p,v){var g=t.valueFormatter,m=jW(p)(g?Y(Y({},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):BT(o.join(""),i?r:a.html);if(i)return f;var d=RT(t.header,"ordinal",e.useUTC),h=UW(n,e.renderMode).nameStyle;return e.renderMode==="richText"?qW(e,d,h)+a.richText+f:BT('
'+mn(d)+"
"+f,r)}function N0e(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=q(S)?S:[S],Z(S,function(_,b){return RT(_,q(h)?h[b]:h,u)})};if(!(a&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),d=a?"":RT(l,"ordinal",u),h=t.valueType,p=o?[]:c(t.value),v=!s||!a,g=!s&&a,m=UW(n,i),y=m.nameStyle,x=m.valueStyle;return i==="richText"?(s?"":f)+(a?"":qW(e,d,y))+(o?"":$0e(e,p,v,g,x)):BT((s?"":f)+(a?"":B0e(d,!s,y))+(o?"":F0e(p,v,g,x)),r)}}function LO(e,t,r,n,i,a){if(e){var o=jW(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function z0e(e){return{html:L0e[e],richText:E0e[e]}}function BT(e,t){var r='
',n="margin: "+t+"px 0 0";return'
'+e+r+"
"}function B0e(e,t,r){var n=t?"margin-left:2px":"";return''+mn(e)+""}function F0e(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=q(e)?e:[e],''+Z(e,function(o){return mn(o)}).join("  ")+""}function qW(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function $0e(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(q(t)?t.join(" "):t,a)}function XW(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return bu(n)}function ZW(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var qb=function(){function e(){this.richTextStyles={},this._nextStyleNameId=qH()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=Iye({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={};q(r)?D(r,function(a){return Y(n,a)}):Y(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function KW(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=q(s),u=XW(t,r),c,f,d,h;if(o>1||l&&!o){var p=V0e(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=xf(i,r,a[0]),f=v.type}else h=c=l?s[0]:s;var g=eI(t),m=g&&t.name||"",y=i.getName(r),x=n?m:y;return xr("section",{header:m,noHeader:n||!g,sortParam:h,blocks:[xr("nameValue",{markerType:"item",markerColor:u,name:x,noName:!Fi(x),value:c,valueType:f})].concat(d||[])})}function V0e(e,t,r,n,i){var a=t.getData(),o=Oa(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?D(n,function(f){c(xf(a,r,f),f)}):D(e,c);function c(f,d){var h=a.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(xr("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 No=Je();function Eg(e,t){return e.getName(t)||e.getId(t)}var Zm="__universalTransitionEnabled",Ex=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=Wh({count:H0e,reset:W0e}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=No(this).sourceManager=new HW(this);a.prepareSource();var o=this.getInitialData(r,i);OO(o,this),this.dataTask.context.data=o,No(this).dataBeforeProcessed=o,EO(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Np(this),a=i?Zf(r):{},o=this.subType;et.hasClass(o)&&(o+="Series"),Oe(r,n.getTheme().get(this.subType)),Oe(r,this.getDefaultOption()),mu(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Rs(r,a,i)},t.prototype.mergeOption=function(r,n){r=Oe(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Np(this);i&&Rs(this.option,r,i);var a=No(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);OO(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,No(this).dataBeforeProcessed=o,EO(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!Un(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=wI.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[Eg(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Zm])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"){Se(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);lr(Ex,MI);lr(Ex,wI);n6(Ex,et);function EO(e){var t=e.name;eI(e)||(e.name=G0e(e)||t)}function G0e(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return D(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function H0e(e){return e.model.getRawData().count()}function W0e(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),U0e}function U0e(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function OO(e,t){D(Xy(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Pe(j0e,t))})}function j0e(e,t){var r=FT(e);return r&&r.setOutputEnd((t||this).count()),t}function FT(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=Ex;var PI=function(){function e(){this.group=new Ae,this.uid=qf("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}();rI(PI);px(PI);const jt=PI;function Jf(){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 QW=Je(),Y0e=Jf(),kI=function(){function e(){this.group=new Ae,this.uid=qf("viewChart"),this.renderTask=Wh({plan:q0e,reset:X0e}),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&&zO(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&zO(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){Hs(this.group,t)},e.markUpdateMethod=function(t,r){QW(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function NO(e,t,r){e&&Rp(e)&&(t==="emphasis"?mo:yo)(e,r)}function zO(e,t,r){var n=yu(e,t),i=t&&t.highlightKey!=null?bme(t.highlightKey):null;n!=null?D(pt(n),function(a){NO(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){NO(a,r,i)})}rI(kI);px(kI);function q0e(e){return Y0e(e.model)}function X0e(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&QW(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),Z0e[l]}var Z0e={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=kI;var d0="\0__throttleOriginMethod",BO="\0__throttleRate",FO="\0__throttleType";function DI(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 ed(e,t,r,n){var i=e[t];if(i){var a=i[d0]||i,o=i[FO],s=i[BO];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=DI(a,r,n==="debounce"),i[d0]=a,i[FO]=n,i[BO]=r}return i}}function Bp(e,t){var r=e[t];r&&r[d0]&&(r.clear&&r.clear(),e[t]=r[d0])}var $O=Je(),VO={itemStyle:xu(rW,!0),lineStyle:xu(tW,!0)},K0e={lineStyle:"stroke",itemStyle:"fill"};function JW(e,t){var r=e.visualStyleMapper||VO[t];return r||(console.warn("Unknown style type '"+t+"'."),VO.itemStyle)}function eU(e,t){var r=e.visualDrawType||K0e[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var Q0e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=JW(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=eU(e,n),u=o[l],c=me(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"||me(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||me(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=Y({},o);g[l]=c(v),h.setItemVisual(p,"style",g)}}}},Dd=new wt,J0e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=JW(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Dd.option=l[n];var u=i(Dd),c=o.ensureUniqueItemVisual(s,"style");Y(c,u),Dd.option.decal&&(o.setItemVisual(s,"decal",Dd.option.decal),Dd.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},e1e={performRawSeries:!0,overallReset:function(e){var t=ve();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)),$O(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=$O(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=eU(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)}})}})}},Og=Math.PI;function t1e(e,t){t=t||{},xe(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 Ae,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 fI({shape:{startAngle:-Og/2,endAngle:-Og/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:Og*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Og*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 r1e=function(){function e(t,r,n,i){this._stageTaskMap=ve(),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=ve();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;D(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";ln(!(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;D(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=ve(),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)||Wh({plan:s1e,reset:l1e,count:c1e}));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||Wh({reset:n1e});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=ve(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,h="";ln(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,p):c?c(n,i).each(p):(f=!1,D(n.getSeries(),p));function p(v){var g=v.uid,m=l.set(g,s&&s.get(g)||(d=!0,Wh({reset:i1e,onDirty:o1e})));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 me(t)&&(t={overallReset:t,seriesType:f1e(t)}),t.uid=qf("stageHandler"),r&&(t.visualType=r),t},e}();function n1e(e){e.overallReset(e.ecModel,e.api,e.payload)}function i1e(e){return e.overallProgress&&a1e}function a1e(){this.agent.dirty(),this.getDownstream().dirty()}function o1e(){this.agent&&this.agent.dirty()}function s1e(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function l1e(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 tU(n)}):u1e}var u1e=tU(0);function tU(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}(),$T=["symbol","symbolSize","symbolRotate","symbolOffset"],UO=$T.concat(["symbolKeepAspect"]),v1e={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<$T.length;o++){var s=$T[o],l=e.get(s);me(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(Y({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=He(i);function c(f,d){for(var h=e.getRawValue(d),p=e.getDataParams(d),v=0;v=0&&ql(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function VT(e,t,r){for(var n=t.type==="radial"?D1e(e,t,r):k1e(e,t,r),i=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:nt(e)?[e]:q(e)?e:null}function LI(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&L1e(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 E1e=new Fa(!0);function v0(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function jO(e){return typeof e=="string"&&e!=="none"}function g0(e){var t=e.fill;return t!=null&&t!=="none"}function YO(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 qO(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 GT(e,t,r){var n=nI(t.image,t.__image,r);if(vx(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)*Nm),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function O1e(e,t,r,n){var i,a=v0(r),o=g0(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||E1e,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?VT(e,d,b):t.__canvasFillGradient,t.__canvasFillGradient=y),v&&(x=f?VT(e,h,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=x),g&&(S=f||!t.__canvasFillPattern?GT(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=S),m&&(_=f||!t.__canvasStrokePattern?GT(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=LI(t),C=i[0],A=i[1]);var T=!0;(u||f&yc)&&(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&&qO(e,r),o&&YO(e,r)):(o&&YO(e,r),a&&qO(e,r))),C&&e.setLineDash([])}function N1e(e,t,r){var n=t.__image=nI(r.image,t.__image,t,t.onload);if(!(!n||!vx(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 z1e(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||Is,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=LI(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(v0(r)&&e.strokeText(i,r.x,r.y),g0(r)&&e.fillText(i,r.x,r.y)):(g0(r)&&e.fillText(i,r.x,r.y),v0(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var XO=["shadowBlur","shadowOffsetX","shadowOffsetY"],ZO=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function lU(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){Sn(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?ru.opacity:o}(n||t.blend!==r.blend)&&(a||(Sn(e,i),a=!0),e.globalCompositeOperation=t.blend||ru.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(Se(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 Jye(this._api),u=this._theme,c=this._model=new MW;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},WT);var f={seriesTransition:s,optionChanged:!0};if(i)this[pn]={silent:a,updateParams:f},this[Wr]=!1,this.getZr().wakeUp();else{try{ic(this),zo.update.call(this,null,f)}catch(d){throw this[pn]=null,this[Wr]=!1,d}this._ssr||this._zr.flush(),this[pn]=null,this[Wr]=!1,Rd.call(this,a),Ld.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 D(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;D(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 D(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(jT[i]){var l=s,u=s,c=-s,f=-s,d=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();D(tf,function(x,S){if(x.group===i){var _=n?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(we(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=Ps.createCanvas(),m=pE(g,{renderer:n?"svg":"canvas"});if(m.resize({width:p,height:v}),n){var y="";return D(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}})),D(d,function(x){var S=new Fr({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 Jb(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return Jb(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Fh(i,r);return D(o,function(s,l){l.indexOf("Models")>=0&&D(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=Fh(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?RI(s,l,n):wv(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;D(uxe,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Yl(s,function(p){var v=Ie(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=Y({},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)}),D(Uh,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),D(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),m1e(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&e6(this.getDom(),NI,"");var n=this,i=n._api,a=n._model;D(n._componentsViews,function(o){o.dispose(a,i)}),D(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 tf[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[pn]&&(a==null&&(a=this[pn].silent),i=!0,this[pn]=null),this[Wr]=!0;try{i&&ic(this),zo.update.call(this,{type:"resize",animation:Y({duration:0},r&&r.animation)})}catch(o){throw this[Wr]=!1,o}this[Wr]=!1,Rd.call(this,a),Ld.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(Se(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!UT[r]){var i=UT[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=Y({},r);return n.type=Uh[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(Se(n)||(n={silent:!!n}),!!y0[r.type]&&this._model){if(this[Wr]){this._pendingActions.push(r);return}var i=n.silent;t_.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&tt.browser.weChat&&this._throttledZrFlush(),Rd.call(this,i),Ld.call(this,i)}},t.prototype.updateLabelLayout=function(){Ei.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(){ic=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),Qb(f,!0),Qb(f,!1),d.plan()},Qb=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(Qc(m))return;if(m instanceof $e&&_me(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)}})}uN=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){mo(p,v),Zn(f)},h.prototype.leaveEmphasis=function(p,v){yo(p,v),Zn(f)},h.prototype.enterBlur=function(p){_6(p),Zn(f)},h.prototype.leaveBlur=function(p){sI(p),Zn(f)},h.prototype.enterSelect=function(p){w6(p),Zn(f)},h.prototype.leaveSelect=function(p){C6(p),Zn(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}(IW))(f)},wU=function(f){function d(h,p){for(var v=0;v=0)){fN.push(r);var a=iU.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function IU(e,t){UT[e]=t}function xxe(e,t,r){var n=q1e("registerMap");n&&n(e,t,r)}var Sxe=M0e;Eu(EI,Q0e);Eu(Ox,J0e);Eu(Ox,e1e);Eu(EI,v1e);Eu(Ox,g1e);Eu(mU,U1e);AU(kW);MU(K1e,s0e);IU("default",t1e);Ga({type:nu,event:nu,update:nu},rr);Ga({type:Um,event:Um,update:Um},rr);Ga({type:$h,event:$h,update:$h},rr);Ga({type:jm,event:jm,update:jm},rr);Ga({type:Vh,event:Vh,update:Vh},rr);zI("light",d1e);zI("dark",h1e);var dN=[],bxe={registerPreprocessor:AU,registerProcessor:MU,registerPostInit:vxe,registerPostUpdate:gxe,registerUpdateLifecycle:BI,registerAction:Ga,registerCoordinateSystem:mxe,registerLayout:yxe,registerVisual:Eu,registerTransform:Sxe,registerLoading:IU,registerMap:xxe,registerImpl:Y1e,PRIORITY:oxe,ComponentModel:et,ComponentView:jt,SeriesModel:zt,ChartView:Tt,registerComponentModel:function(e){et.registerClass(e)},registerComponentView:function(e){jt.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){Vve(e,t)}};function Fe(e){if(q(e)){D(e,function(t){Fe(t)});return}ze(dN,e)>=0||(dN.push(e),me(e)&&(e={install:e}),e.install(bxe))}function Ed(e){return e==null?0:e.length||1}function hN(e){return e}var _xe=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||hN,this._newKeyGetter=i||hN,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 Od=Se,Bo=Z,Pxe=typeof Int32Array>"u"?Array:Int32Array,kxe="e\0\0",pN=-1,Dxe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Rxe=["_approximateExtent"],vN,$g,Nd,zd,i_,Vg,a_,Lxe=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;kU(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===Mi;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),q(a)?a=a.slice():Od(a)&&(a=Y({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Od(r)?Y(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Od(t)?Y(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?Y(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;wT(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){D(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Bo(this.dimensions,this._getDimInfo,this),this.hostModel)),i_(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];me(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(W2(arguments)))})},e.internalField=function(){vN=function(t){var r=t._invertedIndicesMap;D(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new Pxe(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),i[r]=l}}}(),e}();const sn=Lxe;function Cv(e,t){CI(e)||(e=TI(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=ve(),a=[],o=Oxe(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&LU(o),l=n===e.dimensionsDefine,u=l?RU(e):DU(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=ve(c),d=new VW(o),h=0;h0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function Oxe(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return D(t,function(a){var o;Se(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function Nxe(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 zxe=function(){function e(t){this.coordSysDims=[],this.axisMap=ve(),this.categoryAxisMap=ve(),this.coordSysName=t}return e}();function Bxe(e){var t=e.get("coordinateSystem"),r=new zxe(t),n=Fxe[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var Fxe={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",or).models[0],a=e.getReferringComponents("yAxis",or).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),ac(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),ac(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",or).models[0];t.coordSysDims=["single"],r.set("single",i),ac(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",or).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),ac(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),ac(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();D(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];r.set(c,u),ac(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function ac(e){return e.get("type")==="category"}function $xe(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;Vxe(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(D(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;D(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 Vxe(e){return!kU(e.schema)}function Ls(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function EU(e,t){return Ls(e,t)?e.getCalculationInfo("stackResultDimension"):t}function Gxe(e,t){var r=e.get("coordinateSystem"),n=_v.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=S0(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function Hxe(e,t,r){var n,i;return r&&D(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 Ao(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=TI(e)):(i=n.getSource(),a=i.sourceFormat===Mi);var o=Bxe(t),s=Gxe(t,o),l=r.useEncodeDefaulter,u=me(l)?l:l?Pe(_W,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=Cv(i,c),d=Hxe(f.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(f),p=$xe(t,{schema:f,store:h}),v=new sn(f,t);v.setCalculationInfo(p);var g=d!=null&&Wxe(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 Wxe(e){if(e.sourceFormat===Mi){var t=Uxe(e.data||[]);return!q(Hf(t))}}function Uxe(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}();px(OU);const Mo=OU;var jxe=0,Yxe=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++jxe}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&Z(n,qxe);return new e({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!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=ve(this.categories))},e}();function qxe(e){return Se(e)&&e.value!=null?e.value:e+""}const YT=Yxe;function qT(e){return e.type==="interval"||e.type==="log"}function Xxe(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=jH(a/t,!0);r!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=NU(o),l=i.niceTickExtent=[Xt(Math.ceil(e[0]/o)*o,s),Xt(Math.floor(e[1]/o)*o,s)];return Zxe(l,e),i}function o_(e){var t=Math.pow(10,J2(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Xt(r*t)}function NU(e){return Sa(e)+2}function gN(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function Zxe(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),gN(e,0,t),gN(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function Nx(e,t){return e>=t[0]&&e<=t[1]}function zx(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Bx(e,t){return e*(t[1]-t[0])+t[0]}var zU=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 YT({})),q(i)&&(i=new YT({categories:Z(i,function(a){return Se(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),Nx(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),zx(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(Bx(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}(Mo);Mo.registerClass(zU);const $I=zU;var dl=Xt,BU=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 Nx(r,this._extent)},t.prototype.normalize=function(r){return zx(r,this._extent)},t.prototype.scale=function(r){return Bx(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=NU(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:dl(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 VU(e){var t=Jxe(e),r=[];return D(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")||(jU(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)})}),GU(r)}function GU(e){var t={};D(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 D(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=He(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),D(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;D(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;D(a,function(m,y){r[i][y]=r[i][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+c)})}),r}function eSe(e,t,r){if(e&&t){var n=e[GI(t)];return n!=null&&r!=null?n[VI(r)]:n}}function HU(e,t){var r=$U(e,t),n=VU(r);D(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 WU(e){return{seriesType:e,plan:Jf(),reset:function(t){if(UU(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=Ls(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=a.isHorizontal(),h=tSe(i,a),p=jU(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&&_a(_*3),w=p&&l&&_a(_*3),C=p&&_a(_),A=n.master.getRect(),T=d?A.width:A.height,M,I=S.getStore(),P=0;(M=x.next())!=null;){var k=I.get(f?g:o,M),R=I.get(s,M),z=h,$=void 0;f&&($=+k-I.get(o,M));var N=void 0,V=void 0,L=void 0,G=void 0;if(d){var U=n.dataToPoint([k,R]);if(f){var B=n.dataToPoint([$,R]);z=B[0]}N=z,V=U[1]+y,L=U[0]-z,G=m,Math.abs(L)>>1;e[i][1]i&&(this._approxInterval=i);var s=Gg.length,l=Math.min(rSe(Gg,this._approxInterval,0,s),s-1);this._interval=Gg[l][1],this._minLevelUnit=Gg[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return nt(r)?r:+Ba(r)},t.prototype.contain=function(r){return Nx(this.parse(r),this._extent)},t.prototype.normalize=function(r){return zx(this.parse(r),this._extent)},t.prototype.scale=function(r){return Bx(r,this._extent)},t.type="time",t}(Es),Gg=[["second",mI],["minute",yI],["hour",Hh],["quarter-day",Hh*6],["half-day",Hh*12],["day",pi*1.2],["half-week",pi*3.5],["week",pi*7],["month",pi*31],["quarter",pi*95],["half-year",oO/2],["year",oO]];function nSe(e,t,r,n){var i=Ba(t),a=Ba(r),o=function(p){return lO(i,p,n)===lO(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 iSe(e,t){return e/=pi,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function aSe(e){var t=30*pi;return e/=t,e>6?6:e>3?3:e>2?2:1}function oSe(e){return e/=Hh,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function mN(e,t){return e/=t?yI:mI,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function sSe(e){return jH(e,!0)}function lSe(e,t,r){var n=new Date(e);switch(Jc(t)){case"year":case"month":n[sW(r)](0);case"day":n[lW(r)](1);case"hour":n[uW(r)](0);case"minute":n[cW(r)](0);case"second":n[fW(r)](0),n[dW(r)](0)}return n.getTime()}function uSe(e,t,r,n){var i=1e4,a=aW,o=0;function s(T,M,I,P,k,R,z){for(var $=new Date(M),N=M,V=$[P]();N1&&R===0&&I.unshift({value:I[0].value-N})}}for(var R=0;R=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=ft(Z(u,function(T){return ft(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(dSe(n[0]/a)*a),Xt(fSe(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){jh.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=Di(r)/Di(this.base),Nx(r,this._extent)},t.prototype.normalize=function(r){return r=Di(r)/Di(this.base),zx(r,this._extent)},t.prototype.scale=function(r){return r=Bx(r,this._extent),Hg(this.base,r)},t.type="log",t}(Mo),XU=HI.prototype;XU.getMinorTicks=jh.getMinorTicks;XU.getLabel=jh.getLabel;function Wg(e,t){return cSe(e,Sa(t))}Mo.registerClass(HI);const hSe=HI;var pSe=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[gSe[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=vSe[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),vSe={min:"_determinedMin",max:"_determinedMax"},gSe={min:"_dataMin",max:"_dataMax"};function ZU(e,t,r){var n=e.rawExtentInfo;return n||(n=new pSe(e,t,r),e.rawExtentInfo=n,n)}function Ug(e,t){return t==null?null:Tp(t)?NaN:e.parse(t)}function KU(e,t){var r=e.type,n=ZU(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=$U("bar",o),l=!1;if(D(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=VU(s),c=mSe(i,a,t,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function mSe(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=eSe(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;D(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;D(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 bf(e,t){var r=t,n=KU(e,r),i=n.extent,a=r.get("splitNumber");e instanceof hSe&&(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 Fx(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new $I({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new qU({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Mo.getClass(t)||Es)}}function ySe(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function Tv(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):me(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(WI(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function WI(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function xSe(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof $I?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=Tv(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;ce[1]&&(e[1]=i[1])})}var Av=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),_Se=1e-8;function xN(e,t){return Math.abs(e-t)<_Se}function Dl(e,t,r){var n=0,i=e[0];if(!i)return!1;for(var a=1;ai&&(n=o,i=l)}if(n)return CSe(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 D(o,function(s){s.type==="polygon"?SN(s.exterior,i,a,r):D(s.points,function(l){SN(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 MSe(e,t){return e=ASe(e),Z(ft(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 bN(o[0],o.slice(1)));break;case"MultiPolygon":D(i.coordinates,function(l){l[0]&&a.push(new bN(l[0],l.slice(1)))});break;case"LineString":a.push(new _N([i.coordinates]));break;case"MultiLineString":a.push(new _N(i.coordinates))}var s=new ej(n[t||"name"],a,n.cp);return s.properties=n,s})}var Vp=Je();function ISe(e){return e.type==="category"?kSe(e):RSe(e)}function PSe(e,t){return e.type==="category"?DSe(e,t):{ticks:Z(e.scale.getTicks(),function(r){return r.value})}}function kSe(e){var t=e.getLabelModel(),r=rj(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function rj(e,t){var r=nj(e,"labels"),n=UI(t),i=ij(r,n);if(i)return i;var a,o;return me(n)?a=sj(e,n):(o=n==="auto"?LSe(e):n,a=oj(e,o)),aj(r,n,{labels:a,labelCategoryInterval:o})}function DSe(e,t){var r=nj(e,"ticks"),n=UI(t),i=ij(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),me(n))a=sj(e,n,!0);else if(n==="auto"){var s=rj(e,e.getLabelModel());o=s.labelCategoryInterval,a=Z(s.labels,function(l){return l.tickValue})}else o=n,a=oj(e,o,!0);return aj(r,n,{ticks:a,tickCategoryInterval:o})}function RSe(e){var t=e.scale.getTicks(),r=Tv(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 nj(e,t){return Vp(e)[t]||(Vp(e)[t]=[])}function ij(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=vv(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=Vp(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 OSe(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 oj(e,t,r){var n=Tv(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=QU(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 sj(e,t,r){var n=e.scale,i=Tv(e),a=[];return D(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 wN=[0,1],NSe=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 WH(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(),CN(n,i.count())),ct(t,wN,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),CN(n,i.count()));var a=ct(t,n,wN,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=PSe(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 zSe(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 ISe(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 ESe(this)},e}();function CN(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function zSe(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;D(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+=Bd);var h=Math.atan2(s,o);if(h<0&&(h+=Bd),h>=n&&h<=i||h+Bd>=n&&h+Bd<=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,Vi.fromArray(e[0]),bt.fromArray(e[1]),tr.fromArray(e[2]),Le.sub(wa,Vi,bt),Le.sub(ga,tr,bt);var r=wa.len(),n=ga.len();if(!(r<.001||n<.001)){wa.scale(1/r),ga.scale(1/n);var i=wa.dot(ga),a=Math.cos(t);if(a1&&Le.copy(nn,tr),nn.toArray(e[1])}}}}function HSe(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,Vi.fromArray(e[0]),bt.fromArray(e[1]),tr.fromArray(e[2]),Le.sub(wa,bt,Vi),Le.sub(ga,tr,bt);var n=wa.len(),i=ga.len();if(!(n<.001||i<.001)){wa.scale(1/n),ga.scale(1/i);var a=wa.dot(t),o=Math.cos(r);if(a=l)Le.copy(nn,tr);else{nn.scaleAndAdd(ga,s/Math.tan(Math.PI/2-c));var f=tr.x!==bt.x?(nn.x-bt.x)/(tr.x-bt.x):(nn.y-bt.y)/(tr.y-bt.y);if(isNaN(f))return;f<0?Le.copy(nn,bt):f>1&&Le.copy(nn,tr)}nn.toArray(e[1])}}}}function AN(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 WSe(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=Jo(n[0],n[1]),a=Jo(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=Bm([],n[1],n[0],o/i),l=Bm([],n[1],n[2],o/a),u=Bm([],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 I=M+C;I<0&&b(-I*T,1)}else b(-C*T,1)}}function _(C,A,T){C!==0&&(u=!0);for(var M=A;M0)for(var I=0;I0;I--){var z=T[I-1]*R;_(-z,I,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 USe(e,t,r,n){return fj(e,"x","width",t,r,n)}function dj(e,t,r,n){return fj(e,"y","height",t,r,n)}function hj(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)),it(n,u,r,l)}else if(n.attr(u),!Yf(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={};jg(h,u,Yg),jg(h,n.states.select,Yg)}if(n.states.emphasis){var p=a.oldLayoutEmphasis={};jg(p,u,Yg),jg(p,n.states.emphasis,Yg)}eW(n,l,c,r,r)}if(i&&!i.ignore&&!i.invisible){var a=qSe(i),o=a.oldLayout,v={points:i.shape.points};o?(i.attr({shape:o}),it(i,{shape:v},r)):(i.setShape(v),i.style.strokePercent=0,Lt(i,{style:{strokePercent:1}},r)),a.oldLayout=v}},e}();const ZSe=XSe;var c_=Je();function KSe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=c_(r).labelManager;i||(i=c_(r).labelManager=new ZSe),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 f_=Math.sin,d_=Math.cos,pj=Math.PI,pl=Math.PI*2,QSe=180/pj,JSe=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=is(f-pl)||(c?u>=pl:-u>=pl),h=u>0?u%pl:u%pl+pl,p=!1;d?p=!0:is(f)?p=!1:p=h>=pj==!!c;var v=t+n*d_(o),g=r+i*f_(o);this._start&&this._add("M",v,g);var m=Math.round(a*QSe);if(d){var y=1/this._p,x=(c?1:-1)*(pl-y);this._add("A",n,i,m,1,+c,t+n*d_(o+x),r+i*f_(o+x)),y>.01&&this._add("A",n,i,m,0,+c,v,g)}else{var S=t+n*d_(s),_=r+i*f_(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 lbe(e){return""}function qI(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 sbe(o,s)+(o!=="style"?mn(l):l||"")+(a?""+r+Z(a,function(u){return n(u)}).join(r)+r:"")+lbe(o)}return n(e)}function ube(e,t,r){r=r||{};var n=r.newline?` -`:"",i=" {"+n,a=n+"}",o=Z(He(e),function(l){return l+i+Z(He(e[l]),function(u){return u+":"+e[l][u]+";"}).join(n)+a}).join(n),s=Z(He(t),function(l){return"@keyframes "+l+i+Z(He(t[l]),function(u){return u+i+Z(He(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 KT(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function IN(e,t,r,n){return mr("svg","root",{width:e,height:t,xmlns:gj,"xmlns:xlink":mj,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+e+" "+t:!1},r)}var PN={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"},wl="transform-origin";function cbe(e,t,r){var n=Y({},e.shape);Y(n,t),e.buildPath(r,n);var i=new vj;return i.reset(LH(e)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function fbe(e,t){var r=t.originX,n=t.originY;(r||n)&&(e[wl]=r+"px "+n+"px")}var dbe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function xj(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function hbe(e,t,r){var n=e.shape.paths,i={},a,o;if(D(n,function(l){var u=KT(r.zrId);u.animation=!0,$x(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=He(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=xj(i,r);return a.replace(o,s)}}function kN(e){return oe(e)?PN[e]?"cubic-bezier("+PN[e]+")":X2(e)?e:"":""}function $x(e,t,r,n){var i=e.animators,a=i.length,o=[];if(e instanceof dI){var s=hbe(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=xj(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 Gp=Math.round;function Sj(e){return e&&oe(e.src)}function bj(e){return e&&me(e.toDataURL)}function XI(e,t,r,n){ibe(function(i,a){var o=i==="fill"||i==="stroke";o&&RH(a)?wj(t,e,i,n):o&&Z2(a)?Cj(r,e,i,n):e[i]=a},t,r,!1),Sbe(r,e,n)}function DN(e){return is(e[0]-1)&&is(e[1])&&is(e[2])&&is(e[3]-1)}function pbe(e){return is(e[4])&&is(e[5])}function ZI(e,t,r){if(t&&!(pbe(t)&&DN(t))){var n=r?10:1e4;e.transform=DN(t)?"translate("+Gp(t[4]*n)/n+" "+Gp(t[5]*n)/n+")":lve(t)}}function RN(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.";ln(d,g),ln(h,g)}else if(d==null||h==null){var m=function(T,M){if(T){var I=T.elm,P=d||M.width,k=h||M.height;T.tag==="pattern"&&(u?(k=1,P/=a.width):c&&(P=1,k/=a.height)),T.attrs.width=P,T.attrs.height=k,I&&(I.setAttribute("width",P),I.setAttribute("height",k))}},y=nI(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=mr("image","img",{href:p,width:d,height:h}),o.width=d,o.height=h}else i.svgElement&&(f=we(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 _=EH(i);_&&(o.patternTransform=_);var b=mr("pattern","",o,[f]),w=qI(b),C=n.patternCache,A=C[w];A||(A=n.zrId+"-p"+n.patternIdx++,C[w]=A,o.id=A,b=n.defs[A]=mr("pattern",A,o,[f])),t[r]=dx(A)}}function bbe(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]=mr("clipPath",a,o,[_j(e,r)])}t["clip-path"]=dx(a)}function ON(e){return document.createTextNode(e)}function Rl(e,t,r){e.insertBefore(t,r)}function NN(e,t){e.removeChild(t)}function zN(e,t){e.appendChild(t)}function Tj(e){return e.parentNode}function Aj(e){return e.nextSibling}function h_(e,t){e.textContent=t}var BN=58,_be=120,wbe=mr("","");function QT(e){return e===void 0}function ua(e){return e!==void 0}function Cbe(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 ch(e,t){var r=e.key===t.key,n=e.tag===t.tag;return n&&r}function Hp(e){var t,r=e.children,n=e.tag;if(ua(n)){var i=e.elm=yj(n);if(KI(wbe,e),q(r))for(t=0;ta?(p=r[l+1]==null?null:r[l+1].elm,Mj(e,p,r,i,l)):C0(e,t,n,a))}function Sc(e,t){var r=t.elm=e.elm,n=e.children,i=t.children;e!==t&&(KI(e,t),QT(t.text)?ua(n)&&ua(i)?n!==i&&Tbe(r,n,i):ua(i)?(ua(e.text)&&h_(r,""),Mj(r,null,i,0,i.length-1)):ua(n)?C0(r,n,0,n.length-1):ua(e.text)&&h_(r,""):e.text!==t.text&&(ua(n)&&C0(r,n,0,n.length-1),h_(r,t.text)))}function Abe(e,t){if(ch(e,t))Sc(e,t);else{var r=e.elm,n=Tj(r);Hp(t),n!==null&&(Rl(n,t.elm,Aj(r)),C0(n,[e],0,0))}return t}var Mbe=0,Ibe=function(){function e(t,r,n){if(this.type="svg",this.refreshHover=FN(),this.configLayer=FN(),this.storage=r,this._opts=n=Y({},n),this.root=t,this._id="zr"+Mbe++,this._oldVNode=IN(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=yj("svg");KI(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",Abe(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return EN(t,KT(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=KT(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress;var o=[],s=this._bgVNode=Pbe(n,i,this._backgroundColor,a);s&&o.push(s);var l=t.compress?null:this._mainVNode=mr("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=Z(He(a.defs),function(d){return a.defs[d]});if(u.length&&o.push(mr("defs","defs",{},u)),t.animation){var c=ube(a.cssNodes,a.cssAnims,{newline:!0});if(c){var f=mr("style","stl",{},[],c);o.push(f)}}return IN(n,i,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},qI(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}}k.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?qg:0),this._needsManuallyCompositing),c.__builtin__||G2("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&Nn&&!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,D(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 $be=Fbe;function _f(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=xf(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 Vbe=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=sr(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=Gbe,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(){mo(this.childAt(0))},t.prototype.downplay=function(){yo(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):it(d,h,s,n),Zi(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=yr(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 _=Lu(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 Fr){var C=s.style;s.useStyle(Y({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},b))}else s.__isEmptyBrush?s.useStyle(Y({},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:I,inheritColor:w,defaultOpacity:b.opacity});function I(R){return M?r.getName(R):_f(r,R)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var P=s.ensureState("emphasis");P.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var k=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;P.scaleX=this._sizeX*k,P.scaleY=this._sizeY*k,this.setSymbolScale(1),Ut(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=Ie(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&Ds(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Ds(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return td(r.getItemVisual(n,"symbolSize"))},t}(Ae);function Gbe(e,t){this.parent.drift(e,t)}const Mv=Vbe;function v_(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 GN(e){return e!=null&&!Se(e)&&(e={isIgnore:e}),e||{}}function HN(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:yr(t),cursorStyle:t.get("cursor")}}var Hbe=function(){function e(t){this.group=new Ae,this._SymbolCtor=t||Mv}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=GN(r);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=HN(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(v_(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(!v_(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):it(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=HN(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=GN(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 kj(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 Ube(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 jbe(e,t,r,n,i,a,o,s){for(var l=Ube(e,t),u=[],c=[],f=[],d=[],h=[],p=[],v=[],g=Pj(i,t,o),m=e.getLayout("points")||[],y=t.getLayout("points")||[],x=0;x=i||v<0)break;if(su(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||su(b,w))h=m,p=y;else{T=b-u,M=w-c;var k=m-u,R=b-m,z=y-c,$=w-y,N=void 0,V=void 0;if(s==="x"){N=Math.abs(k),V=Math.abs(R);var L=T>0?1:-1;h=m-L*N*o,p=y,I=m+L*V*o,P=y}else if(s==="y"){N=Math.abs(z),V=Math.abs($);var G=M>0?1:-1;h=m,p=y-G*N*o,I=m,P=y+G*V*o}else N=Math.sqrt(k*k+z*z),V=Math.sqrt(R*R+$*$),A=V/(V+N),h=m-T*o*(1-A),p=y-M*o*(1-A),I=m+T*o*A,P=y+M*o*A,I=Fo(I,$o(b,m)),P=Fo(P,$o(w,y)),I=$o(I,Fo(b,m)),P=$o(P,Fo(w,y)),T=I-m,M=P-y,h=m-T*N/V,p=y-M*N/V,h=Fo(h,$o(u,m)),p=Fo(p,$o(c,y)),h=$o(h,Fo(u,m)),p=$o(p,Fo(c,y)),T=m-h,M=y-p,I=m+T*V/N,P=y+M*V/N}e.bezierCurveTo(f,d,h,p,m,y),f=I,d=P}else e.lineTo(m,y)}u=m,c=y,v+=a}return g}var Dj=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),Ybe=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 Dj},t.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&su(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?Ky(s,h,v,m,r,c):Ky(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?vr(l,p,g,y,w):vr(s,h,v,m,w);return u?[r,S]:[S,r]}}s=m,l=y;break}}},t}($e),qbe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Dj),Rj=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 qbe},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&&su(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 Kbe(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=Zbe(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";D(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 yv(0,0,0,0,d,!0);return y[i]=v,y[i+"2"]=g,y}}}function Qbe(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&Jbe(a,t))){var o=t.mapDimension(a.dim),s={};return D(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function Jbe(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 e_e(e,t){return isNaN(e)||isNaN(t)}function t_e(e){for(var t=e.length/2;t>0&&e_e(e[t*2-2],e[t*2-1]);t--);return t-1}function qN(e,t){return[e[t*2],e[t*2+1]]}function r_e(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 Oj(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var L=v.getState("emphasis").style;L.lineWidth=+v.style.lineWidth+1}Ie(v).seriesIndex=r.seriesIndex,Ut(v,$,N,V);var G=YN(r.get("smooth")),U=r.get("smoothMonotone");if(v.setShape({smooth:G,smoothMonotone:U,connectNulls:C}),g){var B=l.getCalculationInfo("stackedOnSeries"),j=0;g.useStyle(xe(c.getAreaStyle(),{fill:P,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),B&&(j=YN(B.get("smooth"))),g.setShape({smooth:G,stackedOnSmooth:j,smoothMonotone:U,connectNulls:C}),zr(g,r,"areaStyle"),Ie(g).seriesIndex=r.seriesIndex,Ut(g,$,N,V)}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){Ie(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=yu(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 Mv(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=yu(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;a0(this._polyline,r),n&&a0(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new Ybe({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 Rj({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");me(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=me(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=me(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(Oj(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=t_e(l);c>=0&&(Br(s,yr(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?Ij(o,h):_f(o,f)},enableTextSetter:!0},n_e(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=r_e(f,S,w),A=C.range,T=A[1]-A[0],M=void 0;if(T>=1){if(T>1&&!h){var I=qN(f,A[0]);u.attr({x:I[0]+_,y:I[1]+b}),o&&(M=d.getRawValue(A[0]))}else{var I=c.getPointOn(S,w);I&&u.attr({x:I[0]+_,y:I[1]+b});var P=d.getRawValue(A[0]),k=d.getRawValue(A[1]);o&&(M=t6(i,p,P,k,C.t))}a.lastFrameIndex=A[0]}else{var R=r===1||a.lastFrameIndex>0?A[0]:0,I=qN(f,R);o&&(M=d.getRawValue(R)),u.attr({x:I[0]+_,y:I[1]+b})}if(o){var z=Yf(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=jbe(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=Vo(d.current,i,o,l),p=Vo(d.stackedOnCurrent,i,o,l),v=Vo(d.next,i,o,l),g=Vo(d.stackedOnNext,i,o,l)),jN(h,v)>3e3||c&&jN(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(),it(u,m,f),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),it(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=o_e[a]:me(a)&&(p=a),p&&t.setData(i.downSample(i.mapDimension(u.dim),1/h,p,s_e))}}}}}function l_e(e){e.registerChartView(a_e),e.registerSeriesModel($be),e.registerLayout(Pv("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,Nj("line"))}var zj=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 Ao(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)D(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(zj);const T0=zj;var u_e=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 Ao(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=Ws(T0.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}(T0);const c_e=u_e;var f_e=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),d_e=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 f_e},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,f=n.endAngle,d=n.clockwise,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){Lp(a,r,Ie(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),XN={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=m_(t.x,e.x),s=y_(t.x+t.width,i),l=m_(t.y,e.y),u=y_(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=y_(t.r,e.r),a=m_(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}},ZN={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new Qe({shape:Y({},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?A0:In,c=new u({shape:n,z2:1});c.name="item";var f=Bj(i);if(c.calculateTextPosition=h_e(f,{isRoundCap:u===A0}),a){var d=c.shape,h=i?"r":"endAngle",p={};d[h]=i?n.r0:n.startAngle,p[h]=n[h],(s?it:Lt)(c,{shape:p},a)}return c}};function m_e(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function KN(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?it:Lt)(r,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(o?it:Lt)(r,{shape:u},c,i)}function QN(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 S_e(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function Bj(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 ez(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=Zl(n.getModel("itemStyle"),c,!0);Y(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=yr(n);Br(e,p,{labelFetcher:a,labelDataIndex:r,defaultText:_f(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,p_e(e,g==="outside"?h:g,Bj(o),n.get(["label","rotate"]))}J6(v,p,a.getRawValue(r),function(y){return Ij(t,y)});var m=n.getModel(["emphasis"]);Ut(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),zr(e,n),S_e(i)&&(e.style.fill="none",e.style.stroke="none",D(e.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function b_e(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var __e=function(){function e(){}return e}(),tz=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 __e},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?r:null},30,!1);function w_e(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=a.length/3;c=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function Fj(e,t,r){if(Ou(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 C_e(e,t,r){var n=e.type==="polar"?In:Qe;return new n({shape:Fj(t,r,e),silent:!0,z2:0})}const T_e=g_e;function A_e(e){e.registerChartView(T_e),e.registerSeriesModel(c_e),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Pe(HU,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,WU("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Nj("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 Qg=Math.PI*2,iz=Math.PI/180;function $j(e,t){return hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Vj(e,t){var r=$j(e,t),n=e.get("center"),i=e.get("radius");q(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 q(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 M_e(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=$j(n,r),s=Vj(n,r),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-n.get("startAngle")*iz,h=n.get("minAngle")*iz,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 _=Qg,b=0,w=d,C=m?1:-1;if(i.setLayout({viewRect:o,r:c}),i.each(a,function(T,M){var I;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"?I=v===0&&x?g:T*g:I=Qg/p,Ir?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 x_(e){return e.position==="center"}function k_e(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*I_e,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),I=M.getModel("label"),P=I.get("position")||M.get(["emphasis","label","position"]),k=I.get("distanceToLabelLine"),R=I.get("alignTo"),z=ne(I.get("edgeDistance"),u),$=I.get("bleedMargin"),N=M.getModel("labelLine"),V=N.get("length");V=ne(V,u);var L=N.get("length2");if(L=ne(L,u),Math.abs(C.endAngle-C.startAngle)0?"right":"left":U>0?"left":"right"}var ke=Math.PI,We=0,Ge=I.get("rotate");if(nt(Ge))We=Ge*(ke/180);else if(P==="center")We=0;else if(Ge==="radial"||Ge===!0){var at=U<0?-G+ke:-G;We=at}else if(Ge==="tangential"&&P!=="outside"&&P!=="outer"){var ot=Math.atan2(U,B);ot<0&&(ot=ke*2+ot);var It=B>0;It&&(ot=ke+ot),We=ot-ke}if(a=!!We,A.x=j,A.y=X,A.rotation=We,A.setStyle({verticalAlign:"middle"}),te){A.setStyle({align:ee});var Yt=A.states.select;Yt&&(Yt.x+=A.x,Yt.y+=A.y)}else{var Be=A.getBoundingRect().clone();Be.applyTransform(A.getComputedTransform());var Pt=(A.style.margin||0)+2.1;Be.y-=Pt/2,Be.height+=Pt,r.push({label:A,labelLine:T,position:P,len:V,len2:L,minTurnAngle:N.get("minTurnAngle"),maxSurfaceAngle:N.get("maxSurfaceAngle"),surfaceNormal:new Le(U,B),linePoints:W,textAlign:ee,labelDistance:k,labelAlignTo:R,edgeDistance:z,bleedMargin:$,rect:Be,unconstrainedWidth:Be.width,labelStyleWidth:A.style.width})}w.setTextConfig({inside:te})}}),!a&&e.get("avoidLabelOverlap")&&P_e(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 L_e=R_e;function rd(e,t,r){t=q(t)&&{coordDimensions:t}||Y({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=Cv(n,t).dimensions,a=new sn(i,e);return a.initData(n,r),a}var E_e=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 Dv=E_e;var O_e=Je(),N_e=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 Dv(ue(this.getData,this),ue(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return rd(this,{coordDimensions:["value"],encodeDefaulter:Pe(bI,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=O_e(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=Wve(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){mu(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 z_e=N_e;function B_e(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(nt(o)&&!isNaN(o)&&o<0)})}}}function F_e(e){e.registerChartView(L_e),e.registerSeriesModel(z_e),sU("pie",e.registerAction),e.registerLayout(Pe(M_e,"pie")),e.registerProcessor(kv("pie")),e.registerProcessor(B_e("pie"))}var $_e=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 Ao(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 V_e=$_e;var Hj=4,G_e=function(){function e(){}return e}(),H_e=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 G_e},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(r,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&a[0]=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 U_e=W_e;var j_e=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=Pv("").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 U_e:new Iv,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 Y_e=j_e;var q_e=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 X_e=q_e;var eA=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",or).models[0]},t.type="cartesian2dAxis",t}(et);lr(eA,Av);var Wj={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)"]}}},Z_e=Oe({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Wj),QI=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}}},Wj),K_e=Oe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},QI),Q_e=xe({logBase:10},QI);const Uj={category:Z_e,value:QI,time:K_e,log:Q_e};var J_e={value:1,category:1,time:1,log:1};function wf(e,t,r,n){D(J_e,function(i,a){var o=Oe(Oe({},Uj[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=Np(this),h=d?Zf(c):{},p=f.getTheme();Oe(c,p.get(a+"Axis")),Oe(c,this.getDefaultOption()),c.type=oz(c),d&&Rs(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=YT.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",oz)}function oz(e){return e.type||(e.data?"category":"value")}var ewe=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(),ft(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 twe=ewe;var tA=["x","y"];function sz(e){return e.type==="interval"||e.type==="time"}var rwe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=tA,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!sz(r)||!sz(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=Gf([],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}(twe),nwe=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}(Qi);const iwe=nwe;function rA(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 lz(e){return e.get("coordinateSystem")==="cartesian2d"}function uz(e){var t={xAxisModel:null,yAxisModel:null};return D(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,or).models[0];t[n]=a}),t}var S_=Math.log;function jj(e,t,r){var n=Es.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=KU(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=S_(e.base);u=[S_(u[0])/d,S_(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=o_(p),v=u[1]-p*o;else{var m=e.getTicks().length-1;m>o&&(p=o_(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 awe=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=tA,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=He(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;qT(v)&&p.get("alignTicks")&&p.get("interval")==null?c.push(h):(bf(v,p),qT(v)&&(s=h))}c.length&&(s||(s=c.pop(),bf(s.scale,s.model)),D(c,function(g){jj(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};D(n.x,function(o){cz(n,"y",o,a)}),D(n.y,function(o){cz(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=hr(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(D(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=xSe(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()),D(this._coordsList,function(u){u.calcAffineTransform()});function l(){D(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]),owe(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]}Se(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):n0(i-as)?(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}(),dz={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=Y({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});yf(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=Lu(t.get(["axisLine","symbolOffset"])||0,h),v=h[0],g=h[1];D([{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=sr(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=cwe(r,n,t,e),a=dwe(r,n,t,e);if(uwe(t,a,i),fwe(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=cj(Z(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));hj(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,pz(a)?e.labelOffset+o*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*as/180);var p;pz(a)?d=lu.innerTextLayout(e.rotation,h??e.rotation,o):(d=lwe(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:lu.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(jf({el:x,componentModel:t,itemName:i}),x.__fullText=i,x.anid="name",t.get("triggerEvent")){var S=lu.makeAxisEventDataBase(t);S.targetType="axisName",S.name=i,Ie(x).eventData=S}n.add(x),x.updateTransform(),r.add(x),x.decomposeTransform()}}};function lwe(e,t,r,n){var i=UH(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return n0(i-as/2)?(o=l?"bottom":"top",a="center"):n0(i-as*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",ias/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function uwe(e,t,r){if(!QU(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?(Kn(a),Kn(u)):hz(a,o)&&(n?(Kn(o),Kn(c)):(Kn(a),Kn(u))),i===!1?(Kn(s),Kn(f)):hz(l,s)&&(i?(Kn(l),Kn(d)):(Kn(s),Kn(f)))}}function Kn(e){e&&(e.ignore=!0)}function hz(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=fx([]);return Du(i,i,-e.rotation),r.applyTransform(no([],i,e.getLocalTransform())),n.applyTransform(no([],i,t.getLocalTransform())),r.intersect(n)}}function pz(e){return e==="middle"||e==="center"}function Yj(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l=0||e===t}function ywe(e){var t=JI(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=nA(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=xe({color:p.color},l));var g=Oe(we(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 me(c)&&(g.name=c(g.name,g));var y=new wt(g,null,this.ecModel);return lr(y,Av.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"}},Fd.axisLine),axisLabel:Jg(Fd.axisLabel,!1),axisTick:Jg(Fd.axisTick,!1),splitLine:Jg(Fd.splitLine,!0),splitArea:Jg(Fd.splitArea,!0),indicator:[]},t}(et);const Ewe=Lwe;var Owe=["axisLine","axisTickLabel","axisName"],Nwe=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 So(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});D(a,function(o){D(Owe,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=q(d)?d:[d],v=q(h)?h:[h],g=[],m=[];function y(R,z,$){var N=$%z.length;return R[N]=R[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;w_(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);w_(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!Sz(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;w_(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(Ai);function w_(e,t,r,n,i){e.pointerChecker&&e.pointerChecker(n,i.originX,i.originY)&&(vo(n.event),Jj(e,t,r,n,i))}function Jj(e,t,r,n,i){i.isAvailableBehavior=ue(Qm,null,r,n),e.trigger(t,i)}function Qm(e,t,r){var n=r[e];return!e||n&&(!oe(n)||t.event[n+"Key"])}const Rv=jwe;function tP(e,t,r){var n=e.target;n.x+=t,n.y+=r,n.dirty()}function rP(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 Ywe={axisPointer:1,tooltip:1,brush:1};function Gx(e,t,r){var n=t.getComponentByElement(e.topTarget),i=n&&n.coordinateSystem;return n&&n!==r&&!Ywe.hasOwnProperty(n.mainType)&&i&&i.model!==r}function e8(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 C_,M0={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"},bz=He(M0),I0={"alignment-baseline":"textBaseline","stop-color":"stopColor"},_z=He(I0),qwe=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,r){r=r||{};var n=e8(t);this._defsUsePending=[];var i=new Ae;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),Dn(n,i,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;Kwe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var d=Hx(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=r8(c,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var h=i;i=new Ae,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=C_[s];if(c&&ce(C_,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=wz[s];if(h&&ce(wz,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 kp({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Qn(r,n),Dn(t,n,this._defsUsePending,!1,!1),Xwe(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(){C_={g:function(t,r){var n=new Ae;return Qn(r,n),Dn(t,n,this._defsUsePending,!1,!1),n},rect:function(t,r){var n=new Qe;return Qn(r,n),Dn(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 $a;return Qn(r,n),Dn(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 Qn(r,n),Dn(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 cI;return Qn(r,n),Dn(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=Az(n));var a=new Pn({shape:{points:i||[]},silent:!0});return Qn(r,a),Dn(t,a,this._defsUsePending,!1,!1),a},polyline:function(t,r){var n=t.getAttribute("points"),i;n&&(i=Az(n));var a=new kn({shape:{points:i||[]},silent:!0});return Qn(r,a),Dn(t,a,this._defsUsePending,!1,!1),a},image:function(t,r){var n=new Fr;return Qn(r,n),Dn(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 Ae;return Qn(r,s),Dn(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 Ae;return Qn(r,s),Dn(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=D6(n);return Qn(r,i),Dn(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),e}(),wz={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 yv(t,r,n,i);return Cz(e,a),Tz(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 W6(t,r,n);return Cz(e,i),Tz(e,i),i}};function Cz(e,t){var r=e.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(t.global=!0)}function Tz(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={};t8(r,a,a);var o=a.stopColor||r.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}r=r.nextSibling}}function Qn(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),xe(t.__inheritedStyle,e.__inheritedStyle))}function Az(e){for(var t=Hx(e),r=[],n=0;n0;a-=2){var o=n[a],s=n[a-1],l=Hx(o);switch(i=i||_i(),s){case"translate":Na(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":q2(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Du(i,i,-parseFloat(l[0])*T_);break;case"skewX":var u=Math.tan(parseFloat(l[0])*T_);no(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*T_);no(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 Iz=/([^\s:;]+)\s*:\s*([^:;]+)/g;function t8(e,t,r){var n=e.getAttribute("style");if(n){Iz.lastIndex=0;for(var i;(i=Iz.exec(n))!=null;){var a=i[1],o=ce(M0,a)?M0[a]:null;o&&(t[o]=i[2]);var s=ce(I0,a)?I0[a]:null;s&&(r[s]=i[2])}}}function tCe(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=ve(),n=ve(),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,yr(n),{labelFetcher:d,labelDataIndex:f,defaultText:r},h);var p=t.getTextContent();if(p&&(n8(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 Lz(e,t,r,n,i,a){e.data?e.data.setItemGraphicEl(a,t):Ie(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:r,region:n&&n.option||{}}}function Ez(e,t,r,n,i){e.data||jf({el:t,componentModel:i,itemName:r,itemTooltipOption:n.get("tooltip")})}function Oz(e,t,r,n,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var a=n.getModel("emphasis"),o=a.get("focus");return Ut(t,o,a.get("blurScope"),a.get("disabled")),e.isGeo&&Sme(t,i,r),o}function Nz(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(),D(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 wCe=_Ce;function CCe(e,t){var r={};return D(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=hr(_,{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 PCe(e,t){D(t.get("geoCoord"),function(r,n){e.addGeoCoord(n,r)})}var kCe=function(){function e(){this.dimensions=a8}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 $z(l+s,l,Y({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=Vz,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)}}),D(a,function(o,s){var l=Z(o,function(c){return c.get("nameMap")}),u=new $z(s,s,Y({nameMap:H2(l)},i(o[0])));u.zoomLimit=Cr.apply(null,Z(o,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=Vz,u.resize(o[0],r),D(o,function(c){c.coordinateSystem=u,PCe(u,c)})}),n},e.prototype.getFilledRegions=function(t,r,n,i){for(var a=(t||[]).slice(),o=ve(),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 FCe(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){GCe(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=HCe(e,i,e.parentNode.hierNode.defaultAncestor||n[0],t)}function $Ce(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function Hz(e){return arguments.length?e:jCe}function fh(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function VCe(e,t){return hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function GCe(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 HCe(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=A_(s),a=M_(a),s&&a;){i=A_(i),o=M_(o),i.hierNode.ancestor=e;var d=s.hierNode.prelim+f-a.hierNode.prelim-u+n(s,a);d>0&&(UCe(WCe(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&&!A_(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=f-l),a&&!M_(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,r=e)}return r}function A_(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function M_(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function WCe(e,t,r){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:r}function UCe(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 jCe(e,t){return e.parentNode===t.parentNode?1:2}var YCe=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),qCe=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 YCe},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 I=s.get(["emphasis","focus"]),P=I==="relative"?Xy(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;P&&(Ie(r).focus=P),ZCe(i,o,c,r,p,h,v,n),r.__edge&&(r.onHoverStateChange=function(k){if(k!=="blur"){var R=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===mv||a0(r.__edge,k)}})}function ZCe(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 bx({shape:oA(c,f,d,i,i)})),it(v,{shape:oA(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 d8(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function sP(e,t){var r=d8(e);return ze(r,t)>=0}function Wx(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 sTe=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=oP.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 xr("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=Wx(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 lTe=sTe;function uTe(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 cTe(e,t){e.eachSeriesByType("tree",function(r){fTe(r,t)})}function fTe(e,t){var r=VCe(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=Hz(function(x,S){return(x.parentNode===S.parentNode?1:2)/x.depth})):(i=r.width,a=r.height,o=Hz());var s=e.getData().tree.root,l=s.children[0];if(l){BCe(s),uTe(l,FCe,o),s.hierNode.modifier=-l.hierNode.prelim,Vd(l,$Ce);var u=l,c=l,f=l;Vd(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),Vd(l,function(x){g=(x.getLayout().x+h)*p,m=(x.depth-1)*v;var S=fh(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),Vd(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),Vd(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 dTe(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");Y(s,o)})})}function hTe(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=iP(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function pTe(e){e.registerChartView(KCe),e.registerSeriesModel(lTe),e.registerLayout(cTe),e.registerVisual(dTe),hTe(e)}var qz=["treemapZoomToNode","treemapRender","treemapMove"];function vTe(e){for(var t=0;t1;)a=a.parentNode;var o=ET(e.ecModel,a.name||a.dataIndex+"",n);i.setVisual("decal",o)})}var gTe=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};p8(i);var a=r.levels||[],o=this.designatedVisualItemStyle={},s=new wt({itemStyle:o},this,n);a=r.levels=mTe(a,n);var l=Z(a||[],function(f){return new wt(f,s,n)},this),u=oP.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 xr("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=Wx(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},Y(this.layoutInfo,r)},t.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=ve(),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(){h8(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 p8(e){var t=0;D(e.children,function(n){p8(n);var i=n.value;q(i)&&(i=i[0]),t+=i});var r=e.value;q(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),q(e.value)?e.value[0]=r:e.value=r}function mTe(e,t){var r=pt(t.get("color")),n=pt(t.get(["aria","decal","decals"]));if(r){e=e||[];var i,a;D(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 yTe=gTe;var xTe=8,Xz=8,I_=5,STe=function(){function e(t){this.group=new Ae,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),Dx(o,f.pos,f.box)}},e.prototype._prepare=function(t,r,n){for(var i=t;i;i=i.parentNode){var a=dr(i.getModel().get("name"),""),o=n.getTextRect(a),s=Math.max(o.width+xTe*2,r.emptyItemWidth);r.totalWidth+=s+Xz,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=Pye(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 Pn({shape:{points:bTe(l,0,y,c,v===h.length-1,v===0)},style:xe(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new rt({style:_t(a,{text:x})}),textConfig:{position:"inside"},z2:Wf*1e4,onclick:Pe(s,m)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=_t(o,{text:x}),S.ensureState("emphasis").style=p,Ut(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),_Te(S,t,m),l+=y+Xz}},e.prototype.remove=function(){this.group.removeAll()},e}();function bTe(e,t,r,n,i,a){var o=[[i?e:e-I_,t],[e+r,t],[e+r,t+n],[i?e:e-I_,t+n]];return!a&&o.splice(2,0,[e+r+I_,t+n/2]),!i&&o.push([e,t+n/2]),o}function _Te(e,t,r){Ie(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&&Wx(r,t)}}const wTe=STe;var CTe=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;iKz||Math.abs(r.dy)>Kz)){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=_i();Na(u,u,[-n,-i]),q2(u,u,[r.scale,r.scale]),Na(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&&f0(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 wTe(this.group))).render(r,n,i.node,function(o){a._state!=="animating"&&(sP(r.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Gd(),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 Gd(){return{nodeGroup:[],background:[],content:[]}}function kTe(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=j("nodeGroup",sA);if(!M)return;if(l.add(M),M.x=c.x||0,M.y=c.y||0,M.markRedraw(),P0(M).nodeWidth=h,P0(M).nodeHeight=p,c.isAboveViewRoot)return M;var I=j("background",Zz,u,MTe);I&&V(M,I,_&&c.upperLabelHeight);var P=d.getModel("emphasis"),k=P.get("focus"),R=P.get("blurScope"),z=P.get("disabled"),$=k==="ancestor"?o.getAncestorsIndices():k==="descendant"?o.getDescendantIndices():k;if(_)Rp(M)&&Ul(M,!1),I&&(Ul(I,!z),f.setItemGraphicEl(o.dataIndex,I),AT(I,$,R));else{var N=j("content",Zz,u,ITe);N&&L(M,N),I.disableMorphing=!0,I&&Rp(I)&&Ul(I,!1),Ul(M,!z),f.setItemGraphicEl(o.dataIndex,M),AT(M,$,R)}return M;function V(ee,te,ie){var re=Ie(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,fe=eB(b);fe.fill=J;var de=Tl(w);de.fill=w.get("borderColor");var ke=Tl(C);ke.fill=C.get("borderColor");var We=Tl(A);if(We.fill=A.get("borderColor"),ie){var Ge=h-2*v;U(te,J,Q.opacity,{x:v,y:0,width:Ge,height:S})}else te.removeTextContent();te.setStyle(fe),te.ensureState("emphasis").style=de,te.ensureState("blur").style=ke,te.ensureState("select").style=We,Su(te)}ee.add(te)}function L(ee,te){var ie=Ie(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"),fe=J.fill,de=eB(b);de.fill=fe,de.decal=J.decal;var ke=Tl(w),We=Tl(C),Ge=Tl(A);U(te,fe,J.opacity,null),te.setStyle(de),te.ensureState("emphasis").style=ke,te.ensureState("blur").style=We,te.ensureState("select").style=Ge,Su(te)}ee.add(te)}function G(ee){!ee.invisible&&a.push(ee)}function U(ee,te,ie,re){var Q=d.getModel(re?Jz:Qz),J=dr(d.get("name"),null),fe=Q.getShallow("show");Br(ee,yr(d,re?Jz:Qz),{defaultText:fe?J:null,inheritColor:te,defaultOpacity:ie,labelFetcher:e,labelDataIndex:o.dataIndex});var de=ee.getTextContent();if(de){var ke=de.style,We=U2(ke.padding||0);re&&(ee.setTextConfig({layoutRect:re}),de.disableLabelLayout=!0),de.beforeUpdate=function(){var at=Math.max((re?re.width:ee.shape.width)-We[1]-We[3],0),ot=Math.max((re?re.height:ee.shape.height)-We[0]-We[2],0);(ke.width!==at||ke.height!==ot)&&de.setStyle({width:at,height:ot})},ke.truncateMinChar=2,ke.lineOverflow="truncate",B(ke,re,c);var Ge=de.getState("emphasis");B(Ge?Ge.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 j(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 wi&&(Q.z2=DTe(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=Y({},te.shape)}function W(ee,te){var ie=ee[m]={},re=o.parentNode,Q=te instanceof Ae;if(re&&(!n||n.direction==="drillDown")){var J=0,fe=0,de=i.background[re.getRawIndex()];!n&&de&&de.oldShape&&(J=de.oldShape.width,fe=de.oldShape.height),Q?(ie.oldX=0,ie.oldY=fe):ie.oldShape={x:J,y:fe,width:0,height:0}}ie.fadein=!Q}}function DTe(e,t){return e*ATe+t}const RTe=PTe;var jp=D,LTe=Se,k0=-1,lP=function(){function e(t){var r=t.mappingMethod,n=t.type,i=this.option=we(t);this.type=n,this.mappingMethod=r,this._normalizeData=NTe[r];var a=e.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[r],r==="piecewise"?(P_(i),ETe(i)):r==="category"?i.categories?OTe(i):P_(i,!0):(ln(r!=="linear"||i.dataExtent),P_(i))}return e.prototype.mapValueToVisual=function(t){var r=this._normalizeData(t);return this._normalizedToVisual(r,t)},e.prototype.getNormalizer=function(){return ue(this._normalizeData,this)},e.listVisualTypes=function(){return He(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,r,n){Se(t)?D(t,r,n):r.call(n,t)},e.mapVisual=function(t,r,n){var i,a=q(t)?[]:Se(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&&jp(e.visualHandlers,function(i,a){t.hasOwnProperty(a)&&(r[a]=t[a],n=!0)}),n?r:null},e.prepareVisualTypes=function(t){if(q(t))t=t.slice();else if(LTe(t)){var r=[];jp(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 P_(e,t){var r=e.visual,n=[];Se(r)?jp(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]),v8(e,n)}function tm(e){return{applyVisual:function(t,r,n){var i=this.mapValueToVisual(t);n("color",e(r("color"),i))},_normalizedToVisual:lA([0,1])}}function tB(e){var t=this.option.visual;return t[Math.round(ct(e,[0,1],[0,t.length-1],!0))]||{}}function Hd(e){return function(t,r,n){n(e,this.mapValueToVisual(t))}}function dh(e){var t=this.option.visual;return t[this.option.loop&&e!==k0?e%t.length:e]}function Al(){return this.option.visual[0]}function lA(e){return{linear:function(t){return ct(t,e,this.option.visual,!0)},category:dh,piecewise:function(t,r){var n=uA.call(this,r);return n==null&&(n=ct(t,e,this.option.visual,!0)),n},fixed:Al}}function uA(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var n=lP.findPieceIndex(e,r),i=r[n];if(i&&i.visual)return i.visual[this.type]}}function v8(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=Z(t,function(r){var n=Vn(r);return n||[0,0,0,1]})),t}var NTe={linear:function(e){return ct(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,r=lP.findPieceIndex(e,t,!0);if(r!=null)return ct(r,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??k0},fixed:rr};function rm(e,t,r){return e?t<=r:t=r.length||v===r[v.depth]){var m=GTe(i,l,v,g,p,n);m8(v,m,r,n)}})}}}function FTe(e,t,r){var n=Y({},t),i=r.designatedVisualItemStyle;return D(["color","colorAlpha","colorSaturation"],function(a){i[a]=t[a];var o=e.get(a);i[a]=null,o!=null&&(n[a]=o)}),n}function rB(e){var t=k_(e,"color");if(t){var r=k_(e,"colorAlpha"),n=k_(e,"colorSaturation");return n&&(t=Nh(t,null,null,n)),r&&(t=Qy(t,r)),t}}function $Te(e,t){return t!=null?Nh(t,null,null,e):null}function k_(e,t){var r=e[t];if(r!=null&&r!=="none")return r}function VTe(e,t,r,n,i,a){if(!(!a||!a.length)){var o=D_(t,"color")||i.color!=null&&i.color!=="none"&&(D_(t,"colorAlpha")||D_(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 g8(d).drColorMappingBy=c,d}}}function D_(e,t){var r=e.get(t);return q(r)&&r.length?{name:t,range:r}:null}function GTe(e,t,r,n,i,a){var o=Y({},t);if(i){var s=i.type,l=s==="color"&&g8(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 Yp=Math.max,D0=Math.min,nB=Cr,uP=D,y8=["itemStyle","borderWidth"],HTe=["itemStyle","gapWidth"],WTe=["upperLabel","show"],UTe=["upperLabel","height"];const jTe={seriesType:"treemap",reset:function(e,t,r,n){var i=r.getWidth(),a=r.getHeight(),o=e.option,s=hr(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],u=ne(nB(s.width,l[0]),i),c=ne(nB(s.height,l[1]),a),f=n&&n.type,d=["treemapZoomToNode","treemapRootToNode"],h=Up(n,d,e),p=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,v=e.getViewRoot(),g=d8(v);if(f!=="treemapMove"){var m=f==="treemapZoomToNode"?QTe(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),x8(v,x,!1,0),S=v.getLayout(),uP(g,function(b,w){var C=(g[w+1]||v).getValue();b.setLayout(Y({dataExtent:[C,C],borderWidth:0,upperHeight:0},S))})}var _=e.getData().tree.root;_.setLayout(JTe(s,p,h),!0),e.setLayoutInfo(s),S8(_,new Ne(-s.x,-s.y,i,a),g,v,0)}};function x8(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(y8),u=s.get(HTe)/2,c=b8(s),f=Math.max(l,c),d=l-u,h=f-u;e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),i=Yp(i-2*d,0),a=Yp(a-d-h,0);var p=i*a,v=YTe(e,s,p,t,r,n);if(v.length){var g={x:d,y:h,width:i,height:a},m=D0(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=KTe(x,m,t.squareRatio);w<=y?(S++,y=w):(x.area-=x.pop().getLayout().area,iB(x,m,g,u,!1),m=D0(g.width,g.height),x.length=x.area=0,y=1/0)}if(x.length&&iB(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 KTe(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?Yp(u*n/l,l/(u*i)):1/0}function iB(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;fgE&&(u=gE),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}(Ae);const hP=yAe;var xAe=function(){function e(t){this.group=new Ae,this._LineCtor=t||hP}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=cB(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=cB(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!SAe(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0}function cB(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:yr(t)}}function fB(e){return isNaN(e[0])||isNaN(e[1])}function N_(e){return e&&!fB(e[0])&&!fB(e[1])}const pP=xAe;var z_=[],B_=[],F_=[],lc=_r,$_=eu,dB=Math.abs;function hB(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){z_[0]=lc(n[0],i[0],a[0],c),z_[1]=lc(n[1],i[1],a[1],c);var f=dB($_(z_,t)-l);f=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function V_(e,t){var r=[],n=Ap,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=[ro(u[0]),ro(u[1])],u[2]&&u.__original.push(ro(u[2])));var d=u.__original;if(u[2]!=null){if(en(i[0],d[0]),en(i[1],d[2]),en(i[2],d[1]),c&&c!=="none"){var h=ph(s.node1),p=hB(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=ph(s.node2),p=hB(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]}en(u[0],i[0]),en(u[1],i[2]),en(u[2],i[1])}else{if(en(a[0],d[0]),en(a[1],d[1]),Hl(o,a[1],a[0]),Vf(o,o),c&&c!=="none"){var h=ph(s.node1);QC(a[0],a[0],o,h*t)}if(f&&f!=="none"){var h=ph(s.node2);QC(a[1],a[1],o,-h*t)}en(u[0],a[0]),en(u[1],a[1])}})}function pB(e){return e.type==="view"}var bAe=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 Iv,a=new pP,o=this.group;this._controller=new Rv(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(pB(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):it(u,c,r)}V_(r.getGraph(),hh(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),dP(r,"symbolSize",x,[A.offsetX,A.offsetY]),a.updateLayout(r);break;case"none":default:f.setItemLayout(S,[_.x,_.y]),fP(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"&&(Ie(_).focus=x.getAdjacentDataIndices())}}),f.graph.eachEdge(function(x){var S=x.getGraphicEl(),_=x.getModel().get(["emphasis","focus"]);S&&_==="adjacency"&&(Ie(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){T8(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)&&!Gx(u,i,r)}),!pB(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){tP(s,u.dx,u.dy),i.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){rP(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(),V_(r.getGraph(),hh(r)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),i=hh(r);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},t.prototype.updateLayout=function(r){V_(r.getGraph(),hh(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 _Ae=bAe;function uc(e){return"_EC_"+e}var wAe=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[uc(t)]){var i=new Ml(t,r);return i.hostGraph=this,this.nodes.push(i),n[uc(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[uc(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 Ml||(t=i[uc(t)]),r instanceof Ml||(r=i[uc(r)]),!(!t||!r)){var o=t.id+"-"+r.id,s=new M8(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 Ml&&(t=t.id),r instanceof Ml&&(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 Ml||(r=this._nodesMap[uc(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)}}}lr(Ml,I8("hostGraph","data"));lr(M8,I8("hostGraph","edgeData"));const CAe=wAe;function P8(e,t,r,n,i){for(var a=new CAe(n),o=0;o "+d)),u++)}var h=r.get("coordinateSystem"),p;if(h==="cartesian2d"||h==="polar")p=Ao(e,r);else{var v=_v.get(h),g=v?v.dimensions||[]:[];ze(g,"value")<0&&g.concat(["value"]);var m=Cv(e,{coordDimensions:g,encodeDefine:r.getEncode()}).dimensions;p=new sn(m,r),p.initData(e)}var y=new sn(["value"],r);return y.initData(l,s),i&&i(p,y),c8({mainData:p,struct:a,structAttr:"graph",datas:{node:p,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var TAe=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 Dv(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),mu(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){oAe(this);var s=P8(a,i,this,!0,l);return D(s.edges,function(u){sAe(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),xr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=KW({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:Y({value:0},i)}),n=new sn(["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 AAe=TAe;var MAe={type:"graphRoam",event:"graphRoam",update:"none"};function IAe(e){e.registerChartView(_Ae),e.registerSeriesModel(AAe),e.registerProcessor(tAe),e.registerVisual(rAe),e.registerVisual(nAe),e.registerLayout(lAe),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,cAe),e.registerLayout(dAe),e.registerCoordinateSystem("graphView",{dimensions:Lv.dimensions,create:pAe}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},rr),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},rr),e.registerAction(MAe,function(t,r,n){r.eachComponent({mainType:"series",query:t},function(i){var a=i.coordinateSystem,o=iP(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var PAe=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),kAe=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 PAe},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}($e);const DAe=kAe;function RAe(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 im(e,t){var r=e==null?"":e+"";return t&&(oe(t)?r=t.replace("{value}",r):me(t)&&(r=t(e))),r}var LAe=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=RAe(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?A0:In,p=f.get("show"),v=f.getModel("lineStyle"),g=v.get("width"),m=[u,c];s6(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&&(j+=Math.PI)):B==="tangential"?j=-C-Math.PI/2:nt(B)&&(j=B*Math.PI/180),j===0?f.add(new rt({style:_t(x,{text:V,x:G,y:U,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:k<-.4?"left":k>.4?"right":"center"},{inheritColor:L}),silent:!0})):f.add(new rt({style:_t(x,{text:V,x:G,y:U,verticalAlign:"middle",align:"center"},{inheritColor:L}),silent:!0,originX:G,originY:U,rotation:j}))}if(y.get("show")&&z!==S){var $=y.get("distance");$=$?$+c:c;for(var X=0;X<=_;X++){k=Math.cos(C),R=Math.sin(C);var W=new Tr({shape:{x1:k*(p-$)+d,y1:R*(p-$)+h,x2:k*(p-w-$)+d,y2:R*(p-w-$)+h},silent:!0,style:I});I.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 I=y.getItemModel(T),P=I.getModel("pointer"),k=ne(P.get("width"),o.r),R=ne(P.get("length"),o.r),z=r.get(["pointer","icon"]),$=P.get("offsetCenter"),N=ne($[0],o.r),V=ne($[1],o.r),L=P.get("keepAspect"),G;return z?G=sr(z,N-k/2,V-R,k,R,null,L):G=new DAe({shape:{angle:-Math.PI/2,width:k,r:R,x:N,y:V}}),G.rotation=-(M+Math.PI/2),G.x=o.cx,G.y=o.cy,G}function A(T,M){var I=g.get("roundCap"),P=I?A0:In,k=g.get("overlap"),R=k?g.get("width"):c/y.count(),z=k?o.r-R:o.r-(T+1)*R,$=k?o.r:o.r-T*R,N=new P({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:z,r:$}});return k&&(N.z2=_-y.get(x,T)%_),N}(m||v)&&(y.diff(d).add(function(T){var M=y.get(x,T);if(v){var I=C(T,s);Lt(I,{rotation:-((isNaN(+M)?w[0]:ct(M,b,w,!0))+Math.PI/2)},r),f.add(I),y.setItemGraphicEl(T,I)}if(m){var P=A(T,s),k=g.get("clip");Lt(P,{shape:{endAngle:ct(M,b,w,k)}},r),f.add(P),wT(r.seriesIndex,y.dataType,T,P),p[T]=P}}).update(function(T,M){var I=y.get(x,T);if(v){var P=d.getItemGraphicEl(M),k=P?P.rotation:s,R=C(T,k);R.rotation=k,it(R,{rotation:-((isNaN(+I)?w[0]:ct(I,b,w,!0))+Math.PI/2)},r),f.add(R),y.setItemGraphicEl(T,R)}if(m){var z=h[M],$=z?z.shape.endAngle:s,N=A(T,$),V=g.get("clip");it(N,{shape:{endAngle:ct(I,b,w,V)}},r),f.add(N),wT(r.seriesIndex,y.dataType,T,N),p[T]=N}}).execute(),y.each(function(T){var M=y.getItemModel(T),I=M.getModel("emphasis"),P=I.get("focus"),k=I.get("blurScope"),R=I.get("disabled");if(v){var z=y.getItemGraphicEl(T),$=y.getItemVisual(T,"style"),N=$.fill;if(z instanceof Fr){var V=z.style;z.useStyle(Y({image:V.image,x:V.x,y:V.y,width:V.width,height:V.height},$))}else z.useStyle($),z.type!=="pointer"&&z.setColor(N);z.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),z.style.fill==="auto"&&z.setStyle("fill",a(ct(y.get(x,T),b,[0,1],!0))),z.z2EmphasisLift=0,zr(z,M),Ut(z,P,k,R)}if(m){var L=p[T];L.useStyle(y.getItemVisual(T,"style")),L.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),L.z2EmphasisLift=0,zr(L,M),Ut(L,P,k,R)}}),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=sr(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 Ae,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 Ae,_=a(ct(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 I=M.get("offsetCenter"),P=o.cx+ne(I[0],o.r),k=o.cy+ne(I[1],o.r),R=ne(M.get("width"),o.r),z=ne(M.get("height"),o.r),$=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:P,y:k,text:im(x,N),width:isNaN(R)?null:R,height:isNaN(z)?null:z,align:"center",verticalAlign:"middle"},{inheritColor:$})}),J6(T,{normal:M},x,function(L){return im(L,N)}),v&&eW(T,m,l,r,{getFormattedLabel:function(L,G,U,B,j,X){return im(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 EAe=LAe;var OAe=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 rd(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 NAe=OAe;function zAe(e){e.registerChartView(EAe),e.registerSeriesModel(NAe)}var BAe=["itemStyle","opacity"],FAe=function(e){H(t,e);function t(r,n){var i=e.call(this)||this,a=i,o=new kn,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(BAe);c=c??1,i||Zi(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)):it(a,{style:{opacity:c},shape:{points:l.points}},o,n),zr(a,s),this._updateLabel(r,n),Ut(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,yr(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},it(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),jI(i,YI(l),{stroke:d})},t}(Pn),$Ae=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 FAe(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);Lp(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 VAe=$Ae;var GAe=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 Dv(ue(this.getData,this),ue(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.getInitialData=function(r,n){return rd(this,{coordDimensions:["value"],encodeDefaulter:Pe(bI,this)})},t.prototype._defaultLabelLine=function(r){mu(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 HAe=GAe;function WAe(e,t){return hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function UAe(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();ocMe)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||!H_(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 H_(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}const hMe=fMe;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(){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){D(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){r.hasOwnProperty(n)&&(this.option[n]=r[n])},this)},t.prototype._initDimensions=function(){var r=this.dimensions=[],n=this.parallelAxisIndex=[],i=ft(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);D(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 vMe=pMe;var gMe=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}(Qi);const mMe=gMe;function zu(e,t,r,n,i,a){e=e||0;var o=r[1]-r[0];if(i!=null&&(i=cc(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=cc(s,[0,o]),i=a=cc(s,[i,a]),n=0}t[0]=cc(t[0],r),t[1]=cc(t[1],r);var l=W_(t,n);t[n]+=e;var u=i||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=cc(t[n],c);var f;return f=W_(t,n),i!=null&&(f.sign!==l.sign||f.spana&&(t[1-n]=t[n]+f.sign*a),t}function W_(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 cc(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var U_=D,D8=Math.min,R8=Math.max,mB=Math.floor,yMe=Math.ceil,yB=Xt,xMe=Math.PI,SMe=function(){function e(t,r,n){this.type="parallel",this._axesMap=ve(),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;U_(i,function(o,s){var l=a[s],u=r.getComponent("parallelAxis",l),c=this._axesMap.set(o,new mMe(o,Fx(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();U_(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),bf(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,r){this._rect=hr(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=am(t.get("axisExpandWidth"),l),f=am(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=am(h[1]-h[0],l),h[1]=h[0]+p;else{p=am(c*(f-1),l);var v=t.get("axisExpandCenter")||mB(u/2);h=[c*v-p/2],h[1]=h[0]+p}var g=(s-p)/(u-f);g<3&&(g=0);var m=[mB(yB(h[0]/c,1))+1,yMe(yB(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])}),U_(n,function(o,s){var l=(i.axisExpandable?_Me:bMe)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:xMe/2,vertical:0},f=[u[a].x+t.x,u[a].y+t.y],d=c[a],h=_i();Du(h,h,d),Na(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=[];D(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=[R8(0,p-h/2)],i[1]=D8(o[1],i[0]+h),i[0]=i[1]-h}return{axisExpandWindow:i,behavior:u}},e}();function am(e,t){return D8(R8(e,t[0]),t[1])}function bMe(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function _Me(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--)gi(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;aPMe}function F8(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function $8(e,t,r,n){var i=new Ae;return i.add(new Qe({name:"main",style:yP(r),silent:!0,draggable:!0,cursor:"move",drift:Pe(_B,e,t,i,["n","s","w","e"]),ondragend:Pe(wu,t,{isEnd:!0})})),D(n,function(a){i.add(new Qe({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Pe(_B,e,t,i,a),ondragend:Pe(wu,t,{isEnd:!0})}))}),i}function V8(e,t,r,n){var i=n.brushStyle.lineWidth||0,a=Cf(i,kMe),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;Ua(e,t,"main",o,s,p,v),n.transformable&&(Ua(e,t,"w",l,u,a,m),Ua(e,t,"e",d,u,a,m),Ua(e,t,"n",l,u,g,a),Ua(e,t,"s",l,h,g,a),Ua(e,t,"nw",l,u,a,a),Ua(e,t,"ne",d,u,a,a),Ua(e,t,"sw",l,h,a,a),Ua(e,t,"se",d,h,a,a))}function pA(e,t){var r=t.__brushOption,n=r.transformable,i=t.childAt(0);i.useStyle(yP(r)),i.attr({silent:!n,cursor:n?"move":"default"}),D([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?vA(e,a[0]):zMe(e,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?RMe[s]+"-resize":null})})}function Ua(e,t,r,n,i,a,o){var s=t.childOfName(r);s&&s.setShape(FMe(xP(e,t,[[n,i],[n+a,i+o]])))}function yP(e){return xe({strokeNoScale:!0},e.brushStyle)}function G8(e,t,r,n){var i=[Xp(e,r),Xp(t,n)],a=[Cf(e,r),Cf(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function NMe(e){return au(e.group)}function vA(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=Cx(r[t],NMe(e));return n[i]}function zMe(e,t){var r=[vA(e,t[0]),vA(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function _B(e,t,r,n,i,a){var o=r.__brushOption,s=e.toRectRange(o.range),l=H8(t,i,a);D(n,function(u){var c=DMe[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(G8(s[0][0],s[1][0],s[0][1],s[1][1])),vP(t,r),wu(t,{isEnd:!1})}function BMe(e,t,r,n){var i=t.__brushOption.range,a=H8(e,r,n);D(i,function(o){o[0]+=a[0],o[1]+=a[1]}),vP(e,t),wu(e,{isEnd:!1})}function H8(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 xP(e,t,r){var n=B8(e,t);return n&&n!==_u?n.clipPath(r,e._transform):we(r)}function FMe(e){var t=Xp(e[0][0],e[1][0]),r=Xp(e[0][1],e[1][1]),n=Cf(e[0][0],e[1][0]),i=Cf(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:i-r}}function $Me(e,t,r){if(!(!e._brushType||GMe(e,t.offsetX,t.offsetY))){var n=e._zr,i=e._covers,a=mP(e,t,r);if(!e._dragging)for(var o=0;on.getWidth()||r<0||r>n.getHeight()}var jx={lineX:TB(0),lineY:TB(1),rect:{createCover:function(e,t){function r(n){return n}return $8({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=F8(e);return G8(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){V8(e,t,r,n)},updateCommon:pA,contain:mA},polygon:{createCover:function(e,t){var r=new Ae;return r.add(new kn({name:"main",style:yP(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Pn({name:"main",draggable:!0,drift:Pe(BMe,e,t),ondragend:Pe(wu,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:xP(e,t,r)})},updateCommon:pA,contain:mA}};function TB(e){return{createCover:function(t,r){return $8({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=F8(t),n=Xp(r[0][e],r[1][e]),i=Cf(r[0][e],r[1][e]);return[n,i]},updateCoverShape:function(t,r,n,i){var a,o=B8(t,r);if(o!==_u&&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(),V8(t,r,l,i)},updateCommon:pA,contain:mA}}const SP=EMe;function U8(e){return e=bP(e),function(t){return X6(t,e)}}function j8(e,t){return e=bP(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 Y8(e,t,r){var n=bP(e);return function(i,a){return n.contain(a[0],a[1])&&!Gx(i,t,r)}}function bP(e){return Ne.create(e)}var HMe=["axisLine","axisTickLabel","axisName"],WMe=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 SP(n.getZr())).on("brush",ue(this._onBrush,this))},t.prototype.render=function(r,n,i,a){if(!UMe(r,n,a)){this.axisModel=r,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ae,this.group.add(this._axisGroup),!!r.get("show")){var s=YMe(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),c=u.width,f=r.axis.dim,d=l.getAxisLayout(f),h=Y({strokeContainThreshold:c},d),p=new So(r,h);D(HMe,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(h,u,r,s,c,i),xv(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:U8(f),isTargetByCursor:Y8(f,s,a),getLinearBrushOtherExtent:j8(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(jMe(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}(jt);function UMe(e,t,r){return r&&r.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function jMe(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 YMe(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}const qMe=WMe;var XMe={type:"axisAreaSelect",event:"axisAreaSelected"};function ZMe(e){e.registerAction(XMe,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 KMe={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function q8(e){e.registerComponentView(hMe),e.registerComponentModel(vMe),e.registerCoordinateSystem("parallel",AMe),e.registerPreprocessor(sMe),e.registerComponentModel(xB),e.registerComponentView(qMe),wf(e,"parallel",xB,KMe),ZMe(e)}function QMe(e){Fe(q8),e.registerChartView(JAe),e.registerSeriesModel(nMe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,oMe)}var JMe=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}(),e2e=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new JMe},t.prototype.buildPath=function(r,n){var i=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(){mo(this)},t.prototype.downplay=function(){yo(this)},t}($e),t2e=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 e2e,g=Ie(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"),I=p.getLayout(),P,k,R,z,$,N,V,L;v.shape.extent=Math.max(1,I.dy),v.shape.orient=h,h==="vertical"?(P=(b!=null?b*u:S.x)+I.sy,k=(w!=null?w*c:S.y)+S.dy,R=(T!=null?T*u:C.x)+I.ty,z=M!=null?M*c:C.y,$=P,N=k*(1-x)+z*x,V=R,L=k*x+z*(1-x)):(P=(b!=null?b*u:S.x)+S.dx,k=(w!=null?w*c:S.y)+I.sy,R=T!=null?T*u:C.x,z=(M!=null?M*c:C.y)+I.ty,$=P*(1-x)+R*x,N=k,V=P*x+R*(1-x),L=z),v.setShape({x1:P,y1:k,x2:R,y2:z,cpx1:$,cpy1:N,cpx2:V,cpy2:L}),v.useStyle(y.getItemStyle()),AB(v.style,h,p);var G=""+m.get("value"),U=yr(m,"edgeLabel");Br(v,U,{labelFetcher:{getFormattedLabel:function(X,W,ee,te,ie,re){return r.getFormattedLabel(X,W,"edge",te,Pa(ie,U.normal&&U.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 AB(W,h,p),W}),s.add(v),d.setItemGraphicEl(p.dataIndex,v);var j=B.get("focus");Ut(v,j==="adjacency"?p.getAdjacentDataIndices():j==="trajectory"?p.getTrajectoryDataIndices():j,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,yr(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),Ie(S).dataType="node";var _=x.get("focus");Ut(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(r2e(s.getBoundingRect(),r,function(){s.removeClipPath()})),this._data=r.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(Tt);function AB(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 yv(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:i,offset:1}]))}}function r2e(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 n2e=t2e;var i2e=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=P8(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 xr("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 xr("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 a2e=i2e;function o2e(e,t){e.eachSeriesByType("sankey",function(r){var n=r.get("nodeWidth"),i=r.get("nodeGap"),a=s2e(r,t);r.layoutInfo=a;var o=a.width,s=a.height,l=r.getGraph(),u=l.nodes,c=l.edges;u2e(u);var f=ft(u,function(v){return v.getLayout().value===0}),d=f.length!==0?0:r.get("layoutIterations"),h=r.get("orient"),p=r.get("nodeAlign");l2e(u,c,n,i,o,s,d,h,p)})}function s2e(e,t){return hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function l2e(e,t,r,n,i,a,o,s,l){c2e(e,t,r,i,a,s,l),p2e(e,t,a,i,n,o,s),w2e(e,s)}function u2e(e){D(e,function(t){var r=bs(t.outEdges,R0),n=bs(t.inEdges,R0),i=t.getValue()||0,a=Math.max(r,n,i);t.setLayout({value:a},!0)})}function c2e(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"&&f2e(e,o,a,w);var C=a==="vertical"?(i-r)/w:(n-r)/w;h2e(e,C,a)}function X8(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function f2e(e,t,r,n){if(t==="right"){for(var i=[],a=e,o=0;a.length;){for(var s=0;s0;a--)l*=.99,m2e(s,l,o),j_(s,i,r,n,o),_2e(s,l,o),j_(s,i,r,n,o)}function v2e(e,t){var r=[],n=t==="vertical"?"y":"x",i=xT(e,function(a){return a.getLayout()[n]});return i.keys.sort(function(a,o){return a-o}),D(i.keys,function(a){r.push(i.buckets.get(a))}),r}function g2e(e,t,r,n,i,a){var o=1/0;D(e,function(s){var l=s.length,u=0;D(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 m2e(e,t,r){D(e.slice().reverse(),function(n){D(n,function(i){if(i.outEdges.length){var a=bs(i.outEdges,y2e,r)/bs(i.outEdges,R0);if(isNaN(a)){var o=i.outEdges.length;a=o?bs(i.outEdges,x2e,r)/o:0}if(r==="vertical"){var s=i.getLayout().x+(a-Os(i,r))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-Os(i,r))*t;i.setLayout({y:l},!0)}}})})}function y2e(e,t){return Os(e.node2,t)*e.getValue()}function x2e(e,t){return Os(e.node2,t)}function S2e(e,t){return Os(e.node1,t)*e.getValue()}function b2e(e,t){return Os(e.node1,t)}function Os(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function R0(e){return e.getValue()}function bs(e,t,r){for(var n=0,i=e.length,a=-1;++ao&&(o=l)}),D(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&&D(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function T2e(e){e.registerChartView(n2e),e.registerSeriesModel(a2e),e.registerLayout(o2e),e.registerVisual(C2e),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 Z8=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=[];D(g,function(S,_){var b;q(S)?(b=S.slice(),S.unshift(_)):q(S.value)?(b=Y({},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:S0(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:S0(v),dimsDef:y.slice()}];return rd(this,{coordDimensions:x,dimensionsCount:y.length+1,encodeDefaulter:Pe(_W,x,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),K8=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);lr(K8,Z8,!0);const A2e=K8;var M2e=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=MB(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?(Zi(f),Q8(d,f,a,u)):f=MB(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),I2e=function(){function e(){}return e}(),P2e=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 I2e},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 z2e={type:"echarts:boxplot",transform:function(t){var r=t.upstream;if(r.sourceFormat!==Kr){var n="";st(n)}var i=N2e(r.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function B2e(e){e.registerSeriesModel(A2e),e.registerChartView(D2e),e.registerLayout(R2e),e.registerTransform(z2e)}var F2e=["color","borderColor"],$2e=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){Hs(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&&IB(u,f))return;var d=Y_(f,c,!0);Lt(d,{shape:{points:f.ends}},r,c),q_(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&&IB(u,h)){a.remove(d);return}d?(it(d,{shape:{points:h.ends}},r,c),Zi(d)):d=Y_(h),q_(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(),PB(r,this.group);var n=r.get("clip",!0)?Vx(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=Y_(s);q_(l,i,o,a),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(r,n){PB(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),V2e=function(){function e(){}return e}(),G2e=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 V2e},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}($e);function Y_(e,t,r){var n=e.ends;return new G2e({shape:{points:r?H2e(n,e):n},z2:100})}function IB(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(F2e);t.useStyle(a),t.style.fill=null,t.style.stroke=i}const U2e=$2e;var J8=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);lr(J8,Z8,!0);const j2e=J8;function Y2e(e){!e||!q(e.series)||D(e.series,function(t){Se(t)&&t.type==="k"&&(t.type="candlestick")})}var q2e=["itemStyle","borderColor"],X2e=["itemStyle","borderColor0"],Z2e=["itemStyle","borderColorDoji"],K2e=["itemStyle","color"],Q2e=["itemStyle","color0"],J2e={seriesType:"candlestick",plan:Jf(),performRawSeries:!0,reset:function(e,t){function r(a,o){return o.get(a>0?K2e:Q2e)}function n(a,o){return o.get(a===0?Z2e:a>0?q2e:X2e)}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");Y(f,c)}}}}}};const eIe=J2e;var tIe={seriesType:"candlestick",plan:Jf(),reset:function(e){var t=e.coordinateSystem,r=e.getData(),n=rIe(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=$(C,x),M=$(A,x),I=$(b,x),P=$(w,x),k=[];N(k,M,0),N(k,T,1),k.push(L(P),L(M),L(I),L(T));var R=g.getItemModel(m),z=!!R.get(["itemStyle","borderColorDoji"]);g.setItemLayout(m,{sign:kB(y,m,S,_,c,z),initBaseline:S>_?M[a]:T[a],ends:k,brushRect:V(b,w,x)})}function $(G,U){var B=[];return B[i]=U,B[a]=G,isNaN(U)||isNaN(G)?[NaN,NaN]:t.dataToPoint(B)}function N(G,U,B){var j=U.slice(),X=U.slice();j[i]=Ym(j[i]+n/2,1,!1),X[i]=Ym(X[i]-n/2,1,!0),B?G.push(j,X):G.push(X,j)}function V(G,U,B){var j=$(G,B),X=$(U,B);return j[i]-=n/2,X[i]-=n/2,{x:j[0],y:j[1],width:n,height:X[1]-j[1]}}function L(G){return G[i]=Ym(G[i],1),G}}function p(v,g){for(var m=_a(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),I=w.get(f,b),P=w.get(d,b);if(isNaN(A)||isNaN(I)||isNaN(P)){m[y++]=NaN,y+=3;continue}m[y++]=kB(w,b,T,M,c,C),S[i]=A,S[a]=I,x=t.dataToPoint(S,null,_),m[y++]=x?x[0]:NaN,m[y++]=x?x[1]:NaN,S[a]=P,x=t.dataToPoint(S,null,_),m[y++]=x?x[1]:NaN}g.setLayout("largePoints",m)}}};function kB(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 rIe(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 nIe=tIe;function iIe(e){e.registerChartView(U2e),e.registerSeriesModel(j2e),e.registerPreprocessor(Y2e),e.registerVisual(eIe),e.registerLayout(nIe)}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 aIe=function(e){H(t,e);function t(r,n){var i=e.call(this)||this,a=new Mv(r,n),o=new Ae;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;me(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 Jo(r.__p1,r.__cp1)+Jo(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=_r,c=oT;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}(e9);const vIe=pIe;var gIe=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),mIe=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 gIe},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(l6(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 xIe=yIe;var SIe={seriesType:"lines",plan:Jf(),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)&&Vx(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=r9.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 xIe:new pP(o?a?vIe:t9:a?e9:hP),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 _Ie=bIe;var wIe=typeof Uint32Array>"u"?Array:Uint32Array,CIe=typeof Float64Array>"u"?Array:Float64Array;function RB(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),H2([i,r[0],r[1]])}))}var TIe=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||[],RB(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(RB(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=Xy(this._flatCoords,n.flatCoords),this._flatCoordsOffset=Xy(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 AIe=TIe;function om(e){return e instanceof Array||(e=[e,e]),e}var MIe={seriesType:"lines",reset:function(e){var t=om(e.get("symbol")),r=om(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=om(s.getShallow("symbol",!0)),u=om(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 IIe=MIe;function PIe(e){e.registerChartView(_Ie),e.registerSeriesModel(AIe),e.registerLayout(r9),e.registerVisual(IIe)}var kIe=256,DIe=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Ps.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 I=o(x)?l:u;x>0&&(x=x*T+C),_[b++]=I[M],_[b++]=I[M+1],_[b++]=I[M+2],_[b++]=I[M+3]*x*256}else b+=4}return d.putImageData(S,0,0),f},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Ps.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 RIe=DIe;function LIe(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 LB(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var OIe=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()):LB(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&&(LB(o)?this.render(n,i,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,a,r.start,r.end,!0)))},t.prototype.eachRendered=function(r){Hs(this._progressiveEls||this.group,r)},t.prototype._renderOnCartesianAndCalendar=function(r,n,i,a,o){var s=r.coordinateSystem,l=Ou(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"]),_=yr(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]||Rd[1])continue;var z=s.dataToPoint([k,R]);I=new Qe({shape:{x:z[0]-u/2,y:z[1]-c/2,width:u,height:c},style:P})}else{if(isNaN(g.get(T[1],M)))continue;I=new Qe({z2:1,shape:s.dataToRect([g.get(T[0],M)]).contentShape,style:P})}if(g.hasItemOption){var $=g.getItemModel(M),N=$.getModel("emphasis");m=N.getModel("itemStyle").getItemStyle(),y=$.getModel(["blur","itemStyle"]).getItemStyle(),x=$.getModel(["select","itemStyle"]).getItemStyle(),S=$.get(["itemStyle","borderRadius"]),w=N.get("focus"),C=N.get("blurScope"),A=N.get("disabled"),_=yr($)}I.shape.r=S;var V=r.getRawValue(M),L="-";V&&V[2]!=null&&(L=V[2]+""),Br(I,_,{labelFetcher:r,labelDataIndex:M,defaultOpacity:P.opacity,defaultText:L}),I.ensureState("emphasis").style=m,I.ensureState("blur").style=y,I.ensureState("select").style=x,Ut(I,w,C,A),I.incremental=o,o&&(I.states.emphasis.hoverLayer=!0),v.add(I),g.setItemGraphicEl(M,I),this._progressiveEls&&this._progressiveEls.push(I)}},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 RIe;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"?EIe(S,i.option.range):LIe(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 Fr({style:{width:g,height:m,x:d,y:h,image:u.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t}(Tt);const NIe=OIe;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.getInitialData=function(r,n){return Ao(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var r=_v.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 BIe=zIe;function FIe(e){e.registerChartView(NIe),e.registerSeriesModel(BIe)}var $Ie=["itemStyle","borderWidth"],EB=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],K_=new $a,VIe=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:EB[+c],categoryDim:EB[1-+c]};return o.diff(s).add(function(h){if(o.hasValue(h)){var p=NB(o,h),v=OB(o,h,p,d),g=zB(o,d,v);o.setItemGraphicEl(h,g),a.add(g),FB(g,d,v)}}).update(function(h,p){var v=s.getItemGraphicEl(p);if(!o.hasValue(h)){a.remove(v);return}var g=NB(o,h),m=OB(o,h,g,d),y=l9(o,m);v&&y!==v.__pictorialShapeStr&&(a.remove(v),o.setItemGraphicEl(h,null),v=null),v?qIe(v,d,m):v=zB(o,d,m,!0),o.setItemGraphicEl(h,v),v.__pictorialSymbolMeta=m,a.add(v),FB(v,d,m)}).remove(function(h){var p=s.getItemGraphicEl(h);p&&BB(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){BB(a,Ie(o).dataIndex,r,o)}):i.removeAll()},t.type="pictorialBar",t}(Tt);function OB(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};GIe(r,a,i,n,d),HIe(e,t,i,a,o,d.boundingLength,d.pxSign,c,n,d),WIe(r,d.symbolScale,u,n,d);var h=d.symbolSize,p=Lu(r.get("symbolOffset"),h);return UIe(r,h,i,a,o,p,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,n,d),d}function GIe(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(q(o)){var f=[Q_(s,o[0])-l,Q_(s,o[1])-l];f[1]0?1:-1}function Q_(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function HIe(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;q(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 WIe(e,t,r,n,i){var a=e.get($Ie)||0;a&&(K_.attr({scaleX:t[0],scaleY:t[1],rotation:r}),K_.updateTransform(),a/=K_.getLineScale(),a*=t[n.valueDim.index]),i.valueLineWidth=a||0}function UIe(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=YH(n),C=w?n:$B((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?$B((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 I=f.bundlePosition=[];I[d.index]=r[d.xy],I[h.index]=r[h.xy];var P=f.barRectShape=Y({},r);P[h.wh]=p*Math.max(Math.abs(r[h.wh]),Math.abs(M[h.index]+T)),P[d.wh]=r[d.wh];var k=f.clipShape={};k[d.xy]=-r[d.xy],k[d.wh]=c.ecSize[d.wh],k[h.xy]=0,k[h.wh]=r[h.wh]}function n9(e){var t=e.symbolPatternSize,r=sr(e.symbolType,-t/2,-t/2,t,t);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function i9(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(_P(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 a9(e,t,r,n){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?rf(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=n9(r),i.add(a),rf(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 o9(e,t,r){var n=Y({},t.barRectShape),i=e.__pictorialBarRect;i?rf(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 s9(e,t,r,n){if(r.symbolClip){var i=e.__pictorialClipPath,a=Y({},r.clipShape),o=t.valueDim,s=r.animationModel,l=r.dataIndex;if(i)it(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],bv[n?"updateProps":"initProps"](i,{shape:u},s,l)}}}function NB(e,t){var r=e.getItemModel(t);return r.getAnimationDelayParams=jIe,r.isAnimationEnabled=YIe,r}function jIe(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function YIe(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function zB(e,t,r,n){var i=new Ae,a=new Ae;return i.add(a),i.__pictorialBundle=a,a.x=r.bundlePosition[0],a.y=r.bundlePosition[1],r.symbolRepeat?i9(i,t,r):a9(i,t,r),o9(i,r,n),s9(i,t,r,n),i.__pictorialShapeStr=l9(e,r),i.__pictorialSymbolMeta=r,i}function qIe(e,t,r){var n=r.animationModel,i=r.dataIndex,a=e.__pictorialBundle;it(a,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,i),r.symbolRepeat?i9(e,t,r,!0):a9(e,t,r,!0),o9(e,r,!0),s9(e,t,r,!0)}function BB(e,t,r,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var a=[];_P(n,function(o){a.push(o)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),D(a,function(o){Ds(o,{scaleX:0,scaleY:0},r,t,function(){n.parent&&n.parent.remove(n)})}),e.setItemGraphicEl(t,null)}function l9(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function _P(e,t,r){D(e.__pictorialBundle.children(),function(n){n!==e.__pictorialBarRect&&t.call(r,n)})}function rf(e,t,r,n,i,a){t&&e.attr(t),n.symbolClip&&!i?r&&e.attr(r):r&&bv[i?"updateProps":"initProps"](e,r,n.animationModel,n.dataIndex,a)}function FB(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");_P(e,function(v){if(v instanceof Fr){var g=v.style;v.useStyle(Y({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,yr(i),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:_f(t.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:h}),Ut(e,c,f,a.get("disabled"))}function $B(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}const XIe=VIe;var ZIe=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=Ws(T0.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}(T0);const KIe=ZIe;function QIe(e){e.registerChartView(XIe),e.registerSeriesModel(KIe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Pe(HU,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,WU("pictorialBar"))}var JIe=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 xo(this._layersSeries||[],l,d,d),p=[];h.add(ue(v,this,"add")).update(ue(v,this,"update")).remove(ue(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 oPe(e){e.registerChartView(tPe),e.registerSeriesModel(nPe),e.registerLayout(iPe),e.registerProcessor(kv("themeRiver"))}var sPe=2,lPe=4,uPe=function(e){H(t,e);function t(r,n,i,a){var o=e.call(this)||this;o.z2=sPe,o.textConfig={inside:!0},Ie(o).seriesIndex=n.seriesIndex;var s=new rt({z2:lPe,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;Ie(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),f=Y({},c);f.label=null;var d=n.getVisual("style");d.lineJoin="bevel";var h=n.getVisual("decal");h&&(d.decal=Sf(h,o));var p=Zl(l.getModel("itemStyle"),f,!0);Y(f,p),D(un,function(y){var x=s.ensureState(y),S=l.getModel([y,"itemStyle"]);x.style=S.getItemStyle();var _=Zl(S,f);_&&(x.shape=_)}),r?(s.setShape(f),s.shape.r=c.r0,Lt(s,{shape:{r:c.r}},i,n.dataIndex)):(it(s,{shape:f},i),Zi(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;Ut(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"):!I||I==="center"?(s===2*Math.PI&&o.r0===0?T=0:T=(o.r+o.r0)/2,I="center"):I==="left"?(T=o.r0+M,l>Math.PI/2&&(I="right")):I==="right"&&(T=o.r-M,l>Math.PI/2&&(I="left")),S.style.align=I,S.style.verticalAlign=g(y,"verticalAlign")||"middle",S.x=T*u+o.cx,S.y=T*c+o.cy;var P=g(y,"rotate"),k=0;P==="radial"?(k=$i(-l),k>Math.PI/2&&kMath.PI/2?k-=Math.PI:k<-Math.PI/2&&(k+=Math.PI)):nt(P)&&(k=P*Math.PI/180),S.rotation=$i(k)});function g(m,y){var x=m.get(y);return x??a.get(y)}d.dirtyStyle()},t}(In);const GB=uPe;var yA="sunburstRootToNode",HB="sunburstHighlight",cPe="sunburstUnhighlight";function fPe(e){e.registerAction({type:yA,update:"updateView"},function(t,r){r.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(i,a){var o=Up(t,[yA],i);if(o){var s=i.getViewRoot();s&&(t.direction=sP(s,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}}),e.registerAction({type:HB,update:"none"},function(t,r,n){t=Y({},t),r.eachComponent({mainType:"series",subType:"sunburst",query:t},i);function i(a){var o=Up(t,[HB],a);o&&(t.dataIndex=o.node.dataIndex)}n.dispatchAction(Y(t,{type:"highlight"}))}),e.registerAction({type:cPe,update:"updateView"},function(t,r,n){t=Y({},t),n.dispatchAction(Y(t,{type:"downplay"}))})}var dPe=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 xo(x,y,S,S).add(_).update(_).remove(Pe(_,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 GB(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 GB(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";f0(u,c)}}i=!0}})})},t.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:yA,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 hPe=dPe;var pPe=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};u9(i);var a=this._levelModels=Z(r.levels||[],function(l){return new wt(l,this,n)},this),o=oP.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=Wx(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(){h8(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 u9(e){var t=0;D(e.children,function(n){u9(n);var i=n.value;q(i)&&(i=i[0]),t+=i});var r=e.value;q(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),q(e.value)?e.value[0]=r:e.value=r}const vPe=pPe;var WB=Math.PI/180;function gPe(e,t,r){t.eachSeriesByType(e,function(n){var i=n.get("center"),a=n.get("radius");q(a)||(a=[0,a]),q(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")*WB,p=n.get("minAngle")*WB,v=n.getData().tree.root,g=n.getViewRoot(),m=g.depth,y=n.get("sort");y!=null&&c9(g,y);var x=0;D(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,I=function(z,$){if(z){var N=$;if(z!==v){var V=z.getValue(),L=S===0&&T?_:V*_;L1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&oe(s)&&(s=uT(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");Y(u,l)})})}function xPe(e){e.registerChartView(hPe),e.registerSeriesModel(vPe),e.registerLayout(Pe(gPe,"sunburst")),e.registerProcessor(Pe(kv,"sunburst")),e.registerVisual(yPe),fPe(e)}var UB={color:"fill",borderColor:"stroke"},SPe={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},ao=Je(),bPe=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 Ao(null,this)},t.prototype.getDataParams=function(r,n,i){var a=e.prototype.getDataParams.call(this,r,n);return i&&(a.info=ao(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 _Pe=bPe;function wPe(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 CPe(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:ue(wPe,e)}}}function TPe(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 APe(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:ue(TPe,e)}}}function MPe(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 IPe(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:ue(MPe,e)}}}function PPe(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 kPe(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:ue(PPe,e)}}}function DPe(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 f9(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||ce(e,"text")))}function d9(e,t,r){var n=e,i,a,o;if(t==="text")o=n;else{o={},ce(n,"text")&&(o.text=n.text),ce(n,"rich")&&(o.rich=n.rich),ce(n,"textFill")&&(o.fill=n.textFill),ce(n,"textStroke")&&(o.stroke=n.textStroke),ce(n,"fontFamily")&&(o.fontFamily=n.fontFamily),ce(n,"fontSize")&&(o.fontSize=n.fontSize),ce(n,"fontStyle")&&(o.fontStyle=n.fontStyle),ce(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=ce(n,"textPosition");r?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),ce(n,"textPosition")&&(i.position=n.textPosition),ce(n,"textOffset")&&(i.offset=n.textOffset),ce(n,"textRotation")&&(i.rotation=n.textRotation),ce(n,"textDistance")&&(i.distance=n.textDistance)}return jB(o,e),D(o.rich,function(l){jB(l,l)}),{textConfig:i,textContent:a}}function jB(e,t){t&&(t.font=t.textFont||t.font,ce(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),ce(t,"textAlign")&&(e.align=t.textAlign),ce(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),ce(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),ce(t,"textWidth")&&(e.width=t.textWidth),ce(t,"textHeight")&&(e.height=t.textHeight),ce(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),ce(t,"textPadding")&&(e.padding=t.textPadding),ce(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),ce(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),ce(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),ce(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),ce(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),ce(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),ce(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function YB(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";qB(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,D(t.rich,function(s){qB(s,s)}),n}function qB(e,t){t&&(ce(t,"fill")&&(e.textFill=t.fill),ce(t,"stroke")&&(e.textStroke=t.fill),ce(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),ce(t,"font")&&(e.font=t.font),ce(t,"fontStyle")&&(e.fontStyle=t.fontStyle),ce(t,"fontWeight")&&(e.fontWeight=t.fontWeight),ce(t,"fontSize")&&(e.fontSize=t.fontSize),ce(t,"fontFamily")&&(e.fontFamily=t.fontFamily),ce(t,"align")&&(e.textAlign=t.align),ce(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),ce(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),ce(t,"width")&&(e.textWidth=t.width),ce(t,"height")&&(e.textHeight=t.height),ce(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),ce(t,"padding")&&(e.textPadding=t.padding),ce(t,"borderColor")&&(e.textBorderColor=t.borderColor),ce(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),ce(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),ce(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),ce(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),ce(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),ce(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),ce(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),ce(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),ce(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),ce(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var h9={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},XB=He(h9);Oa(za,function(e,t){return e[t]=1,e},{});za.join(", ");var L0=["","style","shape","extra"],Tf=Je();function wP(e,t,r,n,i){var a=e+"Animation",o=Uf(e,n,i)||{},s=Tf(t).userDuring;return o.duration>0&&(o.during=s?ue(NPe,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),Y(o,r[a]),o}function Jm(e,t,r,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=Tf(e),u=t.style;l.userDuring=t.during;var c={},f={};if(BPe(e,t,f),KB("shape",t,f),KB("extra",t,f),!a&&s&&(zPe(e,t,c),ZB("shape",e,t,c),ZB("extra",e,t,c),FPe(e,t,u,c)),f.style=u,RPe(e,f,o),EPe(e,t),s)if(a){var d={};D(L0,function(p){var v=p?t[p]:t;v&&v.enterFrom&&(p&&(d[p]=d[p]||{}),Y(p?d[p]:d,v.enterFrom))});var h=wP("enter",e,t,r,i);h.duration>0&&e.animateFrom(d,h)}else LPe(e,t,i||0,r,c);p9(e,t),u?e.dirty():e.markRedraw()}function p9(e,t){for(var r=Tf(e).leaveToProps,n=0;n0&&e.animateFrom(i,a)}}function EPe(e,t){ce(t,"silent")&&(e.silent=t.silent),ce(t,"ignore")&&(e.ignore=t.ignore),e instanceof wi&&ce(t,"invisible")&&(e.invisible=t.invisible),e instanceof $e&&ce(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var aa={},OPe={setTransform:function(e,t){return aa.el[e]=t,this},getTransform:function(e){return aa.el[e]},setShape:function(e,t){var r=aa.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){var t=aa.el.shape;if(t)return t[e]},setStyle:function(e,t){var r=aa.el,n=r.style;return n&&(n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){var t=aa.el.style;if(t)return t[e]},setExtra:function(e,t){var r=aa.el.extra||(aa.el.extra={});return r[e]=t,this},getExtra:function(e){var t=aa.el.extra;if(t)return t[e]}};function NPe(){var e=this,t=e.el;if(t){var r=Tf(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}aa.el=t,n(OPe)}}function ZB(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]={}),uu(l))Y(o,a);else for(var u=pt(l),c=0;c=0){!o&&(o=n[e]={});for(var h=He(a),c=0;c=0)){var d=e.getAnimationStyleProps(),h=d?d.style:null;if(h){!a&&(a=n.style={});for(var p=He(r),u=0;u=0?t.getStore().get($,R):void 0}var N=t.get(z.name,R),V=z&&z.ordinalMeta;return V?V.categories[N]:N}function b(k,R){R==null&&(R=u);var z=t.getItemVisual(R,"style"),$=z&&z.fill,N=z&&z.opacity,V=y(R,os).getItemStyle();$!=null&&(V.fill=$),N!=null&&(V.opacity=N);var L={inheritColor:oe($)?$:"#000"},G=x(R,os),U=_t(G,null,L,!1,!0);U.text=G.getShallow("show")?Ee(e.getFormattedLabel(R,os),_f(t,R)):null;var B=u0(G,L,!1);return A(k,V),V=YB(V,U,B),k&&C(V,k),V.legacy=!0,V}function w(k,R){R==null&&(R=u);var z=y(R,oo).getItemStyle(),$=x(R,oo),N=_t($,null,null,!0,!0);N.text=$.getShallow("show")?Pa(e.getFormattedLabel(R,oo),e.getFormattedLabel(R,os),_f(t,R)):null;var V=u0($,null,!0);return A(k,z),z=YB(z,N,V),k&&C(z,k),z.legacy=!0,z}function C(k,R){for(var z in R)ce(R,z)&&(k[z]=R[z])}function A(k,R){k&&(k.textFill&&(R.textFill=k.textFill),k.textPosition&&(R.textPosition=k.textPosition))}function T(k,R){if(R==null&&(R=u),ce(UB,k)){var z=t.getItemVisual(R,"style");return z?z[UB[k]]:null}if(ce(SPe,k))return t.getItemVisual(R,k)}function M(k){if(a.type==="cartesian2d"){var R=a.getBaseAxis();return Qxe(xe({axis:R},k))}}function I(){return r.getCurrentSeriesIndices()}function P(k){return Q6(k,r)}}function ZPe(e){var t={};return D(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 rw(e,t,r,n,i,a,o){if(!n){a.remove(t);return}var s=IP(e,t,r,n,i,a);return s&&o.setItemGraphicEl(r,s),s&&Ut(s,n.focus,n.blurScope,n.emphasisDisabled),s}function IP(e,t,r,n,i,a){var o=-1,s=t;t&&y9(t,n,i)&&(o=ze(a.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=AP(n),s&&UPe(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Jn.normal.cfg=Jn.normal.conOpt=Jn.emphasis.cfg=Jn.emphasis.conOpt=Jn.blur.cfg=Jn.blur.conOpt=Jn.select.cfg=Jn.select.conOpt=null,Jn.isLegacy=!1,QPe(u,r,n,i,l,Jn),KPe(u,r,n,i,l),MP(e,u,r,n,Jn,i,l),ce(n,"info")&&(ao(u).info=n.info);for(var c=0;c=0?a.replaceAt(u,o):a.add(u),u}function y9(e,t,r){var n=ao(e),i=t.type,a=t.shape,o=t.style;return r.isUniversalTransitionEnabled()||i!=null&&i!==n.customGraphicType||i==="path"&&nke(a)&&x9(a)!==n.customPathData||i==="image"&&ce(o,"image")&&o.image!==n.customImagePath}function KPe(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&&y9(o,a,n)&&(o=null),o||(o=AP(a),e.setClipPath(o)),MP(null,o,t,a,null,n,i)}}function QPe(e,t,r,n,i,a){if(!e.isGroup){JB(r,null,a),JB(r,oo,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=AP(o),e.setTextContent(c)),MP(null,c,t,o,null,n,i);for(var f=o&&o.style,d=0;d=c;h--){var p=t.childAt(h);eke(t,p,i)}}}function eke(e,t,r){t&&Yx(t,ao(e).option,r)}function tke(e){new xo(e.oldChildren,e.newChildren,e5,e5,e).add(t5).update(t5).remove(rke).execute()}function e5(e,t){var r=e&&e.name;return r??HPe+t}function t5(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,i=t!=null?r.oldChildren[t]:null;IP(r.api,i,r.dataIndex,n,r.seriesModel,r.group)}function rke(e){var t=this.context,r=t.oldChildren[e];r&&Yx(r,ao(r).option,t.seriesModel)}function x9(e){return e&&(e.pathData||e.d)}function nke(e){return e&&(ce(e,"pathData")||ce(e,"d"))}function ike(e){e.registerChartView(YPe),e.registerSeriesModel(_Pe)}var Ll=Je(),r5=we,nw=ue,ake=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 Ae,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var d=Pe(n5,r,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,r)}a5(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=JI(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=Ll(t).pointerEl=new bv[a.type](r5(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=Ll(t).labelEl=new rt(r5(r.label));t.add(a),i5(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=Ll(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=Ll(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),i5(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=Sv(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){vo(u.event)},onmousedown:nw(this._onHandleDragMove,this,0,0),drift:nw(this._onHandleDragMove,this),ondragend:nw(this._onHandleDragEnd,this)}),n.add(i)),a5(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");q(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,ed(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){n5(this._axisPointerModel,!r&&this._moveAnimation,this._handle,iw(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(iw(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(iw(i)),Ll(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),Bp(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 n5(e,t,r,n){S9(Ll(r).lastProp,n)||(Ll(r).lastProp=n,t?it(r,n,e):(r.stopAnimation(),r.attr(n)))}function S9(e,t){if(Se(e)&&Se(t)){var r=!0;return D(t,function(n,i){r=r&&S9(e[i],n)}),!!r}else return e===t}function i5(e,t){e[t.get(["label","show"])?"show":"hide"]()}function iw(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function a5(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 kP=ake;function DP(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 b9(e,t,r,n,i){var a=r.get("value"),o=_9(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Xf(s.get("padding")||0),u=s.getFont(),c=vv(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),oke(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 oke(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 _9(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:WI(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};D(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):me(o)&&(a=o(s))}return a}function RP(e,t,r){var n=_i();return Du(n,n,r.rotation),Na(n,n,r.position),Ui([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function w9(e,t,r,n,i,a){var o=So.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),b9(t,n,i,a,{position:RP(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function LP(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function C9(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function o5(e,t,r,n,i,a){return{cx:e,cy:t,r0:r,r:n,startAngle:i,endAngle:a,clockwise:!0}}var ske=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=s5(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var d=DP(a),h=lke[u](s,f,c);h.style=d,r.graphicKey=h.type,r.pointer=h}var p=rA(l.model,i);w9(n,r,p,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=rA(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=RP(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=s5(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}(kP);function s5(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var lke={line:function(e,t,r){var n=LP([t,r[0]],[t,r[1]],l5(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:C9([t-n/2,r[0]],[n,i],l5(e))}}};function l5(e){return e.dim==="x"?0:1}const uke=ske;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.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 fke=cke;var eo=Je(),dke=D;function T9(e,t,r){if(!tt.node){var n=t.getZr();eo(n).records||(eo(n).records={}),hke(n,t);var i=eo(n).records[e]||(eo(n).records[e]={});i.handler=r}}function hke(e,t){if(eo(e).initialized)return;eo(e).initialized=!0,r("click",Pe(u5,"click")),r("mousemove",Pe(u5,"mousemove")),r("globalout",vke);function r(n,i){e.on(n,function(a){var o=gke(t);dke(eo(e).records,function(s){s&&i(s,a,o.dispatchAction)}),pke(o.pendings,t)})}}function pke(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 vke(e,t,r){e.handler("leave",null,r)}function u5(e,t,r,n){t.handler(e,r,n)}function gke(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 bA(e,t){if(!tt.node){var r=t.getZr(),n=(eo(r).records||{})[e];n&&(eo(r).records[e]=null)}}var mke=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";T9("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){bA("axisPointer",n)},t.prototype.dispose=function(r,n){bA("axisPointer",n)},t.type="axisPointer",t}(jt);const yke=mke;function A9(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=yu(a,e);if(o==null||o<0||q(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 c5=Je();function xke(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||ue(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){ey(i)&&(i=A9({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=ey(i),u=a.axesInfo,c=s.axesInfo,f=n==="leave"||ey(i),d={},h={},p={list:[],map:{}},v={showPointer:Pe(bke,h),showTooltip:Pe(_ke,p)};D(s.coordSysMap,function(m,y){var x=l||m.containPoint(i);D(s.coordSysAxesInfo[y],function(S,_){var b=S.axis,w=Ake(u,S);if(!f&&x&&(!u||w)){var C=w&&w.value;C==null&&!l&&(C=b.pointToData(i)),C!=null&&f5(S,C,v,!1,d)}})});var g={};return D(c,function(m,y){var x=m.linkGroup;x&&!h[y]&&D(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,d5(S),d5(m)))),g[m.key]=w}})}),D(g,function(m,y){f5(c[y],m,v,!0,d)}),wke(h,c,d),Cke(p,i,e,o),Tke(c,o,r),d}}function f5(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=Ske(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&Y(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function Ske(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return D(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),D(d,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function bke(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function _ke(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=Wp(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 wke(e,t,r){var n=r.axesInfo=[];D(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 Cke(e,t,r,n){if(ey(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 Tke(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=c5(n)[i]||{},o=c5(n)[i]={};D(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&D(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];D(a,function(u,c){!o[c]&&l.push(u)}),D(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 Ake(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 d5(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 ey(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Ev(e){Nu.registerAxisPointerClass("CartesianAxisPointer",uke),e.registerComponentModel(fke),e.registerComponentView(yke),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!q(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=hwe(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},xke)}function Mke(e){Fe(Qj),Fe(Ev)}var Ike=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=DP(a),p=kke[d](s,l,f,c);p.style=h,r.graphicKey=p.type,r.pointer=p}var v=a.get(["label","margin"]),g=Pke(n,i,a,l,v);b9(r,i,a,o,g)},t}(kP);function Pke(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=_i();Du(d,d,s),Na(d,d,[n.cx,n.cy]),u=Ui([o,-i],d);var h=t.getModel("axisLabel").get("rotate")||0,p=So.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 kke={line:function(e,t,r,n){return e.dim==="angle"?{type:"Line",shape:LP(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:o5(t.cx,t.cy,n[0],n[1],(-r-i/2)*a,(-r+i/2)*a)}:{type:"Sector",shape:o5(t.cx,t.cy,r-i/2,r+i/2,0,Math.PI*2)}}};const Dke=Ike;var Rke=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 Lke=Rke;var EP=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",or).models[0]},t.type="polarAxis",t}(et);lr(EP,Av);var Eke=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}(EP),Oke=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}(EP),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}(Qi);OP.prototype.dataToRadius=Qi.prototype.dataToCoord;OP.prototype.radiusToData=Qi.prototype.coordToData;const Nke=OP;var zke=Je(),NP=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=vv(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=zke(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}(Qi);NP.prototype.dataToAngle=Qi.prototype.dataToCoord;NP.prototype.angleToData=Qi.prototype.coordToData;const Bke=NP;var M9=["radius","angle"],Fke=function(){function e(t){this.dimensions=M9,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Nke,this._angleAxis=new Bke,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=h5(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=h5(r);return i===this?this.pointToData(n):null},e}();function h5(e){var t=e.seriesModel,r=e.polarModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}const $ke=Fke;function Vke(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%"]:q(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 Gke(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();D(b0(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),D(b0(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),bf(n.scale,n.model),bf(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 Hke(e){return e.mainType==="angleAxis"}function p5(e,t){if(e.type=t.get("type"),e.scale=Fx(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),Hke(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 Wke={dimensions:M9,create:function(e,t){var r=[];return e.eachComponent("polar",function(n,i){var a=new $ke(i+"");a.update=Gke;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");p5(o,l),p5(s,u),Vke(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",or).models[0];n.coordinateSystem=i.coordinateSystem}}),r}};const Uke=Wke;var jke=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function sm(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 lm(e){var t=e.getRadiusAxis();return t.inverse?0:1}function v5(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 Yke=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=we(c);var f=i.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(d),c});v5(u),v5(s),D(jke,function(c){r.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&qke[c](this.group,r,a,s,l,o,u)},this)}},t.type="angleAxis",t}(Nu),qke={axisLine:function(e,t,r,n,i,a){var o=t.getModel(["axisLine","lineStyle"]),s=lm(r),l=s?0:1,u;a[l]===0?u=new $a({shape:{cx:r.cx,cy:r.cy,r:a[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new Sx({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[lm(r)],u=Z(n,function(c){return new Tr({shape:sm(r,[l,l+s],c.coord)})});e.add(hi(u,{style:xe(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[lm(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];Se(_)&&_.textStyle&&(h=new wt(_.textStyle,l,l.ecModel))}var b=new rt({silent:So.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=So.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=f.rawLabel,Ie(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",P=w;_&&(n[c][M]||(n[c][M]={p:w,n:w}),P=n[c][M][I]);var k=void 0,R=void 0,z=void 0,$=void 0;if(p.dim==="radius"){var N=p.dataToCoord(T)-w,V=l.dataToCoord(M);Math.abs(N)=$})}}})}function nDe(e){var t={};D(e,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=P9(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=I9(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 D(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),D(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=g5(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=g5(r);return i===this?this.pointToData(n):null},e}();function g5(e){var t=e.seriesModel,r=e.singleAxisModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function gDe(e,t){var r=[];return e.eachComponent("singleAxis",function(n,i){var a=new vDe(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",or).models[0];n.coordinateSystem=i&&i.coordinateSystem}}),r}var mDe={create:gDe,dimensions:D9};const yDe=mDe;var m5=["x","y"],xDe=["width","height"],SDe=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=ow(l,1-N0(s)),c=l.dataToPoint(n)[0],f=a.get("type");if(f&&f!=="none"){var d=DP(a),h=bDe[f](s,c,u);h.style=d,r.graphicKey=h.type,r.pointer=h}var p=_A(i);w9(n,r,p,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=_A(n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=RP(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=N0(o),u=ow(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=ow(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}(kP),bDe={line:function(e,t,r){var n=LP([t,r[0]],[t,r[1]],N0(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:C9([t-n/2,r[0]],[n,i],N0(e))}}};function N0(e){return e.isHorizontal()?0:1}function ow(e,t){var r=e.getRect();return[r[m5[t]],r[m5[t]]+r[xDe[t]]]}const _De=SDe;var wDe=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}(jt);function CDe(e){Fe(Ev),Nu.registerAxisPointerClass("SingleAxisPointer",_De),e.registerComponentView(wDe),e.registerComponentView(dDe),e.registerComponentModel(aw),wf(e,"single",aw,aw.defaultOption),e.registerCoordinateSystem("single",yDe)}var TDe=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=Zf(r);e.prototype.init.apply(this,arguments),y5(r,a)},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),y5(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 y5(e,t){var r=e.cellSize,n;q(r)?n=r:n=e.cellSize=[r,r],n.length===1&&(n[1]=n[0]);var i=Z([0,1],function(a){return kye(t,a)&&(n[a]="auto"),n[a]!=null&&n[a]!=="auto"});Rs(e,t,{type:"box",ignoreSize:i})}const ADe=TDe;var MDe=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 kn({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?Mye(r,n):me(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=DT(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/sw)-Math.floor(r[0].time/sw)+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 x5(e){var t=e.calendarModel,r=e.seriesModel,n=t?t.coordinateSystem:r?r.coordinateSystem:null;return n}const kDe=PDe;function DDe(e){e.registerComponentModel(ADe),e.registerComponentView(IDe),e.registerCoordinateSystem("calendar",kDe)}function RDe(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 S5(e,t){var r;return D(t,function(n){e[n]!=null&&e[n]!=="auto"&&(r=!0)}),r}function LDe(e,t,r){var n=Y({},r),i=e[t],a=r.$action||"merge";a==="merge"?i?(Oe(i,n,!0),Rs(i,n,{ignoreSize:!0}),mW(r,i),um(r,i),um(r,i,"shape"),um(r,i,"style"),um(r,i,"extra"),r.clipPath=i.clipPath):e[t]=n:a==="replace"?e[t]=n:a==="remove"&&i&&(e[t]=null)}var R9=["transition","enterFrom","leaveTo"],EDe=R9.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function um(e,t,r){if(r&&(!e[r]&&t[r]&&(e[r]={}),e=e[r],t=t[r]),!(!e||!t))for(var n=r?R9:EDe,i=0;i=0;c--){var f=i[c],d=dr(f.id,null),h=d!=null?o.get(d):null;if(h){var p=h.parent,m=ii(p),y=p===a?{width:s,height:l}:{width:m.width,height:m.height},x={},S=Dx(h,f,y,null,{hv:f.hv,boundingMode:f.bounding},x);if(!ii(h).isNew&&S){for(var _=f.transition,b={},w=0;w=0)?b[C]=A:h[C]=A}it(h,b,r,0)}else h.attr(x)}}},t.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(i){ty(i,ii(i).option,n,r._lastGraphicModel)}),this._elMap=ve()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(jt);function wA(e){var t=ce(b5,e)?b5[e]:pI(e),r=new t({});return ii(r).type=e,r}function _5(e,t,r,n){var i=wA(r);return t.add(i),n.set(e,i),ii(i).id=e,ii(i).isNew=!0,i}function ty(e,t,r,n){var i=e&&e.parent;i&&(e.type==="group"&&e.traverse(function(a){ty(a,t,r,n)}),Yx(e,t,n),r.removeKey(ii(e).id))}function w5(e,t,r,n){e.isGroup||D([["cursor",wi.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(i){var a=i[0];ce(t,a)?e[a]=Ee(t[a],i[1]):e[a]==null&&(e[a]=i[1])}),D(He(t),function(i){if(i.indexOf("on")===0){var a=t[i];e[i]=me(a)?a:null}}),ce(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function BDe(e){return e=Y({},e),D(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(gW),function(t){delete e[t]}),e}function FDe(e,t,r){var n=Ie(e).eventData;!e.silent&&!e.ignore&&!n&&(n=Ie(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=r.info)}function $De(e){e.registerComponentModel(NDe),e.registerComponentView(zDe),e.registerPreprocessor(function(t){var r=t.graphic;q(r)?!r[0]||!r[0].elements?t.graphic=[{elements:r}]:t.graphic=[t.graphic[0]]:r&&!r.elements&&(t.graphic=[{elements:[r]}])})}var C5=["x","y","radius","angle","single"],VDe=["cartesian2d","polar","singleAxis"];function GDe(e){var t=e.get("coordinateSystem");return ze(VDe,t)>=0}function ss(e){return e+"Axis"}function HDe(e,t){var r=ve(),n=[],i=ve();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 L9(e){var t=e.ecModel,r={infoList:[],infoMap:ve()};return e.eachTargetAxis(function(n,i){var a=t.getComponent(ss(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 lw=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}(),WDe=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=T5(r);this.settledOption=a,this.mergeDefaultAndTheme(r,i),this._doInit(a)},t.prototype.mergeOption=function(r){var n=T5(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;D([["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=ve(),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 D(C5,function(i){var a=this.getReferringComponents(ss(i),oge);if(a.specified){n=!0;var o=new lw;D(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 lw;if(d.add(f.componentIndex),r.set(c,d),a=!1,c==="x"||c==="y"){var h=f.getReferringComponents("grid",or).models[0];h&&D(u,function(p){f.componentIndex!==p.componentIndex&&h===p.getReferringComponents("grid",or).models[0]&&d.add(p.componentIndex)})}}}a&&D(C5,function(u){if(a){var c=i.findComponents({mainType:ss(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new lw;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");D([["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(ss(n),i))},this),r},t.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(i,a){D(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(ss(r),n)},t.prototype.setRawRange=function(r){var n=this.option,i=this.settledOption;D([["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;D(["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 bc(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)}});bc(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;bc(["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=ct(n[0]+o,n,[0,100],!0):a!=null&&(o=ct(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=WH(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 KDe(e,t,r){var n=[1/0,-1/0];bc(r,function(o){bSe(n,o.getData(),t)});var i=e.getAxisModel(),a=ZU(i.axis.scale,i,n).calculate();return[a.min,a.max]}const QDe=ZDe;var JDe={getTargetSeries:function(e){function t(i){e.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=e.getComponent(ss(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 QDe(i,a,s,e),r.push(o.__dzAxisProxy))});var n=ve();return D(r,function(i){D(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 eRe=JDe;function tRe(e){e.registerAction("dataZoom",function(t,r){var n=HDe(r,t);D(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var M5=!1;function BP(e){M5||(M5=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,eRe),tRe(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function rRe(e){e.registerComponentModel(jDe),e.registerComponentView(XDe),BP(e)}var di=function(){function e(){}return e}(),E9={};function _c(e,t){E9[e]=t}function O9(e){return E9[e]}var nRe=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;D(this.option.feature,function(n,i){var a=O9(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 iRe=nRe;function aRe(e,t,r){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:r.getWidth(),height:r.getHeight()},o=hr(n,a,i);ou(t.get("orient"),e,t.get("itemGap"),o.width,o.height),Dx(e,n,a,i)}function N9(e,t){var r=Xf(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 oRe=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=[];D(u,function(p,v){f.push(v)}),new xo(this._featureNames||[],f).add(d).update(d).remove(Pe(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(sRe(g))S={onclick:x.option.onclick,featureName:g};else{var _=O9(g);if(!_)return;S=new _}c[g]=S}else if(S=c[m],!S)return;S.uid=qf("toolbox-feature"),S.model=x,S.ecModel=n,S.api=i;var b=S instanceof di;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"?mo:yo)(T[w])},S instanceof di&&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 di&&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={};D(_,function(C,A){var T=Sv(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 I=new rt({style:{text:b[A],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null},ignore:!0});T.setTextContent(I),jf({el:T,componentModel:r,itemName:A,formatterParamsExtra:{title:b[A]}}),T.__title=b[A],T.on("mouseover",function(){var P=y.getItemStyle(),k=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:y.get("textFill")||P.fill||P.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),T.setTextConfig({position:y.get("textPosition")||k}),I.ignore=!r.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",A])!=="emphasis"&&i.leaveEmphasis(this),I.hide()}),(p.get(["iconStatus",A])==="emphasis"?mo:yo)(T),o.add(T),T.on("click",ue(v.onclick,v,n,i,A)),w[A]=T})}aRe(o,r,i),o.add(N9(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&&!me(x)&&v){var S=x.style||(x.style={}),_=vv(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){D(this._features,function(o){o instanceof di&&o.updateView&&o.updateView(o.model,n,i,a)})},t.prototype.remove=function(r,n){D(this._features,function(i){i instanceof di&&i.remove&&i.remove(r,n)}),this.group.removeAll()},t.prototype.dispose=function(r,n){D(this._features,function(i){i instanceof di&&i.dispose&&i.dispose(r,n)})},t.type="toolbox",t}(jt);function sRe(e){return e.indexOf("my")===0}const lRe=oRe;var uRe=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(me(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}(di);const cRe=uRe;var I5="__ec_magicType_stack__",fRe=[["line","bar"],["stack"]],dRe=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 D(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(P5[i]){var s={series:[]},l=function(f){var d=f.subType,h=f.id,p=P5[i](d,h,f,a);p&&(xe(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,or).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"}}};D(fRe,function(f){ze(f,i)>=0&&D(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}(di),P5={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")===I5;if(e==="line"||e==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),Oe({id:t,stack:i?"":I5},n.get(["option","stack"])||{},!0)}};Ga({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});const hRe=dRe;var qx=new Array(60).join("-"),Af=" ";function pRe(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 vRe(e){var t=[];return D(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()];D(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(Af)],c=0;c1||r>0&&!e.noHeader;return D(e.blocks,function(i){var a=KW(i);a>=t&&(t=a+ +(n&&(!a||zT(i)&&!i.noHeader)))}),t}return 0}function V0e(e,t,r,n){var i=t.noHeader,a=H0e(KW(t)),o=[],s=t.blocks||[];ln(!s||q(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ce(u,l)){var c=new HW(u[l],null);s.sort(function(p,v){return c.evaluate(p.sortParam,v.sortParam)})}else l==="seriesDesc"&&s.reverse()}D(s,function(p,v){var g=t.valueFormatter,m=ZW(p)(g?Y(Y({},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):BT(o.join(""),i?r:a.html);if(i)return f;var d=RT(t.header,"ordinal",e.useUTC),h=XW(n,e.renderMode).nameStyle;return e.renderMode==="richText"?QW(e,d,h)+a.richText+f:BT('
'+mn(d)+"
"+f,r)}function G0e(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=q(S)?S:[S],Z(S,function(_,b){return RT(_,q(h)?h[b]:h,u)})};if(!(a&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),d=a?"":RT(l,"ordinal",u),h=t.valueType,p=o?[]:c(t.value),v=!s||!a,g=!s&&a,m=XW(n,i),y=m.nameStyle,x=m.valueStyle;return i==="richText"?(s?"":f)+(a?"":QW(e,d,y))+(o?"":j0e(e,p,v,g,x)):BT((s?"":f)+(a?"":W0e(d,!s,y))+(o?"":U0e(p,v,g,x)),r)}}function OO(e,t,r,n,i,a){if(e){var o=ZW(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function H0e(e){return{html:F0e[e],richText:$0e[e]}}function BT(e,t){var r='
',n="margin: "+t+"px 0 0";return'
'+e+r+"
"}function W0e(e,t,r){var n=t?"margin-left:2px":"";return''+mn(e)+""}function U0e(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=q(e)?e:[e],''+Z(e,function(o){return mn(o)}).join("  ")+""}function QW(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function j0e(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(q(t)?t.join(" "):t,a)}function JW(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return bu(n)}function eU(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var qb=function(){function e(){this.richTextStyles={},this._nextStyleNameId=QH()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=Eye({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={};q(r)?D(r,function(a){return Y(n,a)}):Y(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function tU(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=q(s),u=JW(t,r),c,f,d,h;if(o>1||l&&!o){var p=Y0e(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=xf(i,r,a[0]),f=v.type}else h=c=l?s[0]:s;var g=tI(t),m=g&&t.name||"",y=i.getName(r),x=n?m:y;return xr("section",{header:m,noHeader:n||!g,sortParam:h,blocks:[xr("nameValue",{markerType:"item",markerColor:u,name:x,noName:!Fi(x),value:c,valueType:f})].concat(d||[])})}function Y0e(e,t,r,n,i){var a=t.getData(),o=Oa(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?D(n,function(f){c(xf(a,r,f),f)}):D(e,c);function c(f,d){var h=a.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(xr("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 No=Je();function Ng(e,t){return e.getName(t)||e.getId(t)}var Qm="__universalTransitionEnabled",Ex=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=Wh({count:X0e,reset:Z0e}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=No(this).sourceManager=new YW(this);a.prepareSource();var o=this.getInitialData(r,i);zO(o,this),this.dataTask.context.data=o,No(this).dataBeforeProcessed=o,NO(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Np(this),a=i?Zf(r):{},o=this.subType;et.hasClass(o)&&(o+="Series"),Oe(r,n.getTheme().get(this.subType)),Oe(r,this.getDefaultOption()),mu(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Rs(r,a,i)},t.prototype.mergeOption=function(r,n){r=Oe(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Np(this);i&&Rs(this.option,r,i);var a=No(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);zO(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,No(this).dataBeforeProcessed=o,NO(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!Un(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=CI.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[Ng(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Qm])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"){Se(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);lr(Ex,II);lr(Ex,CI);s6(Ex,et);function NO(e){var t=e.name;tI(e)||(e.name=q0e(e)||t)}function q0e(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return D(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function X0e(e){return e.model.getRawData().count()}function Z0e(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),K0e}function K0e(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function zO(e,t){D(Ky(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Pe(Q0e,t))})}function Q0e(e,t){var r=FT(e);return r&&r.setOutputEnd((t||this).count()),t}function FT(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=Ex;var kI=function(){function e(){this.group=new Ae,this.uid=qf("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}();nI(kI);px(kI);const jt=kI;function Jf(){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 rU=Je(),J0e=Jf(),DI=function(){function e(){this.group=new Ae,this.uid=qf("viewChart"),this.renderTask=Wh({plan:e1e,reset:t1e}),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&&FO(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&FO(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){Hs(this.group,t)},e.markUpdateMethod=function(t,r){rU(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function BO(e,t,r){e&&Rp(e)&&(t==="emphasis"?mo:yo)(e,r)}function FO(e,t,r){var n=yu(e,t),i=t&&t.highlightKey!=null?Mme(t.highlightKey):null;n!=null?D(pt(n),function(a){BO(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){BO(a,r,i)})}nI(DI);px(DI);function e1e(e){return J0e(e.model)}function t1e(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&rU(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),r1e[l]}var r1e={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=DI;var p0="\0__throttleOriginMethod",$O="\0__throttleRate",VO="\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 ed(e,t,r,n){var i=e[t];if(i){var a=i[p0]||i,o=i[VO],s=i[$O];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=RI(a,r,n==="debounce"),i[p0]=a,i[VO]=n,i[$O]=r}return i}}function Bp(e,t){var r=e[t];r&&r[p0]&&(r.clear&&r.clear(),e[t]=r[p0])}var GO=Je(),HO={itemStyle:xu(oW,!0),lineStyle:xu(aW,!0)},n1e={lineStyle:"stroke",itemStyle:"fill"};function nU(e,t){var r=e.visualStyleMapper||HO[t];return r||(console.warn("Unknown style type '"+t+"'."),HO.itemStyle)}function iU(e,t){var r=e.visualDrawType||n1e[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var i1e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=nU(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=iU(e,n),u=o[l],c=me(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"||me(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||me(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=Y({},o);g[l]=c(v),h.setItemVisual(p,"style",g)}}}},Dd=new wt,a1e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=nU(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Dd.option=l[n];var u=i(Dd),c=o.ensureUniqueItemVisual(s,"style");Y(c,u),Dd.option.decal&&(o.setItemVisual(s,"decal",Dd.option.decal),Dd.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},o1e={performRawSeries:!0,overallReset:function(e){var t=ve();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)),GO(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=GO(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=iU(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)}})}})}},zg=Math.PI;function s1e(e,t){t=t||{},xe(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 Ae,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 dI({shape:{startAngle:-zg/2,endAngle:-zg/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:zg*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:zg*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 l1e=function(){function e(t,r,n,i){this._stageTaskMap=ve(),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=ve();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;D(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";ln(!(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;D(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=ve(),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)||Wh({plan:h1e,reset:p1e,count:g1e}));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||Wh({reset:u1e});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=ve(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,h="";ln(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,p):c?c(n,i).each(p):(f=!1,D(n.getSeries(),p));function p(v){var g=v.uid,m=l.set(g,s&&s.get(g)||(d=!0,Wh({reset:c1e,onDirty:d1e})));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 me(t)&&(t={overallReset:t,seriesType:m1e(t)}),t.uid=qf("stageHandler"),r&&(t.visualType=r),t},e}();function u1e(e){e.overallReset(e.ecModel,e.api,e.payload)}function c1e(e){return e.overallProgress&&f1e}function f1e(){this.agent.dirty(),this.getDownstream().dirty()}function d1e(){this.agent&&this.agent.dirty()}function h1e(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function p1e(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 aU(n)}):v1e}var v1e=aU(0);function aU(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}(),$T=["symbol","symbolSize","symbolRotate","symbolOffset"],YO=$T.concat(["symbolKeepAspect"]),b1e={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<$T.length;o++){var s=$T[o],l=e.get(s);me(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(Y({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=He(i);function c(f,d){for(var h=e.getRawValue(d),p=e.getDataParams(d),v=0;v=0&&ql(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function VT(e,t,r){for(var n=t.type==="radial"?z1e(e,t,r):N1e(e,t,r),i=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:nt(e)?[e]:q(e)?e:null}function EI(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&F1e(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 $1e=new Fa(!0);function m0(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function qO(e){return typeof e=="string"&&e!=="none"}function y0(e){var t=e.fill;return t!=null&&t!=="none"}function XO(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 ZO(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 GT(e,t,r){var n=iI(t.image,t.__image,r);if(vx(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)*Bm),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function V1e(e,t,r,n){var i,a=m0(r),o=y0(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||$1e,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?VT(e,d,b):t.__canvasFillGradient,t.__canvasFillGradient=y),v&&(x=f?VT(e,h,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=x),g&&(S=f||!t.__canvasFillPattern?GT(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=S),m&&(_=f||!t.__canvasStrokePattern?GT(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=EI(t),C=i[0],A=i[1]);var T=!0;(u||f&yc)&&(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&&ZO(e,r),o&&XO(e,r)):(o&&XO(e,r),a&&ZO(e,r))),C&&e.setLineDash([])}function G1e(e,t,r){var n=t.__image=iI(r.image,t.__image,t,t.onload);if(!(!n||!vx(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 H1e(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||Is,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=EI(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(m0(r)&&e.strokeText(i,r.x,r.y),y0(r)&&e.fillText(i,r.x,r.y)):(y0(r)&&e.fillText(i,r.x,r.y),m0(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var KO=["shadowBlur","shadowOffsetX","shadowOffsetY"],QO=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function dU(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){Sn(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?ru.opacity:o}(n||t.blend!==r.blend)&&(a||(Sn(e,i),a=!0),e.globalCompositeOperation=t.blend||ru.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(Se(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 a0e(this._api),u=this._theme,c=this._model=new DW;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},WT);var f={seriesTransition:s,optionChanged:!0};if(i)this[pn]={silent:a,updateParams:f},this[Wr]=!1,this.getZr().wakeUp();else{try{ic(this),zo.update.call(this,null,f)}catch(d){throw this[pn]=null,this[Wr]=!1,d}this._ssr||this._zr.flush(),this[pn]=null,this[Wr]=!1,Rd.call(this,a),Ld.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 D(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;D(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 D(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(jT[i]){var l=s,u=s,c=-s,f=-s,d=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();D(tf,function(x,S){if(x.group===i){var _=n?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(we(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=Ps.createCanvas(),m=gE(g,{renderer:n?"svg":"canvas"});if(m.resize({width:p,height:v}),n){var y="";return D(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}})),D(d,function(x){var S=new Fr({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 Jb(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return Jb(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Fh(i,r);return D(o,function(s,l){l.indexOf("Models")>=0&&D(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=Fh(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?LI(s,l,n):Tv(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;D(vxe,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Yl(s,function(p){var v=Ie(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=Y({},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)}),D(Uh,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),D(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),w1e(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&&i6(this.getDom(),zI,"");var n=this,i=n._api,a=n._model;D(n._componentsViews,function(o){o.dispose(a,i)}),D(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 tf[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[pn]&&(a==null&&(a=this[pn].silent),i=!0,this[pn]=null),this[Wr]=!0;try{i&&ic(this),zo.update.call(this,{type:"resize",animation:Y({duration:0},r&&r.animation)})}catch(o){throw this[Wr]=!1,o}this[Wr]=!1,Rd.call(this,a),Ld.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(Se(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!UT[r]){var i=UT[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=Y({},r);return n.type=Uh[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(Se(n)||(n={silent:!!n}),!!S0[r.type]&&this._model){if(this[Wr]){this._pendingActions.push(r);return}var i=n.silent;t_.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&tt.browser.weChat&&this._throttledZrFlush(),Rd.call(this,i),Ld.call(this,i)}},t.prototype.updateLabelLayout=function(){Ei.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(){ic=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),Qb(f,!0),Qb(f,!1),d.plan()},Qb=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(Qc(m))return;if(m instanceof $e&&Ime(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){mo(p,v),Zn(f)},h.prototype.leaveEmphasis=function(p,v){yo(p,v),Zn(f)},h.prototype.enterBlur=function(p){A6(p),Zn(f)},h.prototype.leaveBlur=function(p){lI(p),Zn(f)},h.prototype.enterSelect=function(p){M6(p),Zn(f)},h.prototype.leaveSelect=function(p){I6(p),Zn(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}(RW))(f)},MU=function(f){function d(h,p){for(var v=0;v=0)){hN.push(r);var a=lU.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function RU(e,t){UT[e]=t}function Txe(e,t,r){var n=exe("registerMap");n&&n(e,t,r)}var Axe=L0e;Eu(OI,i1e);Eu(Ox,a1e);Eu(Ox,o1e);Eu(OI,b1e);Eu(Ox,_1e);Eu(bU,K1e);kU(EW);DU(nxe,h0e);RU("default",s1e);Ga({type:nu,event:nu,update:nu},rr);Ga({type:Ym,event:Ym,update:Ym},rr);Ga({type:$h,event:$h,update:$h},rr);Ga({type:qm,event:qm,update:qm},rr);Ga({type:Vh,event:Vh,update:Vh},rr);BI("light",y1e);BI("dark",x1e);var pN=[],Mxe={registerPreprocessor:kU,registerProcessor:DU,registerPostInit:bxe,registerPostUpdate:_xe,registerUpdateLifecycle:FI,registerAction:Ga,registerCoordinateSystem:wxe,registerLayout:Cxe,registerVisual:Eu,registerTransform:Axe,registerLoading:RU,registerMap:Txe,registerImpl:J1e,PRIORITY:dxe,ComponentModel:et,ComponentView:jt,SeriesModel:zt,ChartView:Tt,registerComponentModel:function(e){et.registerClass(e)},registerComponentView:function(e){jt.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){Yve(e,t)}};function Fe(e){if(q(e)){D(e,function(t){Fe(t)});return}ze(pN,e)>=0||(pN.push(e),me(e)&&(e={install:e}),e.install(Mxe))}function Ed(e){return e==null?0:e.length||1}function vN(e){return e}var Ixe=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||vN,this._newKeyGetter=i||vN,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 Od=Se,Bo=Z,Oxe=typeof Int32Array>"u"?Array:Int32Array,Nxe="e\0\0",gN=-1,zxe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Bxe=["_approximateExtent"],mN,Gg,Nd,zd,i_,Hg,a_,Fxe=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;EU(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===Mi;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),q(a)?a=a.slice():Od(a)&&(a=Y({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Od(r)?Y(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Od(t)?Y(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?Y(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;wT(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){D(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Bo(this.dimensions,this._getDimInfo,this),this.hostModel)),i_(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];me(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(U2(arguments)))})},e.internalField=function(){mN=function(t){var r=t._invertedIndicesMap;D(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new Oxe(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),i[r]=l}}}(),e}();const sn=Fxe;function Av(e,t){TI(e)||(e=AI(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=ve(),a=[],o=Vxe(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&zU(o),l=n===e.dimensionsDefine,u=l?NU(e):OU(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=ve(c),d=new UW(o),h=0;h0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function Vxe(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return D(t,function(a){var o;Se(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function Gxe(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var Hxe=function(){function e(t){this.coordSysDims=[],this.axisMap=ve(),this.categoryAxisMap=ve(),this.coordSysName=t}return e}();function Wxe(e){var t=e.get("coordinateSystem"),r=new Hxe(t),n=Uxe[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var Uxe={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",or).models[0],a=e.getReferringComponents("yAxis",or).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),ac(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),ac(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",or).models[0];t.coordSysDims=["single"],r.set("single",i),ac(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",or).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),ac(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),ac(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();D(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];r.set(c,u),ac(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function ac(e){return e.get("type")==="category"}function jxe(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;Yxe(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(D(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;D(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 Yxe(e){return!EU(e.schema)}function Ls(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function BU(e,t){return Ls(e,t)?e.getCalculationInfo("stackResultDimension"):t}function qxe(e,t){var r=e.get("coordinateSystem"),n=Cv.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=_0(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function Xxe(e,t,r){var n,i;return r&&D(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 Ao(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=AI(e)):(i=n.getSource(),a=i.sourceFormat===Mi);var o=Wxe(t),s=qxe(t,o),l=r.useEncodeDefaulter,u=me(l)?l:l?Pe(AW,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=Av(i,c),d=Xxe(f.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(f),p=jxe(t,{schema:f,store:h}),v=new sn(f,t);v.setCalculationInfo(p);var g=d!=null&&Zxe(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 Zxe(e){if(e.sourceFormat===Mi){var t=Kxe(e.data||[]);return!q(Hf(t))}}function Kxe(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}();px(FU);const Mo=FU;var Qxe=0,Jxe=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Qxe}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&Z(n,eSe);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=ve(this.categories))},e}();function eSe(e){return Se(e)&&e.value!=null?e.value:e+""}const YT=Jxe;function qT(e){return e.type==="interval"||e.type==="log"}function tSe(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=ZH(a/t,!0);r!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=$U(o),l=i.niceTickExtent=[Xt(Math.ceil(e[0]/o)*o,s),Xt(Math.floor(e[1]/o)*o,s)];return rSe(l,e),i}function o_(e){var t=Math.pow(10,eI(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Xt(r*t)}function $U(e){return Sa(e)+2}function yN(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function rSe(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),yN(e,0,t),yN(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function Nx(e,t){return e>=t[0]&&e<=t[1]}function zx(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Bx(e,t){return e*(t[1]-t[0])+t[0]}var VU=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 YT({})),q(i)&&(i=new YT({categories:Z(i,function(a){return Se(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),Nx(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),zx(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(Bx(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}(Mo);Mo.registerClass(VU);const VI=VU;var dl=Xt,GU=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 Nx(r,this._extent)},t.prototype.normalize=function(r){return zx(r,this._extent)},t.prototype.scale=function(r){return Bx(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=$U(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:dl(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 UU(e){var t=aSe(e),r=[];return D(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")||(ZU(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:GI(n)})}),jU(r)}function jU(e){var t={};D(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 D(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=He(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),D(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;D(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;D(a,function(m,y){r[i][y]=r[i][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+c)})}),r}function oSe(e,t,r){if(e&&t){var n=e[HI(t)];return n!=null&&r!=null?n[GI(r)]:n}}function YU(e,t){var r=WU(e,t),n=UU(r);D(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=GI(i),u=n[HI(s)][l],c=u.offset,f=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function qU(e){return{seriesType:e,plan:Jf(),reset:function(t){if(XU(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=Ls(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=a.isHorizontal(),h=sSe(i,a),p=ZU(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&&_a(_*3),w=p&&l&&_a(_*3),C=p&&_a(_),A=n.master.getRect(),T=d?A.width:A.height,M,I=S.getStore(),P=0;(M=x.next())!=null;){var k=I.get(f?g:o,M),R=I.get(s,M),z=h,$=void 0;f&&($=+k-I.get(o,M));var N=void 0,V=void 0,L=void 0,G=void 0;if(d){var U=n.dataToPoint([k,R]);if(f){var B=n.dataToPoint([$,R]);z=B[0]}N=z,V=U[1]+y,L=U[0]-z,G=m,Math.abs(L)>>1;e[i][1]i&&(this._approxInterval=i);var s=Wg.length,l=Math.min(lSe(Wg,this._approxInterval,0,s),s-1);this._interval=Wg[l][1],this._minLevelUnit=Wg[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return nt(r)?r:+Ba(r)},t.prototype.contain=function(r){return Nx(this.parse(r),this._extent)},t.prototype.normalize=function(r){return zx(this.parse(r),this._extent)},t.prototype.scale=function(r){return Bx(r,this._extent)},t.type="time",t}(Es),Wg=[["second",yI],["minute",xI],["hour",Hh],["quarter-day",Hh*6],["half-day",Hh*12],["day",pi*1.2],["half-week",pi*3.5],["week",pi*7],["month",pi*31],["quarter",pi*95],["half-year",lO/2],["year",lO]];function uSe(e,t,r,n){var i=Ba(t),a=Ba(r),o=function(p){return cO(i,p,n)===cO(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 cSe(e,t){return e/=pi,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function fSe(e){var t=30*pi;return e/=t,e>6?6:e>3?3:e>2?2:1}function dSe(e){return e/=Hh,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function xN(e,t){return e/=t?xI:yI,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function hSe(e){return ZH(e,!0)}function pSe(e,t,r){var n=new Date(e);switch(Jc(t)){case"year":case"month":n[fW(r)](0);case"day":n[dW(r)](1);case"hour":n[hW(r)](0);case"minute":n[pW(r)](0);case"second":n[vW(r)](0),n[gW(r)](0)}return n.getTime()}function vSe(e,t,r,n){var i=1e4,a=uW,o=0;function s(T,M,I,P,k,R,z){for(var $=new Date(M),N=M,V=$[P]();N1&&R===0&&I.unshift({value:I[0].value-N})}}for(var R=0;R=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(ySe(n[0]/a)*a),Xt(mSe(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){jh.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=Di(r)/Di(this.base),Nx(r,this._extent)},t.prototype.normalize=function(r){return r=Di(r)/Di(this.base),zx(r,this._extent)},t.prototype.scale=function(r){return r=Bx(r,this._extent),Ug(this.base,r)},t.type="log",t}(Mo),JU=WI.prototype;JU.getMinorTicks=jh.getMinorTicks;JU.getLabel=jh.getLabel;function jg(e,t){return gSe(e,Sa(t))}Mo.registerClass(WI);const xSe=WI;var SSe=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[_Se[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=bSe[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),bSe={min:"_determinedMin",max:"_determinedMax"},_Se={min:"_dataMin",max:"_dataMax"};function ej(e,t,r){var n=e.rawExtentInfo;return n||(n=new SSe(e,t,r),e.rawExtentInfo=n,n)}function Yg(e,t){return t==null?null:Tp(t)?NaN:e.parse(t)}function tj(e,t){var r=e.type,n=ej(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&r==="time"){var s=WU("bar",o),l=!1;if(D(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=UU(s),c=wSe(i,a,t,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function wSe(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=oSe(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;D(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;D(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 bf(e,t){var r=t,n=tj(e,r),i=n.extent,a=r.get("splitNumber");e instanceof xSe&&(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 Fx(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new VI({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new QU({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Mo.getClass(t)||Es)}}function CSe(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function Mv(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):me(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(UI(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function UI(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function TSe(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof VI?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=Mv(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;ce[1]&&(e[1]=i[1])})}var Iv=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),ISe=1e-8;function bN(e,t){return Math.abs(e-t)i&&(n=o,i=l)}if(n)return kSe(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 D(o,function(s){s.type==="polygon"?_N(s.exterior,i,a,r):D(s.points,function(l){_N(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 LSe(e,t){return e=RSe(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 wN(o[0],o.slice(1)));break;case"MultiPolygon":D(i.coordinates,function(l){l[0]&&a.push(new wN(l[0],l.slice(1)))});break;case"LineString":a.push(new CN([i.coordinates]));break;case"MultiLineString":a.push(new CN(i.coordinates))}var s=new ij(n[t||"name"],a,n.cp);return s.properties=n,s})}var Vp=Je();function ESe(e){return e.type==="category"?NSe(e):BSe(e)}function OSe(e,t){return e.type==="category"?zSe(e,t):{ticks:Z(e.scale.getTicks(),function(r){return r.value})}}function NSe(e){var t=e.getLabelModel(),r=oj(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function oj(e,t){var r=sj(e,"labels"),n=jI(t),i=lj(r,n);if(i)return i;var a,o;return me(n)?a=fj(e,n):(o=n==="auto"?FSe(e):n,a=cj(e,o)),uj(r,n,{labels:a,labelCategoryInterval:o})}function zSe(e,t){var r=sj(e,"ticks"),n=jI(t),i=lj(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),me(n))a=fj(e,n,!0);else if(n==="auto"){var s=oj(e,e.getLabelModel());o=s.labelCategoryInterval,a=Z(s.labels,function(l){return l.tickValue})}else o=n,a=cj(e,o,!0);return uj(r,n,{ticks:a,tickCategoryInterval:o})}function BSe(e){var t=e.scale.getTicks(),r=Mv(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 sj(e,t){return Vp(e)[t]||(Vp(e)[t]=[])}function lj(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=mv(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=Vp(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 VSe(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 cj(e,t,r){var n=Mv(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=rj(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 fj(e,t,r){var n=e.scale,i=Mv(e),a=[];return D(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 TN=[0,1],GSe=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return t>=n&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return qH(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),AN(n,i.count())),ct(t,TN,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),AN(n,i.count()));var a=ct(t,n,TN,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=OSe(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 HSe(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 ESe(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 $Se(this)},e}();function AN(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function HSe(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;D(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+=Bd);var h=Math.atan2(s,o);if(h<0&&(h+=Bd),h>=n&&h<=i||h+Bd>=n&&h+Bd<=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,Vi.fromArray(e[0]),bt.fromArray(e[1]),tr.fromArray(e[2]),Le.sub(wa,Vi,bt),Le.sub(ga,tr,bt);var r=wa.len(),n=ga.len();if(!(r<.001||n<.001)){wa.scale(1/r),ga.scale(1/n);var i=wa.dot(ga),a=Math.cos(t);if(a1&&Le.copy(nn,tr),nn.toArray(e[1])}}}}function XSe(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,Vi.fromArray(e[0]),bt.fromArray(e[1]),tr.fromArray(e[2]),Le.sub(wa,bt,Vi),Le.sub(ga,tr,bt);var n=wa.len(),i=ga.len();if(!(n<.001||i<.001)){wa.scale(1/n),ga.scale(1/i);var a=wa.dot(t),o=Math.cos(r);if(a=l)Le.copy(nn,tr);else{nn.scaleAndAdd(ga,s/Math.tan(Math.PI/2-c));var f=tr.x!==bt.x?(nn.x-bt.x)/(tr.x-bt.x):(nn.y-bt.y)/(tr.y-bt.y);if(isNaN(f))return;f<0?Le.copy(nn,bt):f>1&&Le.copy(nn,tr)}nn.toArray(e[1])}}}}function IN(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 ZSe(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=Jo(n[0],n[1]),a=Jo(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=$m([],n[1],n[0],o/i),l=$m([],n[1],n[2],o/a),u=$m([],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 I=M+C;I<0&&b(-I*T,1)}else b(-C*T,1)}}function _(C,A,T){C!==0&&(u=!0);for(var M=A;M0)for(var I=0;I0;I--){var z=T[I-1]*R;_(-z,I,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 KSe(e,t,r,n){return vj(e,"x","width",t,r,n)}function gj(e,t,r,n){return vj(e,"y","height",t,r,n)}function mj(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)),it(n,u,r,l)}else if(n.attr(u),!Yf(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={};qg(h,u,Xg),qg(h,n.states.select,Xg)}if(n.states.emphasis){var p=a.oldLayoutEmphasis={};qg(p,u,Xg),qg(p,n.states.emphasis,Xg)}iW(n,l,c,r,r)}if(i&&!i.ignore&&!i.invisible){var a=ebe(i),o=a.oldLayout,v={points:i.shape.points};o?(i.attr({shape:o}),it(i,{shape:v},r)):(i.setShape(v),i.style.strokePercent=0,Lt(i,{style:{strokePercent:1}},r)),a.oldLayout=v}},e}();const rbe=tbe;var c_=Je();function nbe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=c_(r).labelManager;i||(i=c_(r).labelManager=new rbe),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 f_=Math.sin,d_=Math.cos,yj=Math.PI,pl=Math.PI*2,ibe=180/yj,abe=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=is(f-pl)||(c?u>=pl:-u>=pl),h=u>0?u%pl:u%pl+pl,p=!1;d?p=!0:is(f)?p=!1:p=h>=yj==!!c;var v=t+n*d_(o),g=r+i*f_(o);this._start&&this._add("M",v,g);var m=Math.round(a*ibe);if(d){var y=1/this._p,x=(c?1:-1)*(pl-y);this._add("A",n,i,m,1,+c,t+n*d_(o+x),r+i*f_(o+x)),y>.01&&this._add("A",n,i,m,0,+c,v,g)}else{var S=t+n*d_(s),_=r+i*f_(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 pbe(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 hbe(o,s)+(o!=="style"?mn(l):l||"")+(a?""+r+Z(a,function(u){return n(u)}).join(r)+r:"")+pbe(o)}return n(e)}function vbe(e,t,r){r=r||{};var n=r.newline?` +`:"",i=" {"+n,a=n+"}",o=Z(He(e),function(l){return l+i+Z(He(e[l]),function(u){return u+":"+e[l][u]+";"}).join(n)+a}).join(n),s=Z(He(t),function(l){return"@keyframes "+l+i+Z(He(t[l]),function(u){return u+i+Z(He(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 KT(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function kN(e,t,r,n){return mr("svg","root",{width:e,height:t,xmlns:Sj,"xmlns:xlink":bj,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+e+" "+t:!1},r)}var DN={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"},wl="transform-origin";function gbe(e,t,r){var n=Y({},e.shape);Y(n,t),e.buildPath(r,n);var i=new xj;return i.reset(zH(e)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function mbe(e,t){var r=t.originX,n=t.originY;(r||n)&&(e[wl]=r+"px "+n+"px")}var ybe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function wj(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function xbe(e,t,r){var n=e.shape.paths,i={},a,o;if(D(n,function(l){var u=KT(r.zrId);u.animation=!0,$x(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=He(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=wj(i,r);return a.replace(o,s)}}function RN(e){return oe(e)?DN[e]?"cubic-bezier("+DN[e]+")":Z2(e)?e:"":""}function $x(e,t,r,n){var i=e.animators,a=i.length,o=[];if(e instanceof hI){var s=xbe(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=wj(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 Gp=Math.round;function Cj(e){return e&&oe(e.src)}function Tj(e){return e&&me(e.toDataURL)}function ZI(e,t,r,n){cbe(function(i,a){var o=i==="fill"||i==="stroke";o&&NH(a)?Mj(t,e,i,n):o&&K2(a)?Ij(r,e,i,n):e[i]=a},t,r,!1),Abe(r,e,n)}function LN(e){return is(e[0]-1)&&is(e[1])&&is(e[2])&&is(e[3]-1)}function Sbe(e){return is(e[4])&&is(e[5])}function KI(e,t,r){if(t&&!(Sbe(t)&&LN(t))){var n=r?10:1e4;e.transform=LN(t)?"translate("+Gp(t[4]*n)/n+" "+Gp(t[5]*n)/n+")":pve(t)}}function EN(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.";ln(d,g),ln(h,g)}else if(d==null||h==null){var m=function(T,M){if(T){var I=T.elm,P=d||M.width,k=h||M.height;T.tag==="pattern"&&(u?(k=1,P/=a.width):c&&(P=1,k/=a.height)),T.attrs.width=P,T.attrs.height=k,I&&(I.setAttribute("width",P),I.setAttribute("height",k))}},y=iI(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=mr("image","img",{href:p,width:d,height:h}),o.width=d,o.height=h}else i.svgElement&&(f=we(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=mr("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]=mr("pattern",A,o,[f])),t[r]=dx(A)}}function Mbe(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]=mr("clipPath",a,o,[Aj(e,r)])}t["clip-path"]=dx(a)}function zN(e){return document.createTextNode(e)}function Rl(e,t,r){e.insertBefore(t,r)}function BN(e,t){e.removeChild(t)}function FN(e,t){e.appendChild(t)}function Pj(e){return e.parentNode}function kj(e){return e.nextSibling}function h_(e,t){e.textContent=t}var $N=58,Ibe=120,Pbe=mr("","");function QT(e){return e===void 0}function ua(e){return e!==void 0}function kbe(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 ch(e,t){var r=e.key===t.key,n=e.tag===t.tag;return n&&r}function Hp(e){var t,r=e.children,n=e.tag;if(ua(n)){var i=e.elm=_j(n);if(QI(Pbe,e),q(r))for(t=0;ta?(p=r[l+1]==null?null:r[l+1].elm,Dj(e,p,r,i,l)):A0(e,t,n,a))}function Sc(e,t){var r=t.elm=e.elm,n=e.children,i=t.children;e!==t&&(QI(e,t),QT(t.text)?ua(n)&&ua(i)?n!==i&&Dbe(r,n,i):ua(i)?(ua(e.text)&&h_(r,""),Dj(r,null,i,0,i.length-1)):ua(n)?A0(r,n,0,n.length-1):ua(e.text)&&h_(r,""):e.text!==t.text&&(ua(n)&&A0(r,n,0,n.length-1),h_(r,t.text)))}function Rbe(e,t){if(ch(e,t))Sc(e,t);else{var r=e.elm,n=Pj(r);Hp(t),n!==null&&(Rl(n,t.elm,kj(r)),A0(n,[e],0,0))}return t}var Lbe=0,Ebe=function(){function e(t,r,n){if(this.type="svg",this.refreshHover=VN(),this.configLayer=VN(),this.storage=r,this._opts=n=Y({},n),this.root=t,this._id="zr"+Lbe++,this._oldVNode=kN(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=_j("svg");QI(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",Rbe(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return NN(t,KT(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=KT(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress;var o=[],s=this._bgVNode=Obe(n,i,this._backgroundColor,a);s&&o.push(s);var l=t.compress?null:this._mainVNode=mr("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=Z(He(a.defs),function(d){return a.defs[d]});if(u.length&&o.push(mr("defs","defs",{},u)),t.animation){var c=vbe(a.cssNodes,a.cssAnims,{newline:!0});if(c){var f=mr("style","stl",{},[],c);o.push(f)}}return kN(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}}k.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?Zg:0),this._needsManuallyCompositing),c.__builtin__||H2("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&Nn&&!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,D(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 jbe=Ube;function _f(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=xf(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 Ybe=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=sr(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=qbe,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(){mo(this.childAt(0))},t.prototype.downplay=function(){yo(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):it(d,h,s,n),Zi(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=yr(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 _=Lu(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 Fr){var C=s.style;s.useStyle(Y({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},b))}else s.__isEmptyBrush?s.useStyle(Y({},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:I,inheritColor:w,defaultOpacity:b.opacity});function I(R){return M?r.getName(R):_f(r,R)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var P=s.ensureState("emphasis");P.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var k=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;P.scaleX=this._sizeX*k,P.scaleY=this._sizeY*k,this.setSymbolScale(1),Ut(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=Ie(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&Ds(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Ds(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return td(r.getItemVisual(n,"symbolSize"))},t}(Ae);function qbe(e,t){this.parent.drift(e,t)}const Pv=Ybe;function v_(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 WN(e){return e!=null&&!Se(e)&&(e={isIgnore:e}),e||{}}function UN(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:yr(t),cursorStyle:t.get("cursor")}}var Xbe=function(){function e(t){this.group=new Ae,this._SymbolCtor=t||Pv}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=WN(r);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=UN(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(v_(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(!v_(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):it(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=UN(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=WN(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 Ej(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 Kbe(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 Qbe(e,t,r,n,i,a,o,s){for(var l=Kbe(e,t),u=[],c=[],f=[],d=[],h=[],p=[],v=[],g=Lj(i,t,o),m=e.getLayout("points")||[],y=t.getLayout("points")||[],x=0;x=i||v<0)break;if(su(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||su(b,w))h=m,p=y;else{T=b-u,M=w-c;var k=m-u,R=b-m,z=y-c,$=w-y,N=void 0,V=void 0;if(s==="x"){N=Math.abs(k),V=Math.abs(R);var L=T>0?1:-1;h=m-L*N*o,p=y,I=m+L*V*o,P=y}else if(s==="y"){N=Math.abs(z),V=Math.abs($);var G=M>0?1:-1;h=m,p=y-G*N*o,I=m,P=y+G*V*o}else N=Math.sqrt(k*k+z*z),V=Math.sqrt(R*R+$*$),A=V/(V+N),h=m-T*o*(1-A),p=y-M*o*(1-A),I=m+T*o*A,P=y+M*o*A,I=Fo(I,$o(b,m)),P=Fo(P,$o(w,y)),I=$o(I,Fo(b,m)),P=$o(P,Fo(w,y)),T=I-m,M=P-y,h=m-T*N/V,p=y-M*N/V,h=Fo(h,$o(u,m)),p=Fo(p,$o(c,y)),h=$o(h,Fo(u,m)),p=$o(p,Fo(c,y)),T=m-h,M=y-p,I=m+T*V/N,P=y+M*V/N}e.bezierCurveTo(f,d,h,p,m,y),f=I,d=P}else e.lineTo(m,y)}u=m,c=y,v+=a}return g}var Oj=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),Jbe=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 Oj},t.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&su(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?Jy(s,h,v,m,r,c):Jy(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?vr(l,p,g,y,w):vr(s,h,v,m,w);return u?[r,S]:[S,r]}}s=m,l=y;break}}},t}($e),e_e=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Oj),Nj=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 e_e},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&&su(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 n_e(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=r_e(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";D(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 Sv(0,0,0,0,d,!0);return y[i]=v,y[i+"2"]=g,y}}}function i_e(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&a_e(a,t))){var o=t.mapDimension(a.dim),s={};return D(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function a_e(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 o_e(e,t){return isNaN(e)||isNaN(t)}function s_e(e){for(var t=e.length/2;t>0&&o_e(e[t*2-2],e[t*2-1]);t--);return t-1}function ZN(e,t){return[e[t*2],e[t*2+1]]}function l_e(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 Fj(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var L=v.getState("emphasis").style;L.lineWidth=+v.style.lineWidth+1}Ie(v).seriesIndex=r.seriesIndex,Ut(v,$,N,V);var G=XN(r.get("smooth")),U=r.get("smoothMonotone");if(v.setShape({smooth:G,smoothMonotone:U,connectNulls:C}),g){var B=l.getCalculationInfo("stackedOnSeries"),j=0;g.useStyle(xe(c.getAreaStyle(),{fill:P,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),B&&(j=XN(B.get("smooth"))),g.setShape({smooth:G,stackedOnSmooth:j,smoothMonotone:U,connectNulls:C}),zr(g,r,"areaStyle"),Ie(g).seriesIndex=r.seriesIndex,Ut(g,$,N,V)}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){Ie(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=yu(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 Pv(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=yu(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;s0(this._polyline,r),n&&s0(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new Jbe({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 Nj({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");me(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=me(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=me(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(Fj(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=s_e(l);c>=0&&(Br(s,yr(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?Rj(o,h):_f(o,f)},enableTextSetter:!0},u_e(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=l_e(f,S,w),A=C.range,T=A[1]-A[0],M=void 0;if(T>=1){if(T>1&&!h){var I=ZN(f,A[0]);u.attr({x:I[0]+_,y:I[1]+b}),o&&(M=d.getRawValue(A[0]))}else{var I=c.getPointOn(S,w);I&&u.attr({x:I[0]+_,y:I[1]+b});var P=d.getRawValue(A[0]),k=d.getRawValue(A[1]);o&&(M=a6(i,p,P,k,C.t))}a.lastFrameIndex=A[0]}else{var R=r===1||a.lastFrameIndex>0?A[0]:0,I=ZN(f,R);o&&(M=d.getRawValue(R)),u.attr({x:I[0]+_,y:I[1]+b})}if(o){var z=Yf(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=Qbe(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=Vo(d.current,i,o,l),p=Vo(d.stackedOnCurrent,i,o,l),v=Vo(d.next,i,o,l),g=Vo(d.stackedOnNext,i,o,l)),qN(h,v)>3e3||c&&qN(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(),it(u,m,f),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),it(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=d_e[a]:me(a)&&(p=a),p&&t.setData(i.downSample(i.mapDimension(u.dim),1/h,p,h_e))}}}}}function p_e(e){e.registerChartView(f_e),e.registerSeriesModel(jbe),e.registerLayout(Dv("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,$j("line"))}var Vj=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 Ao(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)D(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(Vj);const M0=Vj;var v_e=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 Ao(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=Ws(M0.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}(M0);const g_e=v_e;var m_e=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),y_e=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 m_e},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,f=n.endAngle,d=n.clockwise,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){Lp(a,r,Ie(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),KN={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=m_(t.x,e.x),s=y_(t.x+t.width,i),l=m_(t.y,e.y),u=y_(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=y_(t.r,e.r),a=m_(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}},QN={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new Qe({shape:Y({},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?I0:In,c=new u({shape:n,z2:1});c.name="item";var f=Gj(i);if(c.calculateTextPosition=x_e(f,{isRoundCap:u===I0}),a){var d=c.shape,h=i?"r":"endAngle",p={};d[h]=i?n.r0:n.startAngle,p[h]=n[h],(s?it:Lt)(c,{shape:p},a)}return c}};function w_e(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function JN(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?it:Lt)(r,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(o?it:Lt)(r,{shape:u},c,i)}function ez(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 A_e(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function Gj(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 rz(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=Zl(n.getModel("itemStyle"),c,!0);Y(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=yr(n);Br(e,p,{labelFetcher:a,labelDataIndex:r,defaultText:_f(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,S_e(e,g==="outside"?h:g,Gj(o),n.get(["label","rotate"]))}nW(v,p,a.getRawValue(r),function(y){return Rj(t,y)});var m=n.getModel(["emphasis"]);Ut(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),zr(e,n),A_e(i)&&(e.style.fill="none",e.style.stroke="none",D(e.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function M_e(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var I_e=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 I_e},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?r:null},30,!1);function P_e(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=a.length/3;c=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function Hj(e,t,r){if(Ou(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 k_e(e,t,r){var n=e.type==="polar"?In:Qe;return new n({shape:Hj(t,r,e),silent:!0,z2:0})}const D_e=__e;function R_e(e){e.registerChartView(D_e),e.registerSeriesModel(g_e),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Pe(YU,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,qU("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,$j("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 em=Math.PI*2,oz=Math.PI/180;function Wj(e,t){return hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Uj(e,t){var r=Wj(e,t),n=e.get("center"),i=e.get("radius");q(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 q(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 L_e(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=Wj(n,r),s=Uj(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 _=em,b=0,w=d,C=m?1:-1;if(i.setLayout({viewRect:o,r:c}),i.each(a,function(T,M){var I;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"?I=v===0&&x?g:T*g:I=em/p,Ir?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 x_(e){return e.position==="center"}function N_e(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*E_e,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),I=M.getModel("label"),P=I.get("position")||M.get(["emphasis","label","position"]),k=I.get("distanceToLabelLine"),R=I.get("alignTo"),z=ne(I.get("edgeDistance"),u),$=I.get("bleedMargin"),N=M.getModel("labelLine"),V=N.get("length");V=ne(V,u);var L=N.get("length2");if(L=ne(L,u),Math.abs(C.endAngle-C.startAngle)0?"right":"left":U>0?"left":"right"}var ke=Math.PI,We=0,Ge=I.get("rotate");if(nt(Ge))We=Ge*(ke/180);else if(P==="center")We=0;else if(Ge==="radial"||Ge===!0){var at=U<0?-G+ke:-G;We=at}else if(Ge==="tangential"&&P!=="outside"&&P!=="outer"){var ot=Math.atan2(U,B);ot<0&&(ot=ke*2+ot);var It=B>0;It&&(ot=ke+ot),We=ot-ke}if(a=!!We,A.x=j,A.y=X,A.rotation=We,A.setStyle({verticalAlign:"middle"}),te){A.setStyle({align:ee});var Yt=A.states.select;Yt&&(Yt.x+=A.x,Yt.y+=A.y)}else{var Be=A.getBoundingRect().clone();Be.applyTransform(A.getComputedTransform());var Pt=(A.style.margin||0)+2.1;Be.y-=Pt/2,Be.height+=Pt,r.push({label:A,labelLine:T,position:P,len:V,len2:L,minTurnAngle:N.get("minTurnAngle"),maxSurfaceAngle:N.get("maxSurfaceAngle"),surfaceNormal:new Le(U,B),linePoints:W,textAlign:ee,labelDistance:k,labelAlignTo:R,edgeDistance:z,bleedMargin:$,rect:Be,unconstrainedWidth:Be.width,labelStyleWidth:A.style.width})}w.setTextConfig({inside:te})}}),!a&&e.get("avoidLabelOverlap")&&O_e(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 F_e=B_e;function rd(e,t,r){t=q(t)&&{coordDimensions:t}||Y({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=Av(n,t).dimensions,a=new sn(i,e);return a.initData(n,r),a}var $_e=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 Lv=$_e;var V_e=Je(),G_e=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 Lv(ue(this.getData,this),ue(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return rd(this,{coordDimensions:["value"],encodeDefaulter:Pe(_I,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=V_e(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=Zve(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){mu(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 H_e=G_e;function W_e(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(nt(o)&&!isNaN(o)&&o<0)})}}}function U_e(e){e.registerChartView(F_e),e.registerSeriesModel(H_e),fU("pie",e.registerAction),e.registerLayout(Pe(L_e,"pie")),e.registerProcessor(Rv("pie")),e.registerProcessor(W_e("pie"))}var j_e=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 Ao(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 Y_e=j_e;var Yj=4,q_e=function(){function e(){}return e}(),X_e=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 q_e},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(r,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&a[0]=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 K_e=Z_e;var Q_e=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=Dv("").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 K_e:new kv,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 J_e=Q_e;var ewe=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 twe=ewe;var eA=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",or).models[0]},t.type="cartesian2dAxis",t}(et);lr(eA,Iv);var qj={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)"]}}},rwe=Oe({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},qj),JI=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}}},qj),nwe=Oe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},JI),iwe=xe({logBase:10},JI);const Xj={category:rwe,value:JI,time:nwe,log:iwe};var awe={value:1,category:1,time:1,log:1};function wf(e,t,r,n){D(awe,function(i,a){var o=Oe(Oe({},Xj[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=Np(this),h=d?Zf(c):{},p=f.getTheme();Oe(c,p.get(a+"Axis")),Oe(c,this.getDefaultOption()),c.type=lz(c),d&&Rs(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=YT.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",lz)}function lz(e){return e.type||(e.data?"category":"value")}var owe=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 swe=owe;var tA=["x","y"];function uz(e){return e.type==="interval"||e.type==="time"}var lwe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=tA,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!uz(r)||!uz(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=Gf([],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}(swe),uwe=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}(Qi);const cwe=uwe;function rA(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 cz(e){return e.get("coordinateSystem")==="cartesian2d"}function fz(e){var t={xAxisModel:null,yAxisModel:null};return D(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,or).models[0];t[n]=a}),t}var S_=Math.log;function Zj(e,t,r){var n=Es.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=tj(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=S_(e.base);u=[S_(u[0])/d,S_(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=o_(p),v=u[1]-p*o;else{var m=e.getTicks().length-1;m>o&&(p=o_(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 fwe=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=tA,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=He(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;qT(v)&&p.get("alignTicks")&&p.get("interval")==null?c.push(h):(bf(v,p),qT(v)&&(s=h))}c.length&&(s||(s=c.pop(),bf(s.scale,s.model)),D(c,function(g){Zj(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};D(n.x,function(o){dz(n,"y",o,a)}),D(n.y,function(o){dz(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=hr(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(D(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=TSe(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()),D(this._coordsList,function(u){u.calcAffineTransform()});function l(){D(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]),dwe(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]}Se(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):a0(i-as)?(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}(),pz={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=Y({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});yf(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=Lu(t.get(["axisLine","symbolOffset"])||0,h),v=h[0],g=h[1];D([{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=sr(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=gwe(r,n,t,e),a=ywe(r,n,t,e);if(vwe(t,a,i),mwe(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=pj(Z(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));mj(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,gz(a)?e.labelOffset+o*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*as/180);var p;gz(a)?d=lu.innerTextLayout(e.rotation,h??e.rotation,o):(d=pwe(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:lu.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(jf({el:x,componentModel:t,itemName:i}),x.__fullText=i,x.anid="name",t.get("triggerEvent")){var S=lu.makeAxisEventDataBase(t);S.targetType="axisName",S.name=i,Ie(x).eventData=S}n.add(x),x.updateTransform(),r.add(x),x.decomposeTransform()}}};function pwe(e,t,r,n){var i=XH(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return a0(i-as/2)?(o=l?"bottom":"top",a="center"):a0(i-as*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",ias/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function vwe(e,t,r){if(!rj(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?(Kn(a),Kn(u)):vz(a,o)&&(n?(Kn(o),Kn(c)):(Kn(a),Kn(u))),i===!1?(Kn(s),Kn(f)):vz(l,s)&&(i?(Kn(l),Kn(d)):(Kn(s),Kn(f)))}}function Kn(e){e&&(e.ignore=!0)}function vz(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=fx([]);return Du(i,i,-e.rotation),r.applyTransform(no([],i,e.getLocalTransform())),n.applyTransform(no([],i,t.getLocalTransform())),r.intersect(n)}}function gz(e){return e==="middle"||e==="center"}function Kj(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l=0||e===t}function Cwe(e){var t=eP(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=nA(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=xe({color:p.color},l));var g=Oe(we(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 me(c)&&(g.name=c(g.name,g));var y=new wt(g,null,this.ecModel);return lr(y,Iv.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"}},Fd.axisLine),axisLabel:tm(Fd.axisLabel,!1),axisTick:tm(Fd.axisTick,!1),splitLine:tm(Fd.splitLine,!0),splitArea:tm(Fd.splitArea,!0),indicator:[]},t}(et);const $we=Fwe;var Vwe=["axisLine","axisTickLabel","axisName"],Gwe=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 So(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});D(a,function(o){D(Vwe,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=q(d)?d:[d],v=q(h)?h:[h],g=[],m=[];function y(R,z,$){var N=$%z.length;return R[N]=R[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;w_(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);w_(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!_z(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;w_(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(Ai);function w_(e,t,r,n,i){e.pointerChecker&&e.pointerChecker(n,i.originX,i.originY)&&(vo(n.event),n8(e,t,r,n,i))}function n8(e,t,r,n,i){i.isAvailableBehavior=ue(ey,null,r,n),e.trigger(t,i)}function ey(e,t,r){var n=r[e];return!e||n&&(!oe(n)||t.event[n+"Key"])}const Ev=Qwe;function rP(e,t,r){var n=e.target;n.x+=t,n.y+=r,n.dirty()}function nP(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 Jwe={axisPointer:1,tooltip:1,brush:1};function Gx(e,t,r){var n=t.getComponentByElement(e.topTarget),i=n&&n.coordinateSystem;return n&&n!==r&&!Jwe.hasOwnProperty(n.mainType)&&i&&i.model!==r}function i8(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 C_,P0={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"},wz=He(P0),k0={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Cz=He(k0),eCe=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,r){r=r||{};var n=i8(t);this._defsUsePending=[];var i=new Ae;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),Dn(n,i,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;nCe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var d=Hx(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=o8(c,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var h=i;i=new Ae,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=C_[s];if(c&&ce(C_,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=Tz[s];if(h&&ce(Tz,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 kp({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Qn(r,n),Dn(t,n,this._defsUsePending,!1,!1),tCe(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(){C_={g:function(t,r){var n=new Ae;return Qn(r,n),Dn(t,n,this._defsUsePending,!1,!1),n},rect:function(t,r){var n=new Qe;return Qn(r,n),Dn(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 $a;return Qn(r,n),Dn(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 Qn(r,n),Dn(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 fI;return Qn(r,n),Dn(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=Iz(n));var a=new Pn({shape:{points:i||[]},silent:!0});return Qn(r,a),Dn(t,a,this._defsUsePending,!1,!1),a},polyline:function(t,r){var n=t.getAttribute("points"),i;n&&(i=Iz(n));var a=new kn({shape:{points:i||[]},silent:!0});return Qn(r,a),Dn(t,a,this._defsUsePending,!1,!1),a},image:function(t,r){var n=new Fr;return Qn(r,n),Dn(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 Ae;return Qn(r,s),Dn(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 Ae;return Qn(r,s),Dn(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=O6(n);return Qn(r,i),Dn(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),e}(),Tz={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 Sv(t,r,n,i);return Az(e,a),Mz(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 q6(t,r,n);return Az(e,i),Mz(e,i),i}};function Az(e,t){var r=e.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(t.global=!0)}function Mz(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={};a8(r,a,a);var o=a.stopColor||r.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}r=r.nextSibling}}function Qn(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),xe(t.__inheritedStyle,e.__inheritedStyle))}function Iz(e){for(var t=Hx(e),r=[],n=0;n0;a-=2){var o=n[a],s=n[a-1],l=Hx(o);switch(i=i||_i(),s){case"translate":Na(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":X2(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Du(i,i,-parseFloat(l[0])*T_);break;case"skewX":var u=Math.tan(parseFloat(l[0])*T_);no(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*T_);no(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 kz=/([^\s:;]+)\s*:\s*([^:;]+)/g;function a8(e,t,r){var n=e.getAttribute("style");if(n){kz.lastIndex=0;for(var i;(i=kz.exec(n))!=null;){var a=i[1],o=ce(P0,a)?P0[a]:null;o&&(t[o]=i[2]);var s=ce(k0,a)?k0[a]:null;s&&(r[s]=i[2])}}}function sCe(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=ve(),n=ve(),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,yr(n),{labelFetcher:d,labelDataIndex:f,defaultText:r},h);var p=t.getTextContent();if(p&&(s8(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 Oz(e,t,r,n,i,a){e.data?e.data.setItemGraphicEl(a,t):Ie(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:r,region:n&&n.option||{}}}function Nz(e,t,r,n,i){e.data||jf({el:t,componentModel:i,itemName:r,itemTooltipOption:n.get("tooltip")})}function zz(e,t,r,n,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var a=n.getModel("emphasis"),o=a.get("focus");return Ut(t,o,a.get("blurScope"),a.get("disabled")),e.isGeo&&Ame(t,i,r),o}function Bz(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(),D(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 PCe=ICe;function kCe(e,t){var r={};return D(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=hr(_,{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 OCe(e,t){D(t.get("geoCoord"),function(r,n){e.addGeoCoord(n,r)})}var NCe=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 Gz(l+s,l,Y({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=Hz,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)}}),D(a,function(o,s){var l=Z(o,function(c){return c.get("nameMap")}),u=new Gz(s,s,Y({nameMap:W2(l)},i(o[0])));u.zoomLimit=Cr.apply(null,Z(o,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=Hz,u.resize(o[0],r),D(o,function(c){c.coordinateSystem=u,OCe(u,c)})}),n},e.prototype.getFilledRegions=function(t,r,n,i){for(var a=(t||[]).slice(),o=ve(),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 UCe(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){qCe(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=XCe(e,i,e.parentNode.hierNode.defaultAncestor||n[0],t)}function jCe(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function Uz(e){return arguments.length?e:QCe}function fh(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function YCe(e,t){return hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function qCe(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 XCe(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=A_(s),a=M_(a),s&&a;){i=A_(i),o=M_(o),i.hierNode.ancestor=e;var d=s.hierNode.prelim+f-a.hierNode.prelim-u+n(s,a);d>0&&(KCe(ZCe(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&&!A_(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=f-l),a&&!M_(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,r=e)}return r}function A_(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function M_(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function ZCe(e,t,r){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:r}function KCe(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 QCe(e,t){return e.parentNode===t.parentNode?1:2}var JCe=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),eTe=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 JCe},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 I=s.get(["emphasis","focus"]),P=I==="relative"?Ky(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;P&&(Ie(r).focus=P),rTe(i,o,c,r,p,h,v,n),r.__edge&&(r.onHoverStateChange=function(k){if(k!=="blur"){var R=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===xv||s0(r.__edge,k)}})}function rTe(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 bx({shape:oA(c,f,d,i,i)})),it(v,{shape:oA(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 g8(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function lP(e,t){var r=g8(e);return ze(r,t)>=0}function Wx(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 hTe=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=sP.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 xr("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=Wx(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 pTe=hTe;function vTe(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 gTe(e,t){e.eachSeriesByType("tree",function(r){mTe(r,t)})}function mTe(e,t){var r=YCe(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=Uz(function(x,S){return(x.parentNode===S.parentNode?1:2)/x.depth})):(i=r.width,a=r.height,o=Uz());var s=e.getData().tree.root,l=s.children[0];if(l){WCe(s),vTe(l,UCe,o),s.hierNode.modifier=-l.hierNode.prelim,Vd(l,jCe);var u=l,c=l,f=l;Vd(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),Vd(l,function(x){g=(x.getLayout().x+h)*p,m=(x.depth-1)*v;var S=fh(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),Vd(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),Vd(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 yTe(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");Y(s,o)})})}function xTe(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=aP(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function STe(e){e.registerChartView(nTe),e.registerSeriesModel(pTe),e.registerLayout(gTe),e.registerVisual(yTe),xTe(e)}var Zz=["treemapZoomToNode","treemapRender","treemapMove"];function bTe(e){for(var t=0;t1;)a=a.parentNode;var o=ET(e.ecModel,a.name||a.dataIndex+"",n);i.setVisual("decal",o)})}var _Te=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};y8(i);var a=r.levels||[],o=this.designatedVisualItemStyle={},s=new wt({itemStyle:o},this,n);a=r.levels=wTe(a,n);var l=Z(a||[],function(f){return new wt(f,s,n)},this),u=sP.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 xr("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=Wx(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},Y(this.layoutInfo,r)},t.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=ve(),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(){m8(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 y8(e){var t=0;D(e.children,function(n){y8(n);var i=n.value;q(i)&&(i=i[0]),t+=i});var r=e.value;q(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),q(e.value)?e.value[0]=r:e.value=r}function wTe(e,t){var r=pt(t.get("color")),n=pt(t.get(["aria","decal","decals"]));if(r){e=e||[];var i,a;D(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 CTe=_Te;var TTe=8,Kz=8,I_=5,ATe=function(){function e(t){this.group=new Ae,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),Dx(o,f.pos,f.box)}},e.prototype._prepare=function(t,r,n){for(var i=t;i;i=i.parentNode){var a=dr(i.getModel().get("name"),""),o=n.getTextRect(a),s=Math.max(o.width+TTe*2,r.emptyItemWidth);r.totalWidth+=s+Kz,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=Oye(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 Pn({shape:{points:MTe(l,0,y,c,v===h.length-1,v===0)},style:xe(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new rt({style:_t(a,{text:x})}),textConfig:{position:"inside"},z2:Wf*1e4,onclick:Pe(s,m)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=_t(o,{text:x}),S.ensureState("emphasis").style=p,Ut(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),ITe(S,t,m),l+=y+Kz}},e.prototype.remove=function(){this.group.removeAll()},e}();function MTe(e,t,r,n,i,a){var o=[[i?e:e-I_,t],[e+r,t],[e+r,t+n],[i?e:e-I_,t+n]];return!a&&o.splice(2,0,[e+r+I_,t+n/2]),!i&&o.push([e,t+n/2]),o}function ITe(e,t,r){Ie(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&&Wx(r,t)}}const PTe=ATe;var kTe=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;iJz||Math.abs(r.dy)>Jz)){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=_i();Na(u,u,[-n,-i]),X2(u,u,[r.scale,r.scale]),Na(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&&h0(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 PTe(this.group))).render(r,n,i.node,function(o){a._state!=="animating"&&(lP(r.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Gd(),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 Gd(){return{nodeGroup:[],background:[],content:[]}}function NTe(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=j("nodeGroup",sA);if(!M)return;if(l.add(M),M.x=c.x||0,M.y=c.y||0,M.markRedraw(),D0(M).nodeWidth=h,D0(M).nodeHeight=p,c.isAboveViewRoot)return M;var I=j("background",Qz,u,LTe);I&&V(M,I,_&&c.upperLabelHeight);var P=d.getModel("emphasis"),k=P.get("focus"),R=P.get("blurScope"),z=P.get("disabled"),$=k==="ancestor"?o.getAncestorsIndices():k==="descendant"?o.getDescendantIndices():k;if(_)Rp(M)&&Ul(M,!1),I&&(Ul(I,!z),f.setItemGraphicEl(o.dataIndex,I),AT(I,$,R));else{var N=j("content",Qz,u,ETe);N&&L(M,N),I.disableMorphing=!0,I&&Rp(I)&&Ul(I,!1),Ul(M,!z),f.setItemGraphicEl(o.dataIndex,M),AT(M,$,R)}return M;function V(ee,te,ie){var re=Ie(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,fe=rB(b);fe.fill=J;var de=Tl(w);de.fill=w.get("borderColor");var ke=Tl(C);ke.fill=C.get("borderColor");var We=Tl(A);if(We.fill=A.get("borderColor"),ie){var Ge=h-2*v;U(te,J,Q.opacity,{x:v,y:0,width:Ge,height:S})}else te.removeTextContent();te.setStyle(fe),te.ensureState("emphasis").style=de,te.ensureState("blur").style=ke,te.ensureState("select").style=We,Su(te)}ee.add(te)}function L(ee,te){var ie=Ie(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"),fe=J.fill,de=rB(b);de.fill=fe,de.decal=J.decal;var ke=Tl(w),We=Tl(C),Ge=Tl(A);U(te,fe,J.opacity,null),te.setStyle(de),te.ensureState("emphasis").style=ke,te.ensureState("blur").style=We,te.ensureState("select").style=Ge,Su(te)}ee.add(te)}function G(ee){!ee.invisible&&a.push(ee)}function U(ee,te,ie,re){var Q=d.getModel(re?tB:eB),J=dr(d.get("name"),null),fe=Q.getShallow("show");Br(ee,yr(d,re?tB:eB),{defaultText:fe?J:null,inheritColor:te,defaultOpacity:ie,labelFetcher:e,labelDataIndex:o.dataIndex});var de=ee.getTextContent();if(de){var ke=de.style,We=j2(ke.padding||0);re&&(ee.setTextConfig({layoutRect:re}),de.disableLabelLayout=!0),de.beforeUpdate=function(){var at=Math.max((re?re.width:ee.shape.width)-We[1]-We[3],0),ot=Math.max((re?re.height:ee.shape.height)-We[0]-We[2],0);(ke.width!==at||ke.height!==ot)&&de.setStyle({width:at,height:ot})},ke.truncateMinChar=2,ke.lineOverflow="truncate",B(ke,re,c);var Ge=de.getState("emphasis");B(Ge?Ge.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 j(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 wi&&(Q.z2=zTe(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=Y({},te.shape)}function W(ee,te){var ie=ee[m]={},re=o.parentNode,Q=te instanceof Ae;if(re&&(!n||n.direction==="drillDown")){var J=0,fe=0,de=i.background[re.getRawIndex()];!n&&de&&de.oldShape&&(J=de.oldShape.width,fe=de.oldShape.height),Q?(ie.oldX=0,ie.oldY=fe):ie.oldShape={x:J,y:fe,width:0,height:0}}ie.fadein=!Q}}function zTe(e,t){return e*RTe+t}const BTe=OTe;var jp=D,FTe=Se,R0=-1,uP=function(){function e(t){var r=t.mappingMethod,n=t.type,i=this.option=we(t);this.type=n,this.mappingMethod=r,this._normalizeData=GTe[r];var a=e.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[r],r==="piecewise"?(P_(i),$Te(i)):r==="category"?i.categories?VTe(i):P_(i,!0):(ln(r!=="linear"||i.dataExtent),P_(i))}return e.prototype.mapValueToVisual=function(t){var r=this._normalizeData(t);return this._normalizedToVisual(r,t)},e.prototype.getNormalizer=function(){return ue(this._normalizeData,this)},e.listVisualTypes=function(){return He(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,r,n){Se(t)?D(t,r,n):r.call(n,t)},e.mapVisual=function(t,r,n){var i,a=q(t)?[]:Se(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&&jp(e.visualHandlers,function(i,a){t.hasOwnProperty(a)&&(r[a]=t[a],n=!0)}),n?r:null},e.prepareVisualTypes=function(t){if(q(t))t=t.slice();else if(FTe(t)){var r=[];jp(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 P_(e,t){var r=e.visual,n=[];Se(r)?jp(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]),x8(e,n)}function nm(e){return{applyVisual:function(t,r,n){var i=this.mapValueToVisual(t);n("color",e(r("color"),i))},_normalizedToVisual:lA([0,1])}}function nB(e){var t=this.option.visual;return t[Math.round(ct(e,[0,1],[0,t.length-1],!0))]||{}}function Hd(e){return function(t,r,n){n(e,this.mapValueToVisual(t))}}function dh(e){var t=this.option.visual;return t[this.option.loop&&e!==R0?e%t.length:e]}function Al(){return this.option.visual[0]}function lA(e){return{linear:function(t){return ct(t,e,this.option.visual,!0)},category:dh,piecewise:function(t,r){var n=uA.call(this,r);return n==null&&(n=ct(t,e,this.option.visual,!0)),n},fixed:Al}}function uA(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var n=uP.findPieceIndex(e,r),i=r[n];if(i&&i.visual)return i.visual[this.type]}}function x8(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=Z(t,function(r){var n=Vn(r);return n||[0,0,0,1]})),t}var GTe={linear:function(e){return ct(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,r=uP.findPieceIndex(e,t,!0);if(r!=null)return ct(r,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??R0},fixed:rr};function im(e,t,r){return e?t<=r:t=r.length||v===r[v.depth]){var m=qTe(i,l,v,g,p,n);b8(v,m,r,n)}})}}}function UTe(e,t,r){var n=Y({},t),i=r.designatedVisualItemStyle;return D(["color","colorAlpha","colorSaturation"],function(a){i[a]=t[a];var o=e.get(a);i[a]=null,o!=null&&(n[a]=o)}),n}function iB(e){var t=k_(e,"color");if(t){var r=k_(e,"colorAlpha"),n=k_(e,"colorSaturation");return n&&(t=Nh(t,null,null,n)),r&&(t=e0(t,r)),t}}function jTe(e,t){return t!=null?Nh(t,null,null,e):null}function k_(e,t){var r=e[t];if(r!=null&&r!=="none")return r}function YTe(e,t,r,n,i,a){if(!(!a||!a.length)){var o=D_(t,"color")||i.color!=null&&i.color!=="none"&&(D_(t,"colorAlpha")||D_(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 S8(d).drColorMappingBy=c,d}}}function D_(e,t){var r=e.get(t);return q(r)&&r.length?{name:t,range:r}:null}function qTe(e,t,r,n,i,a){var o=Y({},t);if(i){var s=i.type,l=s==="color"&&S8(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 Yp=Math.max,L0=Math.min,aB=Cr,cP=D,_8=["itemStyle","borderWidth"],XTe=["itemStyle","gapWidth"],ZTe=["upperLabel","show"],KTe=["upperLabel","height"];const QTe={seriesType:"treemap",reset:function(e,t,r,n){var i=r.getWidth(),a=r.getHeight(),o=e.option,s=hr(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],u=ne(aB(s.width,l[0]),i),c=ne(aB(s.height,l[1]),a),f=n&&n.type,d=["treemapZoomToNode","treemapRootToNode"],h=Up(n,d,e),p=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,v=e.getViewRoot(),g=g8(v);if(f!=="treemapMove"){var m=f==="treemapZoomToNode"?iAe(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),w8(v,x,!1,0),S=v.getLayout(),cP(g,function(b,w){var C=(g[w+1]||v).getValue();b.setLayout(Y({dataExtent:[C,C],borderWidth:0,upperHeight:0},S))})}var _=e.getData().tree.root;_.setLayout(aAe(s,p,h),!0),e.setLayoutInfo(s),C8(_,new Ne(-s.x,-s.y,i,a),g,v,0)}};function w8(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(_8),u=s.get(XTe)/2,c=T8(s),f=Math.max(l,c),d=l-u,h=f-u;e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),i=Yp(i-2*d,0),a=Yp(a-d-h,0);var p=i*a,v=JTe(e,s,p,t,r,n);if(v.length){var g={x:d,y:h,width:i,height:a},m=L0(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=nAe(x,m,t.squareRatio);w<=y?(S++,y=w):(x.area-=x.pop().getLayout().area,oB(x,m,g,u,!1),m=L0(g.width,g.height),x.length=x.area=0,y=1/0)}if(x.length&&oB(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 nAe(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?Yp(u*n/l,l/(u*i)):1/0}function oB(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;fyE&&(u=yE),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}(Ae);const pP=CAe;var TAe=function(){function e(t){this.group=new Ae,this._LineCtor=t||pP}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=dB(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=dB(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!AAe(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0}function dB(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:yr(t)}}function hB(e){return isNaN(e[0])||isNaN(e[1])}function N_(e){return e&&!hB(e[0])&&!hB(e[1])}const vP=TAe;var z_=[],B_=[],F_=[],lc=_r,$_=eu,pB=Math.abs;function vB(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){z_[0]=lc(n[0],i[0],a[0],c),z_[1]=lc(n[1],i[1],a[1],c);var f=pB($_(z_,t)-l);f=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function V_(e,t){var r=[],n=Ap,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=[ro(u[0]),ro(u[1])],u[2]&&u.__original.push(ro(u[2])));var d=u.__original;if(u[2]!=null){if(en(i[0],d[0]),en(i[1],d[2]),en(i[2],d[1]),c&&c!=="none"){var h=ph(s.node1),p=vB(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=ph(s.node2),p=vB(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]}en(u[0],i[0]),en(u[1],i[2]),en(u[2],i[1])}else{if(en(a[0],d[0]),en(a[1],d[1]),Hl(o,a[1],a[0]),Vf(o,o),c&&c!=="none"){var h=ph(s.node1);QC(a[0],a[0],o,h*t)}if(f&&f!=="none"){var h=ph(s.node2);QC(a[1],a[1],o,-h*t)}en(u[0],a[0]),en(u[1],a[1])}})}function gB(e){return e.type==="view"}var MAe=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 kv,a=new vP,o=this.group;this._controller=new Ev(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(gB(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):it(u,c,r)}V_(r.getGraph(),hh(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),hP(r,"symbolSize",x,[A.offsetX,A.offsetY]),a.updateLayout(r);break;case"none":default:f.setItemLayout(S,[_.x,_.y]),dP(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"&&(Ie(_).focus=x.getAdjacentDataIndices())}}),f.graph.eachEdge(function(x){var S=x.getGraphicEl(),_=x.getModel().get(["emphasis","focus"]);S&&_==="adjacency"&&(Ie(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){P8(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)&&!Gx(u,i,r)}),!gB(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){rP(s,u.dx,u.dy),i.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){nP(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(),V_(r.getGraph(),hh(r)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),i=hh(r);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},t.prototype.updateLayout=function(r){V_(r.getGraph(),hh(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 IAe=MAe;function uc(e){return"_EC_"+e}var PAe=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[uc(t)]){var i=new Ml(t,r);return i.hostGraph=this,this.nodes.push(i),n[uc(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[uc(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 Ml||(t=i[uc(t)]),r instanceof Ml||(r=i[uc(r)]),!(!t||!r)){var o=t.id+"-"+r.id,s=new D8(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 Ml&&(t=t.id),r instanceof Ml&&(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 Ml||(r=this._nodesMap[uc(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)}}}lr(Ml,R8("hostGraph","data"));lr(D8,R8("hostGraph","edgeData"));const kAe=PAe;function L8(e,t,r,n,i){for(var a=new kAe(n),o=0;o "+d)),u++)}var h=r.get("coordinateSystem"),p;if(h==="cartesian2d"||h==="polar")p=Ao(e,r);else{var v=Cv.get(h),g=v?v.dimensions||[]:[];ze(g,"value")<0&&g.concat(["value"]);var m=Av(e,{coordDimensions:g,encodeDefine:r.getEncode()}).dimensions;p=new sn(m,r),p.initData(e)}var y=new sn(["value"],r);return y.initData(l,s),i&&i(p,y),p8({mainData:p,struct:a,structAttr:"graph",datas:{node:p,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var DAe=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 Lv(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),mu(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){dAe(this);var s=L8(a,i,this,!0,l);return D(s.edges,function(u){hAe(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),xr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=tU({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:Y({value:0},i)}),n=new sn(["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 RAe=DAe;var LAe={type:"graphRoam",event:"graphRoam",update:"none"};function EAe(e){e.registerChartView(IAe),e.registerSeriesModel(RAe),e.registerProcessor(sAe),e.registerVisual(lAe),e.registerVisual(uAe),e.registerLayout(pAe),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,gAe),e.registerLayout(yAe),e.registerCoordinateSystem("graphView",{dimensions:Ov.dimensions,create:SAe}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},rr),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},rr),e.registerAction(LAe,function(t,r,n){r.eachComponent({mainType:"series",query:t},function(i){var a=i.coordinateSystem,o=aP(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var OAe=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),NAe=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 OAe},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}($e);const zAe=NAe;function BAe(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 om(e,t){var r=e==null?"":e+"";return t&&(oe(t)?r=t.replace("{value}",r):me(t)&&(r=t(e))),r}var FAe=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=BAe(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?I0:In,p=f.get("show"),v=f.getModel("lineStyle"),g=v.get("width"),m=[u,c];f6(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&&(j+=Math.PI)):B==="tangential"?j=-C-Math.PI/2:nt(B)&&(j=B*Math.PI/180),j===0?f.add(new rt({style:_t(x,{text:V,x:G,y:U,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:k<-.4?"left":k>.4?"right":"center"},{inheritColor:L}),silent:!0})):f.add(new rt({style:_t(x,{text:V,x:G,y:U,verticalAlign:"middle",align:"center"},{inheritColor:L}),silent:!0,originX:G,originY:U,rotation:j}))}if(y.get("show")&&z!==S){var $=y.get("distance");$=$?$+c:c;for(var X=0;X<=_;X++){k=Math.cos(C),R=Math.sin(C);var W=new Tr({shape:{x1:k*(p-$)+d,y1:R*(p-$)+h,x2:k*(p-w-$)+d,y2:R*(p-w-$)+h},silent:!0,style:I});I.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 I=y.getItemModel(T),P=I.getModel("pointer"),k=ne(P.get("width"),o.r),R=ne(P.get("length"),o.r),z=r.get(["pointer","icon"]),$=P.get("offsetCenter"),N=ne($[0],o.r),V=ne($[1],o.r),L=P.get("keepAspect"),G;return z?G=sr(z,N-k/2,V-R,k,R,null,L):G=new zAe({shape:{angle:-Math.PI/2,width:k,r:R,x:N,y:V}}),G.rotation=-(M+Math.PI/2),G.x=o.cx,G.y=o.cy,G}function A(T,M){var I=g.get("roundCap"),P=I?I0:In,k=g.get("overlap"),R=k?g.get("width"):c/y.count(),z=k?o.r-R:o.r-(T+1)*R,$=k?o.r:o.r-T*R,N=new P({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:z,r:$}});return k&&(N.z2=_-y.get(x,T)%_),N}(m||v)&&(y.diff(d).add(function(T){var M=y.get(x,T);if(v){var I=C(T,s);Lt(I,{rotation:-((isNaN(+M)?w[0]:ct(M,b,w,!0))+Math.PI/2)},r),f.add(I),y.setItemGraphicEl(T,I)}if(m){var P=A(T,s),k=g.get("clip");Lt(P,{shape:{endAngle:ct(M,b,w,k)}},r),f.add(P),wT(r.seriesIndex,y.dataType,T,P),p[T]=P}}).update(function(T,M){var I=y.get(x,T);if(v){var P=d.getItemGraphicEl(M),k=P?P.rotation:s,R=C(T,k);R.rotation=k,it(R,{rotation:-((isNaN(+I)?w[0]:ct(I,b,w,!0))+Math.PI/2)},r),f.add(R),y.setItemGraphicEl(T,R)}if(m){var z=h[M],$=z?z.shape.endAngle:s,N=A(T,$),V=g.get("clip");it(N,{shape:{endAngle:ct(I,b,w,V)}},r),f.add(N),wT(r.seriesIndex,y.dataType,T,N),p[T]=N}}).execute(),y.each(function(T){var M=y.getItemModel(T),I=M.getModel("emphasis"),P=I.get("focus"),k=I.get("blurScope"),R=I.get("disabled");if(v){var z=y.getItemGraphicEl(T),$=y.getItemVisual(T,"style"),N=$.fill;if(z instanceof Fr){var V=z.style;z.useStyle(Y({image:V.image,x:V.x,y:V.y,width:V.width,height:V.height},$))}else z.useStyle($),z.type!=="pointer"&&z.setColor(N);z.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),z.style.fill==="auto"&&z.setStyle("fill",a(ct(y.get(x,T),b,[0,1],!0))),z.z2EmphasisLift=0,zr(z,M),Ut(z,P,k,R)}if(m){var L=p[T];L.useStyle(y.getItemVisual(T,"style")),L.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),L.z2EmphasisLift=0,zr(L,M),Ut(L,P,k,R)}}),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=sr(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 Ae,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 Ae,_=a(ct(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 I=M.get("offsetCenter"),P=o.cx+ne(I[0],o.r),k=o.cy+ne(I[1],o.r),R=ne(M.get("width"),o.r),z=ne(M.get("height"),o.r),$=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:P,y:k,text:om(x,N),width:isNaN(R)?null:R,height:isNaN(z)?null:z,align:"center",verticalAlign:"middle"},{inheritColor:$})}),nW(T,{normal:M},x,function(L){return om(L,N)}),v&&iW(T,m,l,r,{getFormattedLabel:function(L,G,U,B,j,X){return om(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 $Ae=FAe;var VAe=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 rd(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 GAe=VAe;function HAe(e){e.registerChartView($Ae),e.registerSeriesModel(GAe)}var WAe=["itemStyle","opacity"],UAe=function(e){H(t,e);function t(r,n){var i=e.call(this)||this,a=i,o=new kn,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(WAe);c=c??1,i||Zi(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)):it(a,{style:{opacity:c},shape:{points:l.points}},o,n),zr(a,s),this._updateLabel(r,n),Ut(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,yr(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},it(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),YI(i,qI(l),{stroke:d})},t}(Pn),jAe=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 UAe(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);Lp(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 YAe=jAe;var qAe=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 Lv(ue(this.getData,this),ue(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.getInitialData=function(r,n){return rd(this,{coordDimensions:["value"],encodeDefaulter:Pe(_I,this)})},t.prototype._defaultLabelLine=function(r){mu(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 XAe=qAe;function ZAe(e,t){return hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function KAe(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();ogMe)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||!H_(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 H_(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}const xMe=mMe;var SMe=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){D(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){r.hasOwnProperty(n)&&(this.option[n]=r[n])},this)},t.prototype._initDimensions=function(){var r=this.dimensions=[],n=this.parallelAxisIndex=[],i=dt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);D(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 bMe=SMe;var _Me=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}(Qi);const wMe=_Me;function zu(e,t,r,n,i,a){e=e||0;var o=r[1]-r[0];if(i!=null&&(i=cc(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=cc(s,[0,o]),i=a=cc(s,[i,a]),n=0}t[0]=cc(t[0],r),t[1]=cc(t[1],r);var l=W_(t,n);t[n]+=e;var u=i||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=cc(t[n],c);var f;return f=W_(t,n),i!=null&&(f.sign!==l.sign||f.spana&&(t[1-n]=t[n]+f.sign*a),t}function W_(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 cc(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var U_=D,O8=Math.min,N8=Math.max,xB=Math.floor,CMe=Math.ceil,SB=Xt,TMe=Math.PI,AMe=function(){function e(t,r,n){this.type="parallel",this._axesMap=ve(),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;U_(i,function(o,s){var l=a[s],u=r.getComponent("parallelAxis",l),c=this._axesMap.set(o,new wMe(o,Fx(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();U_(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),bf(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,r){this._rect=hr(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=sm(t.get("axisExpandWidth"),l),f=sm(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=sm(h[1]-h[0],l),h[1]=h[0]+p;else{p=sm(c*(f-1),l);var v=t.get("axisExpandCenter")||xB(u/2);h=[c*v-p/2],h[1]=h[0]+p}var g=(s-p)/(u-f);g<3&&(g=0);var m=[xB(SB(h[0]/c,1))+1,CMe(SB(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])}),U_(n,function(o,s){var l=(i.axisExpandable?IMe:MMe)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:TMe/2,vertical:0},f=[u[a].x+t.x,u[a].y+t.y],d=c[a],h=_i();Du(h,h,d),Na(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=[];D(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=[N8(0,p-h/2)],i[1]=O8(o[1],i[0]+h),i[0]=i[1]-h}return{axisExpandWindow:i,behavior:u}},e}();function sm(e,t){return O8(N8(e,t[0]),t[1])}function MMe(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function IMe(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--)gi(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;aOMe}function H8(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function W8(e,t,r,n){var i=new Ae;return i.add(new Qe({name:"main",style:xP(r),silent:!0,draggable:!0,cursor:"move",drift:Pe(CB,e,t,i,["n","s","w","e"]),ondragend:Pe(wu,t,{isEnd:!0})})),D(n,function(a){i.add(new Qe({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Pe(CB,e,t,i,a),ondragend:Pe(wu,t,{isEnd:!0})}))}),i}function U8(e,t,r,n){var i=n.brushStyle.lineWidth||0,a=Cf(i,NMe),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;Ua(e,t,"main",o,s,p,v),n.transformable&&(Ua(e,t,"w",l,u,a,m),Ua(e,t,"e",d,u,a,m),Ua(e,t,"n",l,u,g,a),Ua(e,t,"s",l,h,g,a),Ua(e,t,"nw",l,u,a,a),Ua(e,t,"ne",d,u,a,a),Ua(e,t,"sw",l,h,a,a),Ua(e,t,"se",d,h,a,a))}function pA(e,t){var r=t.__brushOption,n=r.transformable,i=t.childAt(0);i.useStyle(xP(r)),i.attr({silent:!n,cursor:n?"move":"default"}),D([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?vA(e,a[0]):HMe(e,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?BMe[s]+"-resize":null})})}function Ua(e,t,r,n,i,a,o){var s=t.childOfName(r);s&&s.setShape(UMe(SP(e,t,[[n,i],[n+a,i+o]])))}function xP(e){return xe({strokeNoScale:!0},e.brushStyle)}function j8(e,t,r,n){var i=[Xp(e,r),Xp(t,n)],a=[Cf(e,r),Cf(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function GMe(e){return au(e.group)}function vA(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=Cx(r[t],GMe(e));return n[i]}function HMe(e,t){var r=[vA(e,t[0]),vA(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function CB(e,t,r,n,i,a){var o=r.__brushOption,s=e.toRectRange(o.range),l=Y8(t,i,a);D(n,function(u){var c=zMe[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(j8(s[0][0],s[1][0],s[0][1],s[1][1])),gP(t,r),wu(t,{isEnd:!1})}function WMe(e,t,r,n){var i=t.__brushOption.range,a=Y8(e,r,n);D(i,function(o){o[0]+=a[0],o[1]+=a[1]}),gP(e,t),wu(e,{isEnd:!1})}function Y8(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 SP(e,t,r){var n=G8(e,t);return n&&n!==_u?n.clipPath(r,e._transform):we(r)}function UMe(e){var t=Xp(e[0][0],e[1][0]),r=Xp(e[0][1],e[1][1]),n=Cf(e[0][0],e[1][0]),i=Cf(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:i-r}}function jMe(e,t,r){if(!(!e._brushType||qMe(e,t.offsetX,t.offsetY))){var n=e._zr,i=e._covers,a=yP(e,t,r);if(!e._dragging)for(var o=0;on.getWidth()||r<0||r>n.getHeight()}var jx={lineX:MB(0),lineY:MB(1),rect:{createCover:function(e,t){function r(n){return n}return W8({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=H8(e);return j8(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){U8(e,t,r,n)},updateCommon:pA,contain:mA},polygon:{createCover:function(e,t){var r=new Ae;return r.add(new kn({name:"main",style:xP(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Pn({name:"main",draggable:!0,drift:Pe(WMe,e,t),ondragend:Pe(wu,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:SP(e,t,r)})},updateCommon:pA,contain:mA}};function MB(e){return{createCover:function(t,r){return W8({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=H8(t),n=Xp(r[0][e],r[1][e]),i=Cf(r[0][e],r[1][e]);return[n,i]},updateCoverShape:function(t,r,n,i){var a,o=G8(t,r);if(o!==_u&&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(),U8(t,r,l,i)},updateCommon:pA,contain:mA}}const bP=$Me;function X8(e){return e=_P(e),function(t){return J6(t,e)}}function Z8(e,t){return e=_P(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 K8(e,t,r){var n=_P(e);return function(i,a){return n.contain(a[0],a[1])&&!Gx(i,t,r)}}function _P(e){return Ne.create(e)}var XMe=["axisLine","axisTickLabel","axisName"],ZMe=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 bP(n.getZr())).on("brush",ue(this._onBrush,this))},t.prototype.render=function(r,n,i,a){if(!KMe(r,n,a)){this.axisModel=r,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ae,this.group.add(this._axisGroup),!!r.get("show")){var s=JMe(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),c=u.width,f=r.axis.dim,d=l.getAxisLayout(f),h=Y({strokeContainThreshold:c},d),p=new So(r,h);D(XMe,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(h,u,r,s,c,i),bv(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:X8(f),isTargetByCursor:K8(f,s,a),getLinearBrushOtherExtent:Z8(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(QMe(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}(jt);function KMe(e,t,r){return r&&r.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function QMe(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 JMe(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}const e2e=ZMe;var t2e={type:"axisAreaSelect",event:"axisAreaSelected"};function r2e(e){e.registerAction(t2e,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 n2e={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Q8(e){e.registerComponentView(xMe),e.registerComponentModel(bMe),e.registerCoordinateSystem("parallel",RMe),e.registerPreprocessor(hMe),e.registerComponentModel(bB),e.registerComponentView(e2e),wf(e,"parallel",bB,n2e),r2e(e)}function i2e(e){Fe(Q8),e.registerChartView(aMe),e.registerSeriesModel(uMe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,dMe)}var a2e=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}(),o2e=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new a2e},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(){mo(this)},t.prototype.downplay=function(){yo(this)},t}($e),s2e=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 o2e,g=Ie(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"),I=p.getLayout(),P,k,R,z,$,N,V,L;v.shape.extent=Math.max(1,I.dy),v.shape.orient=h,h==="vertical"?(P=(b!=null?b*u:S.x)+I.sy,k=(w!=null?w*c:S.y)+S.dy,R=(T!=null?T*u:C.x)+I.ty,z=M!=null?M*c:C.y,$=P,N=k*(1-x)+z*x,V=R,L=k*x+z*(1-x)):(P=(b!=null?b*u:S.x)+S.dx,k=(w!=null?w*c:S.y)+I.sy,R=T!=null?T*u:C.x,z=(M!=null?M*c:C.y)+I.ty,$=P*(1-x)+R*x,N=k,V=P*x+R*(1-x),L=z),v.setShape({x1:P,y1:k,x2:R,y2:z,cpx1:$,cpy1:N,cpx2:V,cpy2:L}),v.useStyle(y.getItemStyle()),IB(v.style,h,p);var G=""+m.get("value"),U=yr(m,"edgeLabel");Br(v,U,{labelFetcher:{getFormattedLabel:function(X,W,ee,te,ie,re){return r.getFormattedLabel(X,W,"edge",te,Pa(ie,U.normal&&U.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 IB(W,h,p),W}),s.add(v),d.setItemGraphicEl(p.dataIndex,v);var j=B.get("focus");Ut(v,j==="adjacency"?p.getAdjacentDataIndices():j==="trajectory"?p.getTrajectoryDataIndices():j,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,yr(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),Ie(S).dataType="node";var _=x.get("focus");Ut(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(l2e(s.getBoundingRect(),r,function(){s.removeClipPath()})),this._data=r.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(Tt);function IB(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 Sv(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:i,offset:1}]))}}function l2e(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 u2e=s2e;var c2e=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=L8(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 xr("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 xr("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 f2e=c2e;function d2e(e,t){e.eachSeriesByType("sankey",function(r){var n=r.get("nodeWidth"),i=r.get("nodeGap"),a=h2e(r,t);r.layoutInfo=a;var o=a.width,s=a.height,l=r.getGraph(),u=l.nodes,c=l.edges;v2e(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");p2e(u,c,n,i,o,s,d,h,p)})}function h2e(e,t){return hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function p2e(e,t,r,n,i,a,o,s,l){g2e(e,t,r,i,a,s,l),S2e(e,t,a,i,n,o,s),P2e(e,s)}function v2e(e){D(e,function(t){var r=bs(t.outEdges,E0),n=bs(t.inEdges,E0),i=t.getValue()||0,a=Math.max(r,n,i);t.setLayout({value:a},!0)})}function g2e(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"&&m2e(e,o,a,w);var C=a==="vertical"?(i-r)/w:(n-r)/w;x2e(e,C,a)}function J8(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function m2e(e,t,r,n){if(t==="right"){for(var i=[],a=e,o=0;a.length;){for(var s=0;s0;a--)l*=.99,w2e(s,l,o),j_(s,i,r,n,o),I2e(s,l,o),j_(s,i,r,n,o)}function b2e(e,t){var r=[],n=t==="vertical"?"y":"x",i=xT(e,function(a){return a.getLayout()[n]});return i.keys.sort(function(a,o){return a-o}),D(i.keys,function(a){r.push(i.buckets.get(a))}),r}function _2e(e,t,r,n,i,a){var o=1/0;D(e,function(s){var l=s.length,u=0;D(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 w2e(e,t,r){D(e.slice().reverse(),function(n){D(n,function(i){if(i.outEdges.length){var a=bs(i.outEdges,C2e,r)/bs(i.outEdges,E0);if(isNaN(a)){var o=i.outEdges.length;a=o?bs(i.outEdges,T2e,r)/o:0}if(r==="vertical"){var s=i.getLayout().x+(a-Os(i,r))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-Os(i,r))*t;i.setLayout({y:l},!0)}}})})}function C2e(e,t){return Os(e.node2,t)*e.getValue()}function T2e(e,t){return Os(e.node2,t)}function A2e(e,t){return Os(e.node1,t)*e.getValue()}function M2e(e,t){return Os(e.node1,t)}function Os(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function E0(e){return e.getValue()}function bs(e,t,r){for(var n=0,i=e.length,a=-1;++ao&&(o=l)}),D(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&&D(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function D2e(e){e.registerChartView(u2e),e.registerSeriesModel(f2e),e.registerLayout(d2e),e.registerVisual(k2e),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){n.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var e9=function(){function e(){}return e.prototype.getInitialData=function(t,r){var n,i=r.getComponent("xAxis",this.get("xAxisIndex")),a=r.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=a.get("type"),l;o==="category"?(t.layout="horizontal",n=i.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",n=a.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],d=u[1-c],h=[i,a],p=h[c].get("type"),v=h[1-c].get("type"),g=t.data;if(g&&l){var m=[];D(g,function(S,_){var b;q(S)?(b=S.slice(),S.unshift(_)):q(S.value)?(b=Y({},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:_0(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:_0(v),dimsDef:y.slice()}];return rd(this,{coordDimensions:x,dimensionsCount:y.length+1,encodeDefaulter:Pe(AW,x,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),t9=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);lr(t9,e9,!0);const R2e=t9;var L2e=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=PB(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?(Zi(f),r9(d,f,a,u)):f=PB(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),E2e=function(){function e(){}return e}(),O2e=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 E2e},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 H2e={type:"echarts:boxplot",transform:function(t){var r=t.upstream;if(r.sourceFormat!==Kr){var n="";st(n)}var i=G2e(r.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function W2e(e){e.registerSeriesModel(R2e),e.registerChartView(z2e),e.registerLayout(B2e),e.registerTransform(H2e)}var U2e=["color","borderColor"],j2e=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){Hs(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&&kB(u,f))return;var d=Y_(f,c,!0);Lt(d,{shape:{points:f.ends}},r,c),q_(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&&kB(u,h)){a.remove(d);return}d?(it(d,{shape:{points:h.ends}},r,c),Zi(d)):d=Y_(h),q_(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(),DB(r,this.group);var n=r.get("clip",!0)?Vx(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=Y_(s);q_(l,i,o,a),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(r,n){DB(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),Y2e=function(){function e(){}return e}(),q2e=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 Y2e},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}($e);function Y_(e,t,r){var n=e.ends;return new q2e({shape:{points:r?X2e(n,e):n},z2:100})}function kB(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(U2e);t.useStyle(a),t.style.fill=null,t.style.stroke=i}const K2e=j2e;var n9=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);lr(n9,e9,!0);const Q2e=n9;function J2e(e){!e||!q(e.series)||D(e.series,function(t){Se(t)&&t.type==="k"&&(t.type="candlestick")})}var eIe=["itemStyle","borderColor"],tIe=["itemStyle","borderColor0"],rIe=["itemStyle","borderColorDoji"],nIe=["itemStyle","color"],iIe=["itemStyle","color0"],aIe={seriesType:"candlestick",plan:Jf(),performRawSeries:!0,reset:function(e,t){function r(a,o){return o.get(a>0?nIe:iIe)}function n(a,o){return o.get(a===0?rIe:a>0?eIe:tIe)}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");Y(f,c)}}}}}};const oIe=aIe;var sIe={seriesType:"candlestick",plan:Jf(),reset:function(e){var t=e.coordinateSystem,r=e.getData(),n=lIe(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=$(C,x),M=$(A,x),I=$(b,x),P=$(w,x),k=[];N(k,M,0),N(k,T,1),k.push(L(P),L(M),L(I),L(T));var R=g.getItemModel(m),z=!!R.get(["itemStyle","borderColorDoji"]);g.setItemLayout(m,{sign:RB(y,m,S,_,c,z),initBaseline:S>_?M[a]:T[a],ends:k,brushRect:V(b,w,x)})}function $(G,U){var B=[];return B[i]=U,B[a]=G,isNaN(U)||isNaN(G)?[NaN,NaN]:t.dataToPoint(B)}function N(G,U,B){var j=U.slice(),X=U.slice();j[i]=Xm(j[i]+n/2,1,!1),X[i]=Xm(X[i]-n/2,1,!0),B?G.push(j,X):G.push(X,j)}function V(G,U,B){var j=$(G,B),X=$(U,B);return j[i]-=n/2,X[i]-=n/2,{x:j[0],y:j[1],width:n,height:X[1]-j[1]}}function L(G){return G[i]=Xm(G[i],1),G}}function p(v,g){for(var m=_a(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),I=w.get(f,b),P=w.get(d,b);if(isNaN(A)||isNaN(I)||isNaN(P)){m[y++]=NaN,y+=3;continue}m[y++]=RB(w,b,T,M,c,C),S[i]=A,S[a]=I,x=t.dataToPoint(S,null,_),m[y++]=x?x[0]:NaN,m[y++]=x?x[1]:NaN,S[a]=P,x=t.dataToPoint(S,null,_),m[y++]=x?x[1]:NaN}g.setLayout("largePoints",m)}}};function RB(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 lIe(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 uIe=sIe;function cIe(e){e.registerChartView(K2e),e.registerSeriesModel(Q2e),e.registerPreprocessor(J2e),e.registerVisual(oIe),e.registerLayout(uIe)}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 fIe=function(e){H(t,e);function t(r,n){var i=e.call(this)||this,a=new Pv(r,n),o=new Ae;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;me(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 Jo(r.__p1,r.__cp1)+Jo(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=_r,c=oT;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}(i9);const bIe=SIe;var _Ie=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),wIe=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 _Ie},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(d6(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 TIe=CIe;var AIe={seriesType:"lines",plan:Jf(),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)&&Vx(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=o9.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 TIe:new vP(o?a?bIe:a9:a?i9:pP),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 IIe=MIe;var PIe=typeof Uint32Array>"u"?Array:Uint32Array,kIe=typeof Float64Array>"u"?Array:Float64Array;function EB(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),W2([i,r[0],r[1]])}))}var DIe=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||[],EB(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(EB(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=Ky(this._flatCoords,n.flatCoords),this._flatCoordsOffset=Ky(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 RIe=DIe;function lm(e){return e instanceof Array||(e=[e,e]),e}var LIe={seriesType:"lines",reset:function(e){var t=lm(e.get("symbol")),r=lm(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=lm(s.getShallow("symbol",!0)),u=lm(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 EIe=LIe;function OIe(e){e.registerChartView(IIe),e.registerSeriesModel(RIe),e.registerLayout(o9),e.registerVisual(EIe)}var NIe=256,zIe=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Ps.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 I=o(x)?l:u;x>0&&(x=x*T+C),_[b++]=I[M],_[b++]=I[M+1],_[b++]=I[M+2],_[b++]=I[M+3]*x*256}else b+=4}return d.putImageData(S,0,0),f},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Ps.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 BIe=zIe;function FIe(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 OB(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var VIe=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()):OB(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&&(OB(o)?this.render(n,i,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,a,r.start,r.end,!0)))},t.prototype.eachRendered=function(r){Hs(this._progressiveEls||this.group,r)},t.prototype._renderOnCartesianAndCalendar=function(r,n,i,a,o){var s=r.coordinateSystem,l=Ou(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"]),_=yr(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]||Rd[1])continue;var z=s.dataToPoint([k,R]);I=new Qe({shape:{x:z[0]-u/2,y:z[1]-c/2,width:u,height:c},style:P})}else{if(isNaN(g.get(T[1],M)))continue;I=new Qe({z2:1,shape:s.dataToRect([g.get(T[0],M)]).contentShape,style:P})}if(g.hasItemOption){var $=g.getItemModel(M),N=$.getModel("emphasis");m=N.getModel("itemStyle").getItemStyle(),y=$.getModel(["blur","itemStyle"]).getItemStyle(),x=$.getModel(["select","itemStyle"]).getItemStyle(),S=$.get(["itemStyle","borderRadius"]),w=N.get("focus"),C=N.get("blurScope"),A=N.get("disabled"),_=yr($)}I.shape.r=S;var V=r.getRawValue(M),L="-";V&&V[2]!=null&&(L=V[2]+""),Br(I,_,{labelFetcher:r,labelDataIndex:M,defaultOpacity:P.opacity,defaultText:L}),I.ensureState("emphasis").style=m,I.ensureState("blur").style=y,I.ensureState("select").style=x,Ut(I,w,C,A),I.incremental=o,o&&(I.states.emphasis.hoverLayer=!0),v.add(I),g.setItemGraphicEl(M,I),this._progressiveEls&&this._progressiveEls.push(I)}},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 BIe;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"?$Ie(S,i.option.range):FIe(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 Fr({style:{width:g,height:m,x:d,y:h,image:u.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t}(Tt);const GIe=VIe;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){return Ao(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var r=Cv.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 WIe=HIe;function UIe(e){e.registerChartView(GIe),e.registerSeriesModel(WIe)}var jIe=["itemStyle","borderWidth"],NB=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],K_=new $a,YIe=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:NB[+c],categoryDim:NB[1-+c]};return o.diff(s).add(function(h){if(o.hasValue(h)){var p=BB(o,h),v=zB(o,h,p,d),g=FB(o,d,v);o.setItemGraphicEl(h,g),a.add(g),VB(g,d,v)}}).update(function(h,p){var v=s.getItemGraphicEl(p);if(!o.hasValue(h)){a.remove(v);return}var g=BB(o,h),m=zB(o,h,g,d),y=d9(o,m);v&&y!==v.__pictorialShapeStr&&(a.remove(v),o.setItemGraphicEl(h,null),v=null),v?ePe(v,d,m):v=FB(o,d,m,!0),o.setItemGraphicEl(h,v),v.__pictorialSymbolMeta=m,a.add(v),VB(v,d,m)}).remove(function(h){var p=s.getItemGraphicEl(h);p&&$B(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){$B(a,Ie(o).dataIndex,r,o)}):i.removeAll()},t.type="pictorialBar",t}(Tt);function zB(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};qIe(r,a,i,n,d),XIe(e,t,i,a,o,d.boundingLength,d.pxSign,c,n,d),ZIe(r,d.symbolScale,u,n,d);var h=d.symbolSize,p=Lu(r.get("symbolOffset"),h);return KIe(r,h,i,a,o,p,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,n,d),d}function qIe(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(q(o)){var f=[Q_(s,o[0])-l,Q_(s,o[1])-l];f[1]0?1:-1}function Q_(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function XIe(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;q(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 ZIe(e,t,r,n,i){var a=e.get(jIe)||0;a&&(K_.attr({scaleX:t[0],scaleY:t[1],rotation:r}),K_.updateTransform(),a/=K_.getLineScale(),a*=t[n.valueDim.index]),i.valueLineWidth=a||0}function KIe(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=KH(n),C=w?n:GB((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?GB((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 I=f.bundlePosition=[];I[d.index]=r[d.xy],I[h.index]=r[h.xy];var P=f.barRectShape=Y({},r);P[h.wh]=p*Math.max(Math.abs(r[h.wh]),Math.abs(M[h.index]+T)),P[d.wh]=r[d.wh];var k=f.clipShape={};k[d.xy]=-r[d.xy],k[d.wh]=c.ecSize[d.wh],k[h.xy]=0,k[h.wh]=r[h.wh]}function s9(e){var t=e.symbolPatternSize,r=sr(e.symbolType,-t/2,-t/2,t,t);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function l9(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(wP(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 u9(e,t,r,n){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?rf(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=s9(r),i.add(a),rf(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 c9(e,t,r){var n=Y({},t.barRectShape),i=e.__pictorialBarRect;i?rf(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 f9(e,t,r,n){if(r.symbolClip){var i=e.__pictorialClipPath,a=Y({},r.clipShape),o=t.valueDim,s=r.animationModel,l=r.dataIndex;if(i)it(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],wv[n?"updateProps":"initProps"](i,{shape:u},s,l)}}}function BB(e,t){var r=e.getItemModel(t);return r.getAnimationDelayParams=QIe,r.isAnimationEnabled=JIe,r}function QIe(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function JIe(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function FB(e,t,r,n){var i=new Ae,a=new Ae;return i.add(a),i.__pictorialBundle=a,a.x=r.bundlePosition[0],a.y=r.bundlePosition[1],r.symbolRepeat?l9(i,t,r):u9(i,t,r),c9(i,r,n),f9(i,t,r,n),i.__pictorialShapeStr=d9(e,r),i.__pictorialSymbolMeta=r,i}function ePe(e,t,r){var n=r.animationModel,i=r.dataIndex,a=e.__pictorialBundle;it(a,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,i),r.symbolRepeat?l9(e,t,r,!0):u9(e,t,r,!0),c9(e,r,!0),f9(e,t,r,!0)}function $B(e,t,r,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var a=[];wP(n,function(o){a.push(o)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),D(a,function(o){Ds(o,{scaleX:0,scaleY:0},r,t,function(){n.parent&&n.parent.remove(n)})}),e.setItemGraphicEl(t,null)}function d9(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function wP(e,t,r){D(e.__pictorialBundle.children(),function(n){n!==e.__pictorialBarRect&&t.call(r,n)})}function rf(e,t,r,n,i,a){t&&e.attr(t),n.symbolClip&&!i?r&&e.attr(r):r&&wv[i?"updateProps":"initProps"](e,r,n.animationModel,n.dataIndex,a)}function VB(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");wP(e,function(v){if(v instanceof Fr){var g=v.style;v.useStyle(Y({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,yr(i),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:_f(t.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:h}),Ut(e,c,f,a.get("disabled"))}function GB(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}const tPe=YIe;var rPe=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=Ws(M0.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}(M0);const nPe=rPe;function iPe(e){e.registerChartView(tPe),e.registerSeriesModel(nPe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Pe(YU,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,qU("pictorialBar"))}var aPe=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 xo(this._layersSeries||[],l,d,d),p=[];h.add(ue(v,this,"add")).update(ue(v,this,"update")).remove(ue(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 dPe(e){e.registerChartView(sPe),e.registerSeriesModel(uPe),e.registerLayout(cPe),e.registerProcessor(Rv("themeRiver"))}var hPe=2,pPe=4,vPe=function(e){H(t,e);function t(r,n,i,a){var o=e.call(this)||this;o.z2=hPe,o.textConfig={inside:!0},Ie(o).seriesIndex=n.seriesIndex;var s=new rt({z2:pPe,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;Ie(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),f=Y({},c);f.label=null;var d=n.getVisual("style");d.lineJoin="bevel";var h=n.getVisual("decal");h&&(d.decal=Sf(h,o));var p=Zl(l.getModel("itemStyle"),f,!0);Y(f,p),D(un,function(y){var x=s.ensureState(y),S=l.getModel([y,"itemStyle"]);x.style=S.getItemStyle();var _=Zl(S,f);_&&(x.shape=_)}),r?(s.setShape(f),s.shape.r=c.r0,Lt(s,{shape:{r:c.r}},i,n.dataIndex)):(it(s,{shape:f},i),Zi(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;Ut(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"):!I||I==="center"?(s===2*Math.PI&&o.r0===0?T=0:T=(o.r+o.r0)/2,I="center"):I==="left"?(T=o.r0+M,l>Math.PI/2&&(I="right")):I==="right"&&(T=o.r-M,l>Math.PI/2&&(I="left")),S.style.align=I,S.style.verticalAlign=g(y,"verticalAlign")||"middle",S.x=T*u+o.cx,S.y=T*c+o.cy;var P=g(y,"rotate"),k=0;P==="radial"?(k=$i(-l),k>Math.PI/2&&kMath.PI/2?k-=Math.PI:k<-Math.PI/2&&(k+=Math.PI)):nt(P)&&(k=P*Math.PI/180),S.rotation=$i(k)});function g(m,y){var x=m.get(y);return x??a.get(y)}d.dirtyStyle()},t}(In);const WB=vPe;var yA="sunburstRootToNode",UB="sunburstHighlight",gPe="sunburstUnhighlight";function mPe(e){e.registerAction({type:yA,update:"updateView"},function(t,r){r.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(i,a){var o=Up(t,[yA],i);if(o){var s=i.getViewRoot();s&&(t.direction=lP(s,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}}),e.registerAction({type:UB,update:"none"},function(t,r,n){t=Y({},t),r.eachComponent({mainType:"series",subType:"sunburst",query:t},i);function i(a){var o=Up(t,[UB],a);o&&(t.dataIndex=o.node.dataIndex)}n.dispatchAction(Y(t,{type:"highlight"}))}),e.registerAction({type:gPe,update:"updateView"},function(t,r,n){t=Y({},t),n.dispatchAction(Y(t,{type:"downplay"}))})}var yPe=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 xo(x,y,S,S).add(_).update(_).remove(Pe(_,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";h0(u,c)}}i=!0}})})},t.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:yA,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 xPe=yPe;var SPe=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};h9(i);var a=this._levelModels=Z(r.levels||[],function(l){return new wt(l,this,n)},this),o=sP.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=Wx(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(){m8(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 h9(e){var t=0;D(e.children,function(n){h9(n);var i=n.value;q(i)&&(i=i[0]),t+=i});var r=e.value;q(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),q(e.value)?e.value[0]=r:e.value=r}const bPe=SPe;var jB=Math.PI/180;function _Pe(e,t,r){t.eachSeriesByType(e,function(n){var i=n.get("center"),a=n.get("radius");q(a)||(a=[0,a]),q(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")*jB,p=n.get("minAngle")*jB,v=n.getData().tree.root,g=n.getViewRoot(),m=g.depth,y=n.get("sort");y!=null&&p9(g,y);var x=0;D(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,I=function(z,$){if(z){var N=$;if(z!==v){var V=z.getValue(),L=S===0&&T?_:V*_;L1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&oe(s)&&(s=uT(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");Y(u,l)})})}function TPe(e){e.registerChartView(xPe),e.registerSeriesModel(bPe),e.registerLayout(Pe(_Pe,"sunburst")),e.registerProcessor(Pe(Rv,"sunburst")),e.registerVisual(CPe),mPe(e)}var YB={color:"fill",borderColor:"stroke"},APe={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},ao=Je(),MPe=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 Ao(null,this)},t.prototype.getDataParams=function(r,n,i){var a=e.prototype.getDataParams.call(this,r,n);return i&&(a.info=ao(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 IPe=MPe;function PPe(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 kPe(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:ue(PPe,e)}}}function DPe(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 RPe(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:ue(DPe,e)}}}function LPe(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 EPe(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:ue(LPe,e)}}}function OPe(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 NPe(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:ue(OPe,e)}}}function zPe(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 v9(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||ce(e,"text")))}function g9(e,t,r){var n=e,i,a,o;if(t==="text")o=n;else{o={},ce(n,"text")&&(o.text=n.text),ce(n,"rich")&&(o.rich=n.rich),ce(n,"textFill")&&(o.fill=n.textFill),ce(n,"textStroke")&&(o.stroke=n.textStroke),ce(n,"fontFamily")&&(o.fontFamily=n.fontFamily),ce(n,"fontSize")&&(o.fontSize=n.fontSize),ce(n,"fontStyle")&&(o.fontStyle=n.fontStyle),ce(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=ce(n,"textPosition");r?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),ce(n,"textPosition")&&(i.position=n.textPosition),ce(n,"textOffset")&&(i.offset=n.textOffset),ce(n,"textRotation")&&(i.rotation=n.textRotation),ce(n,"textDistance")&&(i.distance=n.textDistance)}return qB(o,e),D(o.rich,function(l){qB(l,l)}),{textConfig:i,textContent:a}}function qB(e,t){t&&(t.font=t.textFont||t.font,ce(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),ce(t,"textAlign")&&(e.align=t.textAlign),ce(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),ce(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),ce(t,"textWidth")&&(e.width=t.textWidth),ce(t,"textHeight")&&(e.height=t.textHeight),ce(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),ce(t,"textPadding")&&(e.padding=t.textPadding),ce(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),ce(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),ce(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),ce(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),ce(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),ce(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),ce(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function XB(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";ZB(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,D(t.rich,function(s){ZB(s,s)}),n}function ZB(e,t){t&&(ce(t,"fill")&&(e.textFill=t.fill),ce(t,"stroke")&&(e.textStroke=t.fill),ce(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),ce(t,"font")&&(e.font=t.font),ce(t,"fontStyle")&&(e.fontStyle=t.fontStyle),ce(t,"fontWeight")&&(e.fontWeight=t.fontWeight),ce(t,"fontSize")&&(e.fontSize=t.fontSize),ce(t,"fontFamily")&&(e.fontFamily=t.fontFamily),ce(t,"align")&&(e.textAlign=t.align),ce(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),ce(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),ce(t,"width")&&(e.textWidth=t.width),ce(t,"height")&&(e.textHeight=t.height),ce(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),ce(t,"padding")&&(e.textPadding=t.padding),ce(t,"borderColor")&&(e.textBorderColor=t.borderColor),ce(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),ce(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),ce(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),ce(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),ce(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),ce(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),ce(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),ce(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),ce(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),ce(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var m9={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},KB=He(m9);Oa(za,function(e,t){return e[t]=1,e},{});za.join(", ");var O0=["","style","shape","extra"],Tf=Je();function CP(e,t,r,n,i){var a=e+"Animation",o=Uf(e,n,i)||{},s=Tf(t).userDuring;return o.duration>0&&(o.during=s?ue(GPe,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),Y(o,r[a]),o}function ty(e,t,r,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=Tf(e),u=t.style;l.userDuring=t.during;var c={},f={};if(WPe(e,t,f),JB("shape",t,f),JB("extra",t,f),!a&&s&&(HPe(e,t,c),QB("shape",e,t,c),QB("extra",e,t,c),UPe(e,t,u,c)),f.style=u,BPe(e,f,o),$Pe(e,t),s)if(a){var d={};D(O0,function(p){var v=p?t[p]:t;v&&v.enterFrom&&(p&&(d[p]=d[p]||{}),Y(p?d[p]:d,v.enterFrom))});var h=CP("enter",e,t,r,i);h.duration>0&&e.animateFrom(d,h)}else FPe(e,t,i||0,r,c);y9(e,t),u?e.dirty():e.markRedraw()}function y9(e,t){for(var r=Tf(e).leaveToProps,n=0;n0&&e.animateFrom(i,a)}}function $Pe(e,t){ce(t,"silent")&&(e.silent=t.silent),ce(t,"ignore")&&(e.ignore=t.ignore),e instanceof wi&&ce(t,"invisible")&&(e.invisible=t.invisible),e instanceof $e&&ce(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var aa={},VPe={setTransform:function(e,t){return aa.el[e]=t,this},getTransform:function(e){return aa.el[e]},setShape:function(e,t){var r=aa.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){var t=aa.el.shape;if(t)return t[e]},setStyle:function(e,t){var r=aa.el,n=r.style;return n&&(n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){var t=aa.el.style;if(t)return t[e]},setExtra:function(e,t){var r=aa.el.extra||(aa.el.extra={});return r[e]=t,this},getExtra:function(e){var t=aa.el.extra;if(t)return t[e]}};function GPe(){var e=this,t=e.el;if(t){var r=Tf(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}aa.el=t,n(VPe)}}function QB(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]={}),uu(l))Y(o,a);else for(var u=pt(l),c=0;c=0){!o&&(o=n[e]={});for(var h=He(a),c=0;c=0)){var d=e.getAnimationStyleProps(),h=d?d.style:null;if(h){!a&&(a=n.style={});for(var p=He(r),u=0;u=0?t.getStore().get($,R):void 0}var N=t.get(z.name,R),V=z&&z.ordinalMeta;return V?V.categories[N]:N}function b(k,R){R==null&&(R=u);var z=t.getItemVisual(R,"style"),$=z&&z.fill,N=z&&z.opacity,V=y(R,os).getItemStyle();$!=null&&(V.fill=$),N!=null&&(V.opacity=N);var L={inheritColor:oe($)?$:"#000"},G=x(R,os),U=_t(G,null,L,!1,!0);U.text=G.getShallow("show")?Ee(e.getFormattedLabel(R,os),_f(t,R)):null;var B=f0(G,L,!1);return A(k,V),V=XB(V,U,B),k&&C(V,k),V.legacy=!0,V}function w(k,R){R==null&&(R=u);var z=y(R,oo).getItemStyle(),$=x(R,oo),N=_t($,null,null,!0,!0);N.text=$.getShallow("show")?Pa(e.getFormattedLabel(R,oo),e.getFormattedLabel(R,os),_f(t,R)):null;var V=f0($,null,!0);return A(k,z),z=XB(z,N,V),k&&C(z,k),z.legacy=!0,z}function C(k,R){for(var z in R)ce(R,z)&&(k[z]=R[z])}function A(k,R){k&&(k.textFill&&(R.textFill=k.textFill),k.textPosition&&(R.textPosition=k.textPosition))}function T(k,R){if(R==null&&(R=u),ce(YB,k)){var z=t.getItemVisual(R,"style");return z?z[YB[k]]:null}if(ce(APe,k))return t.getItemVisual(R,k)}function M(k){if(a.type==="cartesian2d"){var R=a.getBaseAxis();return iSe(xe({axis:R},k))}}function I(){return r.getCurrentSeriesIndices()}function P(k){return rW(k,r)}}function rke(e){var t={};return D(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 rw(e,t,r,n,i,a,o){if(!n){a.remove(t);return}var s=PP(e,t,r,n,i,a);return s&&o.setItemGraphicEl(r,s),s&&Ut(s,n.focus,n.blurScope,n.emphasisDisabled),s}function PP(e,t,r,n,i,a){var o=-1,s=t;t&&_9(t,n,i)&&(o=ze(a.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=MP(n),s&&KPe(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Jn.normal.cfg=Jn.normal.conOpt=Jn.emphasis.cfg=Jn.emphasis.conOpt=Jn.blur.cfg=Jn.blur.conOpt=Jn.select.cfg=Jn.select.conOpt=null,Jn.isLegacy=!1,ike(u,r,n,i,l,Jn),nke(u,r,n,i,l),IP(e,u,r,n,Jn,i,l),ce(n,"info")&&(ao(u).info=n.info);for(var c=0;c=0?a.replaceAt(u,o):a.add(u),u}function _9(e,t,r){var n=ao(e),i=t.type,a=t.shape,o=t.style;return r.isUniversalTransitionEnabled()||i!=null&&i!==n.customGraphicType||i==="path"&&uke(a)&&w9(a)!==n.customPathData||i==="image"&&ce(o,"image")&&o.image!==n.customImagePath}function nke(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&&_9(o,a,n)&&(o=null),o||(o=MP(a),e.setClipPath(o)),IP(null,o,t,a,null,n,i)}}function ike(e,t,r,n,i,a){if(!e.isGroup){t5(r,null,a),t5(r,oo,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=MP(o),e.setTextContent(c)),IP(null,c,t,o,null,n,i);for(var f=o&&o.style,d=0;d=c;h--){var p=t.childAt(h);oke(t,p,i)}}}function oke(e,t,r){t&&Yx(t,ao(e).option,r)}function ske(e){new xo(e.oldChildren,e.newChildren,r5,r5,e).add(n5).update(n5).remove(lke).execute()}function r5(e,t){var r=e&&e.name;return r??XPe+t}function n5(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,i=t!=null?r.oldChildren[t]:null;PP(r.api,i,r.dataIndex,n,r.seriesModel,r.group)}function lke(e){var t=this.context,r=t.oldChildren[e];r&&Yx(r,ao(r).option,t.seriesModel)}function w9(e){return e&&(e.pathData||e.d)}function uke(e){return e&&(ce(e,"pathData")||ce(e,"d"))}function cke(e){e.registerChartView(JPe),e.registerSeriesModel(IPe)}var Ll=Je(),i5=we,nw=ue,fke=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 Ae,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var d=Pe(a5,r,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,r)}s5(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=eP(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=Ll(t).pointerEl=new wv[a.type](i5(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=Ll(t).labelEl=new rt(i5(r.label));t.add(a),o5(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=Ll(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=Ll(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),o5(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=_v(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){vo(u.event)},onmousedown:nw(this._onHandleDragMove,this,0,0),drift:nw(this._onHandleDragMove,this),ondragend:nw(this._onHandleDragEnd,this)}),n.add(i)),s5(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");q(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,ed(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){a5(this._axisPointerModel,!r&&this._moveAnimation,this._handle,iw(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(iw(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(iw(i)),Ll(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),Bp(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 a5(e,t,r,n){C9(Ll(r).lastProp,n)||(Ll(r).lastProp=n,t?it(r,n,e):(r.stopAnimation(),r.attr(n)))}function C9(e,t){if(Se(e)&&Se(t)){var r=!0;return D(t,function(n,i){r=r&&C9(e[i],n)}),!!r}else return e===t}function o5(e,t){e[t.get(["label","show"])?"show":"hide"]()}function iw(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function s5(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 DP=fke;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 T9(e,t,r,n,i){var a=r.get("value"),o=A9(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Xf(s.get("padding")||0),u=s.getFont(),c=mv(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),dke(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 dke(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 A9(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:UI(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};D(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):me(o)&&(a=o(s))}return a}function LP(e,t,r){var n=_i();return Du(n,n,r.rotation),Na(n,n,r.position),Ui([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function M9(e,t,r,n,i,a){var o=So.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),T9(t,n,i,a,{position:LP(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function EP(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function I9(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function l5(e,t,r,n,i,a){return{cx:e,cy:t,r0:r,r:n,startAngle:i,endAngle:a,clockwise:!0}}var hke=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=u5(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var d=RP(a),h=pke[u](s,f,c);h.style=d,r.graphicKey=h.type,r.pointer=h}var p=rA(l.model,i);M9(n,r,p,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=rA(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=LP(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=u5(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}(DP);function u5(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var pke={line:function(e,t,r){var n=EP([t,r[0]],[t,r[1]],c5(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:I9([t-n/2,r[0]],[n,i],c5(e))}}};function c5(e){return e.dim==="x"?0:1}const vke=hke;var gke=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 mke=gke;var eo=Je(),yke=D;function P9(e,t,r){if(!tt.node){var n=t.getZr();eo(n).records||(eo(n).records={}),xke(n,t);var i=eo(n).records[e]||(eo(n).records[e]={});i.handler=r}}function xke(e,t){if(eo(e).initialized)return;eo(e).initialized=!0,r("click",Pe(f5,"click")),r("mousemove",Pe(f5,"mousemove")),r("globalout",bke);function r(n,i){e.on(n,function(a){var o=_ke(t);yke(eo(e).records,function(s){s&&i(s,a,o.dispatchAction)}),Ske(o.pendings,t)})}}function Ske(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 bke(e,t,r){e.handler("leave",null,r)}function f5(e,t,r,n){t.handler(e,r,n)}function _ke(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 bA(e,t){if(!tt.node){var r=t.getZr(),n=(eo(r).records||{})[e];n&&(eo(r).records[e]=null)}}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.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";P9("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){bA("axisPointer",n)},t.prototype.dispose=function(r,n){bA("axisPointer",n)},t.type="axisPointer",t}(jt);const Cke=wke;function k9(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=yu(a,e);if(o==null||o<0||q(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 d5=Je();function Tke(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||ue(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){ry(i)&&(i=k9({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=ry(i),u=a.axesInfo,c=s.axesInfo,f=n==="leave"||ry(i),d={},h={},p={list:[],map:{}},v={showPointer:Pe(Mke,h),showTooltip:Pe(Ike,p)};D(s.coordSysMap,function(m,y){var x=l||m.containPoint(i);D(s.coordSysAxesInfo[y],function(S,_){var b=S.axis,w=Rke(u,S);if(!f&&x&&(!u||w)){var C=w&&w.value;C==null&&!l&&(C=b.pointToData(i)),C!=null&&h5(S,C,v,!1,d)}})});var g={};return D(c,function(m,y){var x=m.linkGroup;x&&!h[y]&&D(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,p5(S),p5(m)))),g[m.key]=w}})}),D(g,function(m,y){h5(c[y],m,v,!0,d)}),Pke(h,c,d),kke(p,i,e,o),Dke(c,o,r),d}}function h5(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=Ake(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&Y(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function Ake(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return D(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),D(d,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function Mke(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function Ike(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=Wp(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 Pke(e,t,r){var n=r.axesInfo=[];D(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 kke(e,t,r,n){if(ry(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 Dke(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=d5(n)[i]||{},o=d5(n)[i]={};D(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&D(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];D(a,function(u,c){!o[c]&&l.push(u)}),D(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 Rke(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 p5(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 ry(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Nv(e){Nu.registerAxisPointerClass("CartesianAxisPointer",vke),e.registerComponentModel(mke),e.registerComponentView(Cke),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!q(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=xwe(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Tke)}function Lke(e){Fe(r8),Fe(Nv)}var Eke=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=Nke[d](s,l,f,c);p.style=h,r.graphicKey=p.type,r.pointer=p}var v=a.get(["label","margin"]),g=Oke(n,i,a,l,v);T9(r,i,a,o,g)},t}(DP);function Oke(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=_i();Du(d,d,s),Na(d,d,[n.cx,n.cy]),u=Ui([o,-i],d);var h=t.getModel("axisLabel").get("rotate")||0,p=So.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 Nke={line:function(e,t,r,n){return e.dim==="angle"?{type:"Line",shape:EP(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:l5(t.cx,t.cy,n[0],n[1],(-r-i/2)*a,(-r+i/2)*a)}:{type:"Sector",shape:l5(t.cx,t.cy,r-i/2,r+i/2,0,Math.PI*2)}}};const zke=Eke;var Bke=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 Fke=Bke;var OP=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",or).models[0]},t.type="polarAxis",t}(et);lr(OP,Iv);var $ke=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}(OP),Vke=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}(OP),NP=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}(Qi);NP.prototype.dataToRadius=Qi.prototype.dataToCoord;NP.prototype.radiusToData=Qi.prototype.coordToData;const Gke=NP;var Hke=Je(),zP=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=mv(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=Hke(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}(Qi);zP.prototype.dataToAngle=Qi.prototype.dataToCoord;zP.prototype.angleToData=Qi.prototype.coordToData;const Wke=zP;var D9=["radius","angle"],Uke=function(){function e(t){this.dimensions=D9,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Gke,this._angleAxis=new Wke,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=v5(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=v5(r);return i===this?this.pointToData(n):null},e}();function v5(e){var t=e.seriesModel,r=e.polarModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}const jke=Uke;function Yke(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%"]:q(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 qke(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();D(w0(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),D(w0(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),bf(n.scale,n.model),bf(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 Xke(e){return e.mainType==="angleAxis"}function g5(e,t){if(e.type=t.get("type"),e.scale=Fx(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),Xke(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 Zke={dimensions:D9,create:function(e,t){var r=[];return e.eachComponent("polar",function(n,i){var a=new jke(i+"");a.update=qke;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");g5(o,l),g5(s,u),Yke(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",or).models[0];n.coordinateSystem=i.coordinateSystem}}),r}};const Kke=Zke;var Qke=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function um(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 cm(e){var t=e.getRadiusAxis();return t.inverse?0:1}function m5(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 Jke=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=we(c);var f=i.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(d),c});m5(u),m5(s),D(Qke,function(c){r.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&eDe[c](this.group,r,a,s,l,o,u)},this)}},t.type="angleAxis",t}(Nu),eDe={axisLine:function(e,t,r,n,i,a){var o=t.getModel(["axisLine","lineStyle"]),s=cm(r),l=s?0:1,u;a[l]===0?u=new $a({shape:{cx:r.cx,cy:r.cy,r:a[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new Sx({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[cm(r)],u=Z(n,function(c){return new Tr({shape:um(r,[l,l+s],c.coord)})});e.add(hi(u,{style:xe(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[cm(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];Se(_)&&_.textStyle&&(h=new wt(_.textStyle,l,l.ecModel))}var b=new rt({silent:So.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=So.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=f.rawLabel,Ie(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",P=w;_&&(n[c][M]||(n[c][M]={p:w,n:w}),P=n[c][M][I]);var k=void 0,R=void 0,z=void 0,$=void 0;if(p.dim==="radius"){var N=p.dataToCoord(T)-w,V=l.dataToCoord(M);Math.abs(N)=$})}}})}function uDe(e){var t={};D(e,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=L9(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=R9(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 D(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),D(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=y5(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=y5(r);return i===this?this.pointToData(n):null},e}();function y5(e){var t=e.seriesModel,r=e.singleAxisModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function _De(e,t){var r=[];return e.eachComponent("singleAxis",function(n,i){var a=new bDe(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",or).models[0];n.coordinateSystem=i&&i.coordinateSystem}}),r}var wDe={create:_De,dimensions:O9};const CDe=wDe;var x5=["x","y"],TDe=["width","height"],ADe=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=ow(l,1-B0(s)),c=l.dataToPoint(n)[0],f=a.get("type");if(f&&f!=="none"){var d=RP(a),h=MDe[f](s,c,u);h.style=d,r.graphicKey=h.type,r.pointer=h}var p=_A(i);M9(n,r,p,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=_A(n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=LP(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=B0(o),u=ow(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=ow(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}(DP),MDe={line:function(e,t,r){var n=EP([t,r[0]],[t,r[1]],B0(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:I9([t-n/2,r[0]],[n,i],B0(e))}}};function B0(e){return e.isHorizontal()?0:1}function ow(e,t){var r=e.getRect();return[r[x5[t]],r[x5[t]]+r[TDe[t]]]}const IDe=ADe;var 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.type="single",t}(jt);function kDe(e){Fe(Nv),Nu.registerAxisPointerClass("SingleAxisPointer",IDe),e.registerComponentView(PDe),e.registerComponentView(yDe),e.registerComponentModel(aw),wf(e,"single",aw,aw.defaultOption),e.registerCoordinateSystem("single",CDe)}var 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.init=function(r,n,i){var a=Zf(r);e.prototype.init.apply(this,arguments),S5(r,a)},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),S5(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 S5(e,t){var r=e.cellSize,n;q(r)?n=r:n=e.cellSize=[r,r],n.length===1&&(n[1]=n[0]);var i=Z([0,1],function(a){return Nye(t,a)&&(n[a]="auto"),n[a]!=null&&n[a]!=="auto"});Rs(e,t,{type:"box",ignoreSize:i})}const RDe=DDe;var LDe=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 kn({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?Lye(r,n):me(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=DT(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/sw)-Math.floor(r[0].time/sw)+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 b5(e){var t=e.calendarModel,r=e.seriesModel,n=t?t.coordinateSystem:r?r.coordinateSystem:null;return n}const NDe=ODe;function zDe(e){e.registerComponentModel(RDe),e.registerComponentView(EDe),e.registerCoordinateSystem("calendar",NDe)}function BDe(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 _5(e,t){var r;return D(t,function(n){e[n]!=null&&e[n]!=="auto"&&(r=!0)}),r}function FDe(e,t,r){var n=Y({},r),i=e[t],a=r.$action||"merge";a==="merge"?i?(Oe(i,n,!0),Rs(i,n,{ignoreSize:!0}),bW(r,i),fm(r,i),fm(r,i,"shape"),fm(r,i,"style"),fm(r,i,"extra"),r.clipPath=i.clipPath):e[t]=n:a==="replace"?e[t]=n:a==="remove"&&i&&(e[t]=null)}var N9=["transition","enterFrom","leaveTo"],$De=N9.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function fm(e,t,r){if(r&&(!e[r]&&t[r]&&(e[r]={}),e=e[r],t=t[r]),!(!e||!t))for(var n=r?N9:$De,i=0;i=0;c--){var f=i[c],d=dr(f.id,null),h=d!=null?o.get(d):null;if(h){var p=h.parent,m=ii(p),y=p===a?{width:s,height:l}:{width:m.width,height:m.height},x={},S=Dx(h,f,y,null,{hv:f.hv,boundingMode:f.bounding},x);if(!ii(h).isNew&&S){for(var _=f.transition,b={},w=0;w=0)?b[C]=A:h[C]=A}it(h,b,r,0)}else h.attr(x)}}},t.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(i){ny(i,ii(i).option,n,r._lastGraphicModel)}),this._elMap=ve()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(jt);function wA(e){var t=ce(w5,e)?w5[e]:vI(e),r=new t({});return ii(r).type=e,r}function C5(e,t,r,n){var i=wA(r);return t.add(i),n.set(e,i),ii(i).id=e,ii(i).isNew=!0,i}function ny(e,t,r,n){var i=e&&e.parent;i&&(e.type==="group"&&e.traverse(function(a){ny(a,t,r,n)}),Yx(e,t,n),r.removeKey(ii(e).id))}function T5(e,t,r,n){e.isGroup||D([["cursor",wi.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(i){var a=i[0];ce(t,a)?e[a]=Ee(t[a],i[1]):e[a]==null&&(e[a]=i[1])}),D(He(t),function(i){if(i.indexOf("on")===0){var a=t[i];e[i]=me(a)?a:null}}),ce(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function WDe(e){return e=Y({},e),D(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(SW),function(t){delete e[t]}),e}function UDe(e,t,r){var n=Ie(e).eventData;!e.silent&&!e.ignore&&!n&&(n=Ie(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=r.info)}function jDe(e){e.registerComponentModel(GDe),e.registerComponentView(HDe),e.registerPreprocessor(function(t){var r=t.graphic;q(r)?!r[0]||!r[0].elements?t.graphic=[{elements:r}]:t.graphic=[t.graphic[0]]:r&&!r.elements&&(t.graphic=[{elements:[r]}])})}var A5=["x","y","radius","angle","single"],YDe=["cartesian2d","polar","singleAxis"];function qDe(e){var t=e.get("coordinateSystem");return ze(YDe,t)>=0}function ss(e){return e+"Axis"}function XDe(e,t){var r=ve(),n=[],i=ve();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 z9(e){var t=e.ecModel,r={infoList:[],infoMap:ve()};return e.eachTargetAxis(function(n,i){var a=t.getComponent(ss(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 lw=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}(),ZDe=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=M5(r);this.settledOption=a,this.mergeDefaultAndTheme(r,i),this._doInit(a)},t.prototype.mergeOption=function(r){var n=M5(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;D([["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=ve(),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 D(A5,function(i){var a=this.getReferringComponents(ss(i),dge);if(a.specified){n=!0;var o=new lw;D(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 lw;if(d.add(f.componentIndex),r.set(c,d),a=!1,c==="x"||c==="y"){var h=f.getReferringComponents("grid",or).models[0];h&&D(u,function(p){f.componentIndex!==p.componentIndex&&h===p.getReferringComponents("grid",or).models[0]&&d.add(p.componentIndex)})}}}a&&D(A5,function(u){if(a){var c=i.findComponents({mainType:ss(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new lw;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");D([["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(ss(n),i))},this),r},t.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(i,a){D(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(ss(r),n)},t.prototype.setRawRange=function(r){var n=this.option,i=this.settledOption;D([["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;D(["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 bc(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)}});bc(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;bc(["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=ct(n[0]+o,n,[0,100],!0):a!=null&&(o=ct(a,[0,100],n,!0)-n[0]),t[i+"Span"]=a,t[i+"ValueSpan"]=o},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),r=this._percentWindow,n=this._valueWindow;if(r){var i=qH(n,[0,500]);i=Math.min(i,20);var a=t.axis.scale.rawExtentInfo;r[0]!==0&&a.setDeterminedMinMax("min",+n[0].toFixed(i)),r[1]!==100&&a.setDeterminedMinMax("max",+n[1].toFixed(i)),a.freeze()}},e}();function nRe(e,t,r){var n=[1/0,-1/0];bc(r,function(o){MSe(n,o.getData(),t)});var i=e.getAxisModel(),a=ej(i.axis.scale,i,n).calculate();return[a.min,a.max]}const iRe=rRe;var aRe={getTargetSeries:function(e){function t(i){e.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=e.getComponent(ss(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 iRe(i,a,s,e),r.push(o.__dzAxisProxy))});var n=ve();return D(r,function(i){D(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 oRe=aRe;function sRe(e){e.registerAction("dataZoom",function(t,r){var n=XDe(r,t);D(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var P5=!1;function FP(e){P5||(P5=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,oRe),sRe(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function lRe(e){e.registerComponentModel(QDe),e.registerComponentView(tRe),FP(e)}var di=function(){function e(){}return e}(),B9={};function _c(e,t){B9[e]=t}function F9(e){return B9[e]}var uRe=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;D(this.option.feature,function(n,i){var a=F9(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 cRe=uRe;function fRe(e,t,r){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:r.getWidth(),height:r.getHeight()},o=hr(n,a,i);ou(t.get("orient"),e,t.get("itemGap"),o.width,o.height),Dx(e,n,a,i)}function $9(e,t){var r=Xf(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 dRe=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=[];D(u,function(p,v){f.push(v)}),new xo(this._featureNames||[],f).add(d).update(d).remove(Pe(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(hRe(g))S={onclick:x.option.onclick,featureName:g};else{var _=F9(g);if(!_)return;S=new _}c[g]=S}else if(S=c[m],!S)return;S.uid=qf("toolbox-feature"),S.model=x,S.ecModel=n,S.api=i;var b=S instanceof di;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"?mo:yo)(T[w])},S instanceof di&&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 di&&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={};D(_,function(C,A){var T=_v(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 I=new rt({style:{text:b[A],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null},ignore:!0});T.setTextContent(I),jf({el:T,componentModel:r,itemName:A,formatterParamsExtra:{title:b[A]}}),T.__title=b[A],T.on("mouseover",function(){var P=y.getItemStyle(),k=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:y.get("textFill")||P.fill||P.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),T.setTextConfig({position:y.get("textPosition")||k}),I.ignore=!r.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",A])!=="emphasis"&&i.leaveEmphasis(this),I.hide()}),(p.get(["iconStatus",A])==="emphasis"?mo:yo)(T),o.add(T),T.on("click",ue(v.onclick,v,n,i,A)),w[A]=T})}fRe(o,r,i),o.add($9(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&&!me(x)&&v){var S=x.style||(x.style={}),_=mv(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){D(this._features,function(o){o instanceof di&&o.updateView&&o.updateView(o.model,n,i,a)})},t.prototype.remove=function(r,n){D(this._features,function(i){i instanceof di&&i.remove&&i.remove(r,n)}),this.group.removeAll()},t.prototype.dispose=function(r,n){D(this._features,function(i){i instanceof di&&i.dispose&&i.dispose(r,n)})},t.type="toolbox",t}(jt);function hRe(e){return e.indexOf("my")===0}const pRe=dRe;var vRe=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(me(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}(di);const gRe=vRe;var k5="__ec_magicType_stack__",mRe=[["line","bar"],["stack"]],yRe=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 D(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(D5[i]){var s={series:[]},l=function(f){var d=f.subType,h=f.id,p=D5[i](d,h,f,a);p&&(xe(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,or).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"}}};D(mRe,function(f){ze(f,i)>=0&&D(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}(di),D5={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")===k5;if(e==="line"||e==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),Oe({id:t,stack:i?"":k5},n.get(["option","stack"])||{},!0)}};Ga({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});const xRe=yRe;var qx=new Array(60).join("-"),Af=" ";function SRe(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 bRe(e){var t=[];return D(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()];D(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(Af)],c=0;c=0)return!0}var CA=new RegExp("["+Af+"]+","g");function xRe(e){for(var t=e.split(/\n+/g),r=z0(t.shift()).split(CA),n=[],i=Z(r,function(l){return{name:l,data:[]}}),a=0;a=0)return!0}var CA=new RegExp("["+Af+"]+","g");function TRe(e){for(var t=e.split(/\n+/g),r=F0(t.shift()).split(CA),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 ARe(e){var t=FP(e),r=t[t.length-1];t.length>1&&t.pop();var n={};return z9(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 MRe(e){B9(e).snapshots=null}function IRe(e){return FP(e).length}function FP(e){var t=B9(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var PRe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){MRe(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}(di);Ga({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});const kRe=PRe;var DRe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],RRe=function(){function e(t,r,n){var i=this;this._targetInfoList=[];var a=k5(r,t);D(LRe,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=uw[n.brushType](0,a,i);n.__rangeOffset={offset:E5[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,r,n){D(t,function(i){var a=this.findTargetInfo(i,r);a&&a!==!0&&D(a.coordSyses,function(o){var s=uw[i.brushType](1,o,i.range,!0);n(i,s.values,o,r)})},this)},e.prototype.setInputRanges=function(t,r){D(t,function(n){var i=this.findTargetInfo(n,r);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=uw[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?E5[n.brushType](a.values,o.offset,ERe(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:U8(i),isTargetByCursor:Y8(i,t,n.coordSysModel),getLinearBrushOtherExtent:j8(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=k5(r,t),a=0;ae[1]&&e.reverse(),e}function k5(e,t){return Fh(e,t,{includeMainTypes:DRe})}var LRe={grid:function(e,t){var r=e.xAxisModels,n=e.yAxisModels,i=e.gridModels,a=ve(),o={},s={};!r&&!n&&!i||(D(r,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),D(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),D(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=[];D(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:R5.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){D(e.geoModels,function(r){var n=r.coordinateSystem;t.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:R5.geo})})}},D5=[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}],R5={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(au(e)),t}},uw={lineX:Pe(L5,0),lineY:Pe(L5,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=[TA([i[0],a[0]]),TA([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 L5(e,t,r,n){var i=r.getAxis(["x","y"][e]),a=TA(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 E5={lineX:Pe(O5,0),lineY:Pe(O5,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 O5(e,t,r,n){return[t[0]-n[e]*r[0],t[1]-n[e]*r[1]]}function ERe(e,t){var r=N5(e),n=N5(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 N5(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}const $P=RRe;var AA=D,ORe=tge("toolbox-dataZoom_"),NRe=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 SP(i.getZr()),this._brushController.on("brush",ue(this._onBrush,this)).mount()),FRe(r,n,this,a,i),BRe(r,n)},t.prototype.onclick=function(r,n,i){zRe[i].call(this)},t.prototype.remove=function(r,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(r,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(r){var n=r.areas;if(!r.isEnd||!n.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new $P(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)}}),TRe(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=[];AA(r,function(i,a){n.push(we(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}(di),zRe={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(ARe(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 BRe(e,t){e.setIconStatus("back",IRe(t)>1?"emphasis":"normal")}function FRe(e,t,r,n,i){var a=r._isZoomActive;n&&n.type==="takeGlobalCursor"&&(a=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),r._isZoomActive=a,e.setIconStatus("zoom",a?"emphasis":"normal");var o=new $P(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)}Nye("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=Fh(e,a);AA(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),AA(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:ORe+u+f};d[c]=f,i.push(d)}return i});const $Re=NRe;function VRe(e){e.registerComponentModel(iRe),e.registerComponentView(lRe),_c("saveAsImage",cRe),_c("magicType",hRe),_c("dataView",CRe),_c("dataZoom",$Re),_c("restore",kRe),Fe(rRe)}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.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 HRe=GRe;function F9(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function $9(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 ZRe(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?","+GP+n:",left"+n+",top"+n),jRe+":"+i}function z5(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;"+GP+":"+o+";":[["top",0],["left",0],[V9,o]]}function KRe(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),D(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function QRe(e,t,r){var n=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),f=ZW(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+d),t&&i&&n.push(ZRe(i,r)),a&&n.push("background-color:"+a),D(["width","color","radius"],function(h){var p="border-"+h,v=pW(p),g=e.get(v);g!=null&&n.push(p+":"+g+(h==="color"?"":"px"))}),n.push(KRe(c)),f!=null&&n.push("padding:"+Xf(f).join("px ")+"px"),n.join(";")+";"}function B5(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&Ape(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 JRe=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;B5(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();ti(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=URe(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=YRe+QRe(t,!this._firstShow,this._longHide)+z5(a[0],a[1],!0)+("border-color:"+bu(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"&&!F9(n)&&(s=XRe(n,i,a)),oe(t))o.innerHTML=t+s;else if(t){o.innerHTML="",q(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=V5(a,i);this._ticket="";var s=a.dataByCoordSys,l=lLe(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=nLe;c.x=a.x,c.y=a.y,c.update(),Ie(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=A9(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(V5(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=Wd([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;Yl(i,function(u){if(Ie(u).dataIndex!=null)return s=u,!0;if(Ie(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=ue(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=Wd([n.tooltipOption],a),l=this._renderMode,u=[],c=xr("section",{blocks:[],noHeader:!0}),f=[],d=new qb;D(r,function(y){D(y.dataByAxis,function(x){var S=i.getComponent(x.axisDim+"Axis",x.axisIndex),_=x.value;if(!(!S||_==null)){var b=_9(_,S.axis,i,x.seriesDataIndices,x.valueLabelOpt),w=xr("section",{header:b,noHeader:!Fi(b),sortBlocks:!0,blocks:[]});c.blocks.push(w),D(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=WI(S.axis,{value:_}),M.axisValueLabel=b,M.marker=d.makeTooltipMarker("item",bu(M.color),l);var I=MO(A.formatTooltip(T,!0,null)),P=I.frag;if(P){var k=Wd([A],a).get("valueFormatter");w.blocks.push(k?Y({valueFormatter:k},P):P)}I.text&&f.push(I.text),u.push(M)}})}})}),c.blocks.reverse(),f.reverse();var h=n.position,p=s.get("order"),v=LO(c,d,l,p,i.get("useUTC"),s.get("textStyle"));v&&f.unshift(v);var g=l==="richText"?` +*`,"g")),n={series:[]};return D(r,function(i,a){if(CRe(i)){var o=TRe(i),s=t[a],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=ARe(i);n.series.push(o)}}),n}var IRe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var i=n.getDom(),a=this.model;this._dom&&i.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=a.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=a.get("lang")||[];s.innerHTML=l[0]||a.get("title"),s.style.cssText="margin:10px 20px",s.style.color=a.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var f=a.get("optionToContent"),d=a.get("contentToOption"),h=wRe(r);if(me(f)){var p=f(n.getOption());oe(p)?u.innerHTML=p:Cp(p)&&u.appendChild(p)}else{c.readOnly=a.get("readOnly");var v=c.style;v.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",v.color=a.get("textColor"),v.borderColor=a.get("textareaBorderColor"),v.backgroundColor=a.get("textareaColor"),c.value=h.value,u.appendChild(c)}var g=h.meta,m=document.createElement("div");m.style.cssText="position:absolute;bottom:5px;left:0;right:0";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",x=document.createElement("div"),S=document.createElement("div");y+=";background-color:"+a.get("buttonColor"),y+=";color:"+a.get("buttonTextColor");var _=this;function b(){i.removeChild(o),_._dom=null}iT(x,"click",b),iT(S,"click",function(){if(d==null&&f!=null||d!=null&&f==null){b();return}var w;try{me(d)?w=d(u,n.getOption()):w=MRe(c.value,g)}catch(C){throw b(),new Error("Data view format error "+C)}w&&n.dispatchAction({type:"changeDataView",newOption:w}),b()}),x.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=x.style.cssText=y,!a.get("readOnly")&&m.appendChild(S),m.appendChild(x),o.appendChild(s),o.appendChild(u),o.appendChild(m),u.style.height=i.clientHeight-80+"px",i.appendChild(o),this._dom=o},t.prototype.remove=function(r,n){this._dom&&n.getDom().removeChild(this._dom)},t.prototype.dispose=function(r,n){this.remove(r,n)},t.getDefaultOption=function(r){var n={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:r.getLocaleModel().get(["toolbox","dataView","title"]),lang:r.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return n},t}(di);function PRe(e,t){return Z(e,function(r,n){var i=t&&t[n];if(Se(i)&&!q(i)){var a=Se(r)&&!q(r);a||(r={value:r});var o=i.name!=null&&r.name==null;return r=xe(r,i),o&&delete r.name,r}else return r})}Ga({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var r=[];D(e.newOption.series,function(n){var i=t.getSeriesByName(n.name)[0];if(!i)r.push(Y({type:"scatter"},n));else{var a=i.get("data");r.push({name:n.name,data:PRe(n.data,a)})}}),t.mergeOption(xe({series:r},e.newOption))});const kRe=IRe;var V9=D,G9=Je();function DRe(e,t){var r=$P(e);V9(t,function(n,i){for(var a=r.length-1;a>=0;a--){var o=r[a];if(o[i])break}if(a<0){var s=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();r[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),r.push(t)}function RRe(e){var t=$P(e),r=t[t.length-1];t.length>1&&t.pop();var n={};return V9(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 LRe(e){G9(e).snapshots=null}function ERe(e){return $P(e).length}function $P(e){var t=G9(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var ORe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){LRe(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}(di);Ga({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});const NRe=ORe;var zRe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],BRe=function(){function e(t,r,n){var i=this;this._targetInfoList=[];var a=R5(r,t);D(FRe,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=uw[n.brushType](0,a,i);n.__rangeOffset={offset:N5[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,r,n){D(t,function(i){var a=this.findTargetInfo(i,r);a&&a!==!0&&D(a.coordSyses,function(o){var s=uw[i.brushType](1,o,i.range,!0);n(i,s.values,o,r)})},this)},e.prototype.setInputRanges=function(t,r){D(t,function(n){var i=this.findTargetInfo(n,r);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=uw[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?N5[n.brushType](a.values,o.offset,$Re(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:X8(i),isTargetByCursor:K8(i,t,n.coordSysModel),getLinearBrushOtherExtent:Z8(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=R5(r,t),a=0;ae[1]&&e.reverse(),e}function R5(e,t){return Fh(e,t,{includeMainTypes:zRe})}var FRe={grid:function(e,t){var r=e.xAxisModels,n=e.yAxisModels,i=e.gridModels,a=ve(),o={},s={};!r&&!n&&!i||(D(r,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),D(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),D(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=[];D(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:E5.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){D(e.geoModels,function(r){var n=r.coordinateSystem;t.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:E5.geo})})}},L5=[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}],E5={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(au(e)),t}},uw={lineX:Pe(O5,0),lineY:Pe(O5,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=[TA([i[0],a[0]]),TA([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 O5(e,t,r,n){var i=r.getAxis(["x","y"][e]),a=TA(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 N5={lineX:Pe(z5,0),lineY:Pe(z5,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 z5(e,t,r,n){return[t[0]-n[e]*r[0],t[1]-n[e]*r[1]]}function $Re(e,t){var r=B5(e),n=B5(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 B5(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}const VP=BRe;var AA=D,VRe=sge("toolbox-dataZoom_"),GRe=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 bP(i.getZr()),this._brushController.on("brush",ue(this._onBrush,this)).mount()),URe(r,n,this,a,i),WRe(r,n)},t.prototype.onclick=function(r,n,i){HRe[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 VP(GP(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)}}),DRe(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=[];AA(r,function(i,a){n.push(we(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}(di),HRe={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(RRe(this.ecModel))}};function GP(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 WRe(e,t){e.setIconStatus("back",ERe(t)>1?"emphasis":"normal")}function URe(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 VP(GP(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)}Gye("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=GP(n),o=Fh(e,a);AA(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),AA(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:VRe+u+f};d[c]=f,i.push(d)}return i});const jRe=GRe;function YRe(e){e.registerComponentModel(cRe),e.registerComponentView(pRe),_c("saveAsImage",gRe),_c("magicType",xRe),_c("dataView",kRe),_c("dataZoom",jRe),_c("restore",NRe),Fe(lRe)}var qRe=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 XRe=qRe;function H9(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function W9(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 rLe(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),QRe+":"+i}function F5(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],[U9,o]]}function nLe(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),D(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function iLe(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=eU(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+d),t&&i&&n.push(rLe(i,r)),a&&n.push("background-color:"+a),D(["width","color","radius"],function(h){var p="border-"+h,v=yW(p),g=e.get(v);g!=null&&n.push(p+":"+g+(h==="color"?"":"px"))}),n.push(nLe(c)),f!=null&&n.push("padding:"+Xf(f).join("px ")+"px"),n.join(";")+";"}function $5(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&Rpe(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 aLe=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;$5(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();ti(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=KRe(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=JRe+iLe(t,!this._firstShow,this._longHide)+F5(a[0],a[1],!0)+("border-color:"+bu(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"&&!H9(n)&&(s=tLe(n,i,a)),oe(t))o.innerHTML=t+s;else if(t){o.innerHTML="",q(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=H5(a,i);this._ticket="";var s=a.dataByCoordSys,l=pLe(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=uLe;c.x=a.x,c.y=a.y,c.update(),Ie(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=k9(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(H5(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=Wd([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;Yl(i,function(u){if(Ie(u).dataIndex!=null)return s=u,!0;if(Ie(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=ue(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=Wd([n.tooltipOption],a),l=this._renderMode,u=[],c=xr("section",{blocks:[],noHeader:!0}),f=[],d=new qb;D(r,function(y){D(y.dataByAxis,function(x){var S=i.getComponent(x.axisDim+"Axis",x.axisIndex),_=x.value;if(!(!S||_==null)){var b=A9(_,S.axis,i,x.seriesDataIndices,x.valueLabelOpt),w=xr("section",{header:b,noHeader:!Fi(b),sortBlocks:!0,blocks:[]});c.blocks.push(w),D(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=UI(S.axis,{value:_}),M.axisValueLabel=b,M.marker=d.makeTooltipMarker("item",bu(M.color),l);var I=PO(A.formatTooltip(T,!0,null)),P=I.frag;if(P){var k=Wd([A],a).get("valueFormatter");w.blocks.push(k?Y({valueFormatter:k},P):P)}I.text&&f.push(I.text),u.push(M)}})}})}),c.blocks.reverse(),f.reverse();var h=n.position,p=s.get("order"),v=OO(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=Ie(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=Wd([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 qb;m.marker=y.makeTooltipMarker("item",bu(m.color),h);var x=MO(u.formatTooltip(c,!1,f)),S=v.get("order"),_=v.get("valueFormatter"),b=x.frag,w=b?LO(_?Y({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=Ie(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=Wd(u,this._tooltipModel,f?{position:f}:null),h=d.get("content"),p=Math.random()+"",v=new qb;this._showOrMove(d,function(){var g=we(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=q(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=d,y&&(h=Ax(m.axisValue,h,g)),h=vW(h,i,!0)}else if(me(d)){var x=ue(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"||q(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!q(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),me(n)&&(n=n([i,a],s,o.el,p,{viewSize:[u,c],contentSize:f.slice()})),q(n))i=ne(n[0],u),a=ne(n[1],c);else if(Se(n)){var v=n;v.width=f[0],v.height=f[1];var g=hr(v,{width:u,height:c});i=g.x,a=g.y,d=null,h=null}else if(oe(n)&&l){var m=sLe(n,p,f,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=aLe(i,a,o,u,c,d?null:20,h?null:20);i=m[0],a=m[1]}if(d&&(i-=G5(d)?f[0]/2:d==="right"?f[0]:0),h&&(a-=G5(h)?f[1]/2:h==="bottom"?f[1]:0),F9(r)){var m=oLe(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&&D(i,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&D(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&&D(v,function(m,y){var x=g[y];o=o&&m.seriesIndex===x.seriesIndex&&m.dataIndex===x.dataIndex}),a&&D(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()||(Bp(this,"_updatePosition"),this._tooltipContent.dispose(),bA("itemTooltip",n))},t.type="tooltip",t}(jt);function Wd(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 V5(e,t){return e.dispatchAction||ue(t.dispatchAction,t)}function aLe(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 oLe(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 sLe(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 G5(e){return e==="center"||e==="middle"}function lLe(e,t,r){var n=tI(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=gv(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=Ie(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const uLe=iLe;function cLe(e){Fe(Ev),e.registerComponentModel(HRe),e.registerComponentView(uLe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},rr),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},rr)}var fLe=["rect","polygon","keep","clear"];function dLe(e,t){var r=pt(e?e.brush:[]);if(r.length){var n=[];D(r,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var i=e&&e.toolbox;q(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),hLe(s),t&&!s.length&&s.push.apply(s,fLe)}}function hLe(e){var t={};D(e,function(r){t[r]=1}),e.length=0,D(t,function(r,n){e.push(n)})}var H5=D;function W5(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function MA(e,t,r){var n={};return H5(t,function(a){var o=n[a]=i();H5(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=we(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 H9(e,t,r){var n;D(r,function(i){t.hasOwnProperty(i)&&W5(t[i])&&(n=!0)}),n&&D(r,function(i){t.hasOwnProperty(i)&&W5(t[i])?e[i]=we(t[i]):delete e[i]})}function pLe(e,t,r,n,i,a){var o={};D(e,function(f){var d=Or.prepareVisualTypes(t[f]);o[f]=d});var s;function l(f){return RI(r,s,f)}function u(f,d){oU(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&&X5(t)}};function X5(e){return new Ne(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var _Le=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 SP(n.getZr())).on("brush",ue(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){W9(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:we(i),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:we(i),$from:n})},t.type="brush",t}(jt);const wLe=_Le;var CLe="#ddd",TLe=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&&H9(i,r,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:CLe},a.hasOwnProperty("liftZ")||(a.liftZ=5)},t.prototype.setAreas=function(r){r&&(this.areas=Z(r,function(n){return Z5(this.option,n)},this))},t.prototype.setBrushOption=function(r){this.brushOption=Z5(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 Z5(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 ALe=TLe;var MLe=["rect","polygon","lineX","lineY","keep","clear"],ILe=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,D(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 D(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:MLe.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}(di);const PLe=ILe;function kLe(e){e.registerComponentView(wLe),e.registerComponentModel(ALe),e.registerPreprocessor(dLe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,mLe),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),_c("brush",PLe)}var DLe=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),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.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(){f0(p,"_"+r.get("target"))}),v&&h.on("click",function(){f0(v,"_"+r.get("subtarget"))}),Ie(c).eventData=Ie(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=hr(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}(jt);function LLe(e){e.registerComponentModel(DLe),e.registerComponentView(RLe)}var ELe=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=[],D(n,function(u,c){var f=dr(Hf(u),""),d;Se(u)?(d=we(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 sn([{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 K5=ELe;var U9=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=Ws(K5.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}(K5);lr(U9,MI.prototype);const OLe=U9;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.type="timeline",t}(jt);const zLe=NLe;var BLe=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}(Qi);const FLe=BLe;var fw=Math.PI,Q5=Je(),$Le=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 xr("nameValue",{noName:!0,value:c})},D(["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=GLe(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:fw/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*fw/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=_i(),l=o.x,u=o.y+o.height;Na(s,s,[-l,-u]),Du(s,s,-fw/2),Na(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=VLe(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 FLe("value",o,r.axisExtent,a);return l.model=n,l},t.prototype._createGroup=function(r){var n=this[r]=new Ae;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:Y({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:xe({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=[],D(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:ue(o._changeTimeline,o,u.value)},g=J5(f,d,n,v);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),iu(g);var m=Ie(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=[],D(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:ue(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),iu(m),Q5(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",ue(this._changeTimeline,this,f?"-":"+")),d(r.prevBtnPosition,"prev",ue(this._changeTimeline,this,f?"+":"-")),d(r.playPosition,c?"stop":"play",ue(this._handlePlayClick,this,!c),!0);function d(h,p,v,g){if(h){var m=Xi(Ee(a.get(["controlStyle",p+"BtnSize"]),o),o),y=[0,-m/2,m,m],x=HLe(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),iu(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=ue(u._handlePointerDrag,u),f.ondragend=ue(u._handlePointerDragend,u),eF(f,u._progressLine,s,i,a,!0)},onUpdate:function(f){eF(f,u._progressLine,s,i,a)}};this._currentPointer=J5(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=gi(a.getExtent().slice());i>o[1]&&(i=o[1]),i=0&&(o[a]=+o[a].toFixed(d)),[o,f]}var dw={min:Pe(dm,"min"),max:Pe(dm,"max"),average:Pe(dm,"average"),median:Pe(dm,"median")};function Kp(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,i=n&&n.dimensions;if(!KLe(t)&&!q(t.coord)&&q(i)){var a=Y9(t,r,n,e);if(t=we(t),t.type&&dw[t.type]&&a.baseAxis&&a.valueAxis){var o=ze(i,a.baseAxis.dim),s=ze(i,a.valueAxis.dim),l=dw[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||!q(i))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)dw[u[c]]&&(u[c]=WP(r,r.mapDimension(i[c]),u[c]));return t}}function Y9(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(QLe(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 QLe(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function Qp(e,t){return e&&e.containData&&t.coord&&!PA(t)?e.containData(t.coord):!0}function JLe(e,t,r){return e&&e.containZone&&t.coord&&r.coord&&!PA(t)&&!PA(r)?e.containZone(t.coord,r.coord):!0}function q9(e,t){return e?function(r,n,i,a){var o=a<2?r.coord&&r.coord[a]:r.value;return Ss(o,t[a])}:function(r,n,i,a){return Ss(r.value,t[a])}}function WP(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 hw=Je(),eEe=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=ve()},t.prototype.render=function(r,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){hw(s).keep=!1}),n.eachSeries(function(s){var l=zs.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!hw(s).keep&&a.group.remove(s.group)})},t.prototype.markKeep=function(r){hw(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var i=this;D(r,function(a){var o=zs.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?_6(l):sI(l))})}})},t.type="marker",t}(jt);const UP=eEe;function rF(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 tEe=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=zs.getMarkerModelFromSeries(a,"markPoint");o&&(rF(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 Iv),f=rEe(o,r,n);n.setData(f),rF(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(me(p)||me(v)||me(g)||me(m)){var x=n.getRawValue(d),S=n.getDataParams(d);me(p)&&(p=p(x,S)),me(v)&&(v=v(x,S)),me(g)&&(g=g(x,S)),me(m)&&(m=m(x,S))}var _=h.getModel("itemStyle").getItemStyle(),b=wv(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){Ie(h).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markPoint",t}(UP);function rEe(e,t,r){var n;e?n=Z(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return Y(Y({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new sn(n,r),a=Z(r.get("data"),Pe(Kp,t));e&&(a=ft(a,Pe(Qp,e)));var o=q9(!!e,n);return i.initData(a,null,o),i}const nEe=tEe;function iEe(e){e.registerComponentModel(ZLe),e.registerComponentView(nEe),e.registerPreprocessor(function(t){HP(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var aEe=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}(zs);const oEe=aEe;var hm=Je(),sEe=function(e,t,r,n){var i=e.getData(),a;if(q(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=Y9(n,i,t,e);s=u.valueAxis;var c=EU(i,u.valueDataDim);l=WP(i,c,o)}var f=s.dim==="x"?0:1,d=1-f,h=we(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=[Kp(e,a[0]),Kp(e,a[1]),Y({},a[2])];return g[2].type=g[2].type||null,Oe(g[2],g[0]),Oe(g[2],g[1]),g};function B0(e){return!isNaN(e)&&!isFinite(e)}function nF(e,t,r,n){var i=1-e,a=n.dimensions[e];return B0(t[i])&&B0(r[i])&&t[e]===r[e]&&n.getAxis(a).containData(t[e])}function lEe(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(nF(1,r,n,e)||nF(0,r,n,e)))return!0}return Qp(e,t[0])&&Qp(e,t[1])}function pw(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(Ou(a,"cartesian2d")){var h=a.getAxis("x"),p=a.getAxis("y"),c=a.dimensions;B0(e.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[r?0:1]):B0(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 uEe=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=zs.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=hm(o).from,u=hm(o).to;l.each(function(c){pw(l,c,!0,a,i),pw(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 pP);this.group.add(c.group);var f=cEe(o,r,n),d=f.from,h=f.to,p=f.line;hm(n).from=d,hm(n).to=h,n.setData(p);var v=n.get("symbol"),g=n.get("symbolSize"),m=n.get("symbolRotate"),y=n.get("symbolOffset");q(v)||(v=[v,v]),q(g)||(g=[g,g]),q(m)||(m=[m,m]),q(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){Ie(S).dataModel=n,S.traverse(function(_){Ie(_).dataModel=n})});function x(S,_,b){var w=S.getItemModel(_);pw(S,_,b,r,a);var C=w.getModel("itemStyle").getItemStyle();C.fill==null&&(C.fill=wv(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}(UP);function cEe(e,t,r){var n;e?n=Z(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return Y(Y({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new sn(n,r),a=new sn(n,r),o=new sn([],r),s=Z(r.get("data"),Pe(sEe,t,e,r));e&&(s=ft(s,Pe(lEe,e)));var l=q9(!!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 fEe=uEe;function dEe(e){e.registerComponentModel(oEe),e.registerComponentView(fEe),e.registerPreprocessor(function(t){HP(t.series,"markLine")&&(t.markLine=t.markLine||{})})}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.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}(zs);const pEe=hEe;var pm=Je(),vEe=function(e,t,r,n){var i=n[0],a=n[1];if(!(!i||!a)){var o=Kp(e,i),s=Kp(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=H2([{},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 F0(e){return!isNaN(e)&&!isFinite(e)}function iF(e,t,r,n){var i=1-e;return F0(t[i])&&F0(r[i])}function gEe(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 Ou(e,"cartesian2d")?r&&n&&(iF(1,r,n)||iF(0,r,n))?!0:JLe(e,i,a):Qp(e,i)||Qp(e,a)}function aF(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(Ou(a,"cartesian2d")){var y=a.getAxis("x"),x=a.getAxis("y"),v=e.get(r[0],t),g=e.get(r[1],t);F0(v)?s[0]=y.toGlobalCoord(y.getExtent()[r[0]==="x0"?0:1]):F0(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 oF=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],mEe=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=zs.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Z(oF,function(f){return aF(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 Ae});this.group.add(c.group),this.markKeep(c);var f=yEe(o,r,n);n.setData(f),f.each(function(d){var h=Z(oF,function(C){return aF(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))];gi(y),gi(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 kA=_Ee;var fc=Pe,DA=D,vm=Ae,wEe=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 vm),this.group.add(this._selectorGroup=new vm),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=hr(c,f,d),p=this.layoutInner(r,o,h,a,l,u),v=hr(xe({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=N9(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=ve(),f=n.get("selectedMode"),d=[];i.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),DA(n.getData(),function(h,p){var v=h.get("name");if(!this.newlineDisabled&&(v===""||v===` -`)){var g=new vm;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",fc(sF,v,null,a,d)).on("mouseover",fc(RA,m.name,null,a,d)).on("mouseout",fc(LA,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"),I=Vn(T.fill);I&&I[3]===0&&(I[3]=.2,T=Y(Y({},T),{fill:io(I,"rgba")}));var P=this._createItem(w,v,p,h,n,r,{},T,M,f,a);P.on("click",fc(sF,null,v,a,d)).on("mouseover",fc(RA,null,v,a,d)).on("mouseout",fc(LA,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();DA(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}),iu(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=CEe(c,a,l,u,h,g,d),_=new vm,b=a.getModel("textStyle");if(me(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(TEe({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??""):me(T)&&(M=T(n));var I=g?b.getTextColor():a.get("inactiveColor");_.add(new rt({style:_t(b,{text:M,x:C,y:v/2,fill:I,align:A,verticalAlign:"middle"},{inheritColor:I})}));var P=new Qe({shape:_.getBoundingRect(),invisible:!0}),k=a.getModel("tooltip");return k.get("show")&&jf({el:P,componentModel:o,itemName:n,itemTooltipOption:k.option}),_.add(P),_.eachChild(function(R){R.silent=!0}),P.silent=!f,this.getContentGroup().add(_),iu(_),_.__legendDataIndex=i,_},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ou(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){ou("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}(jt);function CEe(e,t,r,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),DA(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:Sf(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 TEe(e){var t=e.icon||"roundRect",r=sr(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 sF(e,t,r,n){LA(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),RA(e,t,r,n)}function X9(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&&it(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;D(["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=vw[o],l=gw[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}(Z9);const DEe=kEe;function REe(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 LEe(e){Fe(K9),e.registerComponentModel(PEe),e.registerComponentView(DEe),REe(e)}function EEe(e){Fe(K9),Fe(LEe)}var OEe=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=Ws(Zp.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Zp);const NEe=OEe;var jP=Je();function zEe(e,t,r){jP(e).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=r)})}function BEe(e,t){for(var r=jP(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 HEe(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=jP(r),i=n.coordSysRecordMap||(n.coordSysRecordMap=ve());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=L9(a);D(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,FEe(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ve());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){Q9(i,a);return}var c=GEe(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),ed(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var WEe=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(),zEe(i,r,{pan:ue(mw.pan,this),zoom:ue(mw.zoom,this),scrollMove:ue(mw.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){BEe(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(zP),mw={zoom:function(e,t,r,n){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=yw[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:cF(function(e,t,r,n,i,a){var o=yw[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:cF(function(e,t,r,n,i,a){var o=yw[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,r);return o.signal*(e[1]-e[0])*a.scrollDelta})};function cF(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 yw={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 UEe=WEe;function J9(e){BP(e),e.registerComponentModel(NEe),e.registerComponentView(UEe),HEe(e)}var jEe=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=Ws(Zp.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}(Zp);const YEe=jEe;var Yd=Qe,fF=7,qEe=1,xw=30,XEe=7,qd="horizontal",dF="vertical",ZEe=5,KEe=["line","bar","candlestick","scatter"],QEe={easing:"cubicOut",duration:100,delay:0},JEe=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=ue(this._onBrush,this),this._onBrushEnd=ue(this._onBrushEnd,this)},t.prototype.render=function(r,n,i,a){if(e.prototype.render.apply(this,arguments),ed(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(){Bp(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 Ae;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?XEe:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===qd?{right:s.width-o.x-o.width,top:s.height-xw-fF-a,width:o.width,height:xw}:{right:fF,top:o.y,width:xw,height:o.height},u=Zf(r.option);D(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=hr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===dF&&this._size.reverse()},t.prototype._positionGroup=function(){var r=this.group,n=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===qd&&!o?{scaleY:l?1:-1,scaleX:1}:i===qd&&o?{scaleY:l?1:-1,scaleX:-1}:i===dF&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=r.getBoundingRect([s]);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 Yd({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new Yd({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:ue(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==="",I=M?0:ct(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,I]),g.push([y,I]),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 Ae,I=new Pn({shape:{points:u},segmentIgnoreThreshold:1,style:T.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),P=new kn({shape:{points:c},segmentIgnoreThreshold:1,style:T.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(I),M.add(P),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();D(l,function(u){if(!i&&!(n!==!0&&ze(KEe,u.get("type"))<0)){var c=a.getComponent(ss(o),s).axis,f=eOe(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 Yd({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new Yd({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:qEe,fill:"rgba(0,0,0,0)"}})),D([0,1],function(x){var S=l.get("handleIcon");!p0[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var _=sr(S,-1,0,2,2,null,!0);_.attr({cursor:hF(this._orient),draggable:!0,drift:ue(this._onDragMove,this,x),ondragend:ue(this._onDragEnd,this),onmouseover:ue(this._showDataInfo,this,!0),onmouseout:ue(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(),iu(_);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=sr(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:hF(this._orient),drift:ue(this._onDragMove,this,"all"),ondragstart:ue(this._showDataInfo,this,!0),ondragend:ue(this._onDragEnd,this),onmouseover:ue(this._showDataInfo,this,!0),onmouseout:ue(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[ct(r[0],[0,100],n,!0),ct(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?ct(s.minSpan,l,o,!0):null,s.maxSpan!=null?ct(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=gi([ct(a[0],o,l,!0),ct(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=gi(i.slice()),o=this._size;D([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=gi([ct(i.x,o,s,!0),ct(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&&(vo(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 Yd({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?QEe:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=L9(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}(zP);function eOe(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function hF(e){return e==="vertical"?"ns-resize":"ew-resize"}const tOe=JEe;function e7(e){e.registerComponentModel(YEe),e.registerComponentView(tOe),BP(e)}function rOe(e){Fe(J9),Fe(e7)}var nOe={get:function(e,t,r){var n=we((iOe[e]||{})[t]);return r&&q(n)?n[n.length-1]:n}},iOe={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 t7=nOe;var pF=Or.mapVisual,aOe=Or.eachVisual,oOe=q,vF=D,sOe=gi,lOe=ct,uOe=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&&H9(i,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(r){var n=this.stateList;r=ue(r,this),this.controllerVisuals=MA(this.option.controller,n,r),this.targetVisuals=MA(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){D(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||["<",">"],q(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(me(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=sOe([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){oOe(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]={},vF(p,function(g,m){if(Or.isValidType(m)){var y=t7.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";vF(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&&we(d)||(s?g:[g])),x.symbolSize==null&&(x.symbolSize=h&&we(h)||(s?y[0]:[y[0],y[0]])),x.symbol=pF(x.symbol,function(b){return b==="none"?g:b});var S=x.symbolSize;if(S!=null){var _=-1/0;aOe(S,function(b){b>_&&(_=b)}),x.symbolSize=pF(S,function(b){return lOe(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 $0=uOe;var gF=[20,140],cOe=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]=gF[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=gF[1])},t.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):q(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),D(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},t.prototype.getSelected=function(){var r=this.getExtent(),n=gi((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=mF(this,"outOfRange",this.getExtent()),i=mF(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 Ae(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();hOe([0,1],function(c){var f=o[c];f.setStyle("fill",n.handlesColor[c]),f.y=r[c];var d=oa(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=Ui(i.handleLabelPoints[c],au(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=oa(r,s,u,!0),g=l[0]-p/2,m={x:f.x,y:f.y};f.y=v,f.x=g;var y=Ui(c.indicatorLabelPoint,au(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||bF(i))&&(h=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var p=ige(d,h);this._dispatchHighDown("downplay",ry(p[0],i)),this._dispatchHighDown("highlight",ry(p[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(Yl(r.target,function(l){var u=Ie(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 _Oe(e,t,r,n){for(var i=t.targetVisuals[n],a=Or.prepareVisualTypes(i),o={color:wv(e.getData(),"color")},s=0,l=a.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(xOe,SOe),D(bOe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(wOe))}function a7(e){e.registerComponentModel(fOe),e.registerComponentView(yOe),i7(e)}var COe=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=[],TOe[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=we(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Z(this._pieceList,function(l){return l=we(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var r=this.option,n={},i=Or.listVisualTypes(),a=this.isCategory();D(r.pieces,function(s){D(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),D(n,function(s,l){var u=!1;D(this.stateList,function(c){u=u||o(r,c,l)||o(r.target,c,l)},this),!u&&D(this.stateList,function(c){(r[c]||(r[c]={}))[l]=t7.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,D(a,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;D(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=we(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 D(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=Ws($0.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}($0),TOe={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 TF(e,t){var r=e.inverse;(e.orient==="vertical"?!r:r)&&t.reverse()}const AOe=COe;var MOe=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),D(c.viewPieceList,function(h){var p=h.piece,v=new Ae;v.onclick=ue(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),ou(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:ry(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return n7(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 Ae,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(sr(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=we(i.selected),s=n.getSelectedMapKey(r);a==="single"||a===!0?(o[s]=!0,D(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(r7);const IOe=MOe;function o7(e){e.registerComponentModel(AOe),e.registerComponentView(IOe),i7(e)}function POe(e){Fe(a7),Fe(o7)}var kOe={label:{enabled:!0},decal:{show:!1}},AF=Je(),DOe={};function ROe(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=we(kOe);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=ve();e.eachSeries(function(d){if(!d.isColorBySeries()){var h=f.get(d.type);h||(h={},f.set(d.type,h)),AF(d).scope=h}}),e.eachRawSeries(function(d){if(e.isSeriesFiltered(d))return;if(me(d.enableAriaDecal)){d.enableAriaDecal();return}var h=d.getData();if(d.isColorBySeries()){var y=ET(d.ecModel,d.name,DOe,e.getSeriesCount()),x=h.getVisual("decal");h.setVisual("decal",S(x,y))}else{var p=d.getRawData(),v={},g=AF(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=ET(d.ecModel,w,g,m),A=h.getItemVisual(b,"decal");h.setItemVisual(b,"decal",S(A,C))})}function S(_,b){var w=_?Y(Y({},b),_):b;return w.dirty=!0,w}})}}function a(){var u=e.getLocaleModel().get("aria"),c=r.getModel("label");if(c.option=xe(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",I]):c.get(["series","single",I]),T=o(T,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var P=C.getData();if(P.count()>h){var k=c.get(["data","partialData"]);T+=o(k,{displayCnt:h})}else T+=c.get(["data","allData"]);for(var R=c.get(["data","separator","middle"]),z=c.get(["data","separator","end"]),$=[],N=0;N":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},OOe=function(){function e(t){var r=this._condVal=oe(t)?new RegExp(t):vpe(t)?t:null;if(r==null){var n="";st(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}(),NOe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),zOe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r2&&n.push(i),i=[P,k]}function c(P,k,R,z){Fc(P,R)&&Fc(k,z)||i.push(P,k,R,z,R,z)}function f(P,k,R,z,$,N){var V=Math.abs(k-P),L=Math.tan(V/4)*4/3,G=kC:M2&&n.push(i),n}function OA(e,t,r,n,i,a,o,s,l,u){if(Fc(e,r)&&Fc(t,n)&&Fc(i,o)&&Fc(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=[];ks(e,r,i,o,.5,A),ks(t,n,a,s,.5,T),OA(A[0],T[0],A[1],T[1],A[2],T[2],A[3],T[3],l,u),OA(A[4],T[4],A[5],T[5],A[6],T[6],A[7],T[7],l,u)}function KOe(e,t){var r=EA(e),n=[];t=t||1;for(var i=0;i0)for(var u=0;uMath.abs(u),f=l7([l,u],c?0:1,t),d=(c?s:u)/f.length,h=0;hi,o=l7([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 eNe(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 hc(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function tNe(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),tNe(t,u,c)}function V0(e,t,r,n){if(r===1)n.push(t);else{var i=Math.floor(r/2),a=e(t);V0(e,a[0],i,n),V0(e,a[1],r-i,n)}return n}function rNe(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 W0(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:fNe(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 f7(e){return aNe(e.path,e.count)}function NA(){return{fromIndividuals:[],toIndividuals:[],count:0}}function dNe(e,t,r){var n=[];function i(_){for(var b=0;b<_.length;b++){var w=_[b];G0(w)?i(w.childrenRef()):w instanceof $e&&n.push(w)}}i(e);var a=n.length;if(!a)return NA();var o=r.dividePath||f7,s=o({path:t,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),NA();n=W0(n),s=W0(s);for(var l=r.done,u=r.during,c=r.individualDelay,f=new Ja,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 pNe={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;OF(e)&&(u=e,c=t),OF(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(G0(C))f({many:[C],one:A},!0,x,S,!0);else{var T=s?xe({delay:s(x,S)},l):l;qP(C,A,T),a(C,A,C,A,T)}}else for(var M=xe({dividePath:pNe[r],individualDelay:s&&function($,N,V,L){return s($+x,S)}},l),I=y?dNe(b,w,M):hNe(w,b,M),P=I.fromIndividuals,k=I.toIndividuals,R=P.length,z=0;zt.length,h=u?NF(c,u):NF(d?t:e,[d?e:t]),p=0,v=0;vd7))for(var i=n.getIndices(),a=gNe(n),o=0;o0&&S.group.traverse(function(b){b instanceof $e&&!b.animators.length&&b.animateFrom({style:{opacity:0}},_)})})}function BF(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function FF(e){return q(e)?e.sort().join(","):e}function Yo(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function xNe(e,t){var r=ve(),n=ve(),i=ve();return D(e.oldSeries,function(a,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=BF(a),c=FF(u);n.set(c,{dataGroupId:s,data:l}),q(u)&&D(u,function(f){i.set(f,{key:c,dataGroupId:s,data:l})})}),D(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=BF(a),u=FF(l),c=n.get(u);if(c)r.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Yo(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Yo(s),data:s}]});else if(q(l)){var f=[];D(l,function(p){var v=n.get(p);v.data&&f.push({dataGroupId:v.dataGroupId,divide:Yo(v.data),data:v.data})}),f.length&&r.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:Yo(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:Yo(d.data)}],newSeries:[]},r.set(d.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Yo(s)})}}}}),r}function $F(e,t){for(var r=0;r=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Yo(t.oldData[s]),dim:o.dimension})}),D(pt(e.to),function(o){var s=$F(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Yo(l),dim:o.dimension})}}),i.length>0&&a.length>0&&h7(i,a,n)}function bNe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){D(pt(n.seriesTransition),function(i){D(pt(i.to),function(a){for(var o=n.updatedSeries,s=0;s({legend:{icon:"circle",inactiveColor:Zh,textStyle:{color:Zh}},title:{text:t,x:10,y:10},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)=>` +`:"
",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=Ie(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=Wd([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 qb;m.marker=y.makeTooltipMarker("item",bu(m.color),h);var x=PO(u.formatTooltip(c,!1,f)),S=v.get("order"),_=v.get("valueFormatter"),b=x.frag,w=b?OO(_?Y({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=Ie(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=Wd(u,this._tooltipModel,f?{position:f}:null),h=d.get("content"),p=Math.random()+"",v=new qb;this._showOrMove(d,function(){var g=we(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=q(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=d,y&&(h=Ax(m.axisValue,h,g)),h=xW(h,i,!0)}else if(me(d)){var x=ue(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"||q(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!q(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),me(n)&&(n=n([i,a],s,o.el,p,{viewSize:[u,c],contentSize:f.slice()})),q(n))i=ne(n[0],u),a=ne(n[1],c);else if(Se(n)){var v=n;v.width=f[0],v.height=f[1];var g=hr(v,{width:u,height:c});i=g.x,a=g.y,d=null,h=null}else if(oe(n)&&l){var m=hLe(n,p,f,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=fLe(i,a,o,u,c,d?null:20,h?null:20);i=m[0],a=m[1]}if(d&&(i-=W5(d)?f[0]/2:d==="right"?f[0]:0),h&&(a-=W5(h)?f[1]/2:h==="bottom"?f[1]:0),H9(r)){var m=dLe(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&&D(i,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&D(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&&D(v,function(m,y){var x=g[y];o=o&&m.seriesIndex===x.seriesIndex&&m.dataIndex===x.dataIndex}),a&&D(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()||(Bp(this,"_updatePosition"),this._tooltipContent.dispose(),bA("itemTooltip",n))},t.type="tooltip",t}(jt);function Wd(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 H5(e,t){return e.dispatchAction||ue(t.dispatchAction,t)}function fLe(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 dLe(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 hLe(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 W5(e){return e==="center"||e==="middle"}function pLe(e,t,r){var n=rI(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=yv(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=Ie(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const vLe=cLe;function gLe(e){Fe(Nv),e.registerComponentModel(XRe),e.registerComponentView(vLe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},rr),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},rr)}var mLe=["rect","polygon","keep","clear"];function yLe(e,t){var r=pt(e?e.brush:[]);if(r.length){var n=[];D(r,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var i=e&&e.toolbox;q(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),xLe(s),t&&!s.length&&s.push.apply(s,mLe)}}function xLe(e){var t={};D(e,function(r){t[r]=1}),e.length=0,D(t,function(r,n){e.push(n)})}var U5=D;function j5(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function MA(e,t,r){var n={};return U5(t,function(a){var o=n[a]=i();U5(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=we(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 Y9(e,t,r){var n;D(r,function(i){t.hasOwnProperty(i)&&j5(t[i])&&(n=!0)}),n&&D(r,function(i){t.hasOwnProperty(i)&&j5(t[i])?e[i]=we(t[i]):delete e[i]})}function SLe(e,t,r,n,i,a){var o={};D(e,function(f){var d=Or.prepareVisualTypes(t[f]);o[f]=d});var s;function l(f){return LI(r,s,f)}function u(f,d){cU(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&&K5(t)}};function K5(e){return new Ne(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var ILe=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 bP(n.getZr())).on("brush",ue(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){q9(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:we(i),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:we(i),$from:n})},t.type="brush",t}(jt);const PLe=ILe;var kLe="#ddd",DLe=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&&Y9(i,r,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:kLe},a.hasOwnProperty("liftZ")||(a.liftZ=5)},t.prototype.setAreas=function(r){r&&(this.areas=Z(r,function(n){return Q5(this.option,n)},this))},t.prototype.setBrushOption=function(r){this.brushOption=Q5(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 Q5(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 RLe=DLe;var LLe=["rect","polygon","lineX","lineY","keep","clear"],ELe=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,D(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 D(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:LLe.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}(di);const OLe=ELe;function NLe(e){e.registerComponentView(PLe),e.registerComponentModel(RLe),e.registerPreprocessor(yLe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,wLe),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),_c("brush",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.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),BLe=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(){h0(p,"_"+r.get("target"))}),v&&h.on("click",function(){h0(v,"_"+r.get("subtarget"))}),Ie(c).eventData=Ie(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=hr(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}(jt);function FLe(e){e.registerComponentModel(zLe),e.registerComponentView(BLe)}var $Le=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=[],D(n,function(u,c){var f=dr(Hf(u),""),d;Se(u)?(d=we(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 sn([{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 J5=$Le;var X9=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=Ws(J5.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}(J5);lr(X9,II.prototype);const VLe=X9;var GLe=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}(jt);const HLe=GLe;var WLe=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}(Qi);const ULe=WLe;var fw=Math.PI,eF=Je(),jLe=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 xr("nameValue",{noName:!0,value:c})},D(["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=qLe(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:fw/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*fw/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=_i(),l=o.x,u=o.y+o.height;Na(s,s,[-l,-u]),Du(s,s,-fw/2),Na(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=YLe(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 ULe("value",o,r.axisExtent,a);return l.model=n,l},t.prototype._createGroup=function(r){var n=this[r]=new Ae;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:Y({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:xe({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=[],D(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:ue(o._changeTimeline,o,u.value)},g=tF(f,d,n,v);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),iu(g);var m=Ie(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=[],D(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:ue(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),iu(m),eF(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",ue(this._changeTimeline,this,f?"-":"+")),d(r.prevBtnPosition,"prev",ue(this._changeTimeline,this,f?"+":"-")),d(r.playPosition,c?"stop":"play",ue(this._handlePlayClick,this,!c),!0);function d(h,p,v,g){if(h){var m=Xi(Ee(a.get(["controlStyle",p+"BtnSize"]),o),o),y=[0,-m/2,m,m],x=XLe(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),iu(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=ue(u._handlePointerDrag,u),f.ondragend=ue(u._handlePointerDragend,u),rF(f,u._progressLine,s,i,a,!0)},onUpdate:function(f){rF(f,u._progressLine,s,i,a)}};this._currentPointer=tF(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=gi(a.getExtent().slice());i>o[1]&&(i=o[1]),i=0&&(o[a]=+o[a].toFixed(d)),[o,f]}var dw={min:Pe(pm,"min"),max:Pe(pm,"max"),average:Pe(pm,"average"),median:Pe(pm,"median")};function Kp(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,i=n&&n.dimensions;if(!nEe(t)&&!q(t.coord)&&q(i)){var a=K9(t,r,n,e);if(t=we(t),t.type&&dw[t.type]&&a.baseAxis&&a.valueAxis){var o=ze(i,a.baseAxis.dim),s=ze(i,a.valueAxis.dim),l=dw[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||!q(i))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)dw[u[c]]&&(u[c]=UP(r,r.mapDimension(i[c]),u[c]));return t}}function K9(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(iEe(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 iEe(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function Qp(e,t){return e&&e.containData&&t.coord&&!PA(t)?e.containData(t.coord):!0}function aEe(e,t,r){return e&&e.containZone&&t.coord&&r.coord&&!PA(t)&&!PA(r)?e.containZone(t.coord,r.coord):!0}function Q9(e,t){return e?function(r,n,i,a){var o=a<2?r.coord&&r.coord[a]:r.value;return Ss(o,t[a])}:function(r,n,i,a){return Ss(r.value,t[a])}}function UP(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 hw=Je(),oEe=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=ve()},t.prototype.render=function(r,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){hw(s).keep=!1}),n.eachSeries(function(s){var l=zs.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!hw(s).keep&&a.group.remove(s.group)})},t.prototype.markKeep=function(r){hw(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var i=this;D(r,function(a){var o=zs.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?A6(l):lI(l))})}})},t.type="marker",t}(jt);const jP=oEe;function iF(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 sEe=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=zs.getMarkerModelFromSeries(a,"markPoint");o&&(iF(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 kv),f=lEe(o,r,n);n.setData(f),iF(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(me(p)||me(v)||me(g)||me(m)){var x=n.getRawValue(d),S=n.getDataParams(d);me(p)&&(p=p(x,S)),me(v)&&(v=v(x,S)),me(g)&&(g=g(x,S)),me(m)&&(m=m(x,S))}var _=h.getModel("itemStyle").getItemStyle(),b=Tv(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){Ie(h).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markPoint",t}(jP);function lEe(e,t,r){var n;e?n=Z(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return Y(Y({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new sn(n,r),a=Z(r.get("data"),Pe(Kp,t));e&&(a=dt(a,Pe(Qp,e)));var o=Q9(!!e,n);return i.initData(a,null,o),i}const uEe=sEe;function cEe(e){e.registerComponentModel(rEe),e.registerComponentView(uEe),e.registerPreprocessor(function(t){WP(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var fEe=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}(zs);const dEe=fEe;var vm=Je(),hEe=function(e,t,r,n){var i=e.getData(),a;if(q(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=K9(n,i,t,e);s=u.valueAxis;var c=BU(i,u.valueDataDim);l=UP(i,c,o)}var f=s.dim==="x"?0:1,d=1-f,h=we(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=[Kp(e,a[0]),Kp(e,a[1]),Y({},a[2])];return g[2].type=g[2].type||null,Oe(g[2],g[0]),Oe(g[2],g[1]),g};function $0(e){return!isNaN(e)&&!isFinite(e)}function aF(e,t,r,n){var i=1-e,a=n.dimensions[e];return $0(t[i])&&$0(r[i])&&t[e]===r[e]&&n.getAxis(a).containData(t[e])}function pEe(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(aF(1,r,n,e)||aF(0,r,n,e)))return!0}return Qp(e,t[0])&&Qp(e,t[1])}function pw(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(Ou(a,"cartesian2d")){var h=a.getAxis("x"),p=a.getAxis("y"),c=a.dimensions;$0(e.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[r?0:1]):$0(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 vEe=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=zs.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=vm(o).from,u=vm(o).to;l.each(function(c){pw(l,c,!0,a,i),pw(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 vP);this.group.add(c.group);var f=gEe(o,r,n),d=f.from,h=f.to,p=f.line;vm(n).from=d,vm(n).to=h,n.setData(p);var v=n.get("symbol"),g=n.get("symbolSize"),m=n.get("symbolRotate"),y=n.get("symbolOffset");q(v)||(v=[v,v]),q(g)||(g=[g,g]),q(m)||(m=[m,m]),q(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){Ie(S).dataModel=n,S.traverse(function(_){Ie(_).dataModel=n})});function x(S,_,b){var w=S.getItemModel(_);pw(S,_,b,r,a);var C=w.getModel("itemStyle").getItemStyle();C.fill==null&&(C.fill=Tv(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}(jP);function gEe(e,t,r){var n;e?n=Z(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return Y(Y({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new sn(n,r),a=new sn(n,r),o=new sn([],r),s=Z(r.get("data"),Pe(hEe,t,e,r));e&&(s=dt(s,Pe(pEe,e)));var l=Q9(!!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 mEe=vEe;function yEe(e){e.registerComponentModel(dEe),e.registerComponentView(mEe),e.registerPreprocessor(function(t){WP(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var xEe=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}(zs);const SEe=xEe;var gm=Je(),bEe=function(e,t,r,n){var i=n[0],a=n[1];if(!(!i||!a)){var o=Kp(e,i),s=Kp(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=W2([{},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 V0(e){return!isNaN(e)&&!isFinite(e)}function oF(e,t,r,n){var i=1-e;return V0(t[i])&&V0(r[i])}function _Ee(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 Ou(e,"cartesian2d")?r&&n&&(oF(1,r,n)||oF(0,r,n))?!0:aEe(e,i,a):Qp(e,i)||Qp(e,a)}function sF(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(Ou(a,"cartesian2d")){var y=a.getAxis("x"),x=a.getAxis("y"),v=e.get(r[0],t),g=e.get(r[1],t);V0(v)?s[0]=y.toGlobalCoord(y.getExtent()[r[0]==="x0"?0:1]):V0(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 lF=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],wEe=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=zs.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Z(lF,function(f){return sF(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 Ae});this.group.add(c.group),this.markKeep(c);var f=CEe(o,r,n);n.setData(f),f.each(function(d){var h=Z(lF,function(C){return sF(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))];gi(y),gi(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 kA=IEe;var fc=Pe,DA=D,mm=Ae,PEe=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 mm),this.group.add(this._selectorGroup=new mm),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=hr(c,f,d),p=this.layoutInner(r,o,h,a,l,u),v=hr(xe({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=$9(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=ve(),f=n.get("selectedMode"),d=[];i.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),DA(n.getData(),function(h,p){var v=h.get("name");if(!this.newlineDisabled&&(v===""||v===` +`)){var g=new mm;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",fc(uF,v,null,a,d)).on("mouseover",fc(RA,m.name,null,a,d)).on("mouseout",fc(LA,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"),I=Vn(T.fill);I&&I[3]===0&&(I[3]=.2,T=Y(Y({},T),{fill:io(I,"rgba")}));var P=this._createItem(w,v,p,h,n,r,{},T,M,f,a);P.on("click",fc(uF,null,v,a,d)).on("mouseover",fc(RA,null,v,a,d)).on("mouseout",fc(LA,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();DA(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}),iu(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=kEe(c,a,l,u,h,g,d),_=new mm,b=a.getModel("textStyle");if(me(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(DEe({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??""):me(T)&&(M=T(n));var I=g?b.getTextColor():a.get("inactiveColor");_.add(new rt({style:_t(b,{text:M,x:C,y:v/2,fill:I,align:A,verticalAlign:"middle"},{inheritColor:I})}));var P=new Qe({shape:_.getBoundingRect(),invisible:!0}),k=a.getModel("tooltip");return k.get("show")&&jf({el:P,componentModel:o,itemName:n,itemTooltipOption:k.option}),_.add(P),_.eachChild(function(R){R.silent=!0}),P.silent=!f,this.getContentGroup().add(_),iu(_),_.__legendDataIndex=i,_},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ou(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){ou("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}(jt);function kEe(e,t,r,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),DA(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:Sf(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 DEe(e){var t=e.icon||"roundRect",r=sr(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 uF(e,t,r,n){LA(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),RA(e,t,r,n)}function J9(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&&it(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;D(["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=vw[o],l=gw[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}(e7);const zEe=NEe;function BEe(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 FEe(e){Fe(t7),e.registerComponentModel(OEe),e.registerComponentView(zEe),BEe(e)}function $Ee(e){Fe(t7),Fe(FEe)}var VEe=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=Ws(Zp.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Zp);const GEe=VEe;var YP=Je();function HEe(e,t,r){YP(e).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=r)})}function WEe(e,t){for(var r=YP(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 XEe(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=YP(r),i=n.coordSysRecordMap||(n.coordSysRecordMap=ve());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=z9(a);D(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,UEe(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ve());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){r7(i,a);return}var c=qEe(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),ed(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var ZEe=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(),HEe(i,r,{pan:ue(mw.pan,this),zoom:ue(mw.zoom,this),scrollMove:ue(mw.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){WEe(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(BP),mw={zoom:function(e,t,r,n){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=yw[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:dF(function(e,t,r,n,i,a){var o=yw[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:dF(function(e,t,r,n,i,a){var o=yw[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,r);return o.signal*(e[1]-e[0])*a.scrollDelta})};function dF(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 yw={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 KEe=ZEe;function n7(e){FP(e),e.registerComponentModel(GEe),e.registerComponentView(KEe),XEe(e)}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="dataZoom.slider",t.layoutMode="box",t.defaultOption=Ws(Zp.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}(Zp);const JEe=QEe;var Yd=Qe,hF=7,eOe=1,xw=30,tOe=7,qd="horizontal",pF="vertical",rOe=5,nOe=["line","bar","candlestick","scatter"],iOe={easing:"cubicOut",duration:100,delay:0},aOe=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=ue(this._onBrush,this),this._onBrushEnd=ue(this._onBrushEnd,this)},t.prototype.render=function(r,n,i,a){if(e.prototype.render.apply(this,arguments),ed(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(){Bp(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 Ae;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?tOe:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===qd?{right:s.width-o.x-o.width,top:s.height-xw-hF-a,width:o.width,height:xw}:{right:hF,top:o.y,width:xw,height:o.height},u=Zf(r.option);D(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=hr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===pF&&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===qd&&!o?{scaleY:l?1:-1,scaleX:1}:i===qd&&o?{scaleY:l?1:-1,scaleX:-1}:i===pF&&!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 Yd({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new Yd({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:ue(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==="",I=M?0:ct(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,I]),g.push([y,I]),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 Ae,I=new Pn({shape:{points:u},segmentIgnoreThreshold:1,style:T.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),P=new kn({shape:{points:c},segmentIgnoreThreshold:1,style:T.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(I),M.add(P),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();D(l,function(u){if(!i&&!(n!==!0&&ze(nOe,u.get("type"))<0)){var c=a.getComponent(ss(o),s).axis,f=oOe(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 Yd({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new Yd({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:eOe,fill:"rgba(0,0,0,0)"}})),D([0,1],function(x){var S=l.get("handleIcon");!g0[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var _=sr(S,-1,0,2,2,null,!0);_.attr({cursor:vF(this._orient),draggable:!0,drift:ue(this._onDragMove,this,x),ondragend:ue(this._onDragEnd,this),onmouseover:ue(this._showDataInfo,this,!0),onmouseout:ue(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(),iu(_);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=sr(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:vF(this._orient),drift:ue(this._onDragMove,this,"all"),ondragstart:ue(this._showDataInfo,this,!0),ondragend:ue(this._onDragEnd,this),onmouseover:ue(this._showDataInfo,this,!0),onmouseout:ue(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[ct(r[0],[0,100],n,!0),ct(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?ct(s.minSpan,l,o,!0):null,s.maxSpan!=null?ct(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=gi([ct(a[0],o,l,!0),ct(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=gi(i.slice()),o=this._size;D([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=gi([ct(i.x,o,s,!0),ct(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&&(vo(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 Yd({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?iOe:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=z9(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}(BP);function oOe(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function vF(e){return e==="vertical"?"ns-resize":"ew-resize"}const sOe=aOe;function i7(e){e.registerComponentModel(JEe),e.registerComponentView(sOe),FP(e)}function lOe(e){Fe(n7),Fe(i7)}var uOe={get:function(e,t,r){var n=we((cOe[e]||{})[t]);return r&&q(n)?n[n.length-1]:n}},cOe={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 a7=uOe;var gF=Or.mapVisual,fOe=Or.eachVisual,dOe=q,mF=D,hOe=gi,pOe=ct,vOe=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&&Y9(i,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(r){var n=this.stateList;r=ue(r,this),this.controllerVisuals=MA(this.option.controller,n,r),this.targetVisuals=MA(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){D(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||["<",">"],q(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(me(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=hOe([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){dOe(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]={},mF(p,function(g,m){if(Or.isValidType(m)){var y=a7.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";mF(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&&we(d)||(s?g:[g])),x.symbolSize==null&&(x.symbolSize=h&&we(h)||(s?y[0]:[y[0],y[0]])),x.symbol=gF(x.symbol,function(b){return b==="none"?g:b});var S=x.symbolSize;if(S!=null){var _=-1/0;fOe(S,function(b){b>_&&(_=b)}),x.symbolSize=gF(S,function(b){return pOe(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 G0=vOe;var yF=[20,140],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.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]=yF[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=yF[1])},t.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):q(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),D(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},t.prototype.getSelected=function(){var r=this.getExtent(),n=gi((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=xF(this,"outOfRange",this.getExtent()),i=xF(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 Ae(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();xOe([0,1],function(c){var f=o[c];f.setStyle("fill",n.handlesColor[c]),f.y=r[c];var d=oa(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=Ui(i.handleLabelPoints[c],au(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=oa(r,s,u,!0),g=l[0]-p/2,m={x:f.x,y:f.y};f.y=v,f.x=g;var y=Ui(c.indicatorLabelPoint,au(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||wF(i))&&(h=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var p=cge(d,h);this._dispatchHighDown("downplay",iy(p[0],i)),this._dispatchHighDown("highlight",iy(p[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(Yl(r.target,function(l){var u=Ie(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 IOe(e,t,r,n){for(var i=t.targetVisuals[n],a=Or.prepareVisualTypes(i),o={color:Tv(e.getData(),"color")},s=0,l=a.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(TOe,AOe),D(MOe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(POe))}function u7(e){e.registerComponentModel(mOe),e.registerComponentView(COe),l7(e)}var kOe=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=[],DOe[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=we(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Z(this._pieceList,function(l){return l=we(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var r=this.option,n={},i=Or.listVisualTypes(),a=this.isCategory();D(r.pieces,function(s){D(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),D(n,function(s,l){var u=!1;D(this.stateList,function(c){u=u||o(r,c,l)||o(r.target,c,l)},this),!u&&D(this.stateList,function(c){(r[c]||(r[c]={}))[l]=a7.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,D(a,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;D(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=we(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 D(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=Ws(G0.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}(G0),DOe={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 MF(e,t){var r=e.inverse;(e.orient==="vertical"?!r:r)&&t.reverse()}const ROe=kOe;var LOe=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),D(c.viewPieceList,function(h){var p=h.piece,v=new Ae;v.onclick=ue(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),ou(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:iy(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return s7(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 Ae,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(sr(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=we(i.selected),s=n.getSelectedMapKey(r);a==="single"||a===!0?(o[s]=!0,D(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(o7);const EOe=LOe;function c7(e){e.registerComponentModel(ROe),e.registerComponentView(EOe),l7(e)}function OOe(e){Fe(u7),Fe(c7)}var NOe={label:{enabled:!0},decal:{show:!1}},IF=Je(),zOe={};function BOe(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=we(NOe);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=ve();e.eachSeries(function(d){if(!d.isColorBySeries()){var h=f.get(d.type);h||(h={},f.set(d.type,h)),IF(d).scope=h}}),e.eachRawSeries(function(d){if(e.isSeriesFiltered(d))return;if(me(d.enableAriaDecal)){d.enableAriaDecal();return}var h=d.getData();if(d.isColorBySeries()){var y=ET(d.ecModel,d.name,zOe,e.getSeriesCount()),x=h.getVisual("decal");h.setVisual("decal",S(x,y))}else{var p=d.getRawData(),v={},g=IF(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=ET(d.ecModel,w,g,m),A=h.getItemVisual(b,"decal");h.setItemVisual(b,"decal",S(A,C))})}function S(_,b){var w=_?Y(Y({},b),_):b;return w.dirty=!0,w}})}}function a(){var u=e.getLocaleModel().get("aria"),c=r.getModel("label");if(c.option=xe(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",I]):c.get(["series","single",I]),T=o(T,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var P=C.getData();if(P.count()>h){var k=c.get(["data","partialData"]);T+=o(k,{displayCnt:h})}else T+=c.get(["data","allData"]);for(var R=c.get(["data","separator","middle"]),z=c.get(["data","separator","end"]),$=[],N=0;N":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},VOe=function(){function e(t){var r=this._condVal=oe(t)?new RegExp(t):bpe(t)?t:null;if(r==null){var n="";st(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}(),GOe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),HOe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r2&&n.push(i),i=[P,k]}function c(P,k,R,z){Fc(P,R)&&Fc(k,z)||i.push(P,k,R,z,R,z)}function f(P,k,R,z,$,N){var V=Math.abs(k-P),L=Math.tan(V/4)*4/3,G=kC:M2&&n.push(i),n}function OA(e,t,r,n,i,a,o,s,l,u){if(Fc(e,r)&&Fc(t,n)&&Fc(i,o)&&Fc(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=[];ks(e,r,i,o,.5,A),ks(t,n,a,s,.5,T),OA(A[0],T[0],A[1],T[1],A[2],T[2],A[3],T[3],l,u),OA(A[4],T[4],A[5],T[5],A[6],T[6],A[7],T[7],l,u)}function nNe(e,t){var r=EA(e),n=[];t=t||1;for(var i=0;i0)for(var u=0;uMath.abs(u),f=d7([l,u],c?0:1,t),d=(c?s:u)/f.length,h=0;hi,o=d7([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 oNe(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 hc(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function sNe(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),sNe(t,u,c)}function H0(e,t,r,n){if(r===1)n.push(t);else{var i=Math.floor(r/2),a=e(t);H0(e,a[0],i,n),H0(e,a[1],r-i,n)}return n}function lNe(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 j0(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:mNe(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 v7(e){return fNe(e.path,e.count)}function NA(){return{fromIndividuals:[],toIndividuals:[],count:0}}function yNe(e,t,r){var n=[];function i(_){for(var b=0;b<_.length;b++){var w=_[b];W0(w)?i(w.childrenRef()):w instanceof $e&&n.push(w)}}i(e);var a=n.length;if(!a)return NA();var o=r.dividePath||v7,s=o({path:t,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),NA();n=j0(n),s=j0(s);for(var l=r.done,u=r.during,c=r.individualDelay,f=new Ja,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 SNe={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;zF(e)&&(u=e,c=t),zF(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(W0(C))f({many:[C],one:A},!0,x,S,!0);else{var T=s?xe({delay:s(x,S)},l):l;XP(C,A,T),a(C,A,C,A,T)}}else for(var M=xe({dividePath:SNe[r],individualDelay:s&&function($,N,V,L){return s($+x,S)}},l),I=y?yNe(b,w,M):xNe(w,b,M),P=I.fromIndividuals,k=I.toIndividuals,R=P.length,z=0;zt.length,h=u?BF(c,u):BF(d?t:e,[d?e:t]),p=0,v=0;vg7))for(var i=n.getIndices(),a=_Ne(n),o=0;o0&&S.group.traverse(function(b){b instanceof $e&&!b.animators.length&&b.animateFrom({style:{opacity:0}},_)})})}function $F(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function VF(e){return q(e)?e.sort().join(","):e}function Yo(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function TNe(e,t){var r=ve(),n=ve(),i=ve();return D(e.oldSeries,function(a,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=$F(a),c=VF(u);n.set(c,{dataGroupId:s,data:l}),q(u)&&D(u,function(f){i.set(f,{key:c,dataGroupId:s,data:l})})}),D(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=$F(a),u=VF(l),c=n.get(u);if(c)r.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Yo(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Yo(s),data:s}]});else if(q(l)){var f=[];D(l,function(p){var v=n.get(p);v.data&&f.push({dataGroupId:v.dataGroupId,divide:Yo(v.data),data:v.data})}),f.length&&r.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:Yo(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:Yo(d.data)}],newSeries:[]},r.set(d.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Yo(s)})}}}}),r}function GF(e,t){for(var r=0;r=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Yo(t.oldData[s]),dim:o.dimension})}),D(pt(e.to),function(o){var s=GF(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Yo(l),dim:o.dimension})}}),i.length>0&&a.length>0&&m7(i,a,n)}function MNe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){D(pt(n.seriesTransition),function(i){D(pt(i.to),function(a){for(var o=n.updatedSeries,s=0;s({legend:{icon:"circle",inactiveColor:Zh,textStyle:{color:Zh}},title:{text:t,x:10,y:10},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?o:""} ${a}
${l}: ${u} - `,""):"No data",axisPointer:{animation:!0},textStyle:{color:Zh,fontSize:13},backgroundColor:"rgba(21,35,28, 0.93)",borderWidth:0,extraCssText:"z-index:1;"},xAxis:{type:"category",splitLine:{show:!1},axisLine:{lineStyle:{color:zA}},data:e.time},yAxis:{type:"value",boundaryGap:[0,"5%"],splitLine:{show:!1},axisLine:{lineStyle:{color:zA}}},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"}}}}}}),wNe=({charts:e,lines:t})=>t.map(({key:r,name:n})=>({name:n,type:"line",showSymbol:!0,data:e[r]})),CNe=e=>({symbol:"none",label:{formatter:t=>`Run #${t.dataIndex+1}`},lineStyle:{color:zA},data:(e.markers||[]).map(t=>({xAxis:t}))});function TNe({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=dxe(o.current,"locust");s.setOption(_Ne({charts:e,title:t,seriesData:wNe({charts:e,lines:r}),colors:n}));const l=()=>s.resize();return window.addEventListener("resize",l),s.group="swarmCharts",hxe("swarmCharts"),a(s),()=>{pxe(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:CNe(e)}:{}}))})},[e,i,r]),E.jsx("div",{ref:o,style:{width:"100%",height:"300px"}})}const ANe=[{title:"Total Requests per Second",lines:[{name:"RPS",key:"currentRps"},{name:"Failures/s",key:"currentFailPerSec"}],colors:["#00ca5a","#ff6d6d"]},{title:"Response Times (ms)",lines:[{name:`${window.templateArgs.percentile1*100}th percentile`,key:"responseTimePercentile1"},{name:`${window.templateArgs.percentile2*100}th percentile`,key:"responseTimePercentile2"}]},{title:"Number of Users",lines:[{name:"Number of Users",key:"userCount"}]}];function p7({charts:e}){return E.jsx("div",{children:ANe.map((t,r)=>E.jsx(TNe,{...t,charts:e},`swarm-chart-${r}`))})}const MNe=({ui:{charts:e}})=>({charts:e}),INe=Xn(MNe)(p7);function PNe(e){return(e*100).toFixed(1)+"%"}function BA({classRatio:e}){return E.jsx("ul",{children:Object.entries(e).map(([t,{ratio:r,tasks:n}])=>E.jsxs("li",{children:[`${PNe(r)} ${t}`,n&&E.jsx(BA,{classRatio:n})]},`nested-ratio-${t}`))})}function v7({ratios:{perClass:e,total:t}}){return!e&&!t?null:E.jsxs("div",{children:[e&&E.jsxs(E.Fragment,{children:[E.jsx("h3",{children:"Ratio Per Class"}),E.jsx(BA,{classRatio:e})]}),t&&E.jsxs(E.Fragment,{children:[E.jsx("h3",{children:"Total Ratio"}),E.jsx(BA,{classRatio:t})]})]})}const kNe=({ui:{ratios:e}})=>({ratios:e}),DNe=Xn(kNe)(v7),RNe=[{key:"id",title:"Worker"},{key:"state",title:"State"},{key:"userCount",title:"# users"},{key:"cpuUsage",title:"CPU usage"},{key:"memoryUsage",title:"Memory usage",formatter:Ole}];function LNe({workers:e=[]}){const{onTableHeadClick:t,sortedStats:r,currentSortField:n}=B2(e,{defaultSortKey:"worker"});return E.jsx(Ff,{currentSortField:n,onTableHeadClick:t,rows:r,structure:RNe})}const ENe=({ui:{workers:e}})=>({workers:e}),ONe=Xn(ENe)(LNe),NNe=[{component:Qhe,key:"stats",title:"Statistics"},{component:INe,key:"charts",title:"Charts"},{component:Uhe,key:"failures",title:"Failures"},{component:Vhe,key:"exceptions",title:"Exceptions"},{component:DNe,key:"ratios",title:"Current Ratio"},{component:Xhe,key:"reports",title:"Download Data"},{component:jhe,key:"logViewer",title:"Logs"}],zNe=[{component:ONe,key:"workers",title:"Workers",shouldDisplayTab:e=>e.swarm.isDistributed}],BNe=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)},FNe=()=>window.location.search?Ele(window.location.search):null,$Ne={query:FNe()},g7=ui({name:"url",initialState:$Ne,reducers:{setUrl:fv}}),VNe=g7.actions,GNe=g7.reducer;function HNe({currentTabIndexFromQuery:e,setUrl:t,tabs:r}){const[n,i]=O.useState(e),a=(o,s)=>{const l=r[s].key;BNe({tab:l}),t({query:{tab:l}}),i(s)};return E.jsxs(Nf,{maxWidth:"xl",children:[E.jsx(ht,{sx:{mb:2},children:E.jsx(coe,{onChange:a,value:n,children:r.map(({title:o},s)=>E.jsx(Uie,{label:o},`tab-${s}`))})}),r.map(({component:o=Bhe},s)=>n===s&&E.jsx(o,{},`tabpabel-${s}`))]})}const WNe=e=>{const{swarm:{extendedTabs:t=[]},url:{query:r}}=e,n=zNe.filter(({shouldDisplayTab:a})=>a(e)),i=[...NNe,...n,...t];return{tabs:i,currentTabIndexFromQuery:r&&r.tab?i.findIndex(({key:a})=>a===r.tab):0}},UNe={setUrl:VNe.setUrl},jNe=Xn(WNe,UNe)(HNe),YNe={totalRps:0,failRatio:0,stats:[],errors:[],exceptions:[],charts:Gl(window.templateArgs).history.reduce(ix,{}),ratios:{},userCount:0},qNe=e=>ix(e,{currentRps:{value:null},currentFailPerSec:{value:null},responseTimePercentile1:{value:null},responseTimePercentile2:{value:null},userCount:{value:null},time:""}),m7=ui({name:"ui",initialState:YNe,reducers:{setUi:fv,updateCharts:(e,{payload:t})=>({...e,charts:ix(e.charts,t)}),updateChartMarkers:(e,{payload:t})=>({...e,charts:{...qNe(e.charts),markers:e.charts.markers?[...e.charts.markers,t]:[e.charts.time[0],t]}})}}),Cw=m7.actions,XNe=m7.reducer,GF=2e3;function ZNe(){const e=$l(mG.setSwarm),t=$l(Cw.setUi),r=$l(Cw.updateCharts),n=$l(Cw.updateChartMarkers),i=Vs(({swarm:m})=>m),a=O.useRef(i.state),o=O.useRef(!1),[s,l]=O.useState(!1),{data:u,refetch:c}=Nle(),{data:f,refetch:d}=zle(),{data:h,refetch:p}=Ble(),v=i.state===En.SPAWNING||i.state==En.RUNNING,g=()=>{if(!u)return;const{extendedStats:m,stats:y,errors:x,totalRps:S,totalFailPerSec:_,failRatio:b,workers:w,currentResponseTimePercentile1:C,currentResponseTimePercentile2:A,userCount:T}=u,M=new Date().toLocaleTimeString();s&&(l(!1),n(M));const I=Om(S,2),P=Om(_,2),k=Om(b*100),R={currentRps:I,currentFailPerSec:P,responseTimePercentile1:C,responseTimePercentile2:A,userCount:T,time:M};t({extendedStats:m,stats:y,errors:x,totalRps:I,failRatio:k,workers:w,userCount:T}),r(R)};O.useEffect(()=>{u&&(u.state===En.STOPPED||u.state===En.SPAWNING)&&e({state:u.state})},[u&&u.state]),O.useEffect(()=>{u&&(o.current||g(),o.current=!0)},[u]),rh(g,GF,{shouldRunInterval:!!u&&v}),O.useEffect(()=>{f&&t({ratios:f})},[f]),O.useEffect(()=>{h&&t({exceptions:h.exceptions})},[h]),rh(c,GF,{shouldRunInterval:v}),rh(d,5e3,{shouldRunInterval:v}),rh(p,5e3,{shouldRunInterval:v}),O.useEffect(()=>{i.state===En.RUNNING&&a.current===En.STOPPED&&l(!0),a.current=i.state},[i.state,a])}const y7=e=>t2({palette:{mode:e,primary:{main:"#15803d"},success:{main:"#00C853"}}});function KNe({isDarkMode:e,swarmState:t}){ZNe(),pue();const r=O.useMemo(()=>y7(e?Ma.DARK:Ma.LIGHT),[e]);return E.jsxs(o4,{theme:r,children:[E.jsx(a4,{}),E.jsx(oue,{children:t===En.READY?E.jsx(yG,{}):E.jsx(jNe,{})})]})}const QNe=({swarm:{state:e},theme:{isDarkMode:t}})=>({isDarkMode:t,swarmState:e}),JNe=Xn(QNe)(KNe),eze=y2({[BC.reducerPath]:BC.reducer,logViewer:hue,notification:uue,swarm:Kle,theme:Ise,ui:XNe,url:GNe}),tze=gse({reducer:eze}),rze=[{key:"method",title:"Method"},{key:"name",title:"Name"}];function nze({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 E.jsx(Ff,{rows:e,structure:[...rze,...t]})}const ize=y7(window.theme||H4);function aze({locustfile:e,showDownloadLink:t,startTime:r,endTime:n,charts:i,host:a,exceptionsStatistics:o,requestsStatistics:s,failuresStatistics:l,responseTimeStatistics:u,tasks:c}){return E.jsxs(o4,{theme:ize,children:[E.jsx(a4,{}),E.jsxs(Nf,{maxWidth:"lg",sx:{my:4},children:[E.jsxs(ht,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-end"},children:[E.jsx(Xe,{component:"h1",noWrap:!0,sx:{fontWeight:700},variant:"h3",children:"Locust Test Report"}),t&&E.jsx(li,{href:`?download=1&theme=${window.theme}`,children:"Download the Report"})]}),E.jsxs(ht,{sx:{my:2},children:[E.jsxs(ht,{sx:{display:"flex",columnGap:.5},children:[E.jsx(Xe,{fontWeight:600,children:"During:"}),E.jsxs(Xe,{children:[r," - ",n]})]}),E.jsxs(ht,{sx:{display:"flex",columnGap:.5},children:[E.jsx(Xe,{fontWeight:600,children:"Target Host:"}),E.jsx(Xe,{children:a||"None"})]}),E.jsxs(ht,{sx:{display:"flex",columnGap:.5},children:[E.jsx(Xe,{fontWeight:600,children:"Script:"}),E.jsx(Xe,{children:e})]})]}),E.jsxs(ht,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[E.jsxs(ht,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Request Statistics"}),E.jsx(oH,{stats:s})]}),E.jsxs(ht,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Response Time Statistics"}),E.jsx(nze,{responseTimes:u})]}),E.jsxs(ht,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Failures Statistics"}),E.jsx(aH,{errors:l})]}),!!o.length&&E.jsxs(ht,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Exceptions Statistics"}),E.jsx(iH,{exceptions:o})]}),E.jsxs(ht,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Charts"}),E.jsx(p7,{charts:i})]}),E.jsxs(ht,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Final ratio"}),E.jsx(v7,{ratios:c})]})]})]})]})}const HF=Aw.createRoot(document.getElementById("root"));if(window.templateArgs.is_report){const e=Gl(window.templateArgs),t={...e,charts:e.history.reduce(ix,{})};HF.render(E.jsx(aze,{...t}))}else HF.render(E.jsx(QX,{store:tze,children:E.jsx(JNe,{})})); + `,""):"No data",axisPointer:{animation:!0},textStyle:{color:Zh,fontSize:13},backgroundColor:"rgba(21,35,28, 0.93)",borderWidth:0,extraCssText:"z-index:1;"},xAxis:{type:"category",splitLine:{show:!1},axisLine:{lineStyle:{color:zA}},data:e.time},yAxis:{type:"value",boundaryGap:[0,"5%"],splitLine:{show:!1},axisLine:{lineStyle:{color:zA}}},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"}}}}}}),PNe=({charts:e,lines:t})=>t.map(({key:r,name:n})=>({name:n,type:"line",showSymbol:!0,data:e[r]})),kNe=e=>({symbol:"none",label:{formatter:t=>`Run #${t.dataIndex+1}`},lineStyle:{color:zA},data:(e.markers||[]).map(t=>({xAxis:t}))});function DNe({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=yxe(o.current,"locust");s.setOption(INe({charts:e,title:t,seriesData:PNe({charts:e,lines:r}),colors:n}));const l=()=>s.resize();return window.addEventListener("resize",l),s.group="swarmCharts",xxe("swarmCharts"),a(s),()=>{Sxe(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:kNe(e)}:{}}))})},[e,i,r]),E.jsx("div",{ref:o,style:{width:"100%",height:"300px"}})}const RNe=[{title:"Total Requests per Second",lines:[{name:"RPS",key:"currentRps"},{name:"Failures/s",key:"currentFailPerSec"}],colors:["#00ca5a","#ff6d6d"]},{title:"Response Times (ms)",lines:[{name:`${window.templateArgs.percentile1*100}th percentile`,key:"responseTimePercentile1"},{name:`${window.templateArgs.percentile2*100}th percentile`,key:"responseTimePercentile2"}]},{title:"Number of Users",lines:[{name:"Number of Users",key:"userCount"}]}];function y7({charts:e}){return E.jsx("div",{children:RNe.map((t,r)=>E.jsx(DNe,{...t,charts:e},`swarm-chart-${r}`))})}const LNe=({ui:{charts:e}})=>({charts:e}),ENe=Xn(LNe)(y7);function ONe(e){return(e*100).toFixed(1)+"%"}function BA({classRatio:e}){return E.jsx("ul",{children:Object.entries(e).map(([t,{ratio:r,tasks:n}])=>E.jsxs("li",{children:[`${ONe(r)} ${t}`,n&&E.jsx(BA,{classRatio:n})]},`nested-ratio-${t}`))})}function x7({ratios:{perClass:e,total:t}}){return!e&&!t?null:E.jsxs("div",{children:[e&&E.jsxs(E.Fragment,{children:[E.jsx("h3",{children:"Ratio Per Class"}),E.jsx(BA,{classRatio:e})]}),t&&E.jsxs(E.Fragment,{children:[E.jsx("h3",{children:"Total Ratio"}),E.jsx(BA,{classRatio:t})]})]})}const NNe=({ui:{ratios:e}})=>({ratios:e}),zNe=Xn(NNe)(x7),BNe=[{key:"id",title:"Worker"},{key:"state",title:"State"},{key:"userCount",title:"# users"},{key:"cpuUsage",title:"CPU usage"},{key:"memoryUsage",title:"Memory usage",formatter:Fle}];function FNe({workers:e=[]}){const{onTableHeadClick:t,sortedStats:r,currentSortField:n}=F2(e,{defaultSortKey:"worker"});return E.jsx(Ff,{currentSortField:n,onTableHeadClick:t,rows:r,structure:BNe})}const $Ne=({ui:{workers:e}})=>({workers:e}),VNe=Xn($Ne)(FNe),GNe=[{component:ipe,key:"stats",title:"Statistics"},{component:ENe,key:"charts",title:"Charts"},{component:Khe,key:"failures",title:"Failures"},{component:Yhe,key:"exceptions",title:"Exceptions"},{component:zNe,key:"ratios",title:"Current Ratio"},{component:tpe,key:"reports",title:"Download Data"},{component:Qhe,key:"logViewer",title:"Logs"}],HNe=[{component:VNe,key:"workers",title:"Workers",shouldDisplayTab:e=>e.swarm.isDistributed}],WNe=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)},UNe=()=>window.location.search?Ble(window.location.search):null,jNe={query:UNe()},S7=ui({name:"url",initialState:jNe,reducers:{setUrl:hv}}),YNe=S7.actions,qNe=S7.reducer;function XNe({hasNotification:e,title:t}){return E.jsxs(ft,{sx:{display:"flex",alignItems:"center"},children:[e&&E.jsx(CG,{color:"secondary"}),E.jsx("span",{children:t})]})}function ZNe({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}),WNe({tab:c}),n({query:{tab:c}}),o(u)};return E.jsxs(Nf,{maxWidth:"xl",children:[E.jsx(ft,{sx:{mb:2},children:E.jsx(poe,{onChange:s,value:a,children:i.map(({key:l,title:u},c)=>E.jsx(Xie,{label:E.jsx(XNe,{hasNotification:t[l],title:u})},`tab-${c}`))})}),i.map(({component:l=Whe},u)=>a===u&&E.jsx(l,{},`tabpabel-${u}`))]})}const KNe=e=>{const{notification:t,swarm:{extendedTabs:r=[]},url:{query:n}}=e,i=HNe.filter(({shouldDisplayTab:o})=>o(e)),a=[...GNe,...i,...r];return{notification:t,tabs:a,currentTabIndexFromQuery:n&&n.tab?a.findIndex(({key:o})=>o===n.tab):0}},QNe={setNotification:_G.setNotification,setUrl:YNe.setUrl},JNe=Xn(KNe,QNe)(ZNe),eze={totalRps:0,failRatio:0,stats:[],errors:[],exceptions:[],charts:Gl(window.templateArgs).history.reduce(ix,{}),ratios:{},userCount:0},tze=e=>ix(e,{currentRps:{value:null},currentFailPerSec:{value:null},responseTimePercentile1:{value:null},responseTimePercentile2:{value:null},userCount:{value:null},time:""}),b7=ui({name:"ui",initialState:eze,reducers:{setUi:hv,updateCharts:(e,{payload:t})=>({...e,charts:ix(e.charts,t)}),updateChartMarkers:(e,{payload:t})=>({...e,charts:{...tze(e.charts),markers:e.charts.markers?[...e.charts.markers,t]:[e.charts.time[0],t]}})}}),Cw=b7.actions,rze=b7.reducer,WF=2e3;function nze(){const e=$l(xG.setSwarm),t=$l(Cw.setUi),r=$l(Cw.updateCharts),n=$l(Cw.updateChartMarkers),i=Vs(({swarm:m})=>m),a=O.useRef(i.state),o=O.useRef(!1),[s,l]=O.useState(!1),{data:u,refetch:c}=$le(),{data:f,refetch:d}=Vle(),{data:h,refetch:p}=Gle(),v=i.state===En.SPAWNING||i.state==En.RUNNING,g=()=>{if(!u)return;const{extendedStats:m,stats:y,errors:x,totalRps:S,totalFailPerSec:_,failRatio:b,workers:w,currentResponseTimePercentile1:C,currentResponseTimePercentile2:A,userCount:T}=u,M=new Date().toLocaleTimeString();s&&(l(!1),n(M));const I=zm(S,2),P=zm(_,2),k=zm(b*100),R={currentRps:I,currentFailPerSec:P,responseTimePercentile1:C,responseTimePercentile2:A,userCount:T,time:M};t({extendedStats:m,stats:y,errors:x,totalRps:I,failRatio:k,workers:w,userCount:T}),r(R)};O.useEffect(()=>{u&&(u.state===En.STOPPED||u.state===En.SPAWNING)&&e({state:u.state})},[u&&u.state]),O.useEffect(()=>{u&&(o.current||g(),o.current=!0)},[u]),rh(g,WF,{shouldRunInterval:!!u&&v}),O.useEffect(()=>{f&&t({ratios:f})},[f]),O.useEffect(()=>{h&&t({exceptions:h.exceptions})},[h]),rh(c,WF,{shouldRunInterval:v}),rh(d,5e3,{shouldRunInterval:v}),rh(p,5e3,{shouldRunInterval:v}),O.useEffect(()=>{i.state===En.RUNNING&&a.current===En.STOPPED&&l(!0),a.current=i.state},[i.state,a])}const _7=e=>t2({palette:{mode:e,primary:{main:"#15803d"},success:{main:"#00C853"}}});function ize({isDarkMode:e,swarmState:t}){nze(),mue();const r=O.useMemo(()=>_7(e?Ma.DARK:Ma.LIGHT),[e]);return E.jsxs(l4,{theme:r,children:[E.jsx(s4,{}),E.jsx(cue,{children:t===En.READY?E.jsx(SG,{}):E.jsx(JNe,{})})]})}const aze=({swarm:{state:e},theme:{isDarkMode:t}})=>({isDarkMode:t,swarmState:e}),oze=Xn(aze)(ize),sze=y2({[BC.reducerPath]:BC.reducer,logViewer:gue,notification:due,swarm:tue,theme:Rse,ui:rze,url:qNe}),lze=Sse({reducer:sze}),uze=[{key:"method",title:"Method"},{key:"name",title:"Name"}];function cze({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 E.jsx(Ff,{rows:e,structure:[...uze,...t]})}const fze=_7(window.theme||U4);function dze({locustfile:e,showDownloadLink:t,startTime:r,endTime:n,charts:i,host:a,exceptionsStatistics:o,requestsStatistics:s,failuresStatistics:l,responseTimeStatistics:u,tasks:c}){return E.jsxs(l4,{theme:fze,children:[E.jsx(s4,{}),E.jsxs(Nf,{maxWidth:"lg",sx:{my:4},children:[E.jsxs(ft,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-end"},children:[E.jsx(Xe,{component:"h1",noWrap:!0,sx:{fontWeight:700},variant:"h3",children:"Locust Test Report"}),t&&E.jsx(li,{href:`?download=1&theme=${window.theme}`,children:"Download the Report"})]}),E.jsxs(ft,{sx:{my:2},children:[E.jsxs(ft,{sx:{display:"flex",columnGap:.5},children:[E.jsx(Xe,{fontWeight:600,children:"During:"}),E.jsxs(Xe,{children:[r," - ",n]})]}),E.jsxs(ft,{sx:{display:"flex",columnGap:.5},children:[E.jsx(Xe,{fontWeight:600,children:"Target Host:"}),E.jsx(Xe,{children:a||"None"})]}),E.jsxs(ft,{sx:{display:"flex",columnGap:.5},children:[E.jsx(Xe,{fontWeight:600,children:"Script:"}),E.jsx(Xe,{children:e})]})]}),E.jsxs(ft,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[E.jsxs(ft,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Request Statistics"}),E.jsx(cH,{stats:s})]}),E.jsxs(ft,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Response Time Statistics"}),E.jsx(cze,{responseTimes:u})]}),E.jsxs(ft,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Failures Statistics"}),E.jsx(uH,{errors:l})]}),!!o.length&&E.jsxs(ft,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Exceptions Statistics"}),E.jsx(lH,{exceptions:o})]}),E.jsxs(ft,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Charts"}),E.jsx(y7,{charts:i})]}),E.jsxs(ft,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Final ratio"}),E.jsx(x7,{ratios:c})]})]})]})]})}const UF=Aw.createRoot(document.getElementById("root"));if(window.templateArgs.is_report){const e=Gl(window.templateArgs),t={...e,charts:e.history.reduce(ix,{})};UF.render(E.jsx(dze,{...t}))}else UF.render(E.jsx(rZ,{store:lze,children:E.jsx(oze,{})})); diff --git a/locust/webui/dist/index.html b/locust/webui/dist/index.html index ab6a7f0bb0..21ed948cf7 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/Tabs/Tabs.tsx b/locust/webui/src/components/Tabs/Tabs.tsx index 32f36a8f41..724398f46c 100644 --- a/locust/webui/src/components/Tabs/Tabs.tsx +++ b/locust/webui/src/components/Tabs/Tabs.tsx @@ -1,9 +1,11 @@ import { useState } from 'react'; +import PriorityHighIcon from '@mui/icons-material/PriorityHigh'; import { Box, Tabs as MuiTabs, Tab as MuiTab, Container } from '@mui/material'; import { connect } from 'react-redux'; import DataTable from 'components/DataTable/DataTable'; import { baseTabs, conditionalTabs } from 'components/Tabs/Tabs.constants'; +import { INotificationState, notificationActions } from 'redux/slice/notification.slice'; import { IUrlState, urlActions } from 'redux/slice/url.slice'; import { IRootState } from 'redux/store'; import { ITab } from 'types/tab.types'; @@ -11,15 +13,36 @@ import { pushQuery } from 'utils/url'; interface ITabs { currentTabIndexFromQuery: number; + notification: INotificationState; + setNotification: (payload: INotificationState) => void; setUrl: (payload: IUrlState) => void; tabs: ITab[]; } -function Tabs({ currentTabIndexFromQuery, setUrl, tabs }: ITabs) { +interface ITabLabel { + hasNotification?: boolean; + title: string; +} + +function TabLabel({ hasNotification, title }: ITabLabel) { + return ( + + {hasNotification && } + {title} + + ); +} + +function Tabs({ currentTabIndexFromQuery, notification, setNotification, setUrl, tabs }: ITabs) { const [currentTabIndex, setCurrentTabIndex] = useState(currentTabIndexFromQuery); const onTabChange = (_: React.SyntheticEvent, index: number) => { const tab = tabs[index].key; + + if (notification[tab]) { + setNotification({ [tab]: false }); + } + pushQuery({ tab }); setUrl({ query: { tab } }); setCurrentTabIndex(index); @@ -29,8 +52,11 @@ function Tabs({ currentTabIndexFromQuery, setUrl, tabs }: ITabs) { - {tabs.map(({ title }, index) => ( - + {tabs.map(({ key: tabKey, title }, index) => ( + } + /> ))} @@ -44,6 +70,7 @@ function Tabs({ currentTabIndexFromQuery, setUrl, tabs }: ITabs) { const storeConnector = (state: IRootState) => { const { + notification, swarm: { extendedTabs = [] }, url: { query: urlQuery }, } = state; @@ -55,6 +82,7 @@ const storeConnector = (state: IRootState) => { const tabs = [...baseTabs, ...conditionalTabsToDisplay, ...extendedTabs]; return { + notification, tabs, currentTabIndexFromQuery: urlQuery && urlQuery.tab ? tabs.findIndex(({ key }) => key === urlQuery.tab) : 0, @@ -62,6 +90,7 @@ const storeConnector = (state: IRootState) => { }; const actionCreator = { + setNotification: notificationActions.setNotification, setUrl: urlActions.setUrl, }; diff --git a/locust/webui/src/redux/slice/notification.slice.ts b/locust/webui/src/redux/slice/notification.slice.ts index 346f356693..dfd21be7ff 100644 --- a/locust/webui/src/redux/slice/notification.slice.ts +++ b/locust/webui/src/redux/slice/notification.slice.ts @@ -14,7 +14,7 @@ const notificationSlice = createSlice({ name: 'notification', initialState, reducers: { - setNotification: updateStateWithPayload, + setNotification: updateStateWithPayload, }, }); From 961651490384329327a5a891383bc6df39f3b4c0 Mon Sep 17 00:00:00 2001 From: Andrew Baldwin Date: Mon, 4 Dec 2023 11:41:30 -0500 Subject: [PATCH 4/8] Improve typing of ui slice --- locust/webui/src/redux/slice/tests/ui.slice.test.ts | 5 +++-- locust/webui/src/redux/slice/ui.slice.ts | 12 ++++++------ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/locust/webui/src/redux/slice/tests/ui.slice.test.ts b/locust/webui/src/redux/slice/tests/ui.slice.test.ts index b93ff24c8d..a714b5f443 100644 --- a/locust/webui/src/redux/slice/tests/ui.slice.test.ts +++ b/locust/webui/src/redux/slice/tests/ui.slice.test.ts @@ -1,7 +1,7 @@ import { describe, expect, test } from 'vitest'; import uiSlice, { IUiState, UiAction, uiActions } from 'redux/slice/ui.slice'; -import { ICharts } from 'types/ui.types'; +import { ICharts, ISwarmRatios } from 'types/ui.types'; const initialState = { totalRps: 0, @@ -15,8 +15,9 @@ const initialState = { responseTimePercentile1: [], responseTimePercentile2: [], userCount: [], + time: [], }, - ratios: {}, + ratios: {} as ISwarmRatios, userCount: 0, }; diff --git a/locust/webui/src/redux/slice/ui.slice.ts b/locust/webui/src/redux/slice/ui.slice.ts index c4f99f92ab..476443f041 100644 --- a/locust/webui/src/redux/slice/ui.slice.ts +++ b/locust/webui/src/redux/slice/ui.slice.ts @@ -31,11 +31,11 @@ export type UiAction = PayloadAction>; const initialState = { totalRps: 0, failRatio: 0, - stats: [], - errors: [], - exceptions: [], - charts: camelCaseKeys(window.templateArgs).history.reduce(updateArraysAtProps, {}), - ratios: {}, + stats: [] as ISwarmStat[], + errors: [] as ISwarmError[], + exceptions: [] as ISwarmException[], + charts: camelCaseKeys(window.templateArgs).history.reduce(updateArraysAtProps, {}) as ICharts, + ratios: {} as ISwarmRatios, userCount: 0, }; @@ -54,7 +54,7 @@ const uiSlice = createSlice({ name: 'ui', initialState, reducers: { - setUi: updateStateWithPayload, + setUi: updateStateWithPayload, updateCharts: (state, { payload }) => ({ ...state, charts: updateArraysAtProps(state.charts as ICharts, payload), From cd2363dd22c8b06790b0cb57ddd5992e28391347 Mon Sep 17 00:00:00 2001 From: Andrew Baldwin Date: Mon, 4 Dec 2023 12:47:25 -0500 Subject: [PATCH 5/8] Add useNotification tests --- .../src/hooks/tests/useNotifications.test.tsx | 89 +++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 locust/webui/src/hooks/tests/useNotifications.test.tsx diff --git a/locust/webui/src/hooks/tests/useNotifications.test.tsx b/locust/webui/src/hooks/tests/useNotifications.test.tsx new file mode 100644 index 0000000000..d34ef979e8 --- /dev/null +++ b/locust/webui/src/hooks/tests/useNotifications.test.tsx @@ -0,0 +1,89 @@ +import { afterEach, describe, expect, test } from 'vitest'; + +import useNotifications from 'hooks/useNotifications'; +import { IRootState } from 'redux/store'; +import { renderWithProvider } from 'test/testUtils'; +import { objectLength } from 'utils/object'; + +function MockHook({ + data, + notificaitonKey, +}: { + data: any[] | Record; + notificaitonKey: string; +}) { + useNotifications(data, { key: notificaitonKey }); + + return null; +} + +describe('useNotifications', () => { + afterEach(() => { + localStorage.clear(); + }); + + test('should set notifications when there is data', async () => { + const testArrayKey = 'testArray'; + const testObjectKey = 'testObject'; + + const { store: firstRender } = renderWithProvider( + , + ); + const { store } = renderWithProvider( + , + firstRender.getState(), + ); + + expect((store.getState() as IRootState).notification[testArrayKey]).toBeTruthy(); + expect((store.getState() as IRootState).notification[testObjectKey]).toBeTruthy(); + }); + + test('should store the current length of data', async () => { + const temp = localStorage; + localStorage = {} as typeof localStorage; + + const testArrayKey = 'testArray'; + const testObjectKey = 'testObject'; + + const mockArray = [1, 2, 3]; + const mockObject = { key1: 1, key2: 2 }; + + renderWithProvider(); + renderWithProvider(); + + expect(localStorage[`${testArrayKey}Notification`]).toBe(objectLength(mockArray)); + expect(localStorage[`${testObjectKey}Notification`]).toBe(objectLength(mockObject)); + + localStorage = temp; + }); + + test('should not set notifications when data is empty', async () => { + const testArrayKey = 'testArray'; + const testObjectKey = 'testObject'; + + const { store: firstRender } = renderWithProvider( + , + ); + const { store } = renderWithProvider( + , + firstRender.getState(), + ); + + expect((store.getState() as IRootState).notification[testArrayKey]).toBeFalsy(); + expect((store.getState() as IRootState).notification[testObjectKey]).toBeFalsy(); + }); + + test('should not set notifications when viewing page', async () => { + const testKey = 'testKey'; + + const { store } = renderWithProvider(, { + url: { + query: { + tab: testKey, + }, + }, + }); + + expect((store.getState() as IRootState).notification[testKey]).toBeFalsy(); + }); +}); From 6d27acbec9c619365d4297c927db0091eed16901 Mon Sep 17 00:00:00 2001 From: Andrew Baldwin Date: Mon, 4 Dec 2023 12:47:46 -0500 Subject: [PATCH 6/8] Add isEmpty and objectLength tests --- locust/webui/src/utils/tests/object.test.ts | 36 ++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/locust/webui/src/utils/tests/object.test.ts b/locust/webui/src/utils/tests/object.test.ts index da1135af79..46fde5e283 100644 --- a/locust/webui/src/utils/tests/object.test.ts +++ b/locust/webui/src/utils/tests/object.test.ts @@ -1,6 +1,32 @@ import { test, describe, expect } from 'vitest'; -import { createFormData, isEmpty, shallowMerge, updateArraysAtProps } from 'utils/object'; +import { + createFormData, + isEmpty, + objectLength, + shallowMerge, + updateArraysAtProps, +} from 'utils/object'; + +describe('objectLength', () => { + test('should return 0 for an empty object', () => { + expect(objectLength({})).toBe(0); + }); + + test('should return correct length for an object with properties', () => { + expect(objectLength({ key: 'value' })).toBe(1); + expect(objectLength({ key: 'value', key2: 'value2', key3: 'value3' })).toBe(3); + }); + + test('should return 0 for an empty array', () => { + expect(objectLength([])).toBe(0); + }); + + test('should return correct length for an array with elements', () => { + expect(objectLength([1])).toBe(1); + expect(objectLength([1, 2, 3])).toBe(3); + }); +}); describe('isEmpty', () => { test('should return true for an empty object', () => { @@ -10,6 +36,14 @@ describe('isEmpty', () => { test('should return false for an object with properties', () => { expect(isEmpty({ key: 'value' })).toBeFalsy(); }); + + test('should return true for an empty array', () => { + expect(isEmpty([])).toBeTruthy(); + }); + + test('should return false for an array with elements', () => { + expect(isEmpty([1, 2, 3])).toBeFalsy(); + }); }); describe('shallowMerge', () => { From b5d086ed2aa2e4233d6ef1c395c74427dbb3a019 Mon Sep 17 00:00:00 2001 From: Andrew Baldwin Date: Tue, 5 Dec 2023 10:52:05 -0500 Subject: [PATCH 7/8] Add optional shouldNotify callback --- .../{index-f3bbb16f.js => index-d0af3b25.js} | 62 +++++++++---------- locust/webui/dist/index.html | 2 +- .../src/components/LogViewer/useLogViewer.ts | 12 +++- locust/webui/src/hooks/useNotifications.ts | 6 +- 4 files changed, 46 insertions(+), 36 deletions(-) rename locust/webui/dist/assets/{index-f3bbb16f.js => index-d0af3b25.js} (89%) diff --git a/locust/webui/dist/assets/index-f3bbb16f.js b/locust/webui/dist/assets/index-d0af3b25.js similarity index 89% rename from locust/webui/dist/assets/index-f3bbb16f.js rename to locust/webui/dist/assets/index-d0af3b25.js index 85a470d37d..403d9d0e91 100644 --- a/locust/webui/dist/assets/index-f3bbb16f.js +++ b/locust/webui/dist/assets/index-d0af3b25.js @@ -155,20 +155,20 @@ ${W.current.stack} `&&(C.value+=" ");const A=w.boxSizing,T=ag(w.paddingBottom)+ag(w.paddingTop),M=ag(w.borderBottomWidth)+ag(w.borderTopWidth),I=C.scrollHeight;C.value="x";const P=C.scrollHeight;let k=I;a&&(k=Math.max(Number(a)*P,k)),i&&(k=Math.min(Number(i)*P,k)),k=Math.max(k,P);const R=k+(A==="border-box"?T+M:0),z=Math.abs(k-I)<=1;return{outerHeightStyle:R,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();ZD(_)||v(b=>m(b,_))},[g]),x=()=>{const _=g();ZD(_)||kf.flushSync(()=>{v(b=>m(b,_))})};O.useEffect(()=>{const _=()=>{h.current=0,c.current&&x()},b=av(()=>{h.current=0,c.current&&x()});let w;const C=c.current,A=Da(C);return A.addEventListener("resize",b),typeof ResizeObserver<"u"&&(w=new ResizeObserver(_),w.observe(C)),()=>{b.clear(),A.removeEventListener("resize",b),w&&w.disconnect()}}),ho(()=>{y()}),O.useEffect(()=>{h.current=0},[s]);const S=_=>{h.current=0,u||y(),n&&n(_)};return E.jsxs(O.Fragment,{children:[E.jsx("textarea",F({value:s,onChange:S,ref:f,rows:a,style:F({height:p.outerHeightStyle,overflow:p.overflow?"hidden":void 0},o)},l)),E.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:d,tabIndex:-1,style:F({},Pte.shadow,o,{paddingTop:0,paddingBottom:0})})]})});function Ef({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 Dte=O.createContext(void 0),a2=Dte;function Of(){return O.useContext(a2)}function KD(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Oy(e,t=!1){return e&&(KD(e.value)&&e.value!==""||t&&KD(e.defaultValue)&&e.defaultValue!=="")}function Rte(e){return e.startAdornment}function Lte(e){return Ue("MuiInputBase",e)}const Ete=je("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),gf=Ete,Ote=["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"],X1=(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${Me(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Z1=(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]},Nte=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${Me(r)}`,n&&"disabled",i&&"error",l&&"fullWidth",o&&"focused",s&&"formControl",d&&d!=="medium"&&`size${Me(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 Ze(v,Lte,t)},K1=ge("div",{name:"MuiInputBase",slot:"Root",overridesResolver:X1})(({theme:e,ownerState:t})=>F({},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",[`&.${gf.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&F({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Q1=ge("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Z1})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=F({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 F({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] + .${gf.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},[`&.${gf.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"})}),zte=E.jsx(o4,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Bte=O.forwardRef(function(t,r){var n;const i=Ye({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:I,onKeyUp:P,placeholder:k,readOnly:R,renderSuffix:z,rows:$,slotProps:N={},slots:V={},startAdornment:L,type:G="text",value:U}=i,B=ye(i,Ote),j=y.value!=null?y.value:U,{current:X}=O.useRef(j!=null),W=O.useRef(),ee=O.useCallback(_e=>{},[]),te=Mr(W,x,y.ref,ee),[ie,re]=O.useState(!1),Q=Of(),J=Ef({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 fe=Q&&Q.onFilled,de=Q&&Q.onEmpty,ke=O.useCallback(_e=>{Oy(_e)?fe&&fe():de&&de()},[fe,de]);ho(()=>{X&&ke({value:j})},[j,ke,X]);const We=_e=>{if(J.disabled){_e.stopPropagation();return}M&&M(_e),y.onFocus&&y.onFocus(_e),Q&&Q.onFocus?Q.onFocus(_e):re(!0)},Ge=_e=>{C&&C(_e),y.onBlur&&y.onBlur(_e),Q&&Q.onBlur?Q.onBlur(_e):re(!1)},at=(_e,...he)=>{if(!X){const Vt=_e.target||W.current;if(Vt==null)throw new Error(Cs(1));ke({value:Vt.value})}y.onChange&&y.onChange(_e,...he),A&&A(_e,...he)};O.useEffect(()=>{ke(W.current)},[]);const ot=_e=>{W.current&&_e.currentTarget===_e.target&&W.current.focus(),T&&T(_e)};let It=m,Be=y;b&&It==="input"&&($?Be=F({type:void 0,minRows:$,maxRows:$},Be):Be=F({type:void 0,maxRows:S,minRows:_},Be),It=kte);const Pt=_e=>{ke(_e.animationName==="mui-auto-fill-cancel"?W.current:{value:"x"})};O.useEffect(()=>{Q&&Q.setAdornedStart(!!L)},[Q,L]);const Yt=F({},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:L,type:G}),kt=Nte(Yt),K=V.root||u.Root||K1,le=N.root||c.root||{},Re=V.input||u.Input||Q1;return Be=F({},Be,(n=N.input)!=null?n:c.input),E.jsxs(O.Fragment,{children:[!h&&zte,E.jsxs(K,F({},le,!vf(K)&&{ownerState:F({},Yt,le.ownerState)},{ref:r,onClick:ot},B,{className:Ce(kt.root,le.className,l,R&&"MuiInputBase-readOnly"),children:[L,E.jsx(a2.Provider,{value:null,children:E.jsx(Re,F({ownerState:Yt,"aria-invalid":J.error,"aria-describedby":a,autoComplete:o,autoFocus:s,defaultValue:f,disabled:J.disabled,id:g,onAnimationStart:Pt,name:w,placeholder:k,readOnly:R,required:J.required,rows:$,value:j,onKeyDown:I,onKeyUp:P,type:G},Be,!vf(Re)&&{as:It,ownerState:F({},Yt,Be.ownerState)},{ref:te,className:Ce(kt.input,Be.className,R&&"MuiInputBase-readOnly"),onBlur:Ge,onChange:at,onFocus:We}))}),p,z?z(F({},J,{startAdornment:L})):null]}))]})}),o2=Bte;function Fte(e){return Ue("MuiInput",e)}const $te=F({},gf,je("MuiInput",["root","underline","input"])),pd=$te;function Vte(e){return Ue("MuiOutlinedInput",e)}const Gte=F({},gf,je("MuiOutlinedInput",["root","notchedOutline","input"])),ko=Gte;function Hte(e){return Ue("MuiFilledInput",e)}const Wte=F({},gf,je("MuiFilledInput",["root","underline","input"])),Us=Wte,Ute=j1(E.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),jte=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Yte={entering:{opacity:1},entered:{opacity:1}},qte=O.forwardRef(function(t,r){const n=Rf(),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=r2}=t,x=ye(t,jte),S=O.useRef(null),_=Mr(S,s.ref,r),b=k=>R=>{if(k){const z=S.current;R===void 0?k(z):k(z,R)}},w=b(d),C=b((k,R)=>{f4(k);const z=pf({style:g,timeout:m,easing:l},{mode:"enter"});k.style.webkitTransition=n.transitions.create("opacity",z),k.style.transition=n.transitions.create("opacity",z),c&&c(k,R)}),A=b(f),T=b(v),M=b(k=>{const R=pf({style:g,timeout:m,easing:l},{mode:"exit"});k.style.webkitTransition=n.transitions.create("opacity",R),k.style.transition=n.transitions.create("opacity",R),h&&h(k)}),I=b(p),P=k=>{a&&a(S.current,k)};return E.jsx(y,F({appear:o,in:u,nodeRef:S,onEnter:C,onEntered:A,onEntering:w,onExit:M,onExited:I,onExiting:T,addEndListener:P,timeout:m},x,{children:(k,R)=>O.cloneElement(s,F({style:F({opacity:0,visibility:k==="exited"&&!u?"hidden":void 0},Yte[k],g,s.props.style),ref:_},R))}))}),Xte=qte;function Zte(e){return Ue("MuiBackdrop",e)}je("MuiBackdrop",["root","invisible"]);const Kte=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Qte=e=>{const{classes:t,invisible:r}=e;return Ze({root:["root",r&&"invisible"]},Zte,t)},Jte=ge("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>F({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"})),ere=O.forwardRef(function(t,r){var n,i,a;const o=Ye({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=Xte,transitionDuration:m}=o,y=ye(o,Kte),x=F({},o,{component:u,invisible:d}),S=Qte(x),_=(n=p.root)!=null?n:f.root;return E.jsx(g,F({in:h,timeout:m},y,{children:E.jsx(Jte,F({"aria-hidden":!0},_,{as:(i=(a=v.root)!=null?a:c.Root)!=null?i:u,className:Ce(S.root,l,_==null?void 0:_.className),ownerState:F({},x,_==null?void 0:_.ownerState),classes:S,ref:r,children:s}))}))}),tre=ere,rre=t2(),nre=pQ({themeId:gu,defaultTheme:rre,defaultClassName:"MuiBox-root",generateClassName:WM.generate}),ft=nre;function ire(e){return Ue("MuiButton",e)}const are=je("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"]),og=are,ore=O.createContext({}),sre=ore,lre=O.createContext(void 0),ure=lre,cre=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],fre=e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:a,classes:o}=e,s={root:["root",a,`${a}${Me(t)}`,`size${Me(i)}`,`${a}Size${Me(i)}`,t==="inherit"&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Me(i)}`],endIcon:["endIcon",`iconSize${Me(i)}`]},l=Ze(s,ire,o);return F({},o,l)},x4=e=>F({},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}}),dre=ge(Lf,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Me(r.color)}`],t[`size${Me(r.size)}`],t[`${r.variant}Size${Me(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 F({},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":F({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:wr(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})`:wr(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})`:wr(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":F({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${og.focusVisible}`]:F({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${og.disabled}`]:F({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 ${wr(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"},[`&.${og.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${og.disabled}`]:{boxShadow:"none"}}),hre=ge("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Me(r.size)}`]]}})(({ownerState:e})=>F({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},x4(e))),pre=ge("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Me(r.size)}`]]}})(({ownerState:e})=>F({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},x4(e))),vre=O.forwardRef(function(t,r){const n=O.useContext(sre),i=O.useContext(ure),a=HM(n,t),o=Ye({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,_=ye(o,cre),b=F({},o,{color:l,component:u,disabled:f,disableElevation:d,disableFocusRipple:h,fullWidth:g,size:m,type:x,variant:S}),w=fre(b),C=y&&E.jsx(hre,{className:w.startIcon,ownerState:b,children:y}),A=p&&E.jsx(pre,{className:w.endIcon,ownerState:b,children:p}),T=i||"";return E.jsxs(dre,F({ownerState:b,className:Ce(n.className,w.root,c,T),component:u,disabled:f,focusRipple:!h,focusVisibleClassName:Ce(w.focusVisible,v),ref:r,type:x},_,{classes:w,children:[C,s,A]}))}),Au=vre,gre=GQ({createStyledComponent:ge("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Me(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Ye({props:e,name:"MuiContainer"})}),Nf=gre;function mre(e){return Ue("MuiModal",e)}je("MuiModal",["root","hidden","backdrop"]);const yre=["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"],xre=e=>{const{open:t,exited:r,classes:n}=e;return Ze({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},mre,n)},Sre=ge("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})=>F({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),bre=ge(tre,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),_re=O.forwardRef(function(t,r){var n,i,a,o,s,l;const u=Ye({name:"MuiModal",props:t}),{BackdropComponent:c=bre,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:I,slotProps:P,slots:k}=u,R=ye(u,yre),z=F({},u,{closeAfterTransition:h,disableAutoFocus:x,disableEnforceFocus:S,disableEscapeKeyDown:_,disablePortal:b,disableRestoreFocus:w,disableScrollLock:C,hideBackdrop:A,keepMounted:T}),{getRootProps:$,getBackdropProps:N,getTransitionProps:V,portalRef:L,isTopModal:G,exited:U,hasTransition:B}=Mte(F({},z,{rootRef:r})),j=F({},z,{exited:U}),X=xre(j),W={};if(p.props.tabIndex===void 0&&(W.tabIndex="-1"),B){const{onEnter:fe,onExited:de}=V();W.onEnter=fe,W.onExited=de}const ee=(n=(i=k==null?void 0:k.root)!=null?i:m.Root)!=null?n:Sre,te=(a=(o=k==null?void 0:k.backdrop)!=null?o:m.Backdrop)!=null?a:c,ie=(s=P==null?void 0:P.root)!=null?s:y.root,re=(l=P==null?void 0:P.backdrop)!=null?l:y.backdrop,Q=Ra({elementType:ee,externalSlotProps:ie,externalForwardedProps:R,getSlotProps:$,additionalProps:{ref:r,as:g},ownerState:j,className:Ce(d,ie==null?void 0:ie.className,X==null?void 0:X.root,!j.open&&j.exited&&(X==null?void 0:X.hidden))}),J=Ra({elementType:te,externalSlotProps:re,additionalProps:f,getSlotProps:fe=>N(F({},fe,{onClick:de=>{M&&M(de),fe!=null&&fe.onClick&&fe.onClick(de)}})),className:Ce(re==null?void 0:re.className,f==null?void 0:f.className,X==null?void 0:X.backdrop),ownerState:j});return!T&&!I&&(!B||U)?null:E.jsx(yte,{ref:L,container:v,disablePortal:b,children:E.jsxs(ee,F({},Q,{children:[!A&&c?E.jsx(te,F({},J)):null,E.jsx(gte,{disableEnforceFocus:S,disableAutoFocus:x,disableRestoreFocus:w,isEnabled:G,open:I,children:O.cloneElement(p,W)})]}))})}),S4=_re;function wre(e){return Ue("MuiDivider",e)}je("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Cre=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Tre=e=>{const{absolute:t,children:r,classes:n,flexItem:i,light:a,orientation:o,textAlign:s,variant:l}=e;return Ze({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"]},wre,n)},Are=ge("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})=>F({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)`:wr(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})=>F({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>F({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>F({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>F({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Mre=ge("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>F({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)`})),b4=O.forwardRef(function(t,r){const n=Ye({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=ye(n,Cre),v=F({},n,{absolute:i,component:s,flexItem:l,light:u,orientation:c,role:f,textAlign:d,variant:h}),g=Tre(v);return E.jsx(Are,F({as:s,className:Ce(g.root,o),role:f,ref:r,ownerState:v},p,{children:a?E.jsx(Mre,{className:g.wrapper,ownerState:v,children:a}):null}))});b4.muiSkipListHighlight=!0;const vd=b4,Ire=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Pre=e=>{const{classes:t,disableUnderline:r}=e,i=Ze({root:["root",!r&&"underline"],input:["input"]},Hte,t);return F({},t,i)},kre=ge(K1,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...X1(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 F({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}},[`&.${Us.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${Us.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"},[`&.${Us.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Us.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(.${Us.disabled}, .${Us.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Us.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&F({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),Dre=ge(Q1,{name:"MuiFilledInput",slot:"Input",overridesResolver:Z1})(({theme:e,ownerState:t})=>F({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})),_4=O.forwardRef(function(t,r){var n,i,a,o;const s=Ye({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=ye(s,Ire),m=F({},s,{fullWidth:c,inputComponent:f,multiline:d,type:v}),y=Pre(s),x={root:{ownerState:m},input:{ownerState:m}},S=h??u?yi(h??u,x):x,_=(n=(i=p.root)!=null?i:l.Root)!=null?n:kre,b=(a=(o=p.input)!=null?o:l.Input)!=null?a:Dre;return E.jsx(o2,F({slots:{root:_,input:b},componentsProps:S,fullWidth:c,inputComponent:f,multiline:d,ref:r,type:v},g,{classes:y}))});_4.muiName="Input";const w4=_4;function Rre(e){return Ue("MuiFormControl",e)}je("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Lre=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Ere=e=>{const{classes:t,margin:r,fullWidth:n}=e,i={root:["root",r!=="none"&&`margin${Me(r)}`,n&&"fullWidth"]};return Ze(i,Rre,t)},Ore=ge("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>F({},t.root,t[`margin${Me(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>F({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%"})),Nre=O.forwardRef(function(t,r){const n=Ye({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=ye(n,Lre),y=F({},n,{color:o,component:s,disabled:l,error:u,fullWidth:f,hiddenLabel:d,margin:h,required:p,size:v,variant:g}),x=Ere(y),[S,_]=O.useState(()=>{let P=!1;return i&&O.Children.forEach(i,k=>{if(!Ch(k,["Input","Select"]))return;const R=Ch(k,["Select"])?k.props.input:k;R&&Rte(R.props)&&(P=!0)}),P}),[b,w]=O.useState(()=>{let P=!1;return i&&O.Children.forEach(i,k=>{Ch(k,["Input","Select"])&&(Oy(k.props,!0)||Oy(k.props.inputProps,!0))&&(P=!0)}),P}),[C,A]=O.useState(!1);l&&C&&A(!1);const T=c!==void 0&&!l?c:C;let M;const I=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 E.jsx(a2.Provider,{value:I,children:E.jsx(Ore,F({as:s,ownerState:y,className:Ce(x.root,a),ref:r},m,{children:i}))})}),C4=Nre;function zre(e){return Ue("MuiFormHelperText",e)}const Bre=je("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),QD=Bre;var JD;const Fre=["children","className","component","disabled","error","filled","focused","margin","required","variant"],$re=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${Me(n)}`,r&&"contained",s&&"focused",o&&"filled",l&&"required"]};return Ze(u,zre,t)},Vre=ge("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${Me(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>F({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${QD.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${QD.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Gre=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:o="p"}=n,s=ye(n,Fre),l=Of(),u=Ef({props:n,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=F({},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=$re(c);return E.jsx(Vre,F({as:o,ownerState:c,className:Ce(f.root,a),ref:r},s,{children:i===" "?JD||(JD=E.jsx("span",{className:"notranslate",children:"​"})):i}))}),Hre=Gre;function Wre(e){return Ue("MuiFormLabel",e)}const Ure=je("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ih=Ure,jre=["children","className","color","component","disabled","error","filled","focused","required"],Yre=e=>{const{classes:t,color:r,focused:n,disabled:i,error:a,filled:o,required:s}=e,l={root:["root",`color${Me(r)}`,i&&"disabled",a&&"error",o&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return Ze(l,Wre,t)},qre=ge("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>F({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>F({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Ih.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Ih.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ih.error}`]:{color:(e.vars||e).palette.error.main}})),Xre=ge("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ih.error}`]:{color:(e.vars||e).palette.error.main}})),Zre=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiFormLabel"}),{children:i,className:a,component:o="label"}=n,s=ye(n,jre),l=Of(),u=Ef({props:n,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=F({},n,{color:u.color||"primary",component:o,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=Yre(c);return E.jsxs(qre,F({as:o,ownerState:c,className:Ce(f.root,a),ref:r},s,{children:[i,u.required&&E.jsxs(Xre,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),Kre=Zre,Qre=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function IC(e){return`scale(${e}, ${e**2})`}const Jre={entering:{opacity:1,transform:IC(1)},entered:{opacity:1,transform:"none"}},MS=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),T4=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=r2}=t,m=ye(t,Qre),y=O.useRef(),x=O.useRef(),S=Rf(),_=O.useRef(null),b=Mr(_,a.ref,r),w=R=>z=>{if(R){const $=_.current;z===void 0?R($):R($,z)}},C=w(c),A=w((R,z)=>{f4(R);const{duration:$,delay:N,easing:V}=pf({style:p,timeout:v,easing:o},{mode:"enter"});let L;v==="auto"?(L=S.transitions.getAutoHeightDuration(R.clientHeight),x.current=L):L=$,R.style.transition=[S.transitions.create("opacity",{duration:L,delay:N}),S.transitions.create("transform",{duration:MS?L:L*.666,delay:N,easing:V})].join(","),l&&l(R,z)}),T=w(u),M=w(h),I=w(R=>{const{duration:z,delay:$,easing:N}=pf({style:p,timeout:v,easing:o},{mode:"exit"});let V;v==="auto"?(V=S.transitions.getAutoHeightDuration(R.clientHeight),x.current=V):V=z,R.style.transition=[S.transitions.create("opacity",{duration:V,delay:$}),S.transitions.create("transform",{duration:MS?V:V*.666,delay:MS?$:$||V*.333,easing:N})].join(","),R.style.opacity=0,R.style.transform=IC(.75),f&&f(R)}),P=w(d),k=R=>{v==="auto"&&(y.current=setTimeout(R,x.current||0)),n&&n(_.current,R)};return O.useEffect(()=>()=>{clearTimeout(y.current)},[]),E.jsx(g,F({appear:i,in:s,nodeRef:_,onEnter:A,onEntered:T,onEntering:C,onExit:I,onExited:P,onExiting:M,addEndListener:k,timeout:v==="auto"?null:v},m,{children:(R,z)=>O.cloneElement(a,F({style:F({opacity:0,transform:IC(.75),visibility:R==="exited"&&!s?"hidden":void 0},Jre[R],p,a.props.style),ref:b},z))}))});T4.muiSupportAuto=!0;const ene=T4,tne=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],rne=e=>{const{classes:t,disableUnderline:r}=e,i=Ze({root:["root",!r&&"underline"],input:["input"]},Fte,t);return F({},t,i)},nne=ge(K1,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...X1(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})`),F({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"},[`&.${pd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${pd.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(.${pd.disabled}, .${pd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${pd.disabled}:before`]:{borderBottomStyle:"dotted"}})}),ine=ge(Q1,{name:"MuiInput",slot:"Input",overridesResolver:Z1})({}),A4=O.forwardRef(function(t,r){var n,i,a,o;const s=Ye({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=ye(s,tne),y=rne(s),S={root:{ownerState:{disableUnderline:l}}},_=p??c?yi(p??c,S):S,b=(n=(i=v.root)!=null?i:u.Root)!=null?n:nne,w=(a=(o=v.input)!=null?o:u.Input)!=null?a:ine;return E.jsx(o2,F({slots:{root:b,input:w},slotProps:_,fullWidth:f,inputComponent:d,multiline:h,ref:r,type:g},m,{classes:y}))});A4.muiName="Input";const M4=A4;function ane(e){return Ue("MuiInputLabel",e)}je("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const one=["disableAnimation","margin","shrink","variant","className"],sne=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${Me(n)}`,o],asterisk:[s&&"asterisk"]},u=Ze(l,ane,t);return F({},t,u)},lne=ge(Kre,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Ih.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})=>F({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"&&F({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&&F({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"&&F({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)"}))),une=O.forwardRef(function(t,r){const n=Ye({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:a,className:o}=n,s=ye(n,one),l=Of();let u=a;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=Ef({props:n,muiFormControl:l,states:["size","variant","required"]}),f=F({},n,{disableAnimation:i,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required}),d=sne(f);return E.jsx(lne,F({"data-shrink":u,ownerState:f,ref:r,className:Ce(d.root,o)},s,{classes:d}))}),I4=une;function cne(e){return Ue("MuiLink",e)}const fne=je("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),dne=fne,P4={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},hne=e=>P4[e]||e,pne=({theme:e,ownerState:t})=>{const r=hne(t.color),n=hf(e,`palette.${r}`,!1)||t.color,i=hf(e,`palette.${r}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:wr(n,.4)},vne=pne,gne=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],mne=e=>{const{classes:t,component:r,focusVisible:n,underline:i}=e,a={root:["root",`underline${Me(i)}`,r==="button"&&"button",n&&"focusVisible"]};return Ze(a,cne,t)},yne=ge(Xe,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Me(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>F({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&F({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:vne({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"},[`&.${dne.focusVisible}`]:{outline:"auto"}})),xne=O.forwardRef(function(t,r){const n=Ye({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=ye(n,gne),{isFocusVisibleRef:p,onBlur:v,onFocus:g,ref:m}=GM(),[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=F({},n,{color:a,component:o,focusVisible:y,underline:c,variant:f}),C=mne(w);return E.jsx(yne,F({color:a,className:Ce(C.root,i),classes:u,component:o,onBlur:_,onFocus:b,ref:S,ownerState:w,variant:f,sx:[...Object.keys(P4).includes(a)?[]:[{color:a}],...Array.isArray(d)?d:[d]]},h))}),li=xne,Sne=O.createContext({}),Ph=Sne;function bne(e){return Ue("MuiList",e)}je("MuiList",["root","padding","dense","subheader"]);const _ne=["children","className","component","dense","disablePadding","subheader"],wne=e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return Ze({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},bne,t)},Cne=ge("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})=>F({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Tne=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiList"}),{children:i,className:a,component:o="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=n,c=ye(n,_ne),f=O.useMemo(()=>({dense:s}),[s]),d=F({},n,{component:o,dense:s,disablePadding:l}),h=wne(d);return E.jsx(Ph.Provider,{value:f,children:E.jsxs(Cne,F({as:o,className:Ce(h.root,a),ref:r,ownerState:d},c,{children:[u,i]}))})}),k4=Tne;function Ane(e){return Ue("MuiListItem",e)}const Mne=je("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),gc=Mne,Ine=je("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Pne=Ine;function kne(e){return Ue("MuiListItemSecondaryAction",e)}je("MuiListItemSecondaryAction",["root","disableGutters"]);const Dne=["className"],Rne=e=>{const{disableGutters:t,classes:r}=e;return Ze({root:["root",t&&"disableGutters"]},kne,r)},Lne=ge("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})(({ownerState:e})=>F({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),D4=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=n,a=ye(n,Dne),o=O.useContext(Ph),s=F({},n,{disableGutters:o.disableGutters}),l=Rne(s);return E.jsx(Lne,F({className:Ce(l.root,i),ownerState:s,ref:r},a))});D4.muiName="ListItemSecondaryAction";const Ene=D4,One=["className"],Nne=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],zne=(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]},Bne=e=>{const{alignItems:t,button:r,classes:n,dense:i,disabled:a,disableGutters:o,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return Ze({root:["root",i&&"dense",!o&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",r&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},Ane,n)},Fne=ge("div",{name:"MuiListItem",slot:"Root",overridesResolver:zne})(({theme:e,ownerState:t})=>F({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&F({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Pne.root}`]:{paddingRight:48}},{[`&.${gc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${gc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:wr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${gc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:wr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${gc.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"}},[`&.${gc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:wr(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})`:wr(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),$ne=ge("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Vne=O.forwardRef(function(t,r){const n=Ye({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=ye(n.ContainerProps,One),A=ye(n,Nne),T=O.useContext(Ph),M=O.useMemo(()=>({dense:p||T.dense||!1,alignItems:i,disableGutters:g}),[i,T.dense,p,g]),I=O.useRef(null);ho(()=>{a&&I.current&&I.current.focus()},[a]);const P=O.Children.toArray(s),k=P.length&&Ch(P[P.length-1],["ListItemSecondaryAction"]),R=F({},n,{alignItems:i,autoFocus:a,button:o,dense:M.dense,disabled:v,disableGutters:g,disablePadding:m,divider:y,hasSecondaryAction:k,selected:_}),z=Bne(R),$=Mr(I,r),N=w.root||c.Root||Fne,V=b.root||f.root||{},L=F({className:Ce(z.root,V.className,l),disabled:v},A);let G=u||"li";return o&&(L.component=u||"div",L.focusVisibleClassName=Ce(gc.focusVisible,x),G=Lf),k?(G=!L.component&&!u?"div":G,d==="li"&&(G==="li"?G="div":L.component==="li"&&(L.component="div")),E.jsx(Ph.Provider,{value:M,children:E.jsxs($ne,F({as:d,className:Ce(z.container,h),ref:$,ownerState:R},C,{children:[E.jsx(N,F({},V,!vf(N)&&{as:G,ownerState:F({},R,V.ownerState)},L,{children:P})),P.pop()]}))})):E.jsx(Ph.Provider,{value:M,children:E.jsxs(N,F({},V,{as:G,ref:$},!vf(N)&&{ownerState:F({},R,V.ownerState)},L,{children:[P,S&&E.jsx(Ene,{children:S})]}))})}),ju=Vne,Gne=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function IS(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function eR(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function R4(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 gd(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")||!R4(s,a)||l)s=i(e,s,r);else return s.focus(),!0}return!1}const Hne=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=ye(t,Gne),h=O.useRef(null),p=O.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ho(()=>{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=on(S).activeElement;if(_==="ArrowDown")x.preventDefault(),gd(S,b,u,l,IS);else if(_==="ArrowUp")x.preventDefault(),gd(S,b,u,l,eR);else if(_==="Home")x.preventDefault(),gd(S,null,u,l,IS);else if(_==="End")x.preventDefault(),gd(S,null,u,l,eR);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&&R4(b,w);w.previousKeyMatched&&(T||gd(S,b,!1,l,IS,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 E.jsx(k4,F({role:"menu",ref:g,className:s,onKeyDown:v,tabIndex:i?0:-1},d,{children:y}))}),Wne=Hne;function Une(e){return Ue("MuiPopover",e)}je("MuiPopover",["root","paper"]);const jne=["onEntering"],Yne=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],qne=["slotProps"];function tR(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function rR(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function nR(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function PS(e){return typeof e=="function"?e():e}const Xne=e=>{const{classes:t}=e;return Ze({root:["root"],paper:["paper"]},Une,t)},Zne=ge(S4,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),L4=ge(Y1,{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}),Kne=O.forwardRef(function(t,r){var n,i,a;const o=Ye({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=ene,transitionDuration:w="auto",TransitionProps:{onEntering:C}={},disableScrollLock:A=!1}=o,T=ye(o.TransitionProps,jne),M=ye(o,Yne),I=(n=S==null?void 0:S.paper)!=null?n:y,P=O.useRef(),k=Mr(P,I.ref),R=F({},o,{anchorOrigin:u,anchorReference:f,elevation:v,marginThreshold:g,externalPaperSlotProps:I,transformOrigin:_,TransitionComponent:b,transitionDuration:w,TransitionProps:T}),z=Xne(R),$=O.useCallback(()=>{if(f==="anchorPosition")return c;const fe=PS(l),ke=(fe&&fe.nodeType===1?fe:on(P.current).body).getBoundingClientRect();return{top:ke.top+tR(ke,u.vertical),left:ke.left+rR(ke,u.horizontal)}},[l,u.horizontal,u.vertical,c,f]),N=O.useCallback(fe=>({vertical:tR(fe,_.vertical),horizontal:rR(fe,_.horizontal)}),[_.horizontal,_.vertical]),V=O.useCallback(fe=>{const de={width:fe.offsetWidth,height:fe.offsetHeight},ke=N(de);if(f==="none")return{top:null,left:null,transformOrigin:nR(ke)};const We=$();let Ge=We.top-ke.vertical,at=We.left-ke.horizontal;const ot=Ge+de.height,It=at+de.width,Be=Da(PS(l)),Pt=Be.innerHeight-g,Yt=Be.innerWidth-g;if(g!==null&&GePt){const kt=ot-Pt;Ge-=kt,ke.vertical+=kt}if(g!==null&&atYt){const kt=It-Yt;at-=kt,ke.horizontal+=kt}return{top:`${Math.round(Ge)}px`,left:`${Math.round(at)}px`,transformOrigin:nR(ke)}},[l,f,$,N,g]),[L,G]=O.useState(m),U=O.useCallback(()=>{const fe=P.current;if(!fe)return;const de=V(fe);de.top!==null&&(fe.style.top=de.top),de.left!==null&&(fe.style.left=de.left),fe.style.transformOrigin=de.transformOrigin,G(!0)},[V]);O.useEffect(()=>(A&&window.addEventListener("scroll",U),()=>window.removeEventListener("scroll",U)),[l,A,U]);const B=(fe,de)=>{C&&C(fe,de),U()},j=()=>{G(!1)};O.useEffect(()=>{m&&U()}),O.useImperativeHandle(s,()=>m?{updatePosition:()=>{U()}}:null,[m,U]),O.useEffect(()=>{if(!m)return;const fe=av(()=>{U()}),de=Da(l);return de.addEventListener("resize",fe),()=>{fe.clear(),de.removeEventListener("resize",fe)}},[l,m,U]);let X=w;w==="auto"&&!b.muiSupportAuto&&(X=void 0);const W=p||(l?on(PS(l)).body:void 0),ee=(i=x==null?void 0:x.root)!=null?i:Zne,te=(a=x==null?void 0:x.paper)!=null?a:L4,ie=Ra({elementType:te,externalSlotProps:F({},I,{style:L?I.style:F({},I.style,{opacity:0})}),additionalProps:{elevation:v,ref:k},ownerState:R,className:Ce(z.paper,I==null?void 0:I.className)}),re=Ra({elementType:ee,externalSlotProps:(S==null?void 0:S.root)||{},externalForwardedProps:M,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:W,open:m},ownerState:R,className:Ce(z.root,h)}),{slotProps:Q}=re,J=ye(re,qne);return E.jsx(ee,F({},J,!vf(ee)&&{slotProps:Q,disableScrollLock:A},{children:E.jsx(b,F({appear:!0,in:m,onEntering:B,onExited:j,timeout:X},T,{children:E.jsx(te,F({},ie,{children:d}))}))}))}),Qne=Kne;function Jne(e){return Ue("MuiMenu",e)}je("MuiMenu",["root","paper","list"]);const eie=["onEntering"],tie=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],rie={vertical:"top",horizontal:"right"},nie={vertical:"top",horizontal:"left"},iie=e=>{const{classes:t}=e;return Ze({root:["root"],paper:["paper"],list:["list"]},Jne,t)},aie=ge(Qne,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),oie=ge(L4,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),sie=ge(Wne,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),lie=O.forwardRef(function(t,r){var n,i;const a=Ye({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=ye(a.TransitionProps,eie),_=ye(a,tie),b=Rf(),w=b.direction==="rtl",C=F({},a,{autoFocus:o,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:h,transitionDuration:v,TransitionProps:S,variant:m}),A=iie(C),T=o&&!u&&d,M=O.useRef(null),I=(V,L)=>{M.current&&M.current.adjustStyleForScrollbar(V,b),g&&g(V,L)},P=V=>{V.key==="Tab"&&(V.preventDefault(),f&&f(V,"tabKeyDown"))};let k=-1;O.Children.map(s,(V,L)=>{O.isValidElement(V)&&(V.props.disabled||(m==="selectedMenu"&&V.props.selected||k===-1)&&(k=L))});const R=(n=y.paper)!=null?n:oie,z=(i=x.paper)!=null?i:h,$=Ra({elementType:y.root,externalSlotProps:x.root,ownerState:C,className:[A.root,l]}),N=Ra({elementType:R,externalSlotProps:z,ownerState:C,className:A.paper});return E.jsx(aie,F({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?rie:nie,slots:{paper:R,root:y.root},slotProps:{root:$,paper:N},open:d,ref:r,transitionDuration:v,TransitionProps:F({onEntering:I},S),ownerState:C},_,{classes:p,children:E.jsx(sie,F({onKeyDown:P,actions:M,autoFocus:o&&(k===-1||u),autoFocusItem:T,variant:m},c,{className:Ce(A.list,c.className),children:s}))}))}),uie=lie;function cie(e){return Ue("MuiNativeSelect",e)}const fie=je("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),s2=fie,die=["className","disabled","error","IconComponent","inputRef","variant"],hie=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${Me(r)}`,a&&"iconOpen",n&&"disabled"]};return Ze(s,cie,t)},E4=({ownerState:e,theme:t})=>F({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":F({},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"},[`&.${s2.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}}),pie=ge("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:wo,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${s2.multiple}`]:t.multiple}]}})(E4),O4=({ownerState:e,theme:t})=>F({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${s2.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),vie=ge("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Me(r.variant)}`],r.open&&t.iconOpen]}})(O4),gie=O.forwardRef(function(t,r){const{className:n,disabled:i,error:a,IconComponent:o,inputRef:s,variant:l="standard"}=t,u=ye(t,die),c=F({},t,{disabled:i,variant:l,error:a}),f=hie(c);return E.jsxs(O.Fragment,{children:[E.jsx(pie,F({ownerState:c,className:Ce(f.select,n),disabled:i,ref:s||r},u)),t.multiple?null:E.jsx(vie,{as:o,ownerState:c,className:f.icon})]})}),mie=gie;var iR;const yie=["children","classes","className","label","notched"],xie=ge("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%"}),Sie=ge("legend")(({ownerState:e,theme:t})=>F({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&&F({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 bie(e){const{className:t,label:r,notched:n}=e,i=ye(e,yie),a=r!=null&&r!=="",o=F({},e,{notched:n,withLabel:a});return E.jsx(xie,F({"aria-hidden":!0,className:t,ownerState:o},i,{children:E.jsx(Sie,{ownerState:o,children:a?E.jsx("span",{children:r}):iR||(iR=E.jsx("span",{className:"notranslate",children:"​"}))})}))}const _ie=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],wie=e=>{const{classes:t}=e,n=Ze({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Vte,t);return F({},t,n)},Cie=ge(K1,{shouldForwardProp:e=>wo(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:X1})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return F({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ko.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ko.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${ko.focused} .${ko.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ko.error} .${ko.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ko.disabled} .${ko.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&F({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Tie=ge(bie,{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}}),Aie=ge(Q1,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Z1})(({theme:e,ownerState:t})=>F({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})),N4=O.forwardRef(function(t,r){var n,i,a,o,s;const l=Ye({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=ye(l,_ie),y=wie(l),x=Of(),S=Ef({props:l,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_=F({},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:Cie,w=(a=(o=v.input)!=null?o:u.Input)!=null?a:Aie;return E.jsx(o2,F({slots:{root:b,input:w},renderSuffix:C=>E.jsx(Tie,{ownerState:_,className:y.notchedOutline,label:d!=null&&d!==""&&S.required?s||(s=E.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:F({},y,{notchedOutline:null})}))});N4.muiName="Input";const z4=N4;function Mie(e){return Ue("MuiSelect",e)}const Iie=je("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),md=Iie;var aR;const Pie=["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"],kie=ge("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${md.select}`]:t.select},{[`&.${md.select}`]:t[r.variant]},{[`&.${md.error}`]:t.error},{[`&.${md.multiple}`]:t.multiple}]}})(E4,{[`&.${md.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Die=ge("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Me(r.variant)}`],r.open&&t.iconOpen]}})(O4),Rie=ge("input",{shouldForwardProp:e=>AJ(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 oR(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Lie(e){return e==null||typeof e=="string"&&!e.trim()}const Eie=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${Me(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Ze(s,Mie,t)},Oie=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:I,SelectDisplayProps:P={},tabIndex:k,value:R,variant:z="standard"}=t,$=ye(t,Pie),[N,V]=Dy({controlled:R,default:f,name:"Select"}),[L,G]=Dy({controlled:T,default:c,name:"Select"}),U=O.useRef(null),B=O.useRef(null),[j,X]=O.useState(null),{current:W}=O.useRef(T!=null),[ee,te]=O.useState(),ie=Mr(r,g),re=O.useCallback(Te=>{B.current=Te,Te&&X(Te)},[]),Q=j==null?void 0:j.parentNode;O.useImperativeHandle(ie,()=>({focus:()=>{B.current.focus()},node:U.current,value:N}),[N]),O.useEffect(()=>{c&&L&&j&&!W&&(te(s?null:Q.clientWidth),B.current.focus())},[j,s]),O.useEffect(()=>{o&&B.current.focus()},[o]),O.useEffect(()=>{if(!m)return;const Te=on(B.current).getElementById(m);if(Te){const ut=()=>{getSelection().isCollapsed&&B.current.focus()};return Te.addEventListener("click",ut),()=>{Te.removeEventListener("click",ut)}}},[m]);const J=(Te,ut)=>{Te?A&&A(ut):w&&w(ut),W||(te(s?null:Q.clientWidth),G(Te))},fe=Te=>{Te.button===0&&(Te.preventDefault(),B.current.focus(),J(!0,Te))},de=Te=>{J(!1,Te)},ke=O.Children.toArray(l),We=Te=>{const ut=ke.find(Rt=>Rt.props.value===Te.target.value);ut!==void 0&&(V(ut.props.value),b&&b(Te,ut))},Ge=Te=>ut=>{let Rt;if(ut.currentTarget.hasAttribute("tabindex")){if(x){Rt=Array.isArray(N)?N.slice():[];const pe=N.indexOf(Te.props.value);pe===-1?Rt.push(Te.props.value):Rt.splice(pe,1)}else Rt=Te.props.value;if(Te.props.onClick&&Te.props.onClick(ut),N!==Rt&&(V(Rt),b)){const pe=ut.nativeEvent||ut,De=new pe.constructor(pe.type,pe);Object.defineProperty(De,"target",{writable:!0,value:{value:Rt,name:S}}),b(De,Te)}x||J(!1,ut)}},at=Te=>{M||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Te.key)!==-1&&(Te.preventDefault(),J(!0,Te))},ot=j!==null&&L,It=Te=>{!ot&&_&&(Object.defineProperty(Te,"target",{writable:!0,value:{value:N,name:S}}),_(Te))};delete $["aria-invalid"];let Be,Pt;const Yt=[];let kt=!1;(Oy({value:N})||h)&&(I?Be=I(N):kt=!0);const K=ke.map(Te=>{if(!O.isValidElement(Te))return null;let ut;if(x){if(!Array.isArray(N))throw new Error(Cs(2));ut=N.some(Rt=>oR(Rt,Te.props.value)),ut&&kt&&Yt.push(Te.props.children)}else ut=oR(N,Te.props.value),ut&&kt&&(Pt=Te.props.children);return O.cloneElement(Te,{"aria-selected":ut?"true":"false",onClick:Ge(Te),onKeyUp:Rt=>{Rt.key===" "&&Rt.preventDefault(),Te.props.onKeyUp&&Te.props.onKeyUp(Rt)},role:"option",selected:ut,value:void 0,"data-value":Te.props.value})});kt&&(x?Yt.length===0?Be=null:Be=Yt.reduce((Te,ut,Rt)=>(Te.push(ut),Rt{const{classes:t}=e;return t},l2={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>wo(e)&&e!=="variant",slot:"Root"},$ie=ge(M4,l2)(""),Vie=ge(z4,l2)(""),Gie=ge(w4,l2)(""),B4=O.forwardRef(function(t,r){const n=Ye({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:o={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=Ute,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=ye(n,zie),T=y?mie:Nie,M=Of(),I=Ef({props:n,muiFormControl:M,states:["variant","error"]}),P=I.variant||C,k=F({},n,{variant:P,classes:o}),R=Fie(k),z=ye(R,Bie),$=d||{standard:E.jsx($ie,{ownerState:k}),outlined:E.jsx(Vie,{label:p,ownerState:k}),filled:E.jsx(Gie,{ownerState:k})}[P],N=Mr(r,$.ref);return E.jsx(O.Fragment,{children:O.cloneElement($,F({inputComponent:T,inputProps:F({children:a,error:I.error,IconComponent:c,variant:P,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:F({id:f},w)},h,{classes:h?yi(z,h.classes):z},d?d.props.inputProps:{})},m&&y&&P==="outlined"?{notched:!0}:{},{ref:N,className:Ce($.props.className,s,R.root)},!d&&{variant:P},A))})});B4.muiName="Select";const F4=B4;function Hie(e){return Ue("MuiTab",e)}const Wie=je("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),js=Wie,Uie=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],jie=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${Me(r)}`,n&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Ze(u,Hie,t)},Yie=ge(Lf,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${Me(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>F({},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,[`& > .${js.iconWrapper}`]:F({},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,[`&.${js.selected}`]:{opacity:1},[`&.${js.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${js.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${js.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${js.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${js.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)})),qie=O.forwardRef(function(t,r){const n=Ye({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=ye(n,Uie),_=F({},n,{disabled:a,disableFocusRipple:o,selected:v,icon:!!l,iconPosition:u,label:!!f,fullWidth:s,textColor:m,wrapped:x}),b=jie(_),w=l&&f&&O.isValidElement(l)?O.cloneElement(l,{className:Ce(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 E.jsxs(Yie,F({focusRipple:!o,className:Ce(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"?E.jsxs(O.Fragment,{children:[w,f]}):E.jsxs(O.Fragment,{children:[f,w]}),c]}))}),Xie=qie,Zie=O.createContext(),$4=Zie;function Kie(e){return Ue("MuiTable",e)}je("MuiTable",["root","stickyHeader"]);const Qie=["className","component","padding","size","stickyHeader"],Jie=e=>{const{classes:t,stickyHeader:r}=e;return Ze({root:["root",r&&"stickyHeader"]},Kie,t)},eae=ge("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>F({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":F({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),sR="table",tae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTable"}),{className:i,component:a=sR,padding:o="normal",size:s="medium",stickyHeader:l=!1}=n,u=ye(n,Qie),c=F({},n,{component:a,padding:o,size:s,stickyHeader:l}),f=Jie(c),d=O.useMemo(()=>({padding:o,size:s,stickyHeader:l}),[o,s,l]);return E.jsx($4.Provider,{value:d,children:E.jsx(eae,F({as:a,role:a===sR?null:"table",ref:r,className:Ce(f.root,i),ownerState:c},u))})}),rae=tae,nae=O.createContext(),J1=nae;function iae(e){return Ue("MuiTableBody",e)}je("MuiTableBody",["root"]);const aae=["className","component"],oae=e=>{const{classes:t}=e;return Ze({root:["root"]},iae,t)},sae=ge("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),lae={variant:"body"},lR="tbody",uae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableBody"}),{className:i,component:a=lR}=n,o=ye(n,aae),s=F({},n,{component:a}),l=oae(s);return E.jsx(J1.Provider,{value:lae,children:E.jsx(sae,F({className:Ce(l.root,i),as:a,ref:r,role:a===lR?null:"rowgroup",ownerState:s},o))})}),cae=uae;function fae(e){return Ue("MuiTableCell",e)}const dae=je("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),hae=dae,pae=["align","className","component","padding","scope","size","sortDirection","variant"],vae=e=>{const{classes:t,variant:r,align:n,padding:i,size:a,stickyHeader:o}=e,s={root:["root",r,o&&"stickyHeader",n!=="inherit"&&`align${Me(n)}`,i!=="normal"&&`padding${Me(i)}`,`size${Me(a)}`]};return Ze(s,fae,t)},gae=ge("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Me(r.size)}`],r.padding!=="normal"&&t[`padding${Me(r.padding)}`],r.align!=="inherit"&&t[`align${Me(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>F({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid ${e.palette.mode==="light"?r4(wr(e.palette.divider,1),.88):t4(wr(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",[`&.${hae.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})),mae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:o,padding:s,scope:l,size:u,sortDirection:c,variant:f}=n,d=ye(n,pae),h=O.useContext($4),p=O.useContext(J1),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=F({},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=vae(x);let _=null;return c&&(_=c==="asc"?"ascending":"descending"),E.jsx(gae,F({as:g,ref:r,className:Ce(S.root,a),"aria-sort":_,scope:m,ownerState:x},d))}),uR=mae;function yae(e){return Ue("MuiTableContainer",e)}je("MuiTableContainer",["root"]);const xae=["className","component"],Sae=e=>{const{classes:t}=e;return Ze({root:["root"]},yae,t)},bae=ge("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),_ae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableContainer"}),{className:i,component:a="div"}=n,o=ye(n,xae),s=F({},n,{component:a}),l=Sae(s);return E.jsx(bae,F({ref:r,as:a,className:Ce(l.root,i),ownerState:s},o))}),wae=_ae;function Cae(e){return Ue("MuiTableHead",e)}je("MuiTableHead",["root"]);const Tae=["className","component"],Aae=e=>{const{classes:t}=e;return Ze({root:["root"]},Cae,t)},Mae=ge("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Iae={variant:"head"},cR="thead",Pae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableHead"}),{className:i,component:a=cR}=n,o=ye(n,Tae),s=F({},n,{component:a}),l=Aae(s);return E.jsx(J1.Provider,{value:Iae,children:E.jsx(Mae,F({as:a,className:Ce(l.root,i),ref:r,role:a===cR?null:"rowgroup",ownerState:s},o))})}),kae=Pae;function Dae(e){return Ue("MuiToolbar",e)}je("MuiToolbar",["root","gutters","regular","dense"]);const Rae=["className","component","disableGutters","variant"],Lae=e=>{const{classes:t,disableGutters:r,variant:n}=e;return Ze({root:["root",!r&&"gutters",n]},Dae,t)},Eae=ge("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})=>F({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),Oae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiToolbar"}),{className:i,component:a="div",disableGutters:o=!1,variant:s="regular"}=n,l=ye(n,Rae),u=F({},n,{component:a,disableGutters:o,variant:s}),c=Lae(u);return E.jsx(Eae,F({as:a,className:Ce(c.root,i),ref:r,ownerState:u},l))}),Nae=Oae,zae=j1(E.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Bae=j1(E.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Fae(e){return Ue("MuiTableRow",e)}const $ae=je("MuiTableRow",["root","selected","hover","head","footer"]),fR=$ae,Vae=["className","component","hover","selected"],Gae=e=>{const{classes:t,selected:r,hover:n,head:i,footer:a}=e;return Ze({root:["root",r&&"selected",n&&"hover",i&&"head",a&&"footer"]},Fae,t)},Hae=ge("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,[`&.${fR.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${fR.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:wr(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}))`:wr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),dR="tr",Wae=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTableRow"}),{className:i,component:a=dR,hover:o=!1,selected:s=!1}=n,l=ye(n,Vae),u=O.useContext(J1),c=F({},n,{component:a,hover:o,selected:s,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),f=Gae(c);return E.jsx(Hae,F({as:a,ref:r,className:Ce(f.root,i),role:a===dR?null:"row",ownerState:c},l))}),hR=Wae;function Uae(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function jae(e,t,r,n={},i=()=>{}){const{ease:a=Uae,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 Yae=["onChange"],qae={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Xae(e){const{onChange:t}=e,r=ye(e,Yae),n=O.useRef(),i=O.useRef(null),a=()=>{n.current=i.current.offsetHeight-i.current.clientHeight};return ho(()=>{const o=av(()=>{const l=n.current;a(),l!==n.current&&t(n.current)}),s=Da(i.current);return s.addEventListener("resize",o),()=>{o.clear(),s.removeEventListener("resize",o)}},[t]),O.useEffect(()=>{a(),t(n.current)},[t]),E.jsx("div",F({style:qae,ref:i},r))}function Zae(e){return Ue("MuiTabScrollButton",e)}const Kae=je("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Qae=Kae,Jae=["className","slots","slotProps","direction","orientation","disabled"],eoe=e=>{const{classes:t,orientation:r,disabled:n}=e;return Ze({root:["root",r,n&&"disabled"]},Zae,t)},toe=ge(Lf,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>F({width:40,flexShrink:0,opacity:.8,[`&.${Qae.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),roe=O.forwardRef(function(t,r){var n,i;const a=Ye({props:t,name:"MuiTabScrollButton"}),{className:o,slots:s={},slotProps:l={},direction:u}=a,c=ye(a,Jae),d=Rf().direction==="rtl",h=F({isRtl:d},a),p=eoe(h),v=(n=s.StartScrollButtonIcon)!=null?n:zae,g=(i=s.EndScrollButtonIcon)!=null?i:Bae,m=Ra({elementType:v,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),y=Ra({elementType:g,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return E.jsx(toe,F({component:"div",className:Ce(p.root,o),ref:r,role:null,ownerState:h,tabIndex:null},c,{children:u==="left"?E.jsx(v,F({},m)):E.jsx(g,F({},y))}))}),noe=roe;function ioe(e){return Ue("MuiTabs",e)}const aoe=je("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),kS=aoe,ooe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],pR=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,vR=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,sg=(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}}},soe=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:i,scrollableY:a,centered:o,scrollButtonsHideMobile:s,classes:l}=e;return Ze({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"]},ioe,l)},loe=ge("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${kS.scrollButtons}`]:t.scrollButtons},{[`& .${kS.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>F({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${kS.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),uoe=ge("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})=>F({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"})),coe=ge("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})=>F({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),foe=ge("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>F({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})),doe=ge(Xae)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),gR={},hoe=O.forwardRef(function(t,r){const n=Ye({props:t,name:"MuiTabs"}),i=Rf(),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=noe,scrollButtons:y="auto",selectionFollowsFocus:x,slots:S={},slotProps:_={},TabIndicatorProps:b={},TabScrollButtonProps:w={},textColor:C="primary",value:A,variant:T="standard",visibleScrollbar:M=!1}=n,I=ye(n,ooe),P=T==="scrollable",k=g==="vertical",R=k?"scrollTop":"scrollLeft",z=k?"top":"left",$=k?"bottom":"right",N=k?"clientHeight":"clientWidth",V=k?"height":"width",L=F({},n,{component:d,allowScrollButtonsMobile:h,indicatorColor:p,orientation:g,vertical:k,scrollButtons:y,textColor:C,variant:T,visibleScrollbar:M,fixed:!P,hideScrollbar:P&&!M,scrollableX:P&&!k,scrollableY:P&&k,centered:u&&!P,scrollButtonsHideMobile:!h}),G=soe(L),U=Ra({elementType:S.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:L}),B=Ra({elementType:S.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:L}),[j,X]=O.useState(!1),[W,ee]=O.useState(gR),[te,ie]=O.useState(!1),[re,Q]=O.useState(!1),[J,fe]=O.useState(!1),[de,ke]=O.useState({overflow:"hidden",scrollbarWidth:0}),We=new Map,Ge=O.useRef(null),at=O.useRef(null),ot=()=>{const pe=Ge.current;let De;if(pe){const yt=pe.getBoundingClientRect();De={clientWidth:pe.clientWidth,scrollLeft:pe.scrollLeft,scrollTop:pe.scrollTop,scrollLeftNormalized:vZ(pe,i.direction),scrollWidth:pe.scrollWidth,top:yt.top,bottom:yt.bottom,left:yt.left,right:yt.right}}let qe;if(pe&&A!==!1){const yt=at.current.children;if(yt.length>0){const $r=yt[We.get(A)];qe=$r?$r.getBoundingClientRect():null}}return{tabsMeta:De,tabMeta:qe}},It=ya(()=>{const{tabsMeta:pe,tabMeta:De}=ot();let qe=0,yt;if(k)yt="top",De&&pe&&(qe=De.top-pe.top+pe.scrollTop);else if(yt=a?"right":"left",De&&pe){const Io=a?pe.scrollLeftNormalized+pe.clientWidth-pe.scrollWidth:pe.scrollLeft;qe=(a?-1:1)*(De[yt]-pe[yt]+Io)}const $r={[yt]:qe,[V]:De?De[V]:0};if(isNaN(W[yt])||isNaN(W[V]))ee($r);else{const Io=Math.abs(W[yt]-$r[yt]),zv=Math.abs(W[V]-$r[V]);(Io>=1||zv>=1)&&ee($r)}}),Be=(pe,{animation:De=!0}={})=>{De?jae(R,Ge.current,pe,{duration:i.transitions.duration.standard}):Ge.current[R]=pe},Pt=pe=>{let De=Ge.current[R];k?De+=pe:(De+=pe*(a?-1:1),De*=a&&kV()==="reverse"?-1:1),Be(De)},Yt=()=>{const pe=Ge.current[N];let De=0;const qe=Array.from(at.current.children);for(let yt=0;ytpe){yt===0&&(De=pe);break}De+=$r[N]}return De},kt=()=>{Pt(-1*Yt())},K=()=>{Pt(Yt())},le=O.useCallback(pe=>{ke({overflow:null,scrollbarWidth:pe})},[]),Re=()=>{const pe={};pe.scrollbarSizeListener=P?E.jsx(doe,{onChange:le,className:Ce(G.scrollableX,G.hideScrollbar)}):null;const qe=P&&(y==="auto"&&(te||re)||y===!0);return pe.scrollButtonStart=qe?E.jsx(m,F({slots:{StartScrollButtonIcon:S.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:U},orientation:g,direction:a?"right":"left",onClick:kt,disabled:!te},w,{className:Ce(G.scrollButtons,w.className)})):null,pe.scrollButtonEnd=qe?E.jsx(m,F({slots:{EndScrollButtonIcon:S.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:B},orientation:g,direction:a?"left":"right",onClick:K,disabled:!re},w,{className:Ce(G.scrollButtons,w.className)})):null,pe},_e=ya(pe=>{const{tabsMeta:De,tabMeta:qe}=ot();if(!(!qe||!De)){if(qe[z]De[$]){const yt=De[R]+(qe[$]-De[$]);Be(yt,{animation:pe})}}}),he=ya(()=>{P&&y!==!1&&fe(!J)});O.useEffect(()=>{const pe=av(()=>{Ge.current&&It()}),De=Da(Ge.current);De.addEventListener("resize",pe);let qe;return typeof ResizeObserver<"u"&&(qe=new ResizeObserver(pe),Array.from(at.current.children).forEach(yt=>{qe.observe(yt)})),()=>{pe.clear(),De.removeEventListener("resize",pe),qe&&qe.disconnect()}},[It]),O.useEffect(()=>{const pe=Array.from(at.current.children),De=pe.length;if(typeof IntersectionObserver<"u"&&De>0&&P&&y!==!1){const qe=pe[0],yt=pe[De-1],$r={root:Ge.current,threshold:.99},Io=Xx=>{ie(!Xx[0].isIntersecting)},zv=new IntersectionObserver(Io,$r);zv.observe(qe);const w7=Xx=>{Q(!Xx[0].isIntersecting)},ZP=new IntersectionObserver(w7,$r);return ZP.observe(yt),()=>{zv.disconnect(),ZP.disconnect()}}},[P,y,J,c==null?void 0:c.length]),O.useEffect(()=>{X(!0)},[]),O.useEffect(()=>{It()}),O.useEffect(()=>{_e(gR!==W)},[_e,W]),O.useImperativeHandle(l,()=>({updateIndicator:It,updateScrollButtons:he}),[It,he]);const Vt=E.jsx(foe,F({},b,{className:Ce(G.indicator,b.className),ownerState:L,style:F({},W,b.style)}));let Sr=0;const Te=O.Children.map(c,pe=>{if(!O.isValidElement(pe))return null;const De=pe.props.value===void 0?Sr:pe.props.value;We.set(De,Sr);const qe=De===A;return Sr+=1,O.cloneElement(pe,F({fullWidth:T==="fullWidth",indicator:qe&&!j&&Vt,selected:qe,selectionFollowsFocus:x,onChange:v,textColor:C,value:De},Sr===1&&A===!1&&!pe.props.tabIndex?{tabIndex:0}:{}))}),ut=pe=>{const De=at.current,qe=on(De).activeElement;if(qe.getAttribute("role")!=="tab")return;let $r=g==="horizontal"?"ArrowLeft":"ArrowUp",Io=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&a&&($r="ArrowRight",Io="ArrowLeft"),pe.key){case $r:pe.preventDefault(),sg(De,qe,vR);break;case Io:pe.preventDefault(),sg(De,qe,pR);break;case"Home":pe.preventDefault(),sg(De,null,pR);break;case"End":pe.preventDefault(),sg(De,null,vR);break}},Rt=Re();return E.jsxs(loe,F({className:Ce(G.root,f),ownerState:L,ref:r,as:d},I,{children:[Rt.scrollButtonStart,Rt.scrollbarSizeListener,E.jsxs(uoe,{className:G.scroller,ownerState:L,style:{overflow:de.overflow,[k?`margin${a?"Left":"Right"}`:"marginBottom"]:M?void 0:-de.scrollbarWidth},ref:Ge,children:[E.jsx(coe,{"aria-label":o,"aria-labelledby":s,"aria-orientation":g==="vertical"?"vertical":null,className:G.flexContainer,ownerState:L,onKeyDown:ut,ref:at,role:"tablist",children:Te}),j&&Vt]}),Rt.scrollButtonEnd]}))}),poe=hoe;function voe(e){return Ue("MuiTextField",e)}je("MuiTextField",["root"]);const goe=["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"],moe={standard:M4,filled:w4,outlined:z4},yoe=e=>{const{classes:t}=e;return Ze({root:["root"]},voe,t)},xoe=ge(C4,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Soe=O.forwardRef(function(t,r){const n=Ye({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:I,required:P=!1,rows:k,select:R=!1,SelectProps:z,type:$,value:N,variant:V="outlined"}=n,L=ye(n,goe),G=F({},n,{autoFocus:a,color:l,disabled:c,error:f,fullWidth:h,multiline:w,required:P,select:R,variant:V}),U=yoe(G),B={};V==="outlined"&&(g&&typeof g.shrink<"u"&&(B.notched=g.shrink),B.label=S),R&&((!z||!z.native)&&(B.id=void 0),B["aria-describedby"]=void 0);const j=IV(v),X=p&&j?`${j}-helper-text`:void 0,W=S&&j?`${j}-label`:void 0,ee=moe[V],te=E.jsx(ee,F({"aria-describedby":X,autoComplete:i,autoFocus:a,defaultValue:u,fullWidth:h,multiline:w,name:C,rows:k,maxRows:_,minRows:b,type:$,value:N,id:j,inputRef:x,onBlur:A,onChange:T,onFocus:M,placeholder:I,inputProps:m},B,y));return E.jsxs(xoe,F({className:Ce(U.root,s),disabled:c,error:f,fullWidth:h,ref:r,required:P,color:l,variant:V,ownerState:G},L,{children:[S!=null&&S!==""&&E.jsx(I4,F({htmlFor:j,id:W},g,{children:S})),R?E.jsx(F4,F({"aria-describedby":X,id:j,labelId:W,value:N,input:te},z,{children:o})):te,p&&E.jsx(Hre,F({id:X},d,{children:p}))]}))}),Fl=Soe;var u2={},V4={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})(V4);var uv=V4.exports,DS={};const boe=T7(OJ);var mR;function cv(){return mR||(mR=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=boe}(DS)),DS}var _oe=uv;Object.defineProperty(u2,"__esModule",{value:!0});var G4=u2.default=void 0,woe=_oe(cv()),Coe=E,Toe=(0,woe.default)((0,Coe.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");G4=u2.default=Toe;function c2({open:e,onClose:t,children:r}){return E.jsx(S4,{onClose:t,open:e,children:E.jsxs(ft,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"md",display:"flex",flexDirection:"column",rowGap:2,bgcolor:"background.paper",boxShadow:24,borderRadius:2,p:4},children:[E.jsx(m4,{color:"inherit",onClick:t,sx:{position:"absolute",top:1,right:1},children:E.jsx(G4,{})}),r]})})}const Vs=pV,Aoe=AV;function $l(e){const t=Aoe();return O.useCallback(r=>{t(e(r))},[e,t])}const Moe=[{name:"Carl Byström",website:"http://cgbystrom.com/",social:{handle:"@cgbystrom",link:"https://twitter.com/cgbystrom/"}},{name:"Jonatan Heyman",website:"http://heyman.info/",social:{handle:"@jonatanheyman",link:"https://twitter.com/jonatanheyman/"}},{name:"Joakim Hamrén",social:{handle:"@jahaaja",link:"https://twitter.com/Jahaaja/"}},{name:"ESN Social Software",website:"http://esn.me/",social:{handle:"@uprise_ea",link:"https://twitter.com/uprise_ea"}},{name:"Hugo Heyman",social:{handle:"@hugoheyman",link:"https://twitter.com/hugoheyman/"}}];function Ioe(){const[e,t]=O.useState(!1),r=Vs(({swarm:n})=>n.version);return E.jsxs(E.Fragment,{children:[E.jsx(ft,{sx:{display:"flex",justifyContent:"flex-end"},children:E.jsx(Au,{color:"inherit",onClick:()=>t(!0),variant:"text",children:"About"})}),E.jsxs(c2,{onClose:()=>t(!1),open:e,children:[E.jsxs("div",{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"About"}),E.jsx(Xe,{component:"p",variant:"subtitle1",children:"The original idea for Locust was Carl Byström's who made a first proof of concept in June 2010. Jonatan Heyman picked up Locust in January 2011, implemented the current concept of Locust classes and made it work distributed across multiple machines."}),E.jsx(Xe,{component:"p",sx:{mt:2},variant:"subtitle1",children:"Jonatan, Carl and Joakim Hamrén has continued the development of Locust at their job, ESN Social Software, who have adopted Locust as an inhouse Open Source project."})]}),E.jsxs("div",{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"Authors and Copyright"}),E.jsx(ft,{sx:{display:"flex",flexDirection:"column",rowGap:.5},children:Moe.map(({name:n,website:i,social:{handle:a,link:o}},s)=>E.jsxs("div",{children:[i?E.jsx(li,{href:i,children:n}):n,E.jsxs(ft,{sx:{display:"inline",ml:.5},children:["(",E.jsx(li,{href:o,children:a}),")"]})]},`author-${s}`))})]}),E.jsxs("div",{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"License"}),E.jsx(Xe,{component:"p",variant:"subtitle1",children:"Open source licensed under the MIT license."})]}),E.jsxs("div",{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"Version"}),E.jsx(li,{href:`https://github.com/locustio/locust/releases/tag/${r}`,children:r})]}),E.jsxs("div",{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"Website"}),E.jsx(li,{href:"https://locust.io/",children:"https://locust.io"})]})]})]})}function Poe(){return E.jsx(ft,{component:"nav",sx:{position:"fixed",bottom:0,width:"100%"},children:E.jsx(Nf,{maxWidth:"xl",sx:{display:"flex",justifyContent:"flex-end"},children:E.jsx(Ioe,{})})})}var f2={},koe=uv;Object.defineProperty(f2,"__esModule",{value:!0});var H4=f2.default=void 0,Doe=koe(cv()),Roe=E,Loe=(0,Doe.default)((0,Roe.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");H4=f2.default=Loe;var d2={},Eoe=uv;Object.defineProperty(d2,"__esModule",{value:!0});var W4=d2.default=void 0,Ooe=Eoe(cv()),Noe=E,zoe=(0,Ooe.default)((0,Noe.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");W4=d2.default=zoe;const Ma={DARK:"dark",LIGHT:"light"},U4=localStorage.theme===Ma.DARK||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?Ma.DARK:Ma.LIGHT;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:ex(e)?2:tx(e)?3:0}function gs(e,t){return As(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Lm(e,t){return As(e)===2?e.get(t):e[t]}function j4(e,t,r){var n=As(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function Y4(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function ex(e){return Woe&&e instanceof Map}function tx(e){return Uoe&&e instanceof Set}function bl(e){return e.o||e.t}function h2(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=X4(e);delete t[Ft];for(var r=qc(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=Foe),Object.freeze(e),t&&Ts(e,function(r,n){return p2(n,!0)},!0)),e}function Foe(){Rr(2)}function v2(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ia(e){var t=RC[e];return t||Rr(18,e),t}function q4(e,t){RC[e]||(RC[e]=t)}function PC(){return yp}function RS(e,t){t&&(Ia("Patches"),e.u=[],e.s=[],e.v=t)}function Ny(e){kC(e),e.p.forEach($oe),e.p=null}function kC(e){e===yp&&(yp=e.l)}function yR(e){return yp={p:[],l:yp,h:e,m:!0,_:0}}function $oe(e){var t=e[Ft];t.i===0||t.i===1?t.j():t.g=!0}function LS(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||Ia("ES5").S(t,e,n),n?(r[Ft].P&&(Ny(t),Rr(4)),qi(e)&&(e=zy(t,e),t.l||By(t,e)),t.u&&Ia("Patches").M(r[Ft].t,e,t.u,t.s)):e=zy(t,r,[]),Ny(t),t.u&&t.v(t.u,t.s),e!==m2?e:void 0}function zy(e,t,r){if(v2(t))return t;var n=t[Ft];if(!n)return Ts(t,function(s,l){return xR(e,n,t,s,l,r)},!0),t;if(n.A!==e)return t;if(!n.P)return By(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=h2(n.k):n.o,a=i,o=!1;n.i===3&&(a=new Set(i),i.clear(),o=!0),Ts(a,function(s,l){return xR(e,n,i,s,l,r,o)}),By(e,i,!1),r&&e.u&&Ia("Patches").N(n,r,e.u,e.s)}return n.o}function xR(e,t,r,n,i,a,o){if(Yi(i)){var s=zy(e,i,a&&t&&t.i!==3&&!gs(t.R,n)?a.concat(n):void 0);if(j4(r,n,s),!Yi(s))return;e.m=!1}else o&&r.add(i);if(qi(i)&&!v2(i)){if(!e.h.D&&e._<1)return;zy(e,i),t&&t.A.l||By(e,i)}}function By(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&p2(t,r)}function ES(e,t){var r=e[Ft];return(r?bl(r):e)[t]}function SR(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 Zo(e){e.P||(e.P=!0,e.l&&Zo(e.l))}function OS(e){e.o||(e.o=h2(e.t))}function DC(e,t,r){var n=ex(t)?Ia("MapSet").F(t,r):tx(t)?Ia("MapSet").T(t,r):e.O?function(i,a){var o=Array.isArray(i),s={i:o?1:0,A:a?a.A:PC(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},l=s,u=xp;o&&(l=[s],u=eh);var c=Proxy.revocable(l,u),f=c.revoke,d=c.proxy;return s.k=d,s.j=f,d}(t,r):Ia("ES5").J(t,r);return(r?r.A:PC()).p.push(n),n}function Voe(e){return Yi(e)||Rr(22,e),function t(r){if(!qi(r))return r;var n,i=r[Ft],a=As(r);if(i){if(!i.P&&(i.i<4||!Ia("ES5").K(i)))return i.t;i.I=!0,n=bR(r,a),i.I=!1}else n=bR(r,a);return Ts(n,function(o,s){i&&Lm(i.t,o)===s||j4(n,o,t(s))}),a===3?new Set(n):n}(e)}function bR(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return h2(e)}function Goe(){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[Ft];return xp.get(l,a)},set:function(l){var u=this[Ft];xp.set(u,a,l)}},s}function t(a){for(var o=a.length-1;o>=0;o--){var s=a[o][Ft];if(!s.P)switch(s.i){case 5:n(s)&&Zo(s);break;case 4:r(s)&&Zo(s)}}}function r(a){for(var o=a.t,s=a.k,l=qc(s),u=l.length-1;u>=0;u--){var c=l[u];if(c!==Ft){var f=o[c];if(f===void 0&&!gs(o,c))return!0;var d=s[c],h=d&&d[Ft];if(h?h.t!==f:!Y4(d,f))return!0}}var p=!!o[Ft];return l.length!==qc(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=Ia("Patches").$;return Yi(r)?o(r,n):this.produce(r,function(s){return o(s,n)})},e}(),Wn=new Yoe,fv=Wn.produce,Z4=Wn.produceWithPatches.bind(Wn);Wn.setAutoFreeze.bind(Wn);Wn.setUseProxies.bind(Wn);var CR=Wn.applyPatches.bind(Wn);Wn.createDraft.bind(Wn);Wn.finishDraft.bind(Wn);function Sp(e){"@babel/helpers - typeof";return Sp=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},Sp(e)}function qoe(e,t){if(Sp(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Sp(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xoe(e){var t=qoe(e,"string");return Sp(t)==="symbol"?t:String(t)}function Zoe(e,t,r){return t=Xoe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TR(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 AR(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(jr(1));return r(K4)(e,t)}if(typeof e!="function")throw new Error(jr(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(jr(3));return a}function f(v){if(typeof v!="function")throw new Error(jr(4));if(l)throw new Error(jr(5));var g=!0;return u(),s.push(v),function(){if(g){if(l)throw new Error(jr(6));g=!1,u();var y=s.indexOf(v);s.splice(y,1),o=null}}}function d(v){if(!Koe(v))throw new Error(jr(7));if(typeof v.type>"u")throw new Error(jr(8));if(l)throw new Error(jr(9));try{l=!0,a=i(a,v)}finally{l=!1}for(var g=o=s,m=0;m"u")throw new Error(jr(12));if(typeof r(void 0,{type:Fy.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(jr(13))})}function y2(e){for(var t=Object.keys(e),r={},n=0;n"u")throw u&&u.type,new Error(jr(14));f[h]=g,c=c||g!==v}return c=c||a.length!==Object.keys(l).length,c?f:l}}function $y(){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 Vy}function i(s,l){n(s)===Vy&&(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 rse=function(t,r){return t===r};function nse(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 dv(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function x2(){for(var e=[],t=0;t{e.isDarkMode=t}}}),Dse=iG.actions,Rse=iG.reducer;function Lse(){const e=Vs(({theme:{isDarkMode:n}})=>n),t=$l(Dse.setIsDarkMode);O.useEffect(()=>{t(U4===Ma.DARK)},[]);const r=()=>{localStorage.theme=e?Ma.LIGHT:Ma.DARK,t(!e)};return E.jsx(m4,{color:"inherit",onClick:r,children:e?E.jsx(W4,{}):E.jsx(H4,{})})}const En={READY:"ready",RUNNING:"running",STOPPED:"stopped",SPAWNING:"spawning",CLEANUP:"cleanup",STOPPING:"stopping",MISSING:"missing"};function Ese({isDistributed:e,state:t,host:r,totalRps:n,failRatio:i,userCount:a,workerCount:o}){return E.jsxs(ft,{sx:{display:"flex",columnGap:2},children:[E.jsxs(ft,{sx:{display:"flex",flexDirection:"column"},children:[E.jsx(Xe,{variant:"button",children:"Host"}),E.jsx(Xe,{children:r})]}),E.jsx(vd,{flexItem:!0,orientation:"vertical"}),E.jsxs(ft,{sx:{display:"flex",flexDirection:"column"},children:[E.jsx(Xe,{variant:"button",children:"Status"}),E.jsx(Xe,{variant:"button",children:t})]}),t===En.RUNNING&&E.jsxs(E.Fragment,{children:[E.jsx(vd,{flexItem:!0,orientation:"vertical"}),E.jsxs(ft,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[E.jsx(Xe,{variant:"button",children:"Users"}),E.jsx(Xe,{variant:"button",children:a})]})]}),e&&E.jsxs(E.Fragment,{children:[E.jsx(vd,{flexItem:!0,orientation:"vertical"}),E.jsxs(ft,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[E.jsx(Xe,{variant:"button",children:"Workers"}),E.jsx(Xe,{variant:"button",children:o})]})]}),E.jsx(vd,{flexItem:!0,orientation:"vertical"}),E.jsxs(ft,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[E.jsx(Xe,{variant:"button",children:"RPS"}),E.jsx(Xe,{variant:"button",children:n})]}),E.jsx(vd,{flexItem:!0,orientation:"vertical"}),E.jsxs(ft,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[E.jsx(Xe,{variant:"button",children:"Failures"}),E.jsx(Xe,{variant:"button",children:`${i}%`})]})]})}const Ose=({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}),Nse=Xn(Ose)(Ese);function aG({children:e,onSubmit:t}){const r=O.useCallback(async n=>{n.preventDefault();const i=new FormData(n.target),a={};for(const[o,s]of i.entries())a.hasOwnProperty(o)?(Array.isArray(a[o])||(a[o]=[a[o]]),a[o].push(s)):a[o]=s;t(a)},[t]);return E.jsx("form",{onSubmit:r,children:e})}var Gy=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 jse(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var zR=Ms;function lG(e,t){if(e===t||!(zR(e)&&zR(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},qse=function(e){return/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"")};function FR(e){if(!Ms(e))return e;for(var t=ir({},e),r=0,n=Object.entries(t);r"u"&&s===BR&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),function(x,S){return Uy(t,null,function(){var _,b,w,C,A,T,M,I,P,k,R,z,$,N,V,L,G,U,B,j,X,W,ee,te,ie,re,Q,J,fe,de,ke,We,Ge,at,ot,It;return Gy(this,function(Be){switch(Be.label){case 0:return _=S.signal,b=S.getState,w=S.extra,C=S.endpoint,A=S.forced,T=S.type,I=typeof x=="string"?{url:x}:x,P=I.url,k=I.headers,R=k===void 0?new Headers(m.headers):k,z=I.params,$=z===void 0?void 0:z,N=I.responseHandler,V=N===void 0?v??"json":N,L=I.validateStatus,G=L===void 0?g??Yse:L,U=I.timeout,B=U===void 0?p:U,j=OR(I,["url","headers","params","responseHandler","validateStatus","timeout"]),X=ir(xa(ir({},m),{signal:_}),j),R=new Headers(FR(R)),W=X,[4,a(R,{getState:b,extra:w,endpoint:C,forced:A,type:T})];case 1:W.headers=Be.sent()||R,ee=function(Pt){return typeof Pt=="object"&&(Ms(Pt)||Array.isArray(Pt)||typeof Pt.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)),$&&(te=~P.indexOf("?")?"&":"?",ie=l?l($):new URLSearchParams(FR($)),P+=te+ie),P=Wse(n,P),re=new Request(P,X),Q=re.clone(),M={request:Q},fe=!1,de=B&&setTimeout(function(){fe=!0,S.abort()},B),Be.label=2;case 2:return Be.trys.push([2,4,5,6]),[4,s(re)];case 3:return J=Be.sent(),[3,6];case 4:return ke=Be.sent(),[2,{error:{status:fe?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(ke)},meta:M}];case 5:return de&&clearTimeout(de),[7];case 6:We=J.clone(),M.response=We,at="",Be.label=7;case 7:return Be.trys.push([7,9,,10]),[4,Promise.all([y(J,V).then(function(Pt){return Ge=Pt},function(Pt){return ot=Pt}),We.text().then(function(Pt){return at=Pt},function(){})])];case 8:if(Be.sent(),ot)throw ot;return[3,10];case 9:return It=Be.sent(),[2,{error:{status:"PARSING_ERROR",originalStatus:J.status,data:at,error:String(It)},meta:M}];case 10:return[2,G(J,Ge)?{data:Ge,meta:M}:{error:{status:J.status,data:Ge},meta:M}]}})})};function y(x,S){return Uy(this,null,function(){var _;return Gy(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 $R=function(){function e(t,r){r===void 0&&(r=void 0),this.value=t,this.meta=r}return e}(),b2=Tn("__rtkq/focused"),uG=Tn("__rtkq/unfocused"),_2=Tn("__rtkq/online"),cG=Tn("__rtkq/offline"),La;(function(e){e.query="query",e.mutation="mutation"})(La||(La={}));function fG(e){return e.type===La.query}function Zse(e){return e.type===La.mutation}function dG(e,t,r,n,i,a){return Kse(e)?e(t,r,n,i).map(NC).map(a):Array.isArray(e)?e.map(NC).map(a):[]}function Kse(e){return typeof e=="function"}function NC(e){return typeof e=="string"?{type:e}:e}function $S(e){return e!=null}var _p=Symbol("forceQueryFn"),zC=function(e){return typeof e[_p]=="function"};function Qse(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 Hy(Hy([],S(o)),S(s)).filter($S)}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($S)}}function m(){return function(S){return Object.values(s.get(S)||{}).filter($S)}}function y(S,_){var b=function(w,C){var A=C===void 0?{}:C,T=A.subscribe,M=T===void 0?!0:T,I=A.forceRefetch,P=A.subscriptionOptions,k=_p,R=A[k];return function(z,$){var N,V,L=t({queryArgs:w,endpointDefinition:_,endpointName:S}),G=r((N={type:"query",subscribe:M,forceRefetch:I,subscriptionOptions:P,endpointName:S,originalArgs:w,queryCacheKey:L},N[_p]=R,N)),U=i.endpoints[S].select(w),B=z(G),j=U($()),X=B.requestId,W=B.abort,ee=j.requestId!==X,te=(V=o.get(z))==null?void 0:V[L],ie=function(){return U($())},re=Object.assign(R?B.then(ie):ee&&!te?Promise.resolve(j):Promise.all([te,B]).then(ie),{arg:w,requestId:X,subscriptionOptions:P,queryCacheKey:L,abort:W,unwrap:function(){return Uy(this,null,function(){var J;return Gy(this,function(fe){switch(fe.label){case 0:return[4,re];case 1:if(J=fe.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:L,requestId:X}))},updateSubscriptionOptions:function(J){re.subscriptionOptions=J,z(f({endpointName:S,requestId:X,queryCacheKey:L,options:J}))}});if(!te&&!ee&&!R){var Q=o.get(z)||{};Q[L]=re,o.set(z,Q),re.then(function(){delete Q[L],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,I){var P=n({type:"mutation",endpointName:S,originalArgs:_,track:A,fixedCacheKey:T}),k=M(P),R=k.requestId,z=k.abort,$=k.unwrap,N=k.unwrap().then(function(U){return{data:U}}).catch(function(U){return{error:U}}),V=function(){M(c({requestId:R,fixedCacheKey:T}))},L=Object.assign(N,{arg:k.arg,requestId:R,abort:z,unwrap:$,unsubscribe:V,reset:V}),G=s.get(M)||{};return s.set(M,G),G[R]=L,L.then(function(){delete G[R],Object.keys(G).length||s.delete(M)}),T&&(G[T]=L,L.then(function(){G[T]===L&&(delete G[T],Object.keys(G).length||s.delete(M))})),L}}}}function VR(e){return e}function Jse(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(qi(T.data)){var I=Z4(T.data,_),P=I[1],k=I[2];(C=M.patches).push.apply(C,P),(A=M.inversePatches).push.apply(A,k)}else{var R=_(T.data);M.patches.push({op:"replace",path:[],value:R}),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[_p]=function(){return{data:_}},w)))}},c=function(x,S){return Uy(t,[x,S],function(_,b){var w,C,A,T,M,I,P,k,R,z,$,N,V,L,G,U,B,j,X=b.signal,W=b.abort,ee=b.rejectWithValue,te=b.fulfillWithValue,ie=b.dispatch,re=b.getState,Q=b.extra;return Gy(this,function(J){switch(J.label){case 0:w=i[_.endpointName],J.label=1;case 1:return J.trys.push([1,8,,13]),C=VR,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"?_[_p]: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(fe){return n(fe,T,w.extraOptions)})];case 5:A=J.sent(),J.label=6;case 6:if(typeof process<"u",A.error)throw new $R(A.error,A.meta);return $=te,[4,C(A.data,A.meta,_.originalArgs)];case 7:return[2,$.apply(void 0,[J.sent(),(B={fulfilledTimeStamp:Date.now(),baseQueryMeta:A.meta},B[th]=!0,B)])];case 8:if(N=J.sent(),V=N,!(V instanceof $R))return[3,12];L=VR,w.query&&w.transformErrorResponse&&(L=w.transformErrorResponse),J.label=9;case 9:return J.trys.push([9,11,,12]),G=ee,[4,L(V.value,V.meta,_.originalArgs)];case 10:return[2,G.apply(void 0,[J.sent(),(j={baseQueryMeta:V.meta},j[th]=!0,j)])];case 11:return U=J.sent(),V=U,[3,12];case 12:throw typeof process<"u",console.error(V),V;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,I=(C=x.forceRefetch)!=null?C:x.subscribe&&T;return I?I===!0||(Number(new Date)-Number(M))/1e3>=I:!1}var d=RR(r+"/executeQuery",c,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[th]=!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,I=x.originalArgs,P=T==null?void 0:T.originalArgs,k=i[x.endpointName];return zC(x)?!0:(T==null?void 0:T.status)==="pending"?!1:f(x,A)||fG(k)&&((C=k==null?void 0:k.forceRefetch)!=null&&C.call(k,{currentArg:I,previousArg:P,endpointState:T,state:A}))?!0:!M},dispatchConditionRejection:!0}),h=RR(r+"/executeMutation",c,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[th]=!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(k){return k===void 0&&(k=!0),o.endpoints[x].initiate(S,{forceRefetch:k})},M=o.endpoints[x].select(S)(w());if(C)b(T());else if(A){var I=M==null?void 0:M.fulfilledTimeStamp;if(!I){b(T());return}var P=(Number(new Date)-Number(new Date(I)))/1e3>=A;P&&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:Rh(x2(x),m(S)),matchFulfilled:Rh(Mu(x),m(S)),matchRejected:Rh(bp(x),m(S))}}return{queryThunk:d,mutationThunk:h,prefetch:g,updateQueryData:l,upsertQueryData:u,patchQueryData:s,buildMatchThunkActions:y}}function hG(e,t,r,n){return dG(r[e.meta.arg.endpointName][t],Mu(e)?e.payload:void 0,nx(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function lg(e,t,r){var n=e[t];n&&r(n)}function wp(e){var t;return(t="arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)!=null?t:e.requestId}function GR(e,t,r){var n=e[wp(t)];n&&r(n)}var yd={};function ele(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=Tn(t+"/resetApiState"),d=ui({name:t+"/queries",initialState:yd,reducers:{removeQueryResult:{reducer:function(_,b){var w=b.payload.queryCacheKey;delete _[w]},prepare:FS()},queryResultPatched:function(_,b){var w=b.payload,C=w.queryCacheKey,A=w.patches;lg(_,C,function(T){T.data=CR(T.data,A.concat())})}},extraReducers:function(_){_.addCase(r.pending,function(b,w){var C=w.meta,A=w.meta.arg,T,M,I=zC(A);(A.subscribe||I)&&((M=b[T=A.queryCacheKey])!=null||(b[T]={status:Ht.uninitialized,endpointName:A.endpointName})),lg(b,A.queryCacheKey,function(P){P.status=Ht.pending,P.requestId=I&&P.requestId?P.requestId:C.requestId,A.originalArgs!==void 0&&(P.originalArgs=A.originalArgs),P.startedTimeStamp=C.startedTimeStamp})}).addCase(r.fulfilled,function(b,w){var C=w.meta,A=w.payload;lg(b,C.arg.queryCacheKey,function(T){var M;if(!(T.requestId!==C.requestId&&!zC(C.arg))){var I=a[C.arg.endpointName].merge;if(T.status=Ht.fulfilled,I)if(T.data!==void 0){var P=C.fulfilledTimeStamp,k=C.arg,R=C.baseQueryMeta,z=C.requestId,$=fv(T.data,function(N){return I(N,A,{arg:k.originalArgs,baseQueryMeta:R,fulfilledTimeStamp:P,requestId:z})});T.data=$}else T.data=A;else T.data=(M=a[C.arg.endpointName].structuralSharing)==null||M?lG(Yi(T.data)?Boe(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,I=w.error,P=w.payload;lg(b,T.queryCacheKey,function(k){if(!A){if(k.requestId!==M)return;k.status=Ht.rejected,k.error=P??I}})}).addMatcher(l,function(b,w){for(var C=s(w).queries,A=0,T=Object.entries(C);AArray.isArray(e)?e.length:Object.keys(e).length,Rle=e=>mc(e)===0;function Lle(e,t){return{...e,...t}}const Ele=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},ix=(e,t)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:[...r[n]||[],i]}),e);function vG(e,t,r){return t&&(Array.isArray(t)?t.map(n=>vG(e,n,r)):typeof t=="object"?w2(t,r):t)}const w2=(e,t)=>Object.entries(e).reduce((r,[n,i])=>({...r,[t(n)]:vG(e,i,t)}),{}),gG=e=>e.replace(/_([a-z0-9])/g,(t,r)=>r.toUpperCase()),Ole=e=>e[0]===e[0].toUpperCase()?e:e.replace(/([a-z0-9])([A-Z0-9])/g,"$1_$2").toLowerCase(),Gl=e=>w2(e,gG),Nle=e=>w2(e,Ole),zle=e=>e.replace(/([a-z0-9])([A-Z0-9])/g,"$1 $2").replace(/^./,t=>t.toUpperCase()),Ble=e=>Object.fromEntries(new URLSearchParams(e).entries()),Fle=(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]},BC=Dle({baseQuery:Xse(),endpoints:e=>({getStats:e.query({query:()=>"stats/requests",transformResponse:Gl}),getTasks:e.query({query:()=>"tasks",transformResponse:Gl}),getExceptions:e.query({query:()=>"exceptions",transformResponse:Gl}),getLogs:e.query({query:()=>"logs",transformResponse:Gl}),startSwarm:e.mutation({query:t=>({url:"swarm",method:"POST",body:Ele(Nle(t)),headers:{"content-type":"application/x-www-form-urlencoded"}})})})}),{useGetStatsQuery:$le,useGetTasksQuery:Vle,useGetExceptionsQuery:Gle,useGetLogsQuery:Hle,useStartSwarmMutation:mG}=BC;function Wle({onSubmit:e,spawnRate:t,userCount:r}){const[n]=mG(),i=a=>{e(),n(a)};return E.jsxs(Nf,{maxWidth:"md",sx:{my:2},children:[E.jsx(Xe,{component:"h2",noWrap:!0,variant:"h6",children:"Edit running load test"}),E.jsx(aG,{onSubmit:i,children:E.jsxs(ft,{sx:{my:2,display:"flex",flexDirection:"column",rowGap:4},children:[E.jsx(Fl,{defaultValue:r||1,label:"Number of users (peak concurrency)",name:"userCount"}),E.jsx(Fl,{defaultValue:t||1,label:"Ramp Up (users started/second)",name:"spawnRate"}),E.jsx(Au,{size:"large",type:"submit",variant:"contained",children:"Update Swarm"})]})})]})}const Ule=({swarm:{spawnRate:e,userCount:t}})=>({spawnRate:e,userCount:t}),jle=Xn(Ule)(Wle);function Yle(){const[e,t]=O.useState(!1);return E.jsxs(E.Fragment,{children:[E.jsx(Au,{color:"secondary",onClick:()=>t(!0),type:"button",variant:"contained",children:"Edit"}),E.jsx(c2,{onClose:()=>t(!1),open:e,children:E.jsx(jle,{onSubmit:()=>t(!1)})})]})}var C2={},qle=uv;Object.defineProperty(C2,"__esModule",{value:!0});var T2=C2.default=void 0,Xle=qle(cv()),Zle=E,Kle=(0,Xle.default)((0,Zle.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");T2=C2.default=Kle;function FC({label:e,name:t,options:r,multiple:n=!1,defaultValue:i,sx:a}){return E.jsxs(C4,{sx:a,children:[E.jsx(I4,{htmlFor:t,shrink:!0,children:e}),E.jsx(F4,{defaultValue:i||n&&r||r[0],id:t,label:e,multiple:n,name:t,native:!0,children:r.map((o,s)=>E.jsx("option",{value:o,children:o},`option-${o}-${s}`))})]})}const QR=e=>e.defaultValue!==null&&typeof e.defaultValue!="boolean";function Qle({label:e,defaultValue:t,choices:r,helpText:n,isSecret:i}){const a=zle(e),o=n?`${a} (${n})`:a;return r?E.jsx(FC,{defaultValue:t,label:o,name:e,options:r,sx:{width:"100%"}}):E.jsx(Fl,{defaultValue:t,label:o,name:e,sx:{width:"100%"},type:i?"password":"text"})}function Jle({extraOptions:e}){const t=O.useMemo(()=>Object.entries(e).reduce((n,[i,a])=>QR(a)?[...n,{label:i,...a}]:n,[]),[e]),r=O.useMemo(()=>Object.keys(e).reduce((n,i)=>QR(e[i])?n:[...n,i],[]),[e]);return E.jsxs(p4,{children:[E.jsx(g4,{expandIcon:E.jsx(T2,{}),children:E.jsx(Xe,{children:"Custom parameters"})}),E.jsx(v4,{children:E.jsxs(ft,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[t.map((n,i)=>E.jsx(Qle,{...n},`valid-parameter-${i}`)),E.jsx(ft,{children:r&&E.jsxs(E.Fragment,{children:[E.jsx(Xe,{children:"The following custom parameters can't be set in the Web UI, because it is a boolean or None type:"}),E.jsx("ul",{children:r.map((n,i)=>E.jsx("li",{children:E.jsx(Xe,{children:n})},`invalid-parameter-${i}`))})]})})]})})]})}function hv(e,{payload:t}){return Lle(e,t)}const eue=Gl(window.templateArgs),yG=ui({name:"swarm",initialState:eue,reducers:{setSwarm:hv}}),xG=yG.actions,tue=yG.reducer;function rue({availableShapeClasses:e,availableUserClasses:t,host:r,extraOptions:n,isShape:i,numUsers:a,overrideHostWarning:o,runTime:s,setSwarm:l,showUserclassPicker:u,spawnRate:c}){const[f]=mG(),d=h=>{l({state:En.RUNNING,host:h.host||r}),f(h)};return E.jsxs(Nf,{maxWidth:"md",sx:{my:2},children:[E.jsx(Xe,{component:"h2",noWrap:!0,variant:"h6",children:"Start new load test"}),E.jsx(aG,{onSubmit:d,children:E.jsxs(ft,{sx:{my:2,display:"flex",flexDirection:"column",rowGap:4},children:[u&&E.jsxs(E.Fragment,{children:[E.jsx(FC,{label:"User Classes",multiple:!0,name:"userClasses",options:t}),E.jsx(FC,{label:"Shape Class",name:"shapeClass",options:e})]}),E.jsx(Fl,{defaultValue:i&&"-"||a||1,disabled:!!i,label:"Number of users (peak concurrency)",name:"userCount"}),E.jsx(Fl,{defaultValue:i&&"-"||c||1,disabled:!!i,label:"Ramp Up (users started/second)",name:"spawnRate",title:"Disabled for tests using LoadTestShape class"}),E.jsx(Fl,{defaultValue:r,label:`Host ${o?"(setting this will override the host for the User classes)":""}`,name:"host",title:"Disabled for tests using LoadTestShape class"}),E.jsxs(p4,{children:[E.jsx(g4,{expandIcon:E.jsx(T2,{}),children:E.jsx(Xe,{children:"Advanced options"})}),E.jsx(v4,{children:E.jsx(Fl,{defaultValue:s,label:"Run time (e.g. 20, 20s, 3m, 2h, 1h20m, 3h30m10s, etc.)",name:"runTime",sx:{width:"100%"}})})]}),!Rle(n)&&E.jsx(Jle,{extraOptions:n}),E.jsx(Au,{size:"large",type:"submit",variant:"contained",children:"Start Swarm"})]})})]})}const nue=({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}),iue={setSwarm:xG.setSwarm},SG=Xn(nue,iue)(rue);function aue(){const[e,t]=O.useState(!1);return E.jsxs(E.Fragment,{children:[E.jsx(Au,{color:"success",onClick:()=>t(!0),type:"button",variant:"contained",children:"New"}),E.jsx(c2,{onClose:()=>t(!1),open:e,children:E.jsx(SG,{})})]})}function oue(){const e=()=>{fetch("stats/reset")};return E.jsx(Au,{color:"warning",onClick:e,type:"button",variant:"contained",children:"Reset"})}function sue(){const[e,t]=O.useState(!1);O.useEffect(()=>{t(!1)},[]);const r=()=>{fetch("stop"),t(!0)};return E.jsx(Au,{color:"error",disabled:e,onClick:r,type:"button",variant:"contained",children:e?"Loading":"Stop"})}function lue(){const e=Vs(({swarm:t})=>t.state);return e===En.READY?null:e===En.STOPPED?E.jsx(aue,{}):E.jsxs(ft,{sx:{display:"flex",columnGap:2},children:[E.jsx(Yle,{}),E.jsx(sue,{}),E.jsx(oue,{})]})}function uue(){return E.jsx(ate,{position:"static",children:E.jsx(Nf,{maxWidth:"xl",children:E.jsxs(Nae,{sx:{display:"flex",justifyContent:"space-between"},children:[E.jsxs(li,{color:"inherit",href:"/",sx:{display:"flex",alignItems:"center",columnGap:2},underline:"none",children:[E.jsx("img",{height:"52",src:"/assets/logo.png",width:"52"}),E.jsx(Xe,{component:"h1",noWrap:!0,sx:{fontWeight:700,display:"flex",alignItems:"center"},variant:"h3",children:"Locust"})]}),E.jsxs(ft,{sx:{display:"flex",columnGap:6},children:[E.jsx(Nse,{}),E.jsx(lue,{}),E.jsx(Lse,{})]})]})})})}function cue({children:e}){return E.jsxs(E.Fragment,{children:[E.jsx(uue,{}),E.jsx("main",{children:e}),E.jsx(Poe,{})]})}function rh(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 fue={},bG=ui({name:"notification",initialState:fue,reducers:{setNotification:hv}}),_G=bG.actions,due=bG.reducer;function hue(e,{key:t}){const r=$l(_G.setNotification),n=Vs(({url:{query:a}})=>a&&a.tab),i=`${t}Notification`;O.useEffect(()=>{mc(e)>0&&mc(e)(localStorage[i]||0)&&(!n||n!==t)&&(r({[t]:!0}),localStorage[i]=mc(e))},[e])}const pue={logs:[]},wG=ui({name:"logViewer",initialState:pue,reducers:{setLogs:hv}}),vue=wG.actions,gue=wG.reducer;function mue(){const e=Vs(({swarm:a})=>a),t=$l(vue.setLogs),{data:r,refetch:n}=Hle(),i=r?r.logs:[];return rh(n,5e3,{shouldRunInterval:e.state===En.SPAWNING||e.state==En.RUNNING}),hue(i,{key:"logViewer"}),O.useEffect(()=>{t({logs:i})},[i]),i}var A2={},yue=uv;Object.defineProperty(A2,"__esModule",{value:!0});var CG=A2.default=void 0,xue=yue(cv()),JR=E,Sue=(0,xue.default)([(0,JR.jsx)("circle",{cx:"12",cy:"19",r:"2"},"0"),(0,JR.jsx)("path",{d:"M10 3h4v12h-4z"},"1")],"PriorityHigh");CG=A2.default=Sue;function bue(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const _ue=/[ \t\n\f\r]/g;function wue(e){return typeof e=="object"?e.type==="text"?eL(e.value):!1:eL(e)}function eL(e){return e.replace(_ue,"")===""}class pv{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}}pv.prototype.property={};pv.prototype.normal={};pv.prototype.space=null;function TG(e,t){const r={},n={};let i=-1;for(;++i4&&r.slice(0,4)==="data"&&Iue.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(rL,Rue);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!rL.test(a)){let o=a.replace(Pue,Due);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=M2}return new i(n,t)}function Due(e){return"-"+e.toLowerCase()}function Rue(e){return e.charAt(1).toUpperCase()}const Lue={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"},Eue=TG([IG,MG,DG,RG,Aue],"html"),LG=TG([IG,MG,DG,RG,Mue],"svg");function Oue(e){return e.join(" ").trim()}var I2={exports:{}},nL=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Nue=/\n/g,zue=/^\s*/,Bue=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Fue=/^:\s*/,$ue=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Vue=/^[;\s]*/,Gue=/^\s+|\s+$/g,Hue=` -`,iL="/",aL="*",kl="",Wue="comment",Uue="declaration",jue=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(Nue);v&&(r+=v.length);var g=p.lastIndexOf(Hue);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(zue)}function c(p){var v;for(p=p||[];v=f();)v!==!1&&p.push(v);return p}function f(){var p=a();if(!(iL!=e.charAt(0)||aL!=e.charAt(1))){for(var v=2;kl!=e.charAt(v)&&(aL!=e.charAt(v)||iL!=e.charAt(v+1));)++v;if(v+=2,kl===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:Wue,comment:g})}}function d(){var p=a(),v=l(Bue);if(v){if(f(),!l(Fue))return s("property missing ':'");var g=l($ue),m=p({type:Uue,property:oL(v[0].replace(nL,kl)),value:g?oL(g[0].replace(nL,kl)):kl});return l(Vue),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 oL(e){return e?e.replace(Gue,kl):kl}var Yue=jue;function EG(e,t){var r=null;if(!e||typeof e!="string")return r;for(var n,i=Yue(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 Zue(e){const t=P2(e),r=OG(e);if(t&&r)return{start:t,end:r}}function Lh(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?sL(e.position):"start"in e||"end"in e?sL(e):"line"in e||"column"in e?GC(e):""}function GC(e){return lL(e&&e.line)+":"+lL(e&&e.column)}function sL(e){return GC(e&&e.start)+"-"+GC(e&&e.end)}function lL(e){return e&&typeof e=="number"?e:1}class dn 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=Lh(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}}dn.prototype.file="";dn.prototype.name="";dn.prototype.reason="";dn.prototype.message="";dn.prototype.stack="";dn.prototype.column=void 0;dn.prototype.line=void 0;dn.prototype.ancestors=void 0;dn.prototype.cause=void 0;dn.prototype.fatal=void 0;dn.prototype.place=void 0;dn.prototype.ruleId=void 0;dn.prototype.source=void 0;const k2={}.hasOwnProperty,Kue=new Map,Que=/[A-Z]/g,Jue=/-([a-z])/g,ece=new Set(["table","tbody","thead","tfoot","tr"]),tce=new Set(["td","th"]);function rce(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=ice(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=nce(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"?LG:Eue,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=zG(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function zG(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=LG,e.schema=i),e.ancestors.push(t);let a=ace(e,t);const o=oce(e,e.ancestors);let s=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(a&&ece.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!wue(l):!0})),k2.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 nce(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 ice(e,t){return r;function r(n,i,a,o){const s=Array.isArray(a.children),l=P2(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 ace(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:Kue;for(;++n-1&&e.test(String.fromCharCode(r))}}const yce={'"':"quot","&":"amp","<":"lt",">":"gt"};function xce(e){return e.replace(/["&<>]/g,t);function t(r){return"&"+yce[r]+";"}}function Sce(e,t){const r=xce(Pu(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 Pu(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 bce={};function _ce(e,t){const r=t||bce,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return FG(e,n,i)}function FG(e,t,r){if(wce(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 uL(e.children,t,r)}return Array.isArray(e)?uL(e,t,r):""}function uL(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?(Ea(e,e.length,0,t),e):t}const fL={}.hasOwnProperty;function Cce(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 Zc(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 Dce(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 hL(e){if(e===null||An(e)||mce(e))return 1;if(gce(e))return 2}function R2(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);pL(f,-l),pL(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=ci(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=ci(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),u=ci(u,R2(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=ci(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=ci(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,Ea(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||Ve(b)?e.check(vL,v,S)(b):(e.enter("codeFlowValue"),x(b))}function x(b){return b===null||Ve(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(R){return b.enter("lineEnding"),b.consume(R),b.exit("lineEnding"),M}function M(R){return b.enter("codeFencedFence"),mt(R)?Nt(b,I,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):I(R)}function I(R){return R===s?(b.enter("codeFencedFenceSequence"),P(R)):C(R)}function P(R){return R===s?(A++,b.consume(R),P):A>=o?(b.exit("codeFencedFenceSequence"),mt(R)?Nt(b,k,"whitespace")(R):k(R)):C(R)}function k(R){return R===null||Ve(R)?(b.exit("codeFencedFence"),w(R)):C(R)}}}function Hce(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 jS={name:"codeIndented",tokenize:Uce},Wce={tokenize:jce,partial:!0};function Uce(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):Ve(u)?e.attempt(Wce,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||Ve(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function jce(e,t,r){const n=this;return i;function i(o){return n.parser.lazy[n.now().line]?r(o):Ve(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):Ve(o)?i(o):r(o)}}const Yce={name:"codeText",tokenize:Zce,resolve:qce,previous:Xce};function qce(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 UG(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||HC(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||Ve(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||An(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):Ve(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||Ve(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 YG(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):Ve(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||Ve(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 Eh(e,t){let r;return n;function n(i){return Ve(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 nfe={name:"definition",tokenize:afe},ife={tokenize:ofe,partial:!0};function afe(e,t,r){const n=this;let i;return a;function a(h){return e.enter("definition"),o(h)}function o(h){return jG.call(n,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=Zc(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 An(h)?Eh(e,u)(h):u(h)}function u(h){return UG(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(ife,f,f)(h)}function f(h){return mt(h)?Nt(e,d,"whitespace")(h):d(h)}function d(h){return h===null||Ve(h)?(e.exit("definition"),n.parser.defined.push(i),t(h)):r(h)}}function ofe(e,t,r){return n;function n(s){return An(s)?Eh(e,i)(s):r(s)}function i(s){return YG(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||Ve(s)?t(s):r(s)}}const sfe={name:"hardBreakEscape",tokenize:lfe};function lfe(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Ve(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const ufe={name:"headingAtx",tokenize:ffe,resolve:cfe};function cfe(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"},Ea(e,n,r-n+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function ffe(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||An(c)?(e.exit("atxHeadingSequence"),s(c)):r(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||Ve(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||An(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const dfe=["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"],mL=["pre","script","style","textarea"],hfe={name:"htmlFlow",tokenize:mfe,resolveTo:gfe,concrete:!0},pfe={tokenize:xfe,partial:!0},vfe={tokenize:yfe,partial:!0};function gfe(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 mfe(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:L):pa(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):pa(B)?(e.consume(B),i=4,n.interrupt?t:L):r(B)}function h(B){return B===45?(e.consume(B),n.interrupt?t:L):r(B)}function p(B){const j="CDATA[";return B===j.charCodeAt(s++)?(e.consume(B),s===j.length?n.interrupt?t:I:p):r(B)}function v(B){return pa(B)?(e.consume(B),o=String.fromCharCode(B),g):r(B)}function g(B){if(B===null||B===47||B===62||An(B)){const j=B===47,X=o.toLowerCase();return!j&&!a&&mL.includes(X)?(i=1,n.interrupt?t(B):I(B)):dfe.includes(o.toLowerCase())?(i=6,j?(e.consume(B),m):n.interrupt?t(B):I(B)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(B):a?y(B):x(B))}return B===45||Bn(B)?(e.consume(B),o+=String.fromCharCode(B),g):r(B)}function m(B){return B===62?(e.consume(B),n.interrupt?t:I):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||pa(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||Bn(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||Ve(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||An(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||Ve(B)?I(B):mt(B)?(e.consume(B),M):r(B)}function I(B){return B===45&&i===2?(e.consume(B),z):B===60&&i===1?(e.consume(B),$):B===62&&i===4?(e.consume(B),G):B===63&&i===3?(e.consume(B),L):B===93&&i===5?(e.consume(B),V):Ve(B)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(pfe,U,P)(B)):B===null||Ve(B)?(e.exit("htmlFlowData"),P(B)):(e.consume(B),I)}function P(B){return e.check(vfe,k,U)(B)}function k(B){return e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),R}function R(B){return B===null||Ve(B)?P(B):(e.enter("htmlFlowData"),I(B))}function z(B){return B===45?(e.consume(B),L):I(B)}function $(B){return B===47?(e.consume(B),o="",N):I(B)}function N(B){if(B===62){const j=o.toLowerCase();return mL.includes(j)?(e.consume(B),G):I(B)}return pa(B)&&o.length<8?(e.consume(B),o+=String.fromCharCode(B),N):I(B)}function V(B){return B===93?(e.consume(B),L):I(B)}function L(B){return B===62?(e.consume(B),G):B===45&&i===2?(e.consume(B),L):I(B)}function G(B){return B===null||Ve(B)?(e.exit("htmlFlowData"),U(B)):(e.consume(B),G)}function U(B){return e.exit("htmlFlow"),t(B)}}function yfe(e,t,r){const n=this;return i;function i(o){return Ve(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 xfe(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(ax,t,r)}}const Sfe={name:"htmlText",tokenize:bfe};function bfe(e,t,r){const n=this;let i,a,o;return s;function s(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),l}function l(L){return L===33?(e.consume(L),u):L===47?(e.consume(L),_):L===63?(e.consume(L),x):pa(L)?(e.consume(L),C):r(L)}function u(L){return L===45?(e.consume(L),c):L===91?(e.consume(L),a=0,p):pa(L)?(e.consume(L),y):r(L)}function c(L){return L===45?(e.consume(L),h):r(L)}function f(L){return L===null?r(L):L===45?(e.consume(L),d):Ve(L)?(o=f,$(L)):(e.consume(L),f)}function d(L){return L===45?(e.consume(L),h):f(L)}function h(L){return L===62?z(L):L===45?d(L):f(L)}function p(L){const G="CDATA[";return L===G.charCodeAt(a++)?(e.consume(L),a===G.length?v:p):r(L)}function v(L){return L===null?r(L):L===93?(e.consume(L),g):Ve(L)?(o=v,$(L)):(e.consume(L),v)}function g(L){return L===93?(e.consume(L),m):v(L)}function m(L){return L===62?z(L):L===93?(e.consume(L),m):v(L)}function y(L){return L===null||L===62?z(L):Ve(L)?(o=y,$(L)):(e.consume(L),y)}function x(L){return L===null?r(L):L===63?(e.consume(L),S):Ve(L)?(o=x,$(L)):(e.consume(L),x)}function S(L){return L===62?z(L):x(L)}function _(L){return pa(L)?(e.consume(L),b):r(L)}function b(L){return L===45||Bn(L)?(e.consume(L),b):w(L)}function w(L){return Ve(L)?(o=w,$(L)):mt(L)?(e.consume(L),w):z(L)}function C(L){return L===45||Bn(L)?(e.consume(L),C):L===47||L===62||An(L)?A(L):r(L)}function A(L){return L===47?(e.consume(L),z):L===58||L===95||pa(L)?(e.consume(L),T):Ve(L)?(o=A,$(L)):mt(L)?(e.consume(L),A):z(L)}function T(L){return L===45||L===46||L===58||L===95||Bn(L)?(e.consume(L),T):M(L)}function M(L){return L===61?(e.consume(L),I):Ve(L)?(o=M,$(L)):mt(L)?(e.consume(L),M):A(L)}function I(L){return L===null||L===60||L===61||L===62||L===96?r(L):L===34||L===39?(e.consume(L),i=L,P):Ve(L)?(o=I,$(L)):mt(L)?(e.consume(L),I):(e.consume(L),k)}function P(L){return L===i?(e.consume(L),i=void 0,R):L===null?r(L):Ve(L)?(o=P,$(L)):(e.consume(L),P)}function k(L){return L===null||L===34||L===39||L===60||L===61||L===96?r(L):L===47||L===62||An(L)?A(L):(e.consume(L),k)}function R(L){return L===47||L===62||An(L)?A(L):r(L)}function z(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),t):r(L)}function $(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),N}function N(L){return mt(L)?Nt(e,V,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):V(L)}function V(L){return e.enter("htmlTextData"),o(L)}}const L2={name:"labelEnd",tokenize:Mfe,resolveTo:Afe,resolveAll:Tfe},_fe={tokenize:Ife},wfe={tokenize:Pfe},Cfe={tokenize:kfe};function Tfe(e){let t=-1;for(;++t=3&&(u===null||Ve(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 vn={name:"list",tokenize:Ffe,continuation:{tokenize:$fe},exit:Gfe},zfe={tokenize:Hfe,partial:!0},Bfe={tokenize:Vfe,partial:!0};function Ffe(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:WC(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(Om,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 WC(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(ax,n.interrupt?r:c,e.attempt(zfe,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 $fe(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(ax,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(Bfe,t,o)(s))}function o(s){return n.containerState._closeFlow=!0,n.interrupt=void 0,Nt(e,e.attempt(vn,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function Vfe(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 Gfe(e){e.exit(this.containerState.type)}function Hfe(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 yL={name:"setextUnderline",tokenize:Ufe,resolveTo:Wfe};function Wfe(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 Ufe(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||Ve(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const jfe={tokenize:Yfe};function Yfe(e){const t=this,r=e.attempt(ax,n,e.attempt(this.parser.constructs.flowInitial,i,Nt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Qce,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 qfe={resolveAll:XG()},Xfe=qG("string"),Zfe=qG("text");function qG(e){return{tokenize:t,resolveAll:XG(e==="text"?Kfe: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 ede(e,t){let r=-1;const n=[];let i;for(;++r=I:!1}var d=RR(r+"/executeQuery",c,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[th]=!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,I=x.originalArgs,P=T==null?void 0:T.originalArgs,k=i[x.endpointName];return zC(x)?!0:(T==null?void 0:T.status)==="pending"?!1:f(x,A)||fG(k)&&((C=k==null?void 0:k.forceRefetch)!=null&&C.call(k,{currentArg:I,previousArg:P,endpointState:T,state:A}))?!0:!M},dispatchConditionRejection:!0}),h=RR(r+"/executeMutation",c,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[th]=!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(k){return k===void 0&&(k=!0),o.endpoints[x].initiate(S,{forceRefetch:k})},M=o.endpoints[x].select(S)(w());if(C)b(T());else if(A){var I=M==null?void 0:M.fulfilledTimeStamp;if(!I){b(T());return}var P=(Number(new Date)-Number(new Date(I)))/1e3>=A;P&&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:Rh(x2(x),m(S)),matchFulfilled:Rh(Mu(x),m(S)),matchRejected:Rh(bp(x),m(S))}}return{queryThunk:d,mutationThunk:h,prefetch:g,updateQueryData:l,upsertQueryData:u,patchQueryData:s,buildMatchThunkActions:y}}function hG(e,t,r,n){return dG(r[e.meta.arg.endpointName][t],Mu(e)?e.payload:void 0,nx(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function lg(e,t,r){var n=e[t];n&&r(n)}function wp(e){var t;return(t="arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)!=null?t:e.requestId}function GR(e,t,r){var n=e[wp(t)];n&&r(n)}var yd={};function ele(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=Tn(t+"/resetApiState"),d=ui({name:t+"/queries",initialState:yd,reducers:{removeQueryResult:{reducer:function(_,b){var w=b.payload.queryCacheKey;delete _[w]},prepare:FS()},queryResultPatched:function(_,b){var w=b.payload,C=w.queryCacheKey,A=w.patches;lg(_,C,function(T){T.data=CR(T.data,A.concat())})}},extraReducers:function(_){_.addCase(r.pending,function(b,w){var C=w.meta,A=w.meta.arg,T,M,I=zC(A);(A.subscribe||I)&&((M=b[T=A.queryCacheKey])!=null||(b[T]={status:Ht.uninitialized,endpointName:A.endpointName})),lg(b,A.queryCacheKey,function(P){P.status=Ht.pending,P.requestId=I&&P.requestId?P.requestId:C.requestId,A.originalArgs!==void 0&&(P.originalArgs=A.originalArgs),P.startedTimeStamp=C.startedTimeStamp})}).addCase(r.fulfilled,function(b,w){var C=w.meta,A=w.payload;lg(b,C.arg.queryCacheKey,function(T){var M;if(!(T.requestId!==C.requestId&&!zC(C.arg))){var I=a[C.arg.endpointName].merge;if(T.status=Ht.fulfilled,I)if(T.data!==void 0){var P=C.fulfilledTimeStamp,k=C.arg,R=C.baseQueryMeta,z=C.requestId,$=fv(T.data,function(N){return I(N,A,{arg:k.originalArgs,baseQueryMeta:R,fulfilledTimeStamp:P,requestId:z})});T.data=$}else T.data=A;else T.data=(M=a[C.arg.endpointName].structuralSharing)==null||M?lG(Yi(T.data)?Boe(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,I=w.error,P=w.payload;lg(b,T.queryCacheKey,function(k){if(!A){if(k.requestId!==M)return;k.status=Ht.rejected,k.error=P??I}})}).addMatcher(l,function(b,w){for(var C=s(w).queries,A=0,T=Object.entries(C);AArray.isArray(e)?e.length:Object.keys(e).length,Rle=e=>mc(e)===0;function Lle(e,t){return{...e,...t}}const Ele=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},ix=(e,t)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:[...r[n]||[],i]}),e);function vG(e,t,r){return t&&(Array.isArray(t)?t.map(n=>vG(e,n,r)):typeof t=="object"?w2(t,r):t)}const w2=(e,t)=>Object.entries(e).reduce((r,[n,i])=>({...r,[t(n)]:vG(e,i,t)}),{}),gG=e=>e.replace(/_([a-z0-9])/g,(t,r)=>r.toUpperCase()),Ole=e=>e[0]===e[0].toUpperCase()?e:e.replace(/([a-z0-9])([A-Z0-9])/g,"$1_$2").toLowerCase(),Gl=e=>w2(e,gG),Nle=e=>w2(e,Ole),zle=e=>e.replace(/([a-z0-9])([A-Z0-9])/g,"$1 $2").replace(/^./,t=>t.toUpperCase()),Ble=e=>Object.fromEntries(new URLSearchParams(e).entries()),Fle=(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]},BC=Dle({baseQuery:Xse(),endpoints:e=>({getStats:e.query({query:()=>"stats/requests",transformResponse:Gl}),getTasks:e.query({query:()=>"tasks",transformResponse:Gl}),getExceptions:e.query({query:()=>"exceptions",transformResponse:Gl}),getLogs:e.query({query:()=>"logs",transformResponse:Gl}),startSwarm:e.mutation({query:t=>({url:"swarm",method:"POST",body:Ele(Nle(t)),headers:{"content-type":"application/x-www-form-urlencoded"}})})})}),{useGetStatsQuery:$le,useGetTasksQuery:Vle,useGetExceptionsQuery:Gle,useGetLogsQuery:Hle,useStartSwarmMutation:mG}=BC;function Wle({onSubmit:e,spawnRate:t,userCount:r}){const[n]=mG(),i=a=>{e(),n(a)};return E.jsxs(Nf,{maxWidth:"md",sx:{my:2},children:[E.jsx(Xe,{component:"h2",noWrap:!0,variant:"h6",children:"Edit running load test"}),E.jsx(aG,{onSubmit:i,children:E.jsxs(ft,{sx:{my:2,display:"flex",flexDirection:"column",rowGap:4},children:[E.jsx(Fl,{defaultValue:r||1,label:"Number of users (peak concurrency)",name:"userCount"}),E.jsx(Fl,{defaultValue:t||1,label:"Ramp Up (users started/second)",name:"spawnRate"}),E.jsx(Au,{size:"large",type:"submit",variant:"contained",children:"Update Swarm"})]})})]})}const Ule=({swarm:{spawnRate:e,userCount:t}})=>({spawnRate:e,userCount:t}),jle=Xn(Ule)(Wle);function Yle(){const[e,t]=O.useState(!1);return E.jsxs(E.Fragment,{children:[E.jsx(Au,{color:"secondary",onClick:()=>t(!0),type:"button",variant:"contained",children:"Edit"}),E.jsx(c2,{onClose:()=>t(!1),open:e,children:E.jsx(jle,{onSubmit:()=>t(!1)})})]})}var C2={},qle=uv;Object.defineProperty(C2,"__esModule",{value:!0});var T2=C2.default=void 0,Xle=qle(cv()),Zle=E,Kle=(0,Xle.default)((0,Zle.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");T2=C2.default=Kle;function FC({label:e,name:t,options:r,multiple:n=!1,defaultValue:i,sx:a}){return E.jsxs(C4,{sx:a,children:[E.jsx(I4,{htmlFor:t,shrink:!0,children:e}),E.jsx(F4,{defaultValue:i||n&&r||r[0],id:t,label:e,multiple:n,name:t,native:!0,children:r.map((o,s)=>E.jsx("option",{value:o,children:o},`option-${o}-${s}`))})]})}const QR=e=>e.defaultValue!==null&&typeof e.defaultValue!="boolean";function Qle({label:e,defaultValue:t,choices:r,helpText:n,isSecret:i}){const a=zle(e),o=n?`${a} (${n})`:a;return r?E.jsx(FC,{defaultValue:t,label:o,name:e,options:r,sx:{width:"100%"}}):E.jsx(Fl,{defaultValue:t,label:o,name:e,sx:{width:"100%"},type:i?"password":"text"})}function Jle({extraOptions:e}){const t=O.useMemo(()=>Object.entries(e).reduce((n,[i,a])=>QR(a)?[...n,{label:i,...a}]:n,[]),[e]),r=O.useMemo(()=>Object.keys(e).reduce((n,i)=>QR(e[i])?n:[...n,i],[]),[e]);return E.jsxs(p4,{children:[E.jsx(g4,{expandIcon:E.jsx(T2,{}),children:E.jsx(Xe,{children:"Custom parameters"})}),E.jsx(v4,{children:E.jsxs(ft,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[t.map((n,i)=>E.jsx(Qle,{...n},`valid-parameter-${i}`)),E.jsx(ft,{children:r&&E.jsxs(E.Fragment,{children:[E.jsx(Xe,{children:"The following custom parameters can't be set in the Web UI, because it is a boolean or None type:"}),E.jsx("ul",{children:r.map((n,i)=>E.jsx("li",{children:E.jsx(Xe,{children:n})},`invalid-parameter-${i}`))})]})})]})})]})}function hv(e,{payload:t}){return Lle(e,t)}const eue=Gl(window.templateArgs),yG=ui({name:"swarm",initialState:eue,reducers:{setSwarm:hv}}),xG=yG.actions,tue=yG.reducer;function rue({availableShapeClasses:e,availableUserClasses:t,host:r,extraOptions:n,isShape:i,numUsers:a,overrideHostWarning:o,runTime:s,setSwarm:l,showUserclassPicker:u,spawnRate:c}){const[f]=mG(),d=h=>{l({state:En.RUNNING,host:h.host||r}),f(h)};return E.jsxs(Nf,{maxWidth:"md",sx:{my:2},children:[E.jsx(Xe,{component:"h2",noWrap:!0,variant:"h6",children:"Start new load test"}),E.jsx(aG,{onSubmit:d,children:E.jsxs(ft,{sx:{my:2,display:"flex",flexDirection:"column",rowGap:4},children:[u&&E.jsxs(E.Fragment,{children:[E.jsx(FC,{label:"User Classes",multiple:!0,name:"userClasses",options:t}),E.jsx(FC,{label:"Shape Class",name:"shapeClass",options:e})]}),E.jsx(Fl,{defaultValue:i&&"-"||a||1,disabled:!!i,label:"Number of users (peak concurrency)",name:"userCount"}),E.jsx(Fl,{defaultValue:i&&"-"||c||1,disabled:!!i,label:"Ramp Up (users started/second)",name:"spawnRate",title:"Disabled for tests using LoadTestShape class"}),E.jsx(Fl,{defaultValue:r,label:`Host ${o?"(setting this will override the host for the User classes)":""}`,name:"host",title:"Disabled for tests using LoadTestShape class"}),E.jsxs(p4,{children:[E.jsx(g4,{expandIcon:E.jsx(T2,{}),children:E.jsx(Xe,{children:"Advanced options"})}),E.jsx(v4,{children:E.jsx(Fl,{defaultValue:s,label:"Run time (e.g. 20, 20s, 3m, 2h, 1h20m, 3h30m10s, etc.)",name:"runTime",sx:{width:"100%"}})})]}),!Rle(n)&&E.jsx(Jle,{extraOptions:n}),E.jsx(Au,{size:"large",type:"submit",variant:"contained",children:"Start Swarm"})]})})]})}const nue=({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}),iue={setSwarm:xG.setSwarm},SG=Xn(nue,iue)(rue);function aue(){const[e,t]=O.useState(!1);return E.jsxs(E.Fragment,{children:[E.jsx(Au,{color:"success",onClick:()=>t(!0),type:"button",variant:"contained",children:"New"}),E.jsx(c2,{onClose:()=>t(!1),open:e,children:E.jsx(SG,{})})]})}function oue(){const e=()=>{fetch("stats/reset")};return E.jsx(Au,{color:"warning",onClick:e,type:"button",variant:"contained",children:"Reset"})}function sue(){const[e,t]=O.useState(!1);O.useEffect(()=>{t(!1)},[]);const r=()=>{fetch("stop"),t(!0)};return E.jsx(Au,{color:"error",disabled:e,onClick:r,type:"button",variant:"contained",children:e?"Loading":"Stop"})}function lue(){const e=Vs(({swarm:t})=>t.state);return e===En.READY?null:e===En.STOPPED?E.jsx(aue,{}):E.jsxs(ft,{sx:{display:"flex",columnGap:2},children:[E.jsx(Yle,{}),E.jsx(sue,{}),E.jsx(oue,{})]})}function uue(){return E.jsx(ate,{position:"static",children:E.jsx(Nf,{maxWidth:"xl",children:E.jsxs(Nae,{sx:{display:"flex",justifyContent:"space-between"},children:[E.jsxs(li,{color:"inherit",href:"/",sx:{display:"flex",alignItems:"center",columnGap:2},underline:"none",children:[E.jsx("img",{height:"52",src:"/assets/logo.png",width:"52"}),E.jsx(Xe,{component:"h1",noWrap:!0,sx:{fontWeight:700,display:"flex",alignItems:"center"},variant:"h3",children:"Locust"})]}),E.jsxs(ft,{sx:{display:"flex",columnGap:6},children:[E.jsx(Nse,{}),E.jsx(lue,{}),E.jsx(Lse,{})]})]})})})}function cue({children:e}){return E.jsxs(E.Fragment,{children:[E.jsx(uue,{}),E.jsx("main",{children:e}),E.jsx(Poe,{})]})}function rh(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 fue={},bG=ui({name:"notification",initialState:fue,reducers:{setNotification:hv}}),_G=bG.actions,due=bG.reducer;function hue(e,{key:t,shouldNotify:r}){const n=$l(_G.setNotification),i=Vs(({url:{query:o}})=>o&&o.tab),a=`${t}Notification`;O.useEffect(()=>{mc(e)>0&&mc(e)(localStorage[a]||0)&&(!i||i!==t)&&(!r||r&&r())&&(n({[t]:!0}),localStorage[a]=mc(e))},[e])}const pue={logs:[]},wG=ui({name:"logViewer",initialState:pue,reducers:{setLogs:hv}}),vue=wG.actions,gue=wG.reducer,mue=e=>e.includes("WARNING")||e.includes("ERROR")||e.includes("CRITICAL");function yue(){const e=Vs(({swarm:o})=>o),t=$l(vue.setLogs),{data:r,refetch:n}=Hle(),i=r?r.logs:[],a=O.useCallback(()=>i.slice(localStorage.logViewer).some(mue),[i]);return rh(n,5e3,{shouldRunInterval:e.state===En.SPAWNING||e.state==En.RUNNING}),hue(i,{key:"logViewer",shouldNotify:a}),O.useEffect(()=>{t({logs:i})},[i]),i}var A2={},xue=uv;Object.defineProperty(A2,"__esModule",{value:!0});var CG=A2.default=void 0,Sue=xue(cv()),JR=E,bue=(0,Sue.default)([(0,JR.jsx)("circle",{cx:"12",cy:"19",r:"2"},"0"),(0,JR.jsx)("path",{d:"M10 3h4v12h-4z"},"1")],"PriorityHigh");CG=A2.default=bue;function _ue(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const wue=/[ \t\n\f\r]/g;function Cue(e){return typeof e=="object"?e.type==="text"?eL(e.value):!1:eL(e)}function eL(e){return e.replace(wue,"")===""}class pv{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}}pv.prototype.property={};pv.prototype.normal={};pv.prototype.space=null;function TG(e,t){const r={},n={};let i=-1;for(;++i4&&r.slice(0,4)==="data"&&Pue.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(rL,Lue);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!rL.test(a)){let o=a.replace(kue,Rue);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=M2}return new i(n,t)}function Rue(e){return"-"+e.toLowerCase()}function Lue(e){return e.charAt(1).toUpperCase()}const Eue={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"},Oue=TG([IG,MG,DG,RG,Mue],"html"),LG=TG([IG,MG,DG,RG,Iue],"svg");function Nue(e){return e.join(" ").trim()}var I2={exports:{}},nL=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,zue=/\n/g,Bue=/^\s*/,Fue=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,$ue=/^:\s*/,Vue=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Gue=/^[;\s]*/,Hue=/^\s+|\s+$/g,Wue=` +`,iL="/",aL="*",kl="",Uue="comment",jue="declaration",Yue=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(zue);v&&(r+=v.length);var g=p.lastIndexOf(Wue);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(Bue)}function c(p){var v;for(p=p||[];v=f();)v!==!1&&p.push(v);return p}function f(){var p=a();if(!(iL!=e.charAt(0)||aL!=e.charAt(1))){for(var v=2;kl!=e.charAt(v)&&(aL!=e.charAt(v)||iL!=e.charAt(v+1));)++v;if(v+=2,kl===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:Uue,comment:g})}}function d(){var p=a(),v=l(Fue);if(v){if(f(),!l($ue))return s("property missing ':'");var g=l(Vue),m=p({type:jue,property:oL(v[0].replace(nL,kl)),value:g?oL(g[0].replace(nL,kl)):kl});return l(Gue),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 oL(e){return e?e.replace(Hue,kl):kl}var que=Yue;function EG(e,t){var r=null;if(!e||typeof e!="string")return r;for(var n,i=que(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 Kue(e){const t=P2(e),r=OG(e);if(t&&r)return{start:t,end:r}}function Lh(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?sL(e.position):"start"in e||"end"in e?sL(e):"line"in e||"column"in e?GC(e):""}function GC(e){return lL(e&&e.line)+":"+lL(e&&e.column)}function sL(e){return GC(e&&e.start)+"-"+GC(e&&e.end)}function lL(e){return e&&typeof e=="number"?e:1}class dn 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=Lh(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}}dn.prototype.file="";dn.prototype.name="";dn.prototype.reason="";dn.prototype.message="";dn.prototype.stack="";dn.prototype.column=void 0;dn.prototype.line=void 0;dn.prototype.ancestors=void 0;dn.prototype.cause=void 0;dn.prototype.fatal=void 0;dn.prototype.place=void 0;dn.prototype.ruleId=void 0;dn.prototype.source=void 0;const k2={}.hasOwnProperty,Que=new Map,Jue=/[A-Z]/g,ece=/-([a-z])/g,tce=new Set(["table","tbody","thead","tfoot","tr"]),rce=new Set(["td","th"]);function nce(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=ace(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=ice(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"?LG:Oue,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=zG(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function zG(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=LG,e.schema=i),e.ancestors.push(t);let a=oce(e,t);const o=sce(e,e.ancestors);let s=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(a&&tce.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!Cue(l):!0})),k2.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 ice(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 ace(e,t){return r;function r(n,i,a,o){const s=Array.isArray(a.children),l=P2(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 oce(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:Que;for(;++n-1&&e.test(String.fromCharCode(r))}}const xce={'"':"quot","&":"amp","<":"lt",">":"gt"};function Sce(e){return e.replace(/["&<>]/g,t);function t(r){return"&"+xce[r]+";"}}function bce(e,t){const r=Sce(Pu(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 Pu(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 _ce={};function wce(e,t){const r=t||_ce,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return FG(e,n,i)}function FG(e,t,r){if(Cce(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 uL(e.children,t,r)}return Array.isArray(e)?uL(e,t,r):""}function uL(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?(Ea(e,e.length,0,t),e):t}const fL={}.hasOwnProperty;function Tce(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 Zc(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 Rce(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 hL(e){if(e===null||An(e)||yce(e))return 1;if(mce(e))return 2}function R2(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);pL(f,-l),pL(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=ci(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=ci(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),u=ci(u,R2(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=ci(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=ci(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,Ea(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||Ve(b)?e.check(vL,v,S)(b):(e.enter("codeFlowValue"),x(b))}function x(b){return b===null||Ve(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(R){return b.enter("lineEnding"),b.consume(R),b.exit("lineEnding"),M}function M(R){return b.enter("codeFencedFence"),mt(R)?Nt(b,I,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):I(R)}function I(R){return R===s?(b.enter("codeFencedFenceSequence"),P(R)):C(R)}function P(R){return R===s?(A++,b.consume(R),P):A>=o?(b.exit("codeFencedFenceSequence"),mt(R)?Nt(b,k,"whitespace")(R):k(R)):C(R)}function k(R){return R===null||Ve(R)?(b.exit("codeFencedFence"),w(R)):C(R)}}}function Wce(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 jS={name:"codeIndented",tokenize:jce},Uce={tokenize:Yce,partial:!0};function jce(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):Ve(u)?e.attempt(Uce,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||Ve(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function Yce(e,t,r){const n=this;return i;function i(o){return n.parser.lazy[n.now().line]?r(o):Ve(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):Ve(o)?i(o):r(o)}}const qce={name:"codeText",tokenize:Kce,resolve:Xce,previous:Zce};function Xce(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 UG(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||HC(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||Ve(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||An(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):Ve(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||Ve(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 YG(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):Ve(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||Ve(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 Eh(e,t){let r;return n;function n(i){return Ve(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 ife={name:"definition",tokenize:ofe},afe={tokenize:sfe,partial:!0};function ofe(e,t,r){const n=this;let i;return a;function a(h){return e.enter("definition"),o(h)}function o(h){return jG.call(n,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=Zc(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 An(h)?Eh(e,u)(h):u(h)}function u(h){return UG(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(afe,f,f)(h)}function f(h){return mt(h)?Nt(e,d,"whitespace")(h):d(h)}function d(h){return h===null||Ve(h)?(e.exit("definition"),n.parser.defined.push(i),t(h)):r(h)}}function sfe(e,t,r){return n;function n(s){return An(s)?Eh(e,i)(s):r(s)}function i(s){return YG(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||Ve(s)?t(s):r(s)}}const lfe={name:"hardBreakEscape",tokenize:ufe};function ufe(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Ve(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const cfe={name:"headingAtx",tokenize:dfe,resolve:ffe};function ffe(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"},Ea(e,n,r-n+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function dfe(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||An(c)?(e.exit("atxHeadingSequence"),s(c)):r(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||Ve(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||An(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const hfe=["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"],mL=["pre","script","style","textarea"],pfe={name:"htmlFlow",tokenize:yfe,resolveTo:mfe,concrete:!0},vfe={tokenize:Sfe,partial:!0},gfe={tokenize:xfe,partial:!0};function mfe(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 yfe(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:L):pa(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):pa(B)?(e.consume(B),i=4,n.interrupt?t:L):r(B)}function h(B){return B===45?(e.consume(B),n.interrupt?t:L):r(B)}function p(B){const j="CDATA[";return B===j.charCodeAt(s++)?(e.consume(B),s===j.length?n.interrupt?t:I:p):r(B)}function v(B){return pa(B)?(e.consume(B),o=String.fromCharCode(B),g):r(B)}function g(B){if(B===null||B===47||B===62||An(B)){const j=B===47,X=o.toLowerCase();return!j&&!a&&mL.includes(X)?(i=1,n.interrupt?t(B):I(B)):hfe.includes(o.toLowerCase())?(i=6,j?(e.consume(B),m):n.interrupt?t(B):I(B)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(B):a?y(B):x(B))}return B===45||Bn(B)?(e.consume(B),o+=String.fromCharCode(B),g):r(B)}function m(B){return B===62?(e.consume(B),n.interrupt?t:I):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||pa(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||Bn(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||Ve(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||An(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||Ve(B)?I(B):mt(B)?(e.consume(B),M):r(B)}function I(B){return B===45&&i===2?(e.consume(B),z):B===60&&i===1?(e.consume(B),$):B===62&&i===4?(e.consume(B),G):B===63&&i===3?(e.consume(B),L):B===93&&i===5?(e.consume(B),V):Ve(B)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(vfe,U,P)(B)):B===null||Ve(B)?(e.exit("htmlFlowData"),P(B)):(e.consume(B),I)}function P(B){return e.check(gfe,k,U)(B)}function k(B){return e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),R}function R(B){return B===null||Ve(B)?P(B):(e.enter("htmlFlowData"),I(B))}function z(B){return B===45?(e.consume(B),L):I(B)}function $(B){return B===47?(e.consume(B),o="",N):I(B)}function N(B){if(B===62){const j=o.toLowerCase();return mL.includes(j)?(e.consume(B),G):I(B)}return pa(B)&&o.length<8?(e.consume(B),o+=String.fromCharCode(B),N):I(B)}function V(B){return B===93?(e.consume(B),L):I(B)}function L(B){return B===62?(e.consume(B),G):B===45&&i===2?(e.consume(B),L):I(B)}function G(B){return B===null||Ve(B)?(e.exit("htmlFlowData"),U(B)):(e.consume(B),G)}function U(B){return e.exit("htmlFlow"),t(B)}}function xfe(e,t,r){const n=this;return i;function i(o){return Ve(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 Sfe(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(ax,t,r)}}const bfe={name:"htmlText",tokenize:_fe};function _fe(e,t,r){const n=this;let i,a,o;return s;function s(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),l}function l(L){return L===33?(e.consume(L),u):L===47?(e.consume(L),_):L===63?(e.consume(L),x):pa(L)?(e.consume(L),C):r(L)}function u(L){return L===45?(e.consume(L),c):L===91?(e.consume(L),a=0,p):pa(L)?(e.consume(L),y):r(L)}function c(L){return L===45?(e.consume(L),h):r(L)}function f(L){return L===null?r(L):L===45?(e.consume(L),d):Ve(L)?(o=f,$(L)):(e.consume(L),f)}function d(L){return L===45?(e.consume(L),h):f(L)}function h(L){return L===62?z(L):L===45?d(L):f(L)}function p(L){const G="CDATA[";return L===G.charCodeAt(a++)?(e.consume(L),a===G.length?v:p):r(L)}function v(L){return L===null?r(L):L===93?(e.consume(L),g):Ve(L)?(o=v,$(L)):(e.consume(L),v)}function g(L){return L===93?(e.consume(L),m):v(L)}function m(L){return L===62?z(L):L===93?(e.consume(L),m):v(L)}function y(L){return L===null||L===62?z(L):Ve(L)?(o=y,$(L)):(e.consume(L),y)}function x(L){return L===null?r(L):L===63?(e.consume(L),S):Ve(L)?(o=x,$(L)):(e.consume(L),x)}function S(L){return L===62?z(L):x(L)}function _(L){return pa(L)?(e.consume(L),b):r(L)}function b(L){return L===45||Bn(L)?(e.consume(L),b):w(L)}function w(L){return Ve(L)?(o=w,$(L)):mt(L)?(e.consume(L),w):z(L)}function C(L){return L===45||Bn(L)?(e.consume(L),C):L===47||L===62||An(L)?A(L):r(L)}function A(L){return L===47?(e.consume(L),z):L===58||L===95||pa(L)?(e.consume(L),T):Ve(L)?(o=A,$(L)):mt(L)?(e.consume(L),A):z(L)}function T(L){return L===45||L===46||L===58||L===95||Bn(L)?(e.consume(L),T):M(L)}function M(L){return L===61?(e.consume(L),I):Ve(L)?(o=M,$(L)):mt(L)?(e.consume(L),M):A(L)}function I(L){return L===null||L===60||L===61||L===62||L===96?r(L):L===34||L===39?(e.consume(L),i=L,P):Ve(L)?(o=I,$(L)):mt(L)?(e.consume(L),I):(e.consume(L),k)}function P(L){return L===i?(e.consume(L),i=void 0,R):L===null?r(L):Ve(L)?(o=P,$(L)):(e.consume(L),P)}function k(L){return L===null||L===34||L===39||L===60||L===61||L===96?r(L):L===47||L===62||An(L)?A(L):(e.consume(L),k)}function R(L){return L===47||L===62||An(L)?A(L):r(L)}function z(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),t):r(L)}function $(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),N}function N(L){return mt(L)?Nt(e,V,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):V(L)}function V(L){return e.enter("htmlTextData"),o(L)}}const L2={name:"labelEnd",tokenize:Ife,resolveTo:Mfe,resolveAll:Afe},wfe={tokenize:Pfe},Cfe={tokenize:kfe},Tfe={tokenize:Dfe};function Afe(e){let t=-1;for(;++t=3&&(u===null||Ve(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 vn={name:"list",tokenize:$fe,continuation:{tokenize:Vfe},exit:Hfe},Bfe={tokenize:Wfe,partial:!0},Ffe={tokenize:Gfe,partial:!0};function $fe(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:WC(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(Om,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 WC(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(ax,n.interrupt?r:c,e.attempt(Bfe,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 Vfe(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(ax,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(Ffe,t,o)(s))}function o(s){return n.containerState._closeFlow=!0,n.interrupt=void 0,Nt(e,e.attempt(vn,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function Gfe(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 Hfe(e){e.exit(this.containerState.type)}function Wfe(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 yL={name:"setextUnderline",tokenize:jfe,resolveTo:Ufe};function Ufe(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 jfe(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||Ve(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const Yfe={tokenize:qfe};function qfe(e){const t=this,r=e.attempt(ax,n,e.attempt(this.parser.constructs.flowInitial,i,Nt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Jce,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 Xfe={resolveAll:XG()},Zfe=qG("string"),Kfe=qG("text");function qG(e){return{tokenize:t,resolveAll:XG(e==="text"?Qfe: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 tde(e,t){let r=-1;const n=[];let i;for(;++r0){const Vt=Re.tokenStack[Re.tokenStack.length-1];(Vt[1]||SL).call(Re,void 0,Vt[0])}for(le.position={start:Ro(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:Ro(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},he=-1;++he1?"-"+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 Mde(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 Ide(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function QG(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 Pde(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return QG(e,t);const i={src:Pu(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 kde(e,t){const r={src:Pu(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 Dde(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 Rde(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return QG(e,t);const i={href:Pu(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 Lde(e,t){const r={href:Pu(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 Ede(e,t,r){const n=e.all(t),i=r?Ode(r):JG(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]||SL).call(Re,void 0,Vt[0])}for(le.position={start:Ro(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:Ro(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},he=-1;++he1?"-"+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 Ide(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 Pde(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function QG(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 kde(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return QG(e,t);const i={src:Pu(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 Dde(e,t){const r={src:Pu(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 Rde(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 Lde(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return QG(e,t);const i={href:Pu(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 Ede(e,t){const r={href:Pu(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 Ode(e,t,r){const n=e.all(t),i=r?Nde(r):JG(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 Nde(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=P2(t.children[1]),l=OG(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 Vde(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(wL(t.slice(i),i>0,!1)),a.join("")}function wL(e,t,r){let n=0,i=e.length;if(t){let a=e.codePointAt(n);for(;a===bL||a===_L;)n++,a=e.codePointAt(n)}if(r){let a=e.codePointAt(i-1);for(;a===bL||a===_L;)i--,a=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}function Wde(e,t){const r={type:"text",value:Hde(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function Ude(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const jde={blockquote:bde,break:_de,code:wde,delete:Cde,emphasis:Tde,footnoteReference:Ade,heading:Mde,html:Ide,imageReference:Pde,image:kde,inlineCode:Dde,linkReference:Rde,link:Lde,listItem:Ede,list:Nde,paragraph:zde,root:Bde,strong:Fde,table:$de,tableCell:Gde,tableRow:Vde,text:Wde,thematicBreak:Ude,toml:dg,yaml:dg,definition:dg,footnoteDefinition:dg};function dg(){}const eH=-1,ox=0,Yy=1,qy=2,E2=3,O2=4,N2=5,z2=6,tH=7,rH=8,CL=typeof self=="object"?self:globalThis,Yde=(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 ox:case eH:return r(o,i);case Yy:{const s=r([],i);for(const l of o)s.push(n(l));return s}case qy:{const s=r({},i);for(const[l,u]of o)s[n(l)]=n(u);return s}case E2:return r(new Date(o),i);case O2:{const{source:s,flags:l}=o;return r(new RegExp(s,l),i)}case N2:{const s=r(new Map,i);for(const[l,u]of o)s.set(n(l),n(u));return s}case z2:{const s=r(new Set,i);for(const l of o)s.add(n(l));return s}case tH:{const{name:s,message:l}=o;return r(new CL[s](l),i)}case rH:return r(BigInt(o),i);case"BigInt":return r(Object(BigInt(o)),i)}return r(new CL[a](o),i)};return n},TL=e=>Yde(new Map,e)(0),Yu="",{toString:qde}={},{keys:Xde}=Object,xd=e=>{const t=typeof e;if(t!=="object"||!e)return[ox,t];const r=qde.call(e).slice(8,-1);switch(r){case"Array":return[Yy,Yu];case"Object":return[qy,Yu];case"Date":return[E2,Yu];case"RegExp":return[O2,Yu];case"Map":return[N2,Yu];case"Set":return[z2,Yu]}return r.includes("Array")?[Yy,r]:r.includes("Error")?[tH,r]:[qy,r]},hg=([e,t])=>e===ox&&(t==="function"||t==="symbol"),Zde=(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]=xd(o);switch(s){case ox:{let c=o;switch(l){case"bigint":s=rH,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([eH],o)}return i([s,c],o)}case Yy:{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 qy:{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 Xde(o))(e||!hg(xd(o[d])))&&c.push([a(d),a(o[d])]);return f}case E2:return i([s,o.toISOString()],o);case O2:{const{source:c,flags:f}=o;return i([s,{source:c,flags:f}],o)}case N2:{const c=[],f=i([s,c],o);for(const[d,h]of o)(e||!(hg(xd(d))||hg(xd(h))))&&c.push([a(d),a(h)]);return f}case z2:{const c=[],f=i([s,c],o);for(const d of o)(e||!hg(xd(d)))&&c.push(a(d));return f}}const{message:u}=o;return i([s,{name:l,message:u}],o)};return a},AL=(e,{json:t,lossy:r}={})=>{const n=[];return Zde(!(t||r),!!t,new Map,n)(e),n},Xy=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?TL(AL(e,t)):structuredClone(e):(e,t)=>TL(AL(e,t));function Kde(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 Qde(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Jde(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||Kde,n=e.options.footnoteBackLabel||Qde,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:{...Xy(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 Nde(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let n=-1;for(;!t&&++n1}function zde(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=P2(t.children[1]),l=OG(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 Gde(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(wL(t.slice(i),i>0,!1)),a.join("")}function wL(e,t,r){let n=0,i=e.length;if(t){let a=e.codePointAt(n);for(;a===bL||a===_L;)n++,a=e.codePointAt(n)}if(r){let a=e.codePointAt(i-1);for(;a===bL||a===_L;)i--,a=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}function Ude(e,t){const r={type:"text",value:Wde(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function jde(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const Yde={blockquote:_de,break:wde,code:Cde,delete:Tde,emphasis:Ade,footnoteReference:Mde,heading:Ide,html:Pde,imageReference:kde,image:Dde,inlineCode:Rde,linkReference:Lde,link:Ede,listItem:Ode,list:zde,paragraph:Bde,root:Fde,strong:$de,table:Vde,tableCell:Hde,tableRow:Gde,text:Ude,thematicBreak:jde,toml:dg,yaml:dg,definition:dg,footnoteDefinition:dg};function dg(){}const eH=-1,ox=0,Yy=1,qy=2,E2=3,O2=4,N2=5,z2=6,tH=7,rH=8,CL=typeof self=="object"?self:globalThis,qde=(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 ox:case eH:return r(o,i);case Yy:{const s=r([],i);for(const l of o)s.push(n(l));return s}case qy:{const s=r({},i);for(const[l,u]of o)s[n(l)]=n(u);return s}case E2:return r(new Date(o),i);case O2:{const{source:s,flags:l}=o;return r(new RegExp(s,l),i)}case N2:{const s=r(new Map,i);for(const[l,u]of o)s.set(n(l),n(u));return s}case z2:{const s=r(new Set,i);for(const l of o)s.add(n(l));return s}case tH:{const{name:s,message:l}=o;return r(new CL[s](l),i)}case rH:return r(BigInt(o),i);case"BigInt":return r(Object(BigInt(o)),i)}return r(new CL[a](o),i)};return n},TL=e=>qde(new Map,e)(0),Yu="",{toString:Xde}={},{keys:Zde}=Object,xd=e=>{const t=typeof e;if(t!=="object"||!e)return[ox,t];const r=Xde.call(e).slice(8,-1);switch(r){case"Array":return[Yy,Yu];case"Object":return[qy,Yu];case"Date":return[E2,Yu];case"RegExp":return[O2,Yu];case"Map":return[N2,Yu];case"Set":return[z2,Yu]}return r.includes("Array")?[Yy,r]:r.includes("Error")?[tH,r]:[qy,r]},hg=([e,t])=>e===ox&&(t==="function"||t==="symbol"),Kde=(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]=xd(o);switch(s){case ox:{let c=o;switch(l){case"bigint":s=rH,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([eH],o)}return i([s,c],o)}case Yy:{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 qy:{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 Zde(o))(e||!hg(xd(o[d])))&&c.push([a(d),a(o[d])]);return f}case E2:return i([s,o.toISOString()],o);case O2:{const{source:c,flags:f}=o;return i([s,{source:c,flags:f}],o)}case N2:{const c=[],f=i([s,c],o);for(const[d,h]of o)(e||!(hg(xd(d))||hg(xd(h))))&&c.push([a(d),a(h)]);return f}case z2:{const c=[],f=i([s,c],o);for(const d of o)(e||!hg(xd(d)))&&c.push(a(d));return f}}const{message:u}=o;return i([s,{name:l,message:u}],o)};return a},AL=(e,{json:t,lossy:r}={})=>{const n=[];return Kde(!(t||r),!!t,new Map,n)(e),n},Xy=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?TL(AL(e,t)):structuredClone(e):(e,t)=>TL(AL(e,t));function Qde(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 Jde(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function ehe(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||Qde,n=e.options.footnoteBackLabel||Jde,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:{...Xy(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 nH=function(e){if(e==null)return nhe;if(typeof e=="function")return sx(e);if(typeof e=="object")return Array.isArray(e)?ehe(e):the(e);if(typeof e=="string")return rhe(e);throw new Error("Expected function, string, or object as test")};function ehe(e){const t=[];let r=-1;for(;++r":""))+")"})}return d;function d(){let h=iH,p,v,g;if((!t||a(l,u,c[c.length-1]||void 0))&&(h=lhe(r(l,c)),h[0]===ML))return h;if("children"in l&&l.children){const m=l;if(m.children&&h[0]!==ohe)for(v=(n?m.children.length:-1)+o,g=c.concat(m);v>-1&&v":""))+")"})}return d;function d(){let h=iH,p,v,g;if((!t||a(l,u,c[c.length-1]||void 0))&&(h=uhe(r(l,c)),h[0]===ML))return h;if("children"in l&&l.children){const m=l;if(m.children&&h[0]!==she)for(v=(n?m.children.length:-1)+o,g=c.concat(m);v>-1&&v0&&r.push({type:"text",value:` -`}),r}function IL(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function PL(e,t){const r=che(e,t),n=r.one(e,void 0),i=Jde(r),a=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` -`},i),a}function vhe(e,t){return e&&"run"in e?async function(r,n){const i=PL(r,t);await e.run(i,n)}:function(r){return PL(r,t||e)}}function kL(e){if(e)throw e}var Nm=Object.prototype.hasOwnProperty,oH=Object.prototype.toString,DL=Object.defineProperty,RL=Object.getOwnPropertyDescriptor,LL=function(t){return typeof Array.isArray=="function"?Array.isArray(t):oH.call(t)==="[object Array]"},EL=function(t){if(!t||oH.call(t)!=="[object Object]")return!1;var r=Nm.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&Nm.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;var i;for(i in t);return typeof i>"u"||Nm.call(t,i)},OL=function(t,r){DL&&r.name==="__proto__"?DL(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},NL=function(t,r){if(r==="__proto__")if(Nm.call(t,r)){if(RL)return RL(t,r).value}else return;return t[r]},ghe=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 la={basename:xhe,dirname:She,extname:bhe,join:_he,sep:"/"};function xhe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');vv(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 She(e){if(vv(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 bhe(e){vv(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 _he(...e){let t=-1,r;for(;++t0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function Che(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 vv(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const The={cwd:Ahe};function Ahe(){return"/"}function qC(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Mhe(e){if(typeof e=="string")e=new URL(e);else if(!qC(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 Ihe(e)}function Ihe(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];YC(v)&&YC(h)&&(h=qS(!0,v,h)),n[d]=[u,h,...p]}}}}const Rhe=new B2().freeze();function QS(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function JS(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function eb(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 BL(e){if(!YC(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function FL(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function pg(e){return Lhe(e)?e:new sH(e)}function Lhe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Ehe(e){return typeof e=="string"||Ohe(e)}function Ohe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const $L={}.hasOwnProperty,Nhe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",VL=[],GL={allowDangerousHtml:!0},zhe=/^(https?|ircs?|mailto|xmpp)$/i,Bhe=[{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 Fhe(e){const t=e.allowedElements,r=e.allowElement,n=e.children||"",i=e.className,a=e.components,o=e.disallowedElements,s=e.rehypePlugins||VL,l=e.remarkPlugins||VL,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...GL}:GL,c=e.skipHtml,f=e.unwrapDisallowed,d=e.urlTransform||$he,h=Rhe().use(Sde).use(l).use(vhe,u).use(s),p=new sH;typeof n=="string"&&(p.value=n);for(const y of Bhe)Object.hasOwn(e,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+Nhe+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]}),aH(g,m),rce(g,{Fragment:E.Fragment,components:a,ignoreInvalidStyle:!0,jsx:E.jsx,jsxs:E.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 US)if($L.call(US,_)&&$L.call(y.properties,_)){const b=y.properties[_],w=US[_];(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 $he(e){return Sce(e,zhe)}const zm=(e,t=0)=>{const r=Math.pow(10,t);return Math.round(e*r)/r};function Vhe({content:e,formatter:t,round:r,markdown:n}){return t?t(e):r?zm(e,r):n?E.jsx(Fhe,{skipHtml:!1,children:e}):e}function Ff({rows:e,structure:t,onTableHeadClick:r,currentSortField:n}){return E.jsx(wae,{component:Y1,children:E.jsxs(rae,{children:[E.jsx(kae,{children:E.jsx(hR,{children:t.map(({title:i,key:a})=>E.jsx(uR,{"data-sortkey":a,onClick:r,sx:{cursor:r?"pointer":"default",color:n===a?"primary.main":"text.primary"},children:i},`table-head-${a}`))})}),E.jsx(cae,{children:e.map((i,a)=>E.jsx(hR,{children:t.map(({key:o,...s},l)=>E.jsx(uR,{children:E.jsx(Vhe,{content:i[o],...s})},`table-row=${l}`))},`${i.name}-${a}`))})]})})}function Ghe({rows:e,tableStructure:t}){return t?E.jsx(Ff,{rows:e,structure:t}):null}const Hhe=({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:gG(a),...o})):null,rows:i?i.data:[]}},Whe=Xn(Hhe)(Ghe),Uhe=[{key:"count",title:"# occurrences"},{key:"traceback",title:"Traceback"}];function lH({exceptions:e}){return E.jsx(Ff,{rows:e,structure:Uhe})}const jhe=({ui:{exceptions:e}})=>({exceptions:e}),Yhe=Xn(jhe)(lH);function qhe(e,t){const r=t?-1:1;return function(n,i){const a=n[e],o=i[e];return ao?r*1:0}}function F2(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(qhe(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,i(e);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,sortedStats:n,currentSortField:s.current}}const Xhe=[{key:"occurrences",title:"# Failures"},{key:"method",title:"Method"},{key:"name",title:"Name"},{key:"error",title:"Message",markdown:!0}];function uH({errors:e}){const{onTableHeadClick:t,sortedStats:r,currentSortField:n}=F2(e);return E.jsx(Ff,{currentSortField:n,onTableHeadClick:t,rows:r,structure:Xhe})}const Zhe=({ui:{errors:e}})=>({errors:e}),Khe=Xn(Zhe)(uH);function Qhe(){const e=Vs(({logViewer:{logs:t}})=>t);return E.jsxs(ft,{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"Logs"}),E.jsx("ul",{children:e.map((t,r)=>E.jsx("li",{children:t},`log-${r}`))})]})}function Jhe({extendedCsvFiles:e,statsHistoryEnabled:t}){const r=Vs(({theme:{isDarkMode:n}})=>n);return E.jsxs(k4,{sx:{display:"flex",flexDirection:"column"},children:[E.jsx(ju,{children:E.jsx(li,{href:"/stats/requests/csv",children:"Download requests CSV"})}),t&&E.jsx(ju,{children:E.jsx(li,{href:"/stats/requests_full_history/csv",children:"Download full request statistics history CSV"})}),E.jsx(ju,{children:E.jsx(li,{href:"/stats/failures/csv",children:"Download failures CSV"})}),E.jsx(ju,{children:E.jsx(li,{href:"/exceptions/csv",children:"Download exceptions CSV"})}),E.jsx(ju,{children:E.jsx(li,{href:`/stats/report?theme=${r?Ma.DARK:Ma.LIGHT}`,target:"_blank",children:"Download Report"})}),e&&e.map(({href:n,title:i},a)=>E.jsx(ju,{children:E.jsx(li,{href:n,children:i})},`extended-csv-${a}`))]})}const epe=({swarm:{extendedCsvFiles:e,statsHistoryEnabled:t}})=>({extendedCsvFiles:e,statsHistoryEnabled:t}),tpe=Xn(epe)(Jhe),rpe=[{key:"method",title:"Type"},{key:"name",title:"Name"},{key:"numRequests",title:"# Requests"},{key:"numFailures",title:"# Fails"},{key:"medianResponseTime",title:"Median (ms)",round:2},{key:"ninetiethResponseTime",title:"90%ile (ms)"},{key:"ninetyNinthResponseTime",title:"99%ile (ms)"},{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 cH({stats:e}){const{onTableHeadClick:t,sortedStats:r,currentSortField:n}=F2(e,{hasTotalRow:!0});return E.jsx(Ff,{currentSortField:n,onTableHeadClick:t,rows:r,structure:rpe})}const npe=({ui:{stats:e}})=>({stats:e}),ipe=Xn(npe)(cH);/*! ***************************************************************************** +`}),r}function IL(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function PL(e,t){const r=fhe(e,t),n=r.one(e,void 0),i=ehe(r),a=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` +`},i),a}function ghe(e,t){return e&&"run"in e?async function(r,n){const i=PL(r,t);await e.run(i,n)}:function(r){return PL(r,t||e)}}function kL(e){if(e)throw e}var Nm=Object.prototype.hasOwnProperty,oH=Object.prototype.toString,DL=Object.defineProperty,RL=Object.getOwnPropertyDescriptor,LL=function(t){return typeof Array.isArray=="function"?Array.isArray(t):oH.call(t)==="[object Array]"},EL=function(t){if(!t||oH.call(t)!=="[object Object]")return!1;var r=Nm.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&Nm.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!r&&!n)return!1;var i;for(i in t);return typeof i>"u"||Nm.call(t,i)},OL=function(t,r){DL&&r.name==="__proto__"?DL(t,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):t[r.name]=r.newValue},NL=function(t,r){if(r==="__proto__")if(Nm.call(t,r)){if(RL)return RL(t,r).value}else return;return t[r]},mhe=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 la={basename:She,dirname:bhe,extname:_he,join:whe,sep:"/"};function She(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');vv(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 bhe(e){if(vv(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 _he(e){vv(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 whe(...e){let t=-1,r;for(;++t0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function The(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 vv(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Ahe={cwd:Mhe};function Mhe(){return"/"}function qC(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Ihe(e){if(typeof e=="string")e=new URL(e);else if(!qC(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 Phe(e)}function Phe(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];YC(v)&&YC(h)&&(h=qS(!0,v,h)),n[d]=[u,h,...p]}}}}const Lhe=new B2().freeze();function QS(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function JS(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function eb(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 BL(e){if(!YC(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function FL(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function pg(e){return Ehe(e)?e:new sH(e)}function Ehe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Ohe(e){return typeof e=="string"||Nhe(e)}function Nhe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const $L={}.hasOwnProperty,zhe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",VL=[],GL={allowDangerousHtml:!0},Bhe=/^(https?|ircs?|mailto|xmpp)$/i,Fhe=[{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 $he(e){const t=e.allowedElements,r=e.allowElement,n=e.children||"",i=e.className,a=e.components,o=e.disallowedElements,s=e.rehypePlugins||VL,l=e.remarkPlugins||VL,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...GL}:GL,c=e.skipHtml,f=e.unwrapDisallowed,d=e.urlTransform||Vhe,h=Lhe().use(bde).use(l).use(ghe,u).use(s),p=new sH;typeof n=="string"&&(p.value=n);for(const y of Fhe)Object.hasOwn(e,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+zhe+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]}),aH(g,m),nce(g,{Fragment:E.Fragment,components:a,ignoreInvalidStyle:!0,jsx:E.jsx,jsxs:E.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 US)if($L.call(US,_)&&$L.call(y.properties,_)){const b=y.properties[_],w=US[_];(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 Vhe(e){return bce(e,Bhe)}const zm=(e,t=0)=>{const r=Math.pow(10,t);return Math.round(e*r)/r};function Ghe({content:e,formatter:t,round:r,markdown:n}){return t?t(e):r?zm(e,r):n?E.jsx($he,{skipHtml:!1,children:e}):e}function Ff({rows:e,structure:t,onTableHeadClick:r,currentSortField:n}){return E.jsx(wae,{component:Y1,children:E.jsxs(rae,{children:[E.jsx(kae,{children:E.jsx(hR,{children:t.map(({title:i,key:a})=>E.jsx(uR,{"data-sortkey":a,onClick:r,sx:{cursor:r?"pointer":"default",color:n===a?"primary.main":"text.primary"},children:i},`table-head-${a}`))})}),E.jsx(cae,{children:e.map((i,a)=>E.jsx(hR,{children:t.map(({key:o,...s},l)=>E.jsx(uR,{children:E.jsx(Ghe,{content:i[o],...s})},`table-row=${l}`))},`${i.name}-${a}`))})]})})}function Hhe({rows:e,tableStructure:t}){return t?E.jsx(Ff,{rows:e,structure:t}):null}const Whe=({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:gG(a),...o})):null,rows:i?i.data:[]}},Uhe=Xn(Whe)(Hhe),jhe=[{key:"count",title:"# occurrences"},{key:"traceback",title:"Traceback"}];function lH({exceptions:e}){return E.jsx(Ff,{rows:e,structure:jhe})}const Yhe=({ui:{exceptions:e}})=>({exceptions:e}),qhe=Xn(Yhe)(lH);function Xhe(e,t){const r=t?-1:1;return function(n,i){const a=n[e],o=i[e];return ao?r*1:0}}function F2(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(Xhe(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,i(e);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,sortedStats:n,currentSortField:s.current}}const Zhe=[{key:"occurrences",title:"# Failures"},{key:"method",title:"Method"},{key:"name",title:"Name"},{key:"error",title:"Message",markdown:!0}];function uH({errors:e}){const{onTableHeadClick:t,sortedStats:r,currentSortField:n}=F2(e);return E.jsx(Ff,{currentSortField:n,onTableHeadClick:t,rows:r,structure:Zhe})}const Khe=({ui:{errors:e}})=>({errors:e}),Qhe=Xn(Khe)(uH);function Jhe(){const e=Vs(({logViewer:{logs:t}})=>t);return E.jsxs(ft,{children:[E.jsx(Xe,{component:"h2",variant:"h4",children:"Logs"}),E.jsx("ul",{children:e.map((t,r)=>E.jsx("li",{children:t},`log-${r}`))})]})}function epe({extendedCsvFiles:e,statsHistoryEnabled:t}){const r=Vs(({theme:{isDarkMode:n}})=>n);return E.jsxs(k4,{sx:{display:"flex",flexDirection:"column"},children:[E.jsx(ju,{children:E.jsx(li,{href:"/stats/requests/csv",children:"Download requests CSV"})}),t&&E.jsx(ju,{children:E.jsx(li,{href:"/stats/requests_full_history/csv",children:"Download full request statistics history CSV"})}),E.jsx(ju,{children:E.jsx(li,{href:"/stats/failures/csv",children:"Download failures CSV"})}),E.jsx(ju,{children:E.jsx(li,{href:"/exceptions/csv",children:"Download exceptions CSV"})}),E.jsx(ju,{children:E.jsx(li,{href:`/stats/report?theme=${r?Ma.DARK:Ma.LIGHT}`,target:"_blank",children:"Download Report"})}),e&&e.map(({href:n,title:i},a)=>E.jsx(ju,{children:E.jsx(li,{href:n,children:i})},`extended-csv-${a}`))]})}const tpe=({swarm:{extendedCsvFiles:e,statsHistoryEnabled:t}})=>({extendedCsvFiles:e,statsHistoryEnabled:t}),rpe=Xn(tpe)(epe),npe=[{key:"method",title:"Type"},{key:"name",title:"Name"},{key:"numRequests",title:"# Requests"},{key:"numFailures",title:"# Fails"},{key:"medianResponseTime",title:"Median (ms)",round:2},{key:"ninetiethResponseTime",title:"90%ile (ms)"},{key:"ninetyNinthResponseTime",title:"99%ile (ms)"},{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 cH({stats:e}){const{onTableHeadClick:t,sortedStats:r,currentSortField:n}=F2(e,{hasTotalRow:!0});return E.jsx(Ff,{currentSortField:n,onTableHeadClick:t,rows:r,structure:npe})}const ipe=({ui:{stats:e}})=>({stats:e}),ape=Xn(ipe)(cH);/*! ***************************************************************************** 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 XC=function(e,t){return XC=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])},XC(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");XC(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ape=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),ope=function(){function e(){this.browser=new ape,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}(),_l=new ope;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(_l.wxa=!0,_l.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?_l.worker=!0:typeof navigator>"u"?(_l.node=!0,_l.svgSupported=!0):spe(navigator.userAgent,_l);function spe(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=_l;var $2=12,fH="sans-serif",Is=$2+"px "+fH,lpe=20,upe=100,cpe="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function fpe(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"?_l.worker=!0:typeof navigator>"u"?(_l.node=!0,_l.svgSupported=!0):lpe(navigator.userAgent,_l);function lpe(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=_l;var $2=12,fH="sans-serif",Is=$2+"px "+fH,upe=20,cpe=100,fpe="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function dpe(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 Epe(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?jL(s,o):jL(o,s))}function yH(e){return e.nodeName.toUpperCase()==="CANVAS"}var Ope=/([&<>"'])/g,Npe={"&":"&","<":"<",">":">",'"':""","'":"'"};function mn(e){return e==null?"":(e+"").replace(Ope,function(t,r){return Npe[r]})}var zpe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,rb=[],Bpe=tt.browser.firefox&&+tt.browser.version.split(".")[0]<39;function nT(e,t,r,n){return r=r||{},n?qL(e,t,r):Bpe&&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):qL(e,t,r),r}function qL(e,t,r){if(tt.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(yH(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(rT(rb,e,n,i)){r.zrX=rb[0],r.zrY=rb[1];return}}r.zrX=r.zrY=0}function Y2(e){return e||window.event}function ti(e,t,r){if(t=Y2(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&&nT(e,o,t,r)}else{nT(e,t,t,r);var a=Fpe(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&zpe.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Fpe(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 iT(e,t,r,n){e.addEventListener(t,r,n)}function $pe(e,t,r,n){e.removeEventListener(t,r,n)}var vo=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function XL(e){return e.which===2||e.which===3}var Vpe=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=ZL(n)/ZL(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Gpe(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function _i(){return[1,0,0,1,0,0]}function fx(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function q2(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 no(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 Na(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 Du(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 X2(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 Gf(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 Hpe(e){var t=_i();return q2(t,e),t}var Wpe=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=Wpe;var gg=Math.min,mg=Math.max,Ys=new Le,qs=new Le,Xs=new Le,Zs=new Le,Sd=new Le,bd=new Le,Upe=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=gg(t.x,this.x),n=gg(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=mg(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=mg(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=_i();return Na(a,a,[-r.x,-r.y]),X2(a,a,[n,i]),Na(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}Ys.x=Xs.x=r.x,Ys.y=Zs.y=r.y,qs.x=Zs.x=r.x+r.width,qs.y=Xs.y=r.y+r.height,Ys.transform(n),Zs.transform(n),qs.transform(n),Xs.transform(n),t.x=gg(Ys.x,qs.x,Xs.x,Zs.x),t.y=gg(Ys.y,qs.y,Xs.y,Zs.y);var l=mg(Ys.x,qs.x,Xs.x,Zs.x),u=mg(Ys.y,qs.y,Xs.y,Zs.y);t.width=l-t.x,t.height=u-t.y},e}();const Ne=Upe;var xH="silent";function jpe(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:Ype}}function Ype(){vo(this.event)}var qpe=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}(Ai),_d=function(){function e(t,r){this.x=t,this.y=r}return e}(),Xpe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ib=new Ne(0,0,0,0),SH=function(e){Dt(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new _d(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new qpe,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new Ppe(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(D(Xpe,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=bH(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 _d(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 _d(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=jpe(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 _d(r,n);if(KL(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)&&(ib.copy(d.getBoundingRect()),d.transform&&ib.applyTransform(d.transform),ib.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 Zpe(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?xH:!0}return!1}function KL(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=Zpe(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==xH)){t.target=o;break}}}function bH(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const Kpe=SH;var _H=32,wd=7;function Qpe(e){for(var t=0;e>=_H;)t|=e&1,e>>=1;return e+t}function QL(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 Jpe(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 ab(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 ob(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 eve(e,t){var r=wd,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]=wd||w>=wd);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-ab(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=wd||A>=wd);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),JL(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 Nn=1,nh=2,yc=4,eE=!1;function sb(){eE||(eE=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function tE(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var tve=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=tE}return e.prototype.traverse=function(t,r){for(var n=0;n0&&(c.__clipPaths=[]),isNaN(c.z)&&(sb(),c.z=0),isNaN(c.z2)&&(sb(),c.z2=0),isNaN(c.zlevel)&&(sb(),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 rve=tve;var wH;wH=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 aT=wH;var Gm={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-Gm.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?Gm.bounceIn(e*2)*.5:Gm.bounceOut(e*2-1)*.5+.5}};const CH=Gm;var yg=Math.pow,ys=Math.sqrt,Qy=1e-8,TH=1e-4,rE=ys(3),xg=1/3,va=ku(),fi=ku(),Kc=ku();function rs(e){return e>-Qy&&eQy||e<-Qy}function vr(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 Jy(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(rs(c)&&rs(f))if(rs(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(rs(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=ys(v),x=c*s+1.5*o*(-f+y),S=c*s+1.5*o*(-f-y);x<0?x=-yg(-x,xg):x=yg(x,xg),S<0?S=-yg(-S,xg):S=yg(S,xg);var p=(-s-(x+S))/(3*o);p>=0&&p<=1&&(a[h++]=p)}else{var _=(2*c*s-3*o*f)/(2*ys(c*c*c)),b=Math.acos(_)/3,w=ys(c),C=Math.cos(b),p=(-s-2*w*C)/(3*o),m=(-s+w*(C+rE*Math.sin(b)))/(3*o),A=(-s+w*(C-rE*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 MH(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(rs(o)){if(AH(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(rs(c))i[0]=-a/(2*o);else if(c>0){var f=ys(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 ks(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 IH(e,t,r,n,i,a,o,s,l,u,c){var f,d=.005,h=1/0,p,v,g,m;va[0]=l,va[1]=u;for(var y=0;y<1;y+=.05)fi[0]=vr(e,r,i,o,y),fi[1]=vr(t,n,a,s,y),g=eu(va,fi),g=0&&g=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(rs(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=ys(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 PH(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function Ap(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 kH(e,t,r,n,i,a,o,s,l){var u,c=.005,f=1/0;va[0]=o,va[1]=s;for(var d=0;d<1;d+=.05){fi[0]=_r(e,r,i,d),fi[1]=_r(t,n,a,d);var h=eu(va,fi);h=0&&h=1?1:Jy(0,n,a,1,l,s)&&vr(0,i,o,1,s[0])}}}var sve=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=me(t)?t:CH[t]||Z2(t)},e}();const lve=sve;var DH=function(){function e(t){this.value=t}return e}(),uve=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new DH(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}(),cve=function(){function e(t){this._list=new uve,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 DH(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 gv=cve;var iE={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 Wi(e){return e=Math.round(e),e<0?0:e>255?255:e}function fve(e){return e=Math.round(e),e<0?0:e>360?360:e}function Mp(e){return e<0?0:e>1?1:e}function lb(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Wi(parseFloat(t)/100*255):Wi(parseInt(t,10))}function tu(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Mp(parseFloat(t)/100):Mp(parseFloat(t))}function ub(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 ns(e,t,r){return e+(t-e)*r}function ei(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 RH=new gv(20),Sg=null;function Xu(e,t){Sg&&sT(Sg,t),Sg=RH.put(e,Sg||t.slice())}function Vn(e,t){if(e){t=t||[];var r=RH.get(e);if(r)return sT(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in iE)return sT(t,iE[n]),Xu(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)){ei(t,0,0,0,1);return}return ei(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),Xu(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){ei(t,0,0,0,1);return}return ei(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Xu(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?ei(t,+u[0],+u[1],+u[2],1):ei(t,0,0,0,1);c=tu(u.pop());case"rgb":if(u.length>=3)return ei(t,lb(u[0]),lb(u[1]),lb(u[2]),u.length===3?c:tu(u[3])),Xu(e,t),t;ei(t,0,0,0,1);return;case"hsla":if(u.length!==4){ei(t,0,0,0,1);return}return u[3]=tu(u[3]),lT(u,t),Xu(e,t),t;case"hsl":if(u.length!==3){ei(t,0,0,0,1);return}return lT(u,t),Xu(e,t),t;default:return}}ei(t,0,0,0,1)}}function lT(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=tu(e[1]),i=tu(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],ei(t,Wi(ub(o,a,r+1/3)*255),Wi(ub(o,a,r)*255),Wi(ub(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function dve(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 uT(e,t){var r=Vn(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 io(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]=Wi(ns(o[0],s[0],l)),r[1]=Wi(ns(o[1],s[1],l)),r[2]=Wi(ns(o[2],s[2],l)),r[3]=Mp(ns(o[3],s[3],l)),r}}function hve(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=Vn(t[i]),s=Vn(t[a]),l=n-i,u=io([Wi(ns(o[0],s[0],l)),Wi(ns(o[1],s[1],l)),Wi(ns(o[2],s[2],l)),Mp(ns(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function Nh(e,t,r,n){var i=Vn(e);if(e)return i=dve(i),t!=null&&(i[0]=fve(t)),r!=null&&(i[1]=tu(r)),n!=null&&(i[2]=tu(n)),io(lT(i),"rgba")}function e0(e,t){var r=Vn(e);if(r&&t!=null)return r[3]=Mp(t),io(r,"rgba")}function io(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 t0(e,t){var r=Vn(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var r0=Math.round;function Ip(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=Vn(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var aE=1e-4;function is(e){return e-aE}function bg(e){return r0(e*1e3)/1e3}function cT(e){return r0(e*1e4)/1e4}function pve(e){return"matrix("+bg(e[0])+","+bg(e[1])+","+bg(e[2])+","+bg(e[3])+","+cT(e[4])+","+cT(e[5])+")"}var vve={left:"start",right:"end",center:"middle",middle:"middle"};function gve(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function mve(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function yve(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 LH(e){return e&&!!e.image}function xve(e){return e&&!!e.svgElement}function K2(e){return LH(e)||xve(e)}function EH(e){return e.type==="linear"}function OH(e){return e.type==="radial"}function NH(e){return e&&(e.type==="linear"||e.type==="radial")}function dx(e){return"url(#"+e+")"}function zH(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)*Bm,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("+r0(o*Bm)+"deg, "+r0(s*Bm)+"deg)"),l.join(" ")}var Sve=function(){return tt.hasGlobalWindow&&me(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}}(),fT=Array.prototype.slice;function qa(e,t,r){return(t-e)*r+e}function fb(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=sE,l=r;if(Zr(r)){var u=Cve(r);s=u,(u===1&&!nt(r[0])||u===2&&!nt(r[0][0]))&&(o=!0)}else if(nt(r)&&!Tp(r))s=wg;else if(oe(r))if(!isNaN(+r))s=wg;else{var c=Vn(r);c&&(l=c,s=ih)}else if(ux(r)){var f=Y({},l);f.colorStops=Z(r.colorStops,function(h){return{offset:h.offset,color:Vn(h.color)}}),EH(r)?s=dT:OH(r)&&(s=hT),l=f}a===0?this.valType=s:(s!==this.valType||s===sE)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=me(n)?n:CH[n]||Z2(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=Cg(i),u=lE(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?Cd:t[l];if((Cg(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?h.rawValue:p.rawValue;else if(Cg(a))a===Wm?fb(y,h[i],p[i],m):bve(y,h[i],p[i],m);else if(lE(a)){var x=h[i],S=p[i],_=a===dT;t[l]={type:_?"linear":"radial",x:qa(x.x,S.x,m),y:qa(x.y,S.y,m),colorStops:Z(x.colorStops,function(w,C){var A=S.colorStops[C];return{offset:qa(w.offset,A.offset,m),color:Hm(fb([],w.color,A.color,m))}}),global:S.global},_?(t[l].x2=qa(x.x2,S.x2,m),t[l].y2=qa(x.y2,S.y2,m)):t[l].r=qa(x.r,S.r,m)}else if(u)fb(y,h[i],p[i],m),n||(t[l]=Hm(y));else{var b=qa(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===wg?t[n]=t[n]+i:r===ih?(Vn(t[n],Cd),_g(Cd,Cd,i,1),t[n]=Hm(Cd)):r===Wm?_g(t[n],t[n],i,1):r===FH&&oE(t[n],t[n],i,1)},e}(),Q2=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){H2("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,He(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o0&&l.addKeyframe(0,zh(u),i),this._trackKeys.push(s)}l.addKeyframe(t,zh(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 Nc(){return new Date().getTime()}var Ave=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=Nc()-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&&(aT(n),!r._paused&&r.update())}aT(n)},t.prototype.start=function(){this._running||(this._time=Nc(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Nc(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Nc()-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 Q2(r,n.loop);return this.addAnimator(i),i},t}(Ai);const Mve=Ave;var Ive=300,db=tt.domSupported,hb=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}}(),uE={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},cE=!1;function pT(e){var t=e.pointerType;return t==="pen"||t==="touch"}function Pve(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 pb(e){e&&(e.zrByTouch=!0)}function kve(e,t){return ti(e.dom,new Dve(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 Dve=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}(),Li={mousedown:function(e){e=ti(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=ti(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=ti(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=ti(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){cE=!0,e=ti(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){cE||(e=ti(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=ti(this.dom,e),pb(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Li.mousemove.call(this,e),Li.mousedown.call(this,e)},touchmove:function(e){e=ti(this.dom,e),pb(e),this.handler.processGesture(e,"change"),Li.mousemove.call(this,e)},touchend:function(e){e=ti(this.dom,e),pb(e),this.handler.processGesture(e,"end"),Li.mouseup.call(this,e),+new Date-+this.__lastTouchMomenthE||e<-hE}var Qs=[],Zu=[],gb=_i(),mb=Math.abs,zve=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 Ks(this.rotation)||Ks(this.x)||Ks(this.y)||Ks(this.scaleX-1)||Ks(this.scaleY-1)||Ks(this.skewX)||Ks(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(dE(n),this.invTransform=null);return}n=n||_i(),r?this.getLocalTransform(n):dE(n),t&&(r?no(n,t,n):q2(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Qs);var n=Qs[0]<0?-1:1,i=Qs[1]<0?-1:1,a=((Qs[0]-n)*r+n)/Qs[0]||0,o=((Qs[1]-i)*r+i)/Qs[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||_i(),Gf(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&&(no(Zu,t.invTransform,r),r=Zu);var n=this.originX,i=this.originY;(n||i)&&(gb[4]=n,gb[5]=i,no(Zu,r,gb),Zu[4]-=n,Zu[5]-=i,r=Zu),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&&mb(t[0]-1)>1e-10&&mb(t[3]-1)>1e-10?Math.sqrt(mb(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){GH(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&&Du(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}(),za=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function GH(e,t){for(var r=0;r=0?parseFloat(e)/100*t:parseFloat(e):e}function i0(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+=Xi(n[0],r.width),u+=Xi(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 yb="__zr_normal__",xb=za.concat(["ignore"]),Bve=Oa(za,function(e,t){return e[t]=!0,e},{ignore:!1}),Ku={},Fve=new Ne(0,0,0,0),J2=function(){function e(t){this.id=pH(),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=Fve;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ku,n,c):i0(Ku,n,c),a.x=Ku.x,a.y=Ku.y,o=Ku.align,s=Ku.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=Xi(f[0],c.width),h=Xi(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|=Nn,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()?yT:mT},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Vn(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,io(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||{},Y(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(Se(t))for(var n=t,i=He(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(yb,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===yb,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){H2("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&=~Nn),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&=~Nn)}},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 Ope(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?jL(s,o):jL(o,s))}function yH(e){return e.nodeName.toUpperCase()==="CANVAS"}var Npe=/([&<>"'])/g,zpe={"&":"&","<":"<",">":">",'"':""","'":"'"};function mn(e){return e==null?"":(e+"").replace(Npe,function(t,r){return zpe[r]})}var Bpe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,rb=[],Fpe=tt.browser.firefox&&+tt.browser.version.split(".")[0]<39;function nT(e,t,r,n){return r=r||{},n?qL(e,t,r):Fpe&&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):qL(e,t,r),r}function qL(e,t,r){if(tt.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(yH(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(rT(rb,e,n,i)){r.zrX=rb[0],r.zrY=rb[1];return}}r.zrX=r.zrY=0}function Y2(e){return e||window.event}function ti(e,t,r){if(t=Y2(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&&nT(e,o,t,r)}else{nT(e,t,t,r);var a=$pe(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Bpe.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function $pe(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 iT(e,t,r,n){e.addEventListener(t,r,n)}function Vpe(e,t,r,n){e.removeEventListener(t,r,n)}var vo=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function XL(e){return e.which===2||e.which===3}var Gpe=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=ZL(n)/ZL(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Hpe(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function _i(){return[1,0,0,1,0,0]}function fx(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function q2(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 no(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 Na(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 Du(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 X2(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 Gf(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 Wpe(e){var t=_i();return q2(t,e),t}var Upe=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=Upe;var gg=Math.min,mg=Math.max,Ys=new Le,qs=new Le,Xs=new Le,Zs=new Le,Sd=new Le,bd=new Le,jpe=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=gg(t.x,this.x),n=gg(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=mg(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=mg(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=_i();return Na(a,a,[-r.x,-r.y]),X2(a,a,[n,i]),Na(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}Ys.x=Xs.x=r.x,Ys.y=Zs.y=r.y,qs.x=Zs.x=r.x+r.width,qs.y=Xs.y=r.y+r.height,Ys.transform(n),Zs.transform(n),qs.transform(n),Xs.transform(n),t.x=gg(Ys.x,qs.x,Xs.x,Zs.x),t.y=gg(Ys.y,qs.y,Xs.y,Zs.y);var l=mg(Ys.x,qs.x,Xs.x,Zs.x),u=mg(Ys.y,qs.y,Xs.y,Zs.y);t.width=l-t.x,t.height=u-t.y},e}();const Ne=jpe;var xH="silent";function Ype(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:qpe}}function qpe(){vo(this.event)}var Xpe=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}(Ai),_d=function(){function e(t,r){this.x=t,this.y=r}return e}(),Zpe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ib=new Ne(0,0,0,0),SH=function(e){Dt(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new _d(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new Xpe,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new kpe(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(D(Zpe,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=bH(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 _d(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 _d(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=Ype(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 _d(r,n);if(KL(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)&&(ib.copy(d.getBoundingRect()),d.transform&&ib.applyTransform(d.transform),ib.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 Kpe(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?xH:!0}return!1}function KL(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=Kpe(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==xH)){t.target=o;break}}}function bH(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const Qpe=SH;var _H=32,wd=7;function Jpe(e){for(var t=0;e>=_H;)t|=e&1,e>>=1;return e+t}function QL(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 eve(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 ab(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 ob(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 tve(e,t){var r=wd,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]=wd||w>=wd);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-ab(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=wd||A>=wd);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),JL(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 Nn=1,nh=2,yc=4,eE=!1;function sb(){eE||(eE=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function tE(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var rve=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=tE}return e.prototype.traverse=function(t,r){for(var n=0;n0&&(c.__clipPaths=[]),isNaN(c.z)&&(sb(),c.z=0),isNaN(c.z2)&&(sb(),c.z2=0),isNaN(c.zlevel)&&(sb(),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 nve=rve;var wH;wH=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 aT=wH;var Gm={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-Gm.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?Gm.bounceIn(e*2)*.5:Gm.bounceOut(e*2-1)*.5+.5}};const CH=Gm;var yg=Math.pow,ys=Math.sqrt,Qy=1e-8,TH=1e-4,rE=ys(3),xg=1/3,va=ku(),fi=ku(),Kc=ku();function rs(e){return e>-Qy&&eQy||e<-Qy}function vr(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 Jy(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(rs(c)&&rs(f))if(rs(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(rs(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=ys(v),x=c*s+1.5*o*(-f+y),S=c*s+1.5*o*(-f-y);x<0?x=-yg(-x,xg):x=yg(x,xg),S<0?S=-yg(-S,xg):S=yg(S,xg);var p=(-s-(x+S))/(3*o);p>=0&&p<=1&&(a[h++]=p)}else{var _=(2*c*s-3*o*f)/(2*ys(c*c*c)),b=Math.acos(_)/3,w=ys(c),C=Math.cos(b),p=(-s-2*w*C)/(3*o),m=(-s+w*(C+rE*Math.sin(b)))/(3*o),A=(-s+w*(C-rE*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 MH(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(rs(o)){if(AH(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(rs(c))i[0]=-a/(2*o);else if(c>0){var f=ys(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 ks(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 IH(e,t,r,n,i,a,o,s,l,u,c){var f,d=.005,h=1/0,p,v,g,m;va[0]=l,va[1]=u;for(var y=0;y<1;y+=.05)fi[0]=vr(e,r,i,o,y),fi[1]=vr(t,n,a,s,y),g=eu(va,fi),g=0&&g=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(rs(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=ys(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 PH(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function Ap(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 kH(e,t,r,n,i,a,o,s,l){var u,c=.005,f=1/0;va[0]=o,va[1]=s;for(var d=0;d<1;d+=.05){fi[0]=_r(e,r,i,d),fi[1]=_r(t,n,a,d);var h=eu(va,fi);h=0&&h=1?1:Jy(0,n,a,1,l,s)&&vr(0,i,o,1,s[0])}}}var lve=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=me(t)?t:CH[t]||Z2(t)},e}();const uve=lve;var DH=function(){function e(t){this.value=t}return e}(),cve=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new DH(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}(),fve=function(){function e(t){this._list=new cve,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 DH(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 gv=fve;var iE={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 Wi(e){return e=Math.round(e),e<0?0:e>255?255:e}function dve(e){return e=Math.round(e),e<0?0:e>360?360:e}function Mp(e){return e<0?0:e>1?1:e}function lb(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Wi(parseFloat(t)/100*255):Wi(parseInt(t,10))}function tu(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Mp(parseFloat(t)/100):Mp(parseFloat(t))}function ub(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 ns(e,t,r){return e+(t-e)*r}function ei(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 RH=new gv(20),Sg=null;function Xu(e,t){Sg&&sT(Sg,t),Sg=RH.put(e,Sg||t.slice())}function Vn(e,t){if(e){t=t||[];var r=RH.get(e);if(r)return sT(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in iE)return sT(t,iE[n]),Xu(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)){ei(t,0,0,0,1);return}return ei(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),Xu(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){ei(t,0,0,0,1);return}return ei(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Xu(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?ei(t,+u[0],+u[1],+u[2],1):ei(t,0,0,0,1);c=tu(u.pop());case"rgb":if(u.length>=3)return ei(t,lb(u[0]),lb(u[1]),lb(u[2]),u.length===3?c:tu(u[3])),Xu(e,t),t;ei(t,0,0,0,1);return;case"hsla":if(u.length!==4){ei(t,0,0,0,1);return}return u[3]=tu(u[3]),lT(u,t),Xu(e,t),t;case"hsl":if(u.length!==3){ei(t,0,0,0,1);return}return lT(u,t),Xu(e,t),t;default:return}}ei(t,0,0,0,1)}}function lT(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=tu(e[1]),i=tu(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],ei(t,Wi(ub(o,a,r+1/3)*255),Wi(ub(o,a,r)*255),Wi(ub(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function hve(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 uT(e,t){var r=Vn(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 io(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]=Wi(ns(o[0],s[0],l)),r[1]=Wi(ns(o[1],s[1],l)),r[2]=Wi(ns(o[2],s[2],l)),r[3]=Mp(ns(o[3],s[3],l)),r}}function pve(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=Vn(t[i]),s=Vn(t[a]),l=n-i,u=io([Wi(ns(o[0],s[0],l)),Wi(ns(o[1],s[1],l)),Wi(ns(o[2],s[2],l)),Mp(ns(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function Nh(e,t,r,n){var i=Vn(e);if(e)return i=hve(i),t!=null&&(i[0]=dve(t)),r!=null&&(i[1]=tu(r)),n!=null&&(i[2]=tu(n)),io(lT(i),"rgba")}function e0(e,t){var r=Vn(e);if(r&&t!=null)return r[3]=Mp(t),io(r,"rgba")}function io(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 t0(e,t){var r=Vn(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var r0=Math.round;function Ip(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=Vn(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var aE=1e-4;function is(e){return e-aE}function bg(e){return r0(e*1e3)/1e3}function cT(e){return r0(e*1e4)/1e4}function vve(e){return"matrix("+bg(e[0])+","+bg(e[1])+","+bg(e[2])+","+bg(e[3])+","+cT(e[4])+","+cT(e[5])+")"}var gve={left:"start",right:"end",center:"middle",middle:"middle"};function mve(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function yve(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function xve(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 LH(e){return e&&!!e.image}function Sve(e){return e&&!!e.svgElement}function K2(e){return LH(e)||Sve(e)}function EH(e){return e.type==="linear"}function OH(e){return e.type==="radial"}function NH(e){return e&&(e.type==="linear"||e.type==="radial")}function dx(e){return"url(#"+e+")"}function zH(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)*Bm,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("+r0(o*Bm)+"deg, "+r0(s*Bm)+"deg)"),l.join(" ")}var bve=function(){return tt.hasGlobalWindow&&me(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}}(),fT=Array.prototype.slice;function qa(e,t,r){return(t-e)*r+e}function fb(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=sE,l=r;if(Zr(r)){var u=Tve(r);s=u,(u===1&&!nt(r[0])||u===2&&!nt(r[0][0]))&&(o=!0)}else if(nt(r)&&!Tp(r))s=wg;else if(oe(r))if(!isNaN(+r))s=wg;else{var c=Vn(r);c&&(l=c,s=ih)}else if(ux(r)){var f=Y({},l);f.colorStops=Z(r.colorStops,function(h){return{offset:h.offset,color:Vn(h.color)}}),EH(r)?s=dT:OH(r)&&(s=hT),l=f}a===0?this.valType=s:(s!==this.valType||s===sE)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=me(n)?n:CH[n]||Z2(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=Cg(i),u=lE(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?Cd:t[l];if((Cg(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?h.rawValue:p.rawValue;else if(Cg(a))a===Wm?fb(y,h[i],p[i],m):_ve(y,h[i],p[i],m);else if(lE(a)){var x=h[i],S=p[i],_=a===dT;t[l]={type:_?"linear":"radial",x:qa(x.x,S.x,m),y:qa(x.y,S.y,m),colorStops:Z(x.colorStops,function(w,C){var A=S.colorStops[C];return{offset:qa(w.offset,A.offset,m),color:Hm(fb([],w.color,A.color,m))}}),global:S.global},_?(t[l].x2=qa(x.x2,S.x2,m),t[l].y2=qa(x.y2,S.y2,m)):t[l].r=qa(x.r,S.r,m)}else if(u)fb(y,h[i],p[i],m),n||(t[l]=Hm(y));else{var b=qa(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===wg?t[n]=t[n]+i:r===ih?(Vn(t[n],Cd),_g(Cd,Cd,i,1),t[n]=Hm(Cd)):r===Wm?_g(t[n],t[n],i,1):r===FH&&oE(t[n],t[n],i,1)},e}(),Q2=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){H2("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,He(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o0&&l.addKeyframe(0,zh(u),i),this._trackKeys.push(s)}l.addKeyframe(t,zh(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 Nc(){return new Date().getTime()}var Mve=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=Nc()-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&&(aT(n),!r._paused&&r.update())}aT(n)},t.prototype.start=function(){this._running||(this._time=Nc(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Nc(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Nc()-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 Q2(r,n.loop);return this.addAnimator(i),i},t}(Ai);const Ive=Mve;var Pve=300,db=tt.domSupported,hb=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}}(),uE={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},cE=!1;function pT(e){var t=e.pointerType;return t==="pen"||t==="touch"}function kve(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 pb(e){e&&(e.zrByTouch=!0)}function Dve(e,t){return ti(e.dom,new Rve(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 Rve=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}(),Li={mousedown:function(e){e=ti(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=ti(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=ti(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=ti(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){cE=!0,e=ti(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){cE||(e=ti(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=ti(this.dom,e),pb(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Li.mousemove.call(this,e),Li.mousedown.call(this,e)},touchmove:function(e){e=ti(this.dom,e),pb(e),this.handler.processGesture(e,"change"),Li.mousemove.call(this,e)},touchend:function(e){e=ti(this.dom,e),pb(e),this.handler.processGesture(e,"end"),Li.mouseup.call(this,e),+new Date-+this.__lastTouchMomenthE||e<-hE}var Qs=[],Zu=[],gb=_i(),mb=Math.abs,Bve=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 Ks(this.rotation)||Ks(this.x)||Ks(this.y)||Ks(this.scaleX-1)||Ks(this.scaleY-1)||Ks(this.skewX)||Ks(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(dE(n),this.invTransform=null);return}n=n||_i(),r?this.getLocalTransform(n):dE(n),t&&(r?no(n,t,n):q2(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Qs);var n=Qs[0]<0?-1:1,i=Qs[1]<0?-1:1,a=((Qs[0]-n)*r+n)/Qs[0]||0,o=((Qs[1]-i)*r+i)/Qs[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||_i(),Gf(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&&(no(Zu,t.invTransform,r),r=Zu);var n=this.originX,i=this.originY;(n||i)&&(gb[4]=n,gb[5]=i,no(Zu,r,gb),Zu[4]-=n,Zu[5]-=i,r=Zu),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&&mb(t[0]-1)>1e-10&&mb(t[3]-1)>1e-10?Math.sqrt(mb(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){GH(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&&Du(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}(),za=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function GH(e,t){for(var r=0;r=0?parseFloat(e)/100*t:parseFloat(e):e}function i0(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+=Xi(n[0],r.width),u+=Xi(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 yb="__zr_normal__",xb=za.concat(["ignore"]),Fve=Oa(za,function(e,t){return e[t]=!0,e},{ignore:!1}),Ku={},$ve=new Ne(0,0,0,0),J2=function(){function e(t){this.id=pH(),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=$ve;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ku,n,c):i0(Ku,n,c),a.x=Ku.x,a.y=Ku.y,o=Ku.align,s=Ku.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=Xi(f[0],c.width),h=Xi(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|=Nn,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()?yT:mT},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Vn(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,io(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||{},Y(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(Se(t))for(var n=t,i=He(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(yb,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===yb,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){H2("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&=~Nn),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&=~Nn)}},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)?qve(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),YH),e=(+e).toFixed(t),r?e:+e}function gi(e){return e.sort(function(t,r){return t-r}),e}function Sa(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 Xve(e)}function Xve(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function qH(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function Zve(e,t){var r=Oa(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=Oa(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 Kve(e,t){var r=Math.max(Sa(e),Sa(t)),n=e+t;return r>YH?n:Xt(n,r)}var yE=9007199254740991;function XH(e){var t=Math.PI*2;return(e%t+t)%t}function a0(e){return e>-mE&&e=10&&t++,t}function ZH(e,t){var r=eI(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 _b(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 xE(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 wge=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Cge=xu(wge),Tge=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return Cge(this,t,r)},e}(),ST=new gv(50);function Age(e){if(typeof e=="string"){var t=ST.get(e);return t&&t.image}else return e}function iI(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=ST.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!vx(t)&&a.pending.push(o)):(t=Ps.loadImage(e,wE,wE),t.__zrImageSrc=e,ST.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function wE(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t0&&(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)?Xve(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),YH),e=(+e).toFixed(t),r?e:+e}function gi(e){return e.sort(function(t,r){return t-r}),e}function Sa(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 Zve(e)}function Zve(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function qH(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function Kve(e,t){var r=Oa(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=Oa(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 Qve(e,t){var r=Math.max(Sa(e),Sa(t)),n=e+t;return r>YH?n:Xt(n,r)}var yE=9007199254740991;function XH(e){var t=Math.PI*2;return(e%t+t)%t}function a0(e){return e>-mE&&e=10&&t++,t}function ZH(e,t){var r=eI(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 _b(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 xE(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 Cge=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Tge=xu(Cge),Age=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return Tge(this,t,r)},e}(),ST=new gv(50);function Mge(e){if(typeof e=="string"){var t=ST.get(e);return t&&t.image}else return e}function iI(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=ST.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!vx(t)&&a.pending.push(o)):(t=Ps.loadImage(e,wE,wE),t.__zrImageSrc=e,ST.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function wE(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;l++)s-=o;var u=Gn(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 u6(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=Gn(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?Ige(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=Gn(e,n)}return e===""&&(e=t.placeholder),e}function Ige(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=l6(c,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;gs&&Cb(r,e.substring(s,u),t,o),Cb(r,l[2],t,o,l[1]),s=wb.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 I=w.width,P=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")b.percentWidth=I,c.push(b),b.contentWidth=Gn(b.text,T);else{if(P){var k=w.backgroundColor,R=k&&k.image;R&&(R=Age(R),vx(R)&&(b.width=Math.max(b.width,R.width*M/R.height)))}var z=p&&n!=null?n-S:null;z!=null&&z0&&p+n.accumWidth>n.width&&(c=t.split(` +`)}function l6(e,t,r,n){n=n||{};var i=Y({},n);i.font=t,r=Ee(r,"..."),i.maxIterations=Ee(n.maxIterations,2);var a=i.minChar=Ee(n.minChar,0);i.cnCharWidth=Gn("国",t);var o=i.ascCharWidth=Gn("a",t);i.placeholder=Ee(n.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l=o;l++)s-=o;var u=Gn(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 u6(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=Gn(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?Pge(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=Gn(e,n)}return e===""&&(e=t.placeholder),e}function Pge(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=l6(c,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;gs&&Cb(r,e.substring(s,u),t,o),Cb(r,l[2],t,o,l[1]),s=wb.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 I=w.width,P=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")b.percentWidth=I,c.push(b),b.contentWidth=Gn(b.text,T);else{if(P){var k=w.backgroundColor,R=k&&k.image;R&&(R=Mge(R),vx(R)&&(b.width=Math.max(b.width,R.width*M/R.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=c6(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 Ege=Oa(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Oge(e){return Lge(e)?!!Ege[e]:!0}function c6(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 bT="__zr_style_"+Math.round(Math.random()*10),ru={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},gx={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ru[bT]=!0;var TE=["z","z2","invisible"],Nge=["invisible"],zge=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=He(r),i=0;i1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(Tg[0]=Ib(i)*r+e,Tg[1]=Mb(i)*n+t,Ag[0]=Ib(a)*r+e,Ag[1]=Mb(a)*n+t,u(s,Tg,Ag),c(l,Tg,Ag),i=i%el,i<0&&(i=i+el),a=a%el,a<0&&(a=a+el),i>a&&!o?a+=el:ii&&(Mg[0]=Ib(h)*r+e,Mg[1]=Mb(h)*n+t,u(s,Mg,s),c(l,Mg,l))}var xt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},tl=[],rl=[],ea=[],Lo=[],ta=[],ra=[],Pb=Math.min,kb=Math.max,nl=Math.cos,il=Math.sin,Ha=Math.abs,_T=Math.PI,Go=_T*2,Db=typeof Float32Array<"u",Td=[];function Rb(e){var t=Math.round(e/_T*1e8)/1e8;return t%2*_T}function f6(e,t){var r=Rb(e[0]);r<0&&(r+=Go);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=Go?i=r+Go:t&&r-i>=Go?i=r-Go:!t&&r>i?i=r+(Go-Rb(r-i)):t&&r0&&(this._ux=Ha(n/n0/t)||0,this._uy=Ha(n/n0/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=Ha(t-this._xi),i=Ha(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(),Td[0]=i,Td[1]=a,f6(Td,o),i=Td[0],a=Td[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=nl(a)*n+t,this._yi=il(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)&&Db&&(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(){ea[0]=ea[1]=ta[0]=ta[1]=Number.MAX_VALUE,Lo[0]=Lo[1]=ra[0]=ra[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;on||Ha(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=nve(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=ave(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++],I=t[d++],P=t[d++],k=P+I;d+=1,t[d++],p&&(s=nl(I)*T+C,l=il(I)*M+A),v=kb(T,M)*Pb(Go,Math.abs(P)),a=nl(k)*T+C,o=il(k)*M+A;break;case xt.R:{s=a=t[d++],l=o=t[d++];var R=t[d++],z=t[d++];v=R*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=Ha(f-u),T=Ha(d-c);if(A>i||T>a){if(h){var M=p[m++];if(g+M>y){var I=(y-g)/M;t.lineTo(u*(1-I)+f*I,c*(1-I)+d*I);break e}g+=M}t.lineTo(f,d),u=f,c=d,x=0}else{var P=A*A+T*T;P>x&&(S=f,_=d,x=P)}break}case xt.C:{var k=n[b++],R=n[b++],z=n[b++],$=n[b++],N=n[b++],V=n[b++];if(h){var M=p[m++];if(g+M>y){var I=(y-g)/M;ks(u,k,z,N,I,tl),ks(c,R,$,V,I,rl),t.bezierCurveTo(tl[1],rl[1],tl[2],rl[2],tl[3],rl[3]);break e}g+=M}t.bezierCurveTo(k,R,z,$,N,V),u=N,c=V;break}case xt.Q:{var k=n[b++],R=n[b++],z=n[b++],$=n[b++];if(h){var M=p[m++];if(g+M>y){var I=(y-g)/M;Ap(u,k,z,I,tl),Ap(c,R,$,I,rl),t.quadraticCurveTo(tl[1],rl[1],tl[2],rl[2]);break e}g+=M}t.quadraticCurveTo(k,R,z,$),u=z,c=$;break}case xt.A:var L=n[b++],G=n[b++],U=n[b++],B=n[b++],j=n[b++],X=n[b++],W=n[b++],ee=!n[b++],te=U>B?U:B,ie=Ha(U-B)>.001,re=j+X,Q=!1;if(h){var M=p[m++];g+M>y&&(re=j+X*(y-g)/M,Q=!0),g+=M}if(ie&&t.ellipse?t.ellipse(L,G,U,B,W,j,re,ee):t.arc(L,G,te,j,re,ee),Q)break e;C&&(s=nl(j)*U+L,l=il(j)*B+G),u=nl(re)*U+L,c=il(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++],fe=n[b++];if(h){var M=p[m++];if(g+M>y){var de=y-g;t.moveTo(f,d),t.lineTo(f+Pb(de,J),d),de-=J,de>0&&t.lineTo(f+J,d+Pb(de,fe)),de-=fe,de>0&&t.lineTo(f+kb(J-de,0),d+fe),de-=J,de>0&&t.lineTo(f,d+kb(fe-de,0));break e}g+=M}t.rect(f,d,J,fe);break;case xt.Z:if(h){var M=p[m++];if(g+M>y){var I=(y-g)/M;t.lineTo(u*(1-I)+s*I,c*(1-I)+l*I);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 Fa=Gge;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+=Ad);var d=Math.atan2(l,s);return d<0&&(d+=Ad),d>=n&&d<=i||d+Ad>=n&&d+Ad<=i}function Xa(e,t,r,n,i,a){if(a>t&&a>n||ai?s:0}var Eo=Fa.CMD,al=Math.PI*2,Uge=1e-4;function jge(e,t){return Math.abs(e-t)t&&u>n&&u>a&&u>s||u1&&Yge(),h=vr(t,n,a,s,ni[0]),d>1&&(p=vr(t,n,a,s,ni[1]))),d===2?gt&&s>n&&s>a||s=0&&u<=1){for(var c=0,f=_r(t,n,a,u),d=0;dr||s<-r)return 0;var l=Math.sqrt(r*r-s*s);rn[0]=-l,rn[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=al-1e-4){n=0,i=al;var c=a?1:-1;return o>=rn[0]+e&&o<=rn[1]+e?c:0}if(n>i){var f=n;n=i,i=f}n<0&&(n+=al,i+=al);for(var d=0,h=0;h<2;h++){var p=rn[h];if(p+e>o){var v=Math.atan2(s,p),c=a?1:-1;v<0&&(v=al+v),(v>=n&&v<=i||v+al>=n&&v+al<=i)&&(v>Math.PI/2&&v1&&(r||(s+=Xa(l,u,c,f,n,i))),g&&(l=a[p],u=a[p+1],c=l,f=u),v){case Eo.M:c=a[p++],f=a[p++],l=c,u=f;break;case Eo.L:if(r){if(jo(l,u,a[p],a[p+1],t,n,i))return!0}else s+=Xa(l,u,a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case Eo.C:if(r){if(Hge(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],t,n,i))return!0}else s+=qge(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 Eo.Q:if(r){if(d6(l,u,a[p++],a[p++],a[p],a[p+1],t,n,i))return!0}else s+=Xge(l,u,a[p++],a[p++],a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case Eo.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+=Xa(l,u,d,h,n,i);var C=(n-m)*S/x+m;if(r){if(Wge(m,y,S,_,_+b,w,t,C,i))return!0}else s+=Zge(m,y,S,_,_+b,w,C,i);l=Math.cos(_+b)*x+m,u=Math.sin(_+b)*S+y;break;case Eo.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+=Xa(d,f,d,h,n,i),s+=Xa(c,h,c,f,n,i);break;case Eo.Z:if(r){if(jo(l,u,c,f,t,n,i))return!0}else s+=Xa(l,u,c,f,n,i);l=c,u=f;break}}return!r&&!jge(u,f)&&(s+=Xa(l,u,c,f,n,i)||0),s!==0}function Kge(e,t,r){return h6(e,0,!1,t,r)}function Qge(e,t,r,n){return h6(e,t,!0,r,n)}var o0=xe({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ru),Jge={style:xe({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},gx.style)},Lb=za.concat(["invisible","culling","z","z2","zlevel","parent"]),eme=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?mT:n>.2?Nve:yT}else if(r)return yT}return mT},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(oe(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=t0(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&yc)&&(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)),Qge(s,l/u,r,n)))return!0}if(this.hasFill())return Kge(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=yc,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:Y(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&yc)},t.prototype.createStyle=function(r){return cx(o0,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=Y({},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=Y({},i.shape),Y(u,n.shape)):(u=Y({},a?this.shape:i.shape),Y(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=Y({},this.shape);for(var c={},f=He(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 cx(tme,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=mv(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}(wi);p6.prototype.type="tspan";const kp=p6;var rme=xe({x:0,y:0},ru),nme={style:xe({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},gx.style)};function ime(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var v6=function(e){Dt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return cx(rme,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=ime(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 nme},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}(wi);v6.prototype.type="image";const Fr=v6;function ame(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 zc=Math.round;function g6(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&&(zc(n*2)===zc(i*2)&&(e.x1=e.x2=Wl(n,s,!0)),zc(a*2)===zc(o*2)&&(e.y1=e.y2=Wl(a,s,!0))),e}}function m6(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=Wl(n,s,!0),e.y=Wl(i,s,!0),e.width=Math.max(Wl(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Wl(i+o,s,!1)-e.y,o===0?0:1)),e}}function Wl(e,t,r){if(!t)return e;var n=zc(e*2);return(n+zc(t))%2===0?n/2:(n+(r?1:-1))/2}var ome=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),sme={},y6=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new ome},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=m6(sme,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?ame(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}($e);y6.prototype.type="rect";const Qe=y6;var kE={fill:"#000"},DE=2,lme={style:xe({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},gx.style)},x6=function(e){Dt(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=kE,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,I=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),P=o.calculatedLineHeight,k=0;k=0&&(k=b[P],k.align==="right");)this._placeToken(k,r,C,m,I,"right",x),A-=k.width,I-=k.width,P--;for(M+=(a-(M-g)-(y-I)-A)/2;T<=P;)k=b[T],this._placeToken(k,r,C,m,M+k.width/2,"center",x),M+=k.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&&Eb(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=zE(o,s,p),f-=r.height/2-p[0]-r.innerHeight/2);var v=this._getOrCreateChild(kp),g=v.createStyle();v.useStyle(g);var m=this._defaultStyle,y=!1,x=0,S=NE("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),_=OE("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!m.autoStroke||y)?(x=DE,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||Is,g.opacity=Pa(u.opacity,n.opacity,1),LE(g,u),_&&(g.lineWidth=Pa(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(ah(g.x,w,g.textAlign),xc(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(Fr),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=Pa(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return b6(r)&&(n=[r.fontStyle,r.fontWeight,S6(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Fi(n)||r.textFont||r.font},t}(wi),ume={left:!0,right:1,center:1},cme={top:1,bottom:1,middle:1},RE=["fontStyle","fontWeight","fontSize","fontFamily"];function S6(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?$2+"px":e+"px"}function LE(e,t){for(var r=0;r=0,a=!1;if(e instanceof $e){var o=_6(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Qu(s)||Qu(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=Y({},n),u=Y({},u),u.fill=s):!Qu(u.fill)&&Qu(s)?(a=!0,n=Y({},n),u=Y({},u),u.fill=GE(s)):!Qu(u.stroke)&&Qu(l)&&(a||(n=Y({},n),u=Y({},u)),u.stroke=GE(l)),n.style=u}}if(n&&n.z2==null){a||(n=Y({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??Wf)}return n}function mme(e,t,r){if(r&&r.z2==null){r=Y({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??dme)}return r}function yme(e,t,r){var n=ze(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:vme(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=Y({},r),o=Y({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Ob(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return gme(this,e,t,r);if(e==="blur")return yme(this,e,r);if(e==="select")return mme(this,e,r)}return r}function Su(e){e.stateProxy=Ob;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Ob),r&&(r.stateProxy=Ob)}function WE(e,t){!P6(e,t)&&!e.__highByOuter&&To(e,w6)}function UE(e,t){!P6(e,t)&&!e.__highByOuter&&To(e,C6)}function mo(e,t){e.__highByOuter|=1<<(t||0),To(e,w6)}function yo(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&To(e,C6)}function A6(e){To(e,sI)}function lI(e){To(e,T6)}function M6(e){To(e,hme)}function I6(e){To(e,pme)}function P6(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function k6(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=aI(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){T6(u)}),s&&r.push(a)),o.isBlured=!1}),D(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function CT(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 iu(e,t,r){Ul(e,!0),To(e,Su),AT(e,t,r)}function Cme(e){Ul(e,!1)}function Ut(e,t,r,n){n?Cme(e):iu(e,t,r)}function AT(e,t,r){var n=Ie(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var YE=["emphasis","blur","select"],Tme={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function zr(e,t,r,n){r=r||"itemStyle";for(var i=0;i1&&(o*=Nb(p),s*=Nb(p));var v=(i===a?-1:1)*Nb((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+Pg(f)*g-Ig(f)*m,x=(t+n)/2+Ig(f)*g+Pg(f)*m,S=KE([1,0],[(d-g)/o,(h-m)/s]),_=[(d-g)/o,(h-m)/s],b=[(-1*d-g)/o,(-1*h-m)/s],w=KE(_,b);if(IT(_,b)<=-1&&(w=Md),IT(_,b)>=1&&(w=0),w<0){var C=Math.round(w/Md*1e6)/1e6;w=Md*2+C%2*Md}c.addData(u,y,x,o,s,S,w,f,a)}var Dme=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Rme=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Lme(e){var t=new Fa;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=Fa.CMD,l=e.match(Dme);if(!l)return t;for(var u=0;uk*k+R*R&&(C=T,A=M),{cx:C,cy:A,x0:-c,y0:-f,x1:C*(i/_-1),y1:A*(i/_-1)}}function $me(e){var t;if(q(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 Vme(e,t){var r,n=oh(t.r,0),i=oh(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=JE(u-l),p=h>zb&&h%zb;if(p>Ri&&(h=p),!(n>Ri))e.moveTo(c,f);else if(h>zb-Ri)e.moveTo(c+n*ec(l),f+n*ol(l)),e.arc(c,f,n,l,u,!d),i>Ri&&(e.moveTo(c+i*ec(u),f+i*ol(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,I=void 0,P=void 0,k=void 0,R=n*ec(l),z=n*ol(l),$=i*ec(u),N=i*ol(u),V=h>Ri;if(V){var L=t.cornerRadius;L&&(r=$me(L),v=r[0],g=r[1],m=r[2],y=r[3]);var G=JE(n-i)/2;if(x=na(G,m),S=na(G,y),_=na(G,v),b=na(G,g),A=w=oh(x,S),T=C=oh(_,b),(w>Ri||C>Ri)&&(M=n*ec(u),I=n*ol(u),P=i*ec(l),k=i*ol(l),hRi){var ie=na(m,A),re=na(y,A),Q=kg(P,k,R,z,n,ie,d),J=kg(M,I,$,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+R,f+z),e.arc(c,f,n,l,u,!d);if(!(i>Ri)||!V)e.lineTo(c+$,f+N);else if(T>Ri){var ie=na(v,T),re=na(g,T),Q=kg($,N,M,I,i,-re,d),J=kg(R,z,P,k,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+$,f+N),e.arc(c,f,i,u,l,d)}e.closePath()}}}var Gme=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}(),F6=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Gme},t.prototype.buildPath=function(r,n){Vme(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}($e);F6.prototype.type="sector";const In=F6;var Hme=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),$6=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Hme},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}($e);$6.prototype.type="ring";const Sx=$6;function Wme(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=Wme(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;sll[1]){if(s=!1,a)return s;var c=Math.abs(ll[0]-sl[1]),f=Math.abs(sl[0]-ll[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 it(e,t,r,n,i,a){pI("update",e,t,r,n,i,a)}function Lt(e,t,r,n,i,a){pI("enter",e,t,r,n,i,a)}function Qc(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 rO(e){return!e.isGroup}function cye(e){return e.shape!=null}function bv(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){rO(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return cye(o)&&(s.shape=Y({},o.shape)),s}var a=n(e);t.traverse(function(o){if(rO(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),it(o,l,r,Ie(o).dataIndex)}}})}function J6(e,t){return Z(e,function(r){var n=r[0];n=u0(n,t.x),n=c0(n,t.x+t.width);var i=r[1];return i=u0(i,t.y),i=c0(i,t.y+t.height),[n,i]})}function fye(e,t){var r=u0(e.x,t.x),n=c0(e.x+e.width,t.x+t.width),i=u0(e.y,t.y),a=c0(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 _v(e,t,r){var n=Y({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),xe(i,r),new Fr(n)):_x(e.replace("path://",""),n,r,"center")}function sh(e,t,r,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var g=Bb(h,p,c,f)/d;return!(g<0||g>1)}function Bb(e,t,r,n){return e*n-r*t}function dye(e){return e<=1e-6&&e>=-1e-6}function jf(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&&D(He(l),function(c){ce(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Ie(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:xe({content:n,formatterParams:s},i)}}function nO(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Hs(e,t){if(e)if(q(e))for(var r=0;r=0&&s.push(l)}),s}}function Ws(e,t){return Oe(Oe({},e,!0),t,!0)}const Tye={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:". "}}}},Aye={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 d0="ZH",gI="EN",Ep=gI,Zm={},mI={},sW=tt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(d0)>-1?d0:Ep}():Ep;function lW(e,t){e=e.toUpperCase(),mI[e]=new wt(t),Zm[e]=t}function Mye(e){if(oe(e)){var t=Zm[e.toUpperCase()]||{};return e===d0||e===gI?we(t):Oe(we(t),we(Zm[Ep]),!1)}else return Oe(we(e),we(Zm[Ep]),!1)}function DT(e){return mI[e]}function Iye(){return mI[Ep]}lW(gI,Tye);lW(d0,Aye);var yI=1e3,xI=yI*60,Hh=xI*60,pi=Hh*24,lO=pi*365,lh={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}"},Lg="{yyyy}-{MM}-{dd}",uO={year:"{yyyy}",month:"{yyyy}-{MM}",day:Lg,hour:Lg+" "+lh.hour,minute:Lg+" "+lh.minute,second:Lg+" "+lh.second,millisecond:lh.none},Vb=["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 Oo(e,t){return e+="","0000".substr(0,t-e.length)+e}function Jc(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 Pye(e){return e===Jc(e)}function kye(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Ax(e,t,r,n){var i=Ba(e),a=i[SI(r)](),o=i[ef(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[Mx(r)](),u=i["get"+(r?"UTC":"")+"Day"](),c=i[Op(r)](),f=(c-1)%12+1,d=i[Ix(r)](),h=i[Px(r)](),p=i[kx(r)](),v=n instanceof wt?n:DT(n||sW)||Iye(),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,Oo(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Oo(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Oo(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Oo(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Oo(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Oo(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Oo(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Oo(p,3)).replace(/{S}/g,p+"")}function Dye(e,t,r,n,i){var a=null;if(oe(r))a=r;else if(me(r))a=r(e.value,t,{level:e.level});else{var o=Y({},lh);if(e.level>0)for(var s=0;s=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(q(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 Ax(new Date(e.value),a,i,n)}function cW(e,t){var r=Ba(e),n=r[ef(t)]()+1,i=r[Mx(t)](),a=r[Op(t)](),o=r[Ix(t)](),s=r[Px(t)](),l=r[kx(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 cO(e,t,r){var n=nt(e)?Ba(e):e;switch(t=t||cW(e,r),t){case"year":return n[SI(r)]();case"half-year":return n[ef(r)]()>=6?1:0;case"quarter":return Math.floor((n[ef(r)]()+1)/4);case"month":return n[ef(r)]();case"day":return n[Mx(r)]();case"half-day":return n[Op(r)]()/24;case"hour":return n[Op(r)]();case"minute":return n[Ix(r)]();case"second":return n[Px(r)]();case"millisecond":return n[kx(r)]()}}function SI(e){return e?"getUTCFullYear":"getFullYear"}function ef(e){return e?"getUTCMonth":"getMonth"}function Mx(e){return e?"getUTCDate":"getDate"}function Op(e){return e?"getUTCHours":"getHours"}function Ix(e){return e?"getUTCMinutes":"getMinutes"}function Px(e){return e?"getUTCSeconds":"getSeconds"}function kx(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Rye(e){return e?"setUTCFullYear":"setFullYear"}function fW(e){return e?"setUTCMonth":"setMonth"}function dW(e){return e?"setUTCDate":"setDate"}function hW(e){return e?"setUTCHours":"setHours"}function pW(e){return e?"setUTCMinutes":"setMinutes"}function vW(e){return e?"setUTCSeconds":"setSeconds"}function gW(e){return e?"setUTCMilliseconds":"setMilliseconds"}function mW(e){if(!KH(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 yW(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 Xf=j2;function RT(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Fi(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?Ba(e):e;if(isNaN(+l)){if(s)return"-"}else return Ax(l,n,r)}if(t==="ordinal")return ZC(e)?i(e):nt(e)&&a(e)?e+"":"-";var u=go(e);return a(u)?mW(u):ZC(e)?i(e):typeof e=="boolean"?e+"":"-"}var fO=["a","b","c","d","e","f","g"],Gb=function(e,t){return"{"+e+(t??"")+"}"};function xW(e,t,r){q(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 bu(e,t){return t=t||"transparent",oe(e)?e:Se(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function h0(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var Km=D,SW=["left","right","top","bottom","width","height"],jl=[["width","left","right"],["height","top","bottom"]];function bI(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 ou=bI;Pe(bI,"vertical");Pe(bI,"horizontal");function Oye(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=Xf(r||0),{width:Math.max(s-a-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function hr(e,t,r){r=Xf(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 Dx(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=hr(xe({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 Nye(e,t){return e[jl[t][0]]!=null||e[jl[t][1]]!=null&&e[jl[t][2]]!=null}function Np(e){var t=e.layoutMode||e.constructor.layoutMode;return Se(t)?t:t?{type:t}:null}function Rs(e,t,r){var n=r&&r.ignoreSize;!q(n)&&(n=[n,n]);var i=o(jl[0],0),a=o(jl[1],1);u(jl[0],e,i),u(jl[1],e,a);function o(c,f){var d={},h=0,p={},v=0,g=2;if(Km(c,function(x){p[x]=e[x]}),Km(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 yv(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);s6(Kf,wt);px(Kf);wye(Kf);Cye(Kf,Bye);function Bye(e){var t=[];return D(Kf.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=Z(t,function(r){return ba(r).main}),e!=="dataset"&&ze(t,"dataset")<=0&&t.unshift("dataset"),t}const et=Kf;var _W="";typeof navigator<"u"&&(_W=navigator.platform||"");var tc="rgba(0, 0, 0, 0.2)";const Fye={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:tc,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:tc,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:tc,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:tc,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:tc,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:tc,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:_W.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 wW=ve(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Mi="original",Kr="arrayRows",Ii="objectRows",Va="keyedColumns",xs="typedArray",CW="unknown",ka="column",Qf="row",kr={Must:1,Might:2,Not:3},TW=Je();function $ye(e){TW(e).datasetMap=ve()}function AW(e,t,r){var n={},i=wI(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=TW(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),D(e,function(v,g){var m=Se(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});D(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 PW(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:Uye(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 jye(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Eg,Id,hO,pO="\0_ec_inner",Yye=1,kW=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=mO(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,mO(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"?hO(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&&D(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=ve(),u=n&&n.replaceMergeMainTypeMap;$ye(this),D(r,function(f,d){f!=null&&(et.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?we(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=Hye(this,f,pt(r[f])),h=a.get(f),p=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",v=r6(h,d,p);lge(v,f,et),i[f]=null,a.set(f,null),o.set(f,0);var g=[],m=[],y=0,x;D(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=Y({componentIndex:_},S.keyInfo);b=new A(w,this,this,T),Y(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"&&Eg(this)}this._seriesIndices||Eg(this)},t.prototype.getOption=function(){var r=we(this.option);return D(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]&&!Pp(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[pO],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 i0e(e,t){return e.join(",")===t.join(",")}const a0e=e0e;var ki=D,zp=Se,yO=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Wb(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=yO.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=Kve(d,y),v=y;break}}}return n[0]=d,n[1]=v,n})})}var Rx=function(){function e(t){this.data=t.data||(t.sourceFormat===Va?{}:[]),this.sourceFormat=t.sourceFormat||CW,this.seriesLayoutBy=t.seriesLayoutBy||ka,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};TO=(t={},t[Kr+"_"+ka]={pure:!0,appendData:a},t[Kr+"_"+Qf]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Ii]={pure:!0,appendData:a},t[Va]={pure:!0,appendData:function(o){var s=this._data;D(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[Mi]={appendData:a},t[xs]={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 xf(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function PO(e){var t,r;return Se(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Wh(e){return new _0e(e)}var _0e=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}},C0e=function(){function e(t,r){if(!nt(r)){var n="";st(n)}this._opFn=GW[t],this._rvalFloat=go(r)}return e.prototype.evaluate=function(t){return nt(t)?this._opFn(t,this._rvalFloat):this._opFn(go(t),this._rvalFloat)},e}(),HW=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:go(t),i=nt(r)?r:go(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}(),T0e=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=go(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=go(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function A0e(e,t){return e==="eq"||e==="ne"?new T0e(e==="eq",t):ce(GW,e)?new C0e(e,t):null}var M0e=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 Ss(t,r)},e}();function I0e(e,t){var r=new M0e,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==ka&&st(o);var s=[],l={},u=e.dimensionsDefine;if(u)D(u,function(v,g){var m=v.name,y={index:g,name:m,displayName:v.displayName};if(s.push(y),m!=null){var x="";ce(l,m)&&st(x),l[m]=y}});else for(var c=0;c65535?N0e:z0e}function rc(){return[1/0,-1/0]}function B0e(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function RO(e,t,r,n,i){var a=jW[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(kd(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 Ss(r[a],this._dimensions[a])}Yb={arrayRows:t,objectRows:function(r,n,i,a){return Ss(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Ss(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),YW=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(Og(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=Un(s)?xs:Mi,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?[OT(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=[OT(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&&EO(a)}var o,s=[],l=[];return D(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&EO(f),s.push(c),l.push(u._getVersionSign())}),n?o=E0e(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[v0e(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Oge=Oa(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Nge(e){return Ege(e)?!!Oge[e]:!0}function c6(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 bT="__zr_style_"+Math.round(Math.random()*10),ru={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},gx={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ru[bT]=!0;var TE=["z","z2","invisible"],zge=["invisible"],Bge=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=He(r),i=0;i1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(Tg[0]=Ib(i)*r+e,Tg[1]=Mb(i)*n+t,Ag[0]=Ib(a)*r+e,Ag[1]=Mb(a)*n+t,u(s,Tg,Ag),c(l,Tg,Ag),i=i%el,i<0&&(i=i+el),a=a%el,a<0&&(a=a+el),i>a&&!o?a+=el:ii&&(Mg[0]=Ib(h)*r+e,Mg[1]=Mb(h)*n+t,u(s,Mg,s),c(l,Mg,l))}var xt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},tl=[],rl=[],ea=[],Lo=[],ta=[],ra=[],Pb=Math.min,kb=Math.max,nl=Math.cos,il=Math.sin,Ha=Math.abs,_T=Math.PI,Go=_T*2,Db=typeof Float32Array<"u",Td=[];function Rb(e){var t=Math.round(e/_T*1e8)/1e8;return t%2*_T}function f6(e,t){var r=Rb(e[0]);r<0&&(r+=Go);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=Go?i=r+Go:t&&r-i>=Go?i=r-Go:!t&&r>i?i=r+(Go-Rb(r-i)):t&&r0&&(this._ux=Ha(n/n0/t)||0,this._uy=Ha(n/n0/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=Ha(t-this._xi),i=Ha(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(),Td[0]=i,Td[1]=a,f6(Td,o),i=Td[0],a=Td[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=nl(a)*n+t,this._yi=il(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)&&Db&&(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(){ea[0]=ea[1]=ta[0]=ta[1]=Number.MAX_VALUE,Lo[0]=Lo[1]=ra[0]=ra[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;on||Ha(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=ive(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=ove(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++],I=t[d++],P=t[d++],k=P+I;d+=1,t[d++],p&&(s=nl(I)*T+C,l=il(I)*M+A),v=kb(T,M)*Pb(Go,Math.abs(P)),a=nl(k)*T+C,o=il(k)*M+A;break;case xt.R:{s=a=t[d++],l=o=t[d++];var R=t[d++],z=t[d++];v=R*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=Ha(f-u),T=Ha(d-c);if(A>i||T>a){if(h){var M=p[m++];if(g+M>y){var I=(y-g)/M;t.lineTo(u*(1-I)+f*I,c*(1-I)+d*I);break e}g+=M}t.lineTo(f,d),u=f,c=d,x=0}else{var P=A*A+T*T;P>x&&(S=f,_=d,x=P)}break}case xt.C:{var k=n[b++],R=n[b++],z=n[b++],$=n[b++],N=n[b++],V=n[b++];if(h){var M=p[m++];if(g+M>y){var I=(y-g)/M;ks(u,k,z,N,I,tl),ks(c,R,$,V,I,rl),t.bezierCurveTo(tl[1],rl[1],tl[2],rl[2],tl[3],rl[3]);break e}g+=M}t.bezierCurveTo(k,R,z,$,N,V),u=N,c=V;break}case xt.Q:{var k=n[b++],R=n[b++],z=n[b++],$=n[b++];if(h){var M=p[m++];if(g+M>y){var I=(y-g)/M;Ap(u,k,z,I,tl),Ap(c,R,$,I,rl),t.quadraticCurveTo(tl[1],rl[1],tl[2],rl[2]);break e}g+=M}t.quadraticCurveTo(k,R,z,$),u=z,c=$;break}case xt.A:var L=n[b++],G=n[b++],U=n[b++],B=n[b++],j=n[b++],X=n[b++],W=n[b++],ee=!n[b++],te=U>B?U:B,ie=Ha(U-B)>.001,re=j+X,Q=!1;if(h){var M=p[m++];g+M>y&&(re=j+X*(y-g)/M,Q=!0),g+=M}if(ie&&t.ellipse?t.ellipse(L,G,U,B,W,j,re,ee):t.arc(L,G,te,j,re,ee),Q)break e;C&&(s=nl(j)*U+L,l=il(j)*B+G),u=nl(re)*U+L,c=il(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++],fe=n[b++];if(h){var M=p[m++];if(g+M>y){var de=y-g;t.moveTo(f,d),t.lineTo(f+Pb(de,J),d),de-=J,de>0&&t.lineTo(f+J,d+Pb(de,fe)),de-=fe,de>0&&t.lineTo(f+kb(J-de,0),d+fe),de-=J,de>0&&t.lineTo(f,d+kb(fe-de,0));break e}g+=M}t.rect(f,d,J,fe);break;case xt.Z:if(h){var M=p[m++];if(g+M>y){var I=(y-g)/M;t.lineTo(u*(1-I)+s*I,c*(1-I)+l*I);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 Fa=Hge;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+=Ad);var d=Math.atan2(l,s);return d<0&&(d+=Ad),d>=n&&d<=i||d+Ad>=n&&d+Ad<=i}function Xa(e,t,r,n,i,a){if(a>t&&a>n||ai?s:0}var Eo=Fa.CMD,al=Math.PI*2,jge=1e-4;function Yge(e,t){return Math.abs(e-t)t&&u>n&&u>a&&u>s||u1&&qge(),h=vr(t,n,a,s,ni[0]),d>1&&(p=vr(t,n,a,s,ni[1]))),d===2?gt&&s>n&&s>a||s=0&&u<=1){for(var c=0,f=_r(t,n,a,u),d=0;dr||s<-r)return 0;var l=Math.sqrt(r*r-s*s);rn[0]=-l,rn[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=al-1e-4){n=0,i=al;var c=a?1:-1;return o>=rn[0]+e&&o<=rn[1]+e?c:0}if(n>i){var f=n;n=i,i=f}n<0&&(n+=al,i+=al);for(var d=0,h=0;h<2;h++){var p=rn[h];if(p+e>o){var v=Math.atan2(s,p),c=a?1:-1;v<0&&(v=al+v),(v>=n&&v<=i||v+al>=n&&v+al<=i)&&(v>Math.PI/2&&v1&&(r||(s+=Xa(l,u,c,f,n,i))),g&&(l=a[p],u=a[p+1],c=l,f=u),v){case Eo.M:c=a[p++],f=a[p++],l=c,u=f;break;case Eo.L:if(r){if(jo(l,u,a[p],a[p+1],t,n,i))return!0}else s+=Xa(l,u,a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case Eo.C:if(r){if(Wge(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],t,n,i))return!0}else s+=Xge(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 Eo.Q:if(r){if(d6(l,u,a[p++],a[p++],a[p],a[p+1],t,n,i))return!0}else s+=Zge(l,u,a[p++],a[p++],a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case Eo.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+=Xa(l,u,d,h,n,i);var C=(n-m)*S/x+m;if(r){if(Uge(m,y,S,_,_+b,w,t,C,i))return!0}else s+=Kge(m,y,S,_,_+b,w,C,i);l=Math.cos(_+b)*x+m,u=Math.sin(_+b)*S+y;break;case Eo.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+=Xa(d,f,d,h,n,i),s+=Xa(c,h,c,f,n,i);break;case Eo.Z:if(r){if(jo(l,u,c,f,t,n,i))return!0}else s+=Xa(l,u,c,f,n,i);l=c,u=f;break}}return!r&&!Yge(u,f)&&(s+=Xa(l,u,c,f,n,i)||0),s!==0}function Qge(e,t,r){return h6(e,0,!1,t,r)}function Jge(e,t,r,n){return h6(e,t,!0,r,n)}var o0=xe({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ru),eme={style:xe({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},gx.style)},Lb=za.concat(["invisible","culling","z","z2","zlevel","parent"]),tme=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?mT:n>.2?zve:yT}else if(r)return yT}return mT},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(oe(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=t0(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&yc)&&(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)),Jge(s,l/u,r,n)))return!0}if(this.hasFill())return Qge(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=yc,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:Y(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&yc)},t.prototype.createStyle=function(r){return cx(o0,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=Y({},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=Y({},i.shape),Y(u,n.shape)):(u=Y({},a?this.shape:i.shape),Y(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=Y({},this.shape);for(var c={},f=He(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 cx(rme,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=mv(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}(wi);p6.prototype.type="tspan";const kp=p6;var nme=xe({x:0,y:0},ru),ime={style:xe({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},gx.style)};function ame(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var v6=function(e){Dt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return cx(nme,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=ame(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 ime},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}(wi);v6.prototype.type="image";const Fr=v6;function ome(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 zc=Math.round;function g6(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&&(zc(n*2)===zc(i*2)&&(e.x1=e.x2=Wl(n,s,!0)),zc(a*2)===zc(o*2)&&(e.y1=e.y2=Wl(a,s,!0))),e}}function m6(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=Wl(n,s,!0),e.y=Wl(i,s,!0),e.width=Math.max(Wl(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Wl(i+o,s,!1)-e.y,o===0?0:1)),e}}function Wl(e,t,r){if(!t)return e;var n=zc(e*2);return(n+zc(t))%2===0?n/2:(n+(r?1:-1))/2}var sme=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),lme={},y6=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new sme},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=m6(lme,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?ome(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}($e);y6.prototype.type="rect";const Qe=y6;var kE={fill:"#000"},DE=2,ume={style:xe({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},gx.style)},x6=function(e){Dt(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=kE,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,I=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),P=o.calculatedLineHeight,k=0;k=0&&(k=b[P],k.align==="right");)this._placeToken(k,r,C,m,I,"right",x),A-=k.width,I-=k.width,P--;for(M+=(a-(M-g)-(y-I)-A)/2;T<=P;)k=b[T],this._placeToken(k,r,C,m,M+k.width/2,"center",x),M+=k.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&&Eb(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=zE(o,s,p),f-=r.height/2-p[0]-r.innerHeight/2);var v=this._getOrCreateChild(kp),g=v.createStyle();v.useStyle(g);var m=this._defaultStyle,y=!1,x=0,S=NE("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),_=OE("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!m.autoStroke||y)?(x=DE,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||Is,g.opacity=Pa(u.opacity,n.opacity,1),LE(g,u),_&&(g.lineWidth=Pa(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(ah(g.x,w,g.textAlign),xc(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(Fr),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=Pa(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return b6(r)&&(n=[r.fontStyle,r.fontWeight,S6(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Fi(n)||r.textFont||r.font},t}(wi),cme={left:!0,right:1,center:1},fme={top:1,bottom:1,middle:1},RE=["fontStyle","fontWeight","fontSize","fontFamily"];function S6(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?$2+"px":e+"px"}function LE(e,t){for(var r=0;r=0,a=!1;if(e instanceof $e){var o=_6(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Qu(s)||Qu(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=Y({},n),u=Y({},u),u.fill=s):!Qu(u.fill)&&Qu(s)?(a=!0,n=Y({},n),u=Y({},u),u.fill=GE(s)):!Qu(u.stroke)&&Qu(l)&&(a||(n=Y({},n),u=Y({},u)),u.stroke=GE(l)),n.style=u}}if(n&&n.z2==null){a||(n=Y({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??Wf)}return n}function yme(e,t,r){if(r&&r.z2==null){r=Y({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??hme)}return r}function xme(e,t,r){var n=ze(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:gme(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=Y({},r),o=Y({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Ob(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return mme(this,e,t,r);if(e==="blur")return xme(this,e,r);if(e==="select")return yme(this,e,r)}return r}function Su(e){e.stateProxy=Ob;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Ob),r&&(r.stateProxy=Ob)}function WE(e,t){!P6(e,t)&&!e.__highByOuter&&To(e,w6)}function UE(e,t){!P6(e,t)&&!e.__highByOuter&&To(e,C6)}function mo(e,t){e.__highByOuter|=1<<(t||0),To(e,w6)}function yo(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&To(e,C6)}function A6(e){To(e,sI)}function lI(e){To(e,T6)}function M6(e){To(e,pme)}function I6(e){To(e,vme)}function P6(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function k6(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=aI(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){T6(u)}),s&&r.push(a)),o.isBlured=!1}),D(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function CT(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 iu(e,t,r){Ul(e,!0),To(e,Su),AT(e,t,r)}function Tme(e){Ul(e,!1)}function Ut(e,t,r,n){n?Tme(e):iu(e,t,r)}function AT(e,t,r){var n=Ie(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var YE=["emphasis","blur","select"],Ame={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function zr(e,t,r,n){r=r||"itemStyle";for(var i=0;i1&&(o*=Nb(p),s*=Nb(p));var v=(i===a?-1:1)*Nb((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+Pg(f)*g-Ig(f)*m,x=(t+n)/2+Ig(f)*g+Pg(f)*m,S=KE([1,0],[(d-g)/o,(h-m)/s]),_=[(d-g)/o,(h-m)/s],b=[(-1*d-g)/o,(-1*h-m)/s],w=KE(_,b);if(IT(_,b)<=-1&&(w=Md),IT(_,b)>=1&&(w=0),w<0){var C=Math.round(w/Md*1e6)/1e6;w=Md*2+C%2*Md}c.addData(u,y,x,o,s,S,w,f,a)}var Rme=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Lme=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Eme(e){var t=new Fa;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=Fa.CMD,l=e.match(Rme);if(!l)return t;for(var u=0;uk*k+R*R&&(C=T,A=M),{cx:C,cy:A,x0:-c,y0:-f,x1:C*(i/_-1),y1:A*(i/_-1)}}function Vme(e){var t;if(q(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 Gme(e,t){var r,n=oh(t.r,0),i=oh(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=JE(u-l),p=h>zb&&h%zb;if(p>Ri&&(h=p),!(n>Ri))e.moveTo(c,f);else if(h>zb-Ri)e.moveTo(c+n*ec(l),f+n*ol(l)),e.arc(c,f,n,l,u,!d),i>Ri&&(e.moveTo(c+i*ec(u),f+i*ol(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,I=void 0,P=void 0,k=void 0,R=n*ec(l),z=n*ol(l),$=i*ec(u),N=i*ol(u),V=h>Ri;if(V){var L=t.cornerRadius;L&&(r=Vme(L),v=r[0],g=r[1],m=r[2],y=r[3]);var G=JE(n-i)/2;if(x=na(G,m),S=na(G,y),_=na(G,v),b=na(G,g),A=w=oh(x,S),T=C=oh(_,b),(w>Ri||C>Ri)&&(M=n*ec(u),I=n*ol(u),P=i*ec(l),k=i*ol(l),hRi){var ie=na(m,A),re=na(y,A),Q=kg(P,k,R,z,n,ie,d),J=kg(M,I,$,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+R,f+z),e.arc(c,f,n,l,u,!d);if(!(i>Ri)||!V)e.lineTo(c+$,f+N);else if(T>Ri){var ie=na(v,T),re=na(g,T),Q=kg($,N,M,I,i,-re,d),J=kg(R,z,P,k,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+$,f+N),e.arc(c,f,i,u,l,d)}e.closePath()}}}var Hme=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}(),F6=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Hme},t.prototype.buildPath=function(r,n){Gme(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}($e);F6.prototype.type="sector";const In=F6;var Wme=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),$6=function(e){Dt(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Wme},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}($e);$6.prototype.type="ring";const Sx=$6;function Ume(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=Ume(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;sll[1]){if(s=!1,a)return s;var c=Math.abs(ll[0]-sl[1]),f=Math.abs(sl[0]-ll[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 it(e,t,r,n,i,a){pI("update",e,t,r,n,i,a)}function Lt(e,t,r,n,i,a){pI("enter",e,t,r,n,i,a)}function Qc(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 rO(e){return!e.isGroup}function fye(e){return e.shape!=null}function bv(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){rO(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return fye(o)&&(s.shape=Y({},o.shape)),s}var a=n(e);t.traverse(function(o){if(rO(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),it(o,l,r,Ie(o).dataIndex)}}})}function J6(e,t){return Z(e,function(r){var n=r[0];n=u0(n,t.x),n=c0(n,t.x+t.width);var i=r[1];return i=u0(i,t.y),i=c0(i,t.y+t.height),[n,i]})}function dye(e,t){var r=u0(e.x,t.x),n=c0(e.x+e.width,t.x+t.width),i=u0(e.y,t.y),a=c0(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 _v(e,t,r){var n=Y({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),xe(i,r),new Fr(n)):_x(e.replace("path://",""),n,r,"center")}function sh(e,t,r,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var g=Bb(h,p,c,f)/d;return!(g<0||g>1)}function Bb(e,t,r,n){return e*n-r*t}function hye(e){return e<=1e-6&&e>=-1e-6}function jf(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&&D(He(l),function(c){ce(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Ie(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:xe({content:n,formatterParams:s},i)}}function nO(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Hs(e,t){if(e)if(q(e))for(var r=0;r=0&&s.push(l)}),s}}function Ws(e,t){return Oe(Oe({},e,!0),t,!0)}const Aye={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:". "}}}},Mye={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 d0="ZH",gI="EN",Ep=gI,Zm={},mI={},sW=tt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(d0)>-1?d0:Ep}():Ep;function lW(e,t){e=e.toUpperCase(),mI[e]=new wt(t),Zm[e]=t}function Iye(e){if(oe(e)){var t=Zm[e.toUpperCase()]||{};return e===d0||e===gI?we(t):Oe(we(t),we(Zm[Ep]),!1)}else return Oe(we(e),we(Zm[Ep]),!1)}function DT(e){return mI[e]}function Pye(){return mI[Ep]}lW(gI,Aye);lW(d0,Mye);var yI=1e3,xI=yI*60,Hh=xI*60,pi=Hh*24,lO=pi*365,lh={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}"},Lg="{yyyy}-{MM}-{dd}",uO={year:"{yyyy}",month:"{yyyy}-{MM}",day:Lg,hour:Lg+" "+lh.hour,minute:Lg+" "+lh.minute,second:Lg+" "+lh.second,millisecond:lh.none},Vb=["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 Oo(e,t){return e+="","0000".substr(0,t-e.length)+e}function Jc(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 kye(e){return e===Jc(e)}function Dye(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Ax(e,t,r,n){var i=Ba(e),a=i[SI(r)](),o=i[ef(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[Mx(r)](),u=i["get"+(r?"UTC":"")+"Day"](),c=i[Op(r)](),f=(c-1)%12+1,d=i[Ix(r)](),h=i[Px(r)](),p=i[kx(r)](),v=n instanceof wt?n:DT(n||sW)||Pye(),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,Oo(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Oo(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Oo(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Oo(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Oo(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Oo(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Oo(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Oo(p,3)).replace(/{S}/g,p+"")}function Rye(e,t,r,n,i){var a=null;if(oe(r))a=r;else if(me(r))a=r(e.value,t,{level:e.level});else{var o=Y({},lh);if(e.level>0)for(var s=0;s=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(q(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 Ax(new Date(e.value),a,i,n)}function cW(e,t){var r=Ba(e),n=r[ef(t)]()+1,i=r[Mx(t)](),a=r[Op(t)](),o=r[Ix(t)](),s=r[Px(t)](),l=r[kx(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 cO(e,t,r){var n=nt(e)?Ba(e):e;switch(t=t||cW(e,r),t){case"year":return n[SI(r)]();case"half-year":return n[ef(r)]()>=6?1:0;case"quarter":return Math.floor((n[ef(r)]()+1)/4);case"month":return n[ef(r)]();case"day":return n[Mx(r)]();case"half-day":return n[Op(r)]()/24;case"hour":return n[Op(r)]();case"minute":return n[Ix(r)]();case"second":return n[Px(r)]();case"millisecond":return n[kx(r)]()}}function SI(e){return e?"getUTCFullYear":"getFullYear"}function ef(e){return e?"getUTCMonth":"getMonth"}function Mx(e){return e?"getUTCDate":"getDate"}function Op(e){return e?"getUTCHours":"getHours"}function Ix(e){return e?"getUTCMinutes":"getMinutes"}function Px(e){return e?"getUTCSeconds":"getSeconds"}function kx(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Lye(e){return e?"setUTCFullYear":"setFullYear"}function fW(e){return e?"setUTCMonth":"setMonth"}function dW(e){return e?"setUTCDate":"setDate"}function hW(e){return e?"setUTCHours":"setHours"}function pW(e){return e?"setUTCMinutes":"setMinutes"}function vW(e){return e?"setUTCSeconds":"setSeconds"}function gW(e){return e?"setUTCMilliseconds":"setMilliseconds"}function mW(e){if(!KH(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 yW(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 Xf=j2;function RT(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Fi(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?Ba(e):e;if(isNaN(+l)){if(s)return"-"}else return Ax(l,n,r)}if(t==="ordinal")return ZC(e)?i(e):nt(e)&&a(e)?e+"":"-";var u=go(e);return a(u)?mW(u):ZC(e)?i(e):typeof e=="boolean"?e+"":"-"}var fO=["a","b","c","d","e","f","g"],Gb=function(e,t){return"{"+e+(t??"")+"}"};function xW(e,t,r){q(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 bu(e,t){return t=t||"transparent",oe(e)?e:Se(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function h0(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var Km=D,SW=["left","right","top","bottom","width","height"],jl=[["width","left","right"],["height","top","bottom"]];function bI(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 ou=bI;Pe(bI,"vertical");Pe(bI,"horizontal");function Nye(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=Xf(r||0),{width:Math.max(s-a-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function hr(e,t,r){r=Xf(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 Dx(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=hr(xe({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 zye(e,t){return e[jl[t][0]]!=null||e[jl[t][1]]!=null&&e[jl[t][2]]!=null}function Np(e){var t=e.layoutMode||e.constructor.layoutMode;return Se(t)?t:t?{type:t}:null}function Rs(e,t,r){var n=r&&r.ignoreSize;!q(n)&&(n=[n,n]);var i=o(jl[0],0),a=o(jl[1],1);u(jl[0],e,i),u(jl[1],e,a);function o(c,f){var d={},h=0,p={},v=0,g=2;if(Km(c,function(x){p[x]=e[x]}),Km(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 yv(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);s6(Kf,wt);px(Kf);Cye(Kf);Tye(Kf,Fye);function Fye(e){var t=[];return D(Kf.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=Z(t,function(r){return ba(r).main}),e!=="dataset"&&ze(t,"dataset")<=0&&t.unshift("dataset"),t}const et=Kf;var _W="";typeof navigator<"u"&&(_W=navigator.platform||"");var tc="rgba(0, 0, 0, 0.2)";const $ye={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:tc,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:tc,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:tc,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:tc,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:tc,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:tc,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:_W.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 wW=ve(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Mi="original",Kr="arrayRows",Ii="objectRows",Va="keyedColumns",xs="typedArray",CW="unknown",ka="column",Qf="row",kr={Must:1,Might:2,Not:3},TW=Je();function Vye(e){TW(e).datasetMap=ve()}function AW(e,t,r){var n={},i=wI(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=TW(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),D(e,function(v,g){var m=Se(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});D(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 PW(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:jye(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 Yye(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Eg,Id,hO,pO="\0_ec_inner",qye=1,kW=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=mO(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,mO(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"?hO(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&&D(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=ve(),u=n&&n.replaceMergeMainTypeMap;Vye(this),D(r,function(f,d){f!=null&&(et.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?we(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=Wye(this,f,pt(r[f])),h=a.get(f),p=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",v=r6(h,d,p);uge(v,f,et),i[f]=null,a.set(f,null),o.set(f,0);var g=[],m=[],y=0,x;D(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=Y({componentIndex:_},S.keyInfo);b=new A(w,this,this,T),Y(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"&&Eg(this)}this._seriesIndices||Eg(this)},t.prototype.getOption=function(){var r=we(this.option);return D(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]&&!Pp(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[pO],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 a0e(e,t){return e.join(",")===t.join(",")}const o0e=t0e;var ki=D,zp=Se,yO=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Wb(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=yO.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=Qve(d,y),v=y;break}}}return n[0]=d,n[1]=v,n})})}var Rx=function(){function e(t){this.data=t.data||(t.sourceFormat===Va?{}:[]),this.sourceFormat=t.sourceFormat||CW,this.seriesLayoutBy=t.seriesLayoutBy||ka,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};TO=(t={},t[Kr+"_"+ka]={pure:!0,appendData:a},t[Kr+"_"+Qf]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Ii]={pure:!0,appendData:a},t[Va]={pure:!0,appendData:function(o){var s=this._data;D(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[Mi]={appendData:a},t[xs]={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 xf(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function PO(e){var t,r;return Se(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Wh(e){return new w0e(e)}var w0e=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}},T0e=function(){function e(t,r){if(!nt(r)){var n="";st(n)}this._opFn=GW[t],this._rvalFloat=go(r)}return e.prototype.evaluate=function(t){return nt(t)?this._opFn(t,this._rvalFloat):this._opFn(go(t),this._rvalFloat)},e}(),HW=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:go(t),i=nt(r)?r:go(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}(),A0e=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=go(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=go(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function M0e(e,t){return e==="eq"||e==="ne"?new A0e(e==="eq",t):ce(GW,e)?new T0e(e,t):null}var I0e=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 Ss(t,r)},e}();function P0e(e,t){var r=new I0e,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==ka&&st(o);var s=[],l={},u=e.dimensionsDefine;if(u)D(u,function(v,g){var m=v.name,y={index:g,name:m,displayName:v.displayName};if(s.push(y),m!=null){var x="";ce(l,m)&&st(x),l[m]=y}});else for(var c=0;c65535?z0e:B0e}function rc(){return[1/0,-1/0]}function F0e(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function RO(e,t,r,n,i){var a=jW[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(kd(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 Ss(r[a],this._dimensions[a])}Yb={arrayRows:t,objectRows:function(r,n,i,a){return Ss(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Ss(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),YW=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(Og(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=Un(s)?xs:Mi,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?[OT(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=[OT(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&&EO(a)}var o,s=[],l=[];return D(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&EO(f),s.push(c),l.push(u._getVersionSign())}),n?o=O0e(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[g0e(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 D(e.blocks,function(i){var a=KW(i);a>=t&&(t=a+ +(n&&(!a||zT(i)&&!i.noHeader)))}),t}return 0}function V0e(e,t,r,n){var i=t.noHeader,a=H0e(KW(t)),o=[],s=t.blocks||[];ln(!s||q(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ce(u,l)){var c=new HW(u[l],null);s.sort(function(p,v){return c.evaluate(p.sortParam,v.sortParam)})}else l==="seriesDesc"&&s.reverse()}D(s,function(p,v){var g=t.valueFormatter,m=ZW(p)(g?Y(Y({},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):BT(o.join(""),i?r:a.html);if(i)return f;var d=RT(t.header,"ordinal",e.useUTC),h=XW(n,e.renderMode).nameStyle;return e.renderMode==="richText"?QW(e,d,h)+a.richText+f:BT('
'+mn(d)+"
"+f,r)}function G0e(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=q(S)?S:[S],Z(S,function(_,b){return RT(_,q(h)?h[b]:h,u)})};if(!(a&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),d=a?"":RT(l,"ordinal",u),h=t.valueType,p=o?[]:c(t.value),v=!s||!a,g=!s&&a,m=XW(n,i),y=m.nameStyle,x=m.valueStyle;return i==="richText"?(s?"":f)+(a?"":QW(e,d,y))+(o?"":j0e(e,p,v,g,x)):BT((s?"":f)+(a?"":W0e(d,!s,y))+(o?"":U0e(p,v,g,x)),r)}}function OO(e,t,r,n,i,a){if(e){var o=ZW(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function H0e(e){return{html:F0e[e],richText:$0e[e]}}function BT(e,t){var r='
',n="margin: "+t+"px 0 0";return'
'+e+r+"
"}function W0e(e,t,r){var n=t?"margin-left:2px":"";return''+mn(e)+""}function U0e(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=q(e)?e:[e],''+Z(e,function(o){return mn(o)}).join("  ")+""}function QW(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function j0e(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(q(t)?t.join(" "):t,a)}function JW(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return bu(n)}function eU(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var qb=function(){function e(){this.richTextStyles={},this._nextStyleNameId=QH()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=Eye({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={};q(r)?D(r,function(a){return Y(n,a)}):Y(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function tU(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=q(s),u=JW(t,r),c,f,d,h;if(o>1||l&&!o){var p=Y0e(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=xf(i,r,a[0]),f=v.type}else h=c=l?s[0]:s;var g=tI(t),m=g&&t.name||"",y=i.getName(r),x=n?m:y;return xr("section",{header:m,noHeader:n||!g,sortParam:h,blocks:[xr("nameValue",{markerType:"item",markerColor:u,name:x,noName:!Fi(x),value:c,valueType:f})].concat(d||[])})}function Y0e(e,t,r,n,i){var a=t.getData(),o=Oa(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?D(n,function(f){c(xf(a,r,f),f)}):D(e,c);function c(f,d){var h=a.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(xr("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 No=Je();function Ng(e,t){return e.getName(t)||e.getId(t)}var Qm="__universalTransitionEnabled",Ex=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=Wh({count:X0e,reset:Z0e}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=No(this).sourceManager=new YW(this);a.prepareSource();var o=this.getInitialData(r,i);zO(o,this),this.dataTask.context.data=o,No(this).dataBeforeProcessed=o,NO(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Np(this),a=i?Zf(r):{},o=this.subType;et.hasClass(o)&&(o+="Series"),Oe(r,n.getTheme().get(this.subType)),Oe(r,this.getDefaultOption()),mu(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Rs(r,a,i)},t.prototype.mergeOption=function(r,n){r=Oe(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Np(this);i&&Rs(this.option,r,i);var a=No(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);zO(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,No(this).dataBeforeProcessed=o,NO(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!Un(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=CI.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[Ng(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Qm])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"){Se(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);lr(Ex,II);lr(Ex,CI);s6(Ex,et);function NO(e){var t=e.name;tI(e)||(e.name=q0e(e)||t)}function q0e(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return D(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function X0e(e){return e.model.getRawData().count()}function Z0e(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),K0e}function K0e(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function zO(e,t){D(Ky(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Pe(Q0e,t))})}function Q0e(e,t){var r=FT(e);return r&&r.setOutputEnd((t||this).count()),t}function FT(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=Ex;var kI=function(){function e(){this.group=new Ae,this.uid=qf("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}();nI(kI);px(kI);const jt=kI;function Jf(){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 rU=Je(),J0e=Jf(),DI=function(){function e(){this.group=new Ae,this.uid=qf("viewChart"),this.renderTask=Wh({plan:e1e,reset:t1e}),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&&FO(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&FO(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){Hs(this.group,t)},e.markUpdateMethod=function(t,r){rU(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function BO(e,t,r){e&&Rp(e)&&(t==="emphasis"?mo:yo)(e,r)}function FO(e,t,r){var n=yu(e,t),i=t&&t.highlightKey!=null?Mme(t.highlightKey):null;n!=null?D(pt(n),function(a){BO(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){BO(a,r,i)})}nI(DI);px(DI);function e1e(e){return J0e(e.model)}function t1e(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&rU(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),r1e[l]}var r1e={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=DI;var p0="\0__throttleOriginMethod",$O="\0__throttleRate",VO="\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 ed(e,t,r,n){var i=e[t];if(i){var a=i[p0]||i,o=i[VO],s=i[$O];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=RI(a,r,n==="debounce"),i[p0]=a,i[VO]=n,i[$O]=r}return i}}function Bp(e,t){var r=e[t];r&&r[p0]&&(r.clear&&r.clear(),e[t]=r[p0])}var GO=Je(),HO={itemStyle:xu(oW,!0),lineStyle:xu(aW,!0)},n1e={lineStyle:"stroke",itemStyle:"fill"};function nU(e,t){var r=e.visualStyleMapper||HO[t];return r||(console.warn("Unknown style type '"+t+"'."),HO.itemStyle)}function iU(e,t){var r=e.visualDrawType||n1e[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var i1e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=nU(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=iU(e,n),u=o[l],c=me(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"||me(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||me(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=Y({},o);g[l]=c(v),h.setItemVisual(p,"style",g)}}}},Dd=new wt,a1e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=nU(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Dd.option=l[n];var u=i(Dd),c=o.ensureUniqueItemVisual(s,"style");Y(c,u),Dd.option.decal&&(o.setItemVisual(s,"decal",Dd.option.decal),Dd.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},o1e={performRawSeries:!0,overallReset:function(e){var t=ve();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)),GO(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=GO(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=iU(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)}})}})}},zg=Math.PI;function s1e(e,t){t=t||{},xe(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 Ae,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 dI({shape:{startAngle:-zg/2,endAngle:-zg/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:zg*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:zg*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 l1e=function(){function e(t,r,n,i){this._stageTaskMap=ve(),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=ve();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;D(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";ln(!(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;D(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=ve(),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)||Wh({plan:h1e,reset:p1e,count:g1e}));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||Wh({reset:u1e});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=ve(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,h="";ln(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,p):c?c(n,i).each(p):(f=!1,D(n.getSeries(),p));function p(v){var g=v.uid,m=l.set(g,s&&s.get(g)||(d=!0,Wh({reset:c1e,onDirty:d1e})));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 me(t)&&(t={overallReset:t,seriesType:m1e(t)}),t.uid=qf("stageHandler"),r&&(t.visualType=r),t},e}();function u1e(e){e.overallReset(e.ecModel,e.api,e.payload)}function c1e(e){return e.overallProgress&&f1e}function f1e(){this.agent.dirty(),this.getDownstream().dirty()}function d1e(){this.agent&&this.agent.dirty()}function h1e(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function p1e(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 aU(n)}):v1e}var v1e=aU(0);function aU(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}(),$T=["symbol","symbolSize","symbolRotate","symbolOffset"],YO=$T.concat(["symbolKeepAspect"]),b1e={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<$T.length;o++){var s=$T[o],l=e.get(s);me(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(Y({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=He(i);function c(f,d){for(var h=e.getRawValue(d),p=e.getDataParams(d),v=0;v=0&&ql(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function VT(e,t,r){for(var n=t.type==="radial"?z1e(e,t,r):N1e(e,t,r),i=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:nt(e)?[e]:q(e)?e:null}function EI(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&F1e(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 $1e=new Fa(!0);function m0(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function qO(e){return typeof e=="string"&&e!=="none"}function y0(e){var t=e.fill;return t!=null&&t!=="none"}function XO(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 ZO(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 GT(e,t,r){var n=iI(t.image,t.__image,r);if(vx(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)*Bm),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function V1e(e,t,r,n){var i,a=m0(r),o=y0(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||$1e,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?VT(e,d,b):t.__canvasFillGradient,t.__canvasFillGradient=y),v&&(x=f?VT(e,h,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=x),g&&(S=f||!t.__canvasFillPattern?GT(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=S),m&&(_=f||!t.__canvasStrokePattern?GT(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=EI(t),C=i[0],A=i[1]);var T=!0;(u||f&yc)&&(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&&ZO(e,r),o&&XO(e,r)):(o&&XO(e,r),a&&ZO(e,r))),C&&e.setLineDash([])}function G1e(e,t,r){var n=t.__image=iI(r.image,t.__image,t,t.onload);if(!(!n||!vx(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 H1e(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||Is,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=EI(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(m0(r)&&e.strokeText(i,r.x,r.y),y0(r)&&e.fillText(i,r.x,r.y)):(y0(r)&&e.fillText(i,r.x,r.y),m0(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var KO=["shadowBlur","shadowOffsetX","shadowOffsetY"],QO=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function dU(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){Sn(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?ru.opacity:o}(n||t.blend!==r.blend)&&(a||(Sn(e,i),a=!0),e.globalCompositeOperation=t.blend||ru.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(Se(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 a0e(this._api),u=this._theme,c=this._model=new DW;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},WT);var f={seriesTransition:s,optionChanged:!0};if(i)this[pn]={silent:a,updateParams:f},this[Wr]=!1,this.getZr().wakeUp();else{try{ic(this),zo.update.call(this,null,f)}catch(d){throw this[pn]=null,this[Wr]=!1,d}this._ssr||this._zr.flush(),this[pn]=null,this[Wr]=!1,Rd.call(this,a),Ld.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 D(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;D(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 D(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(jT[i]){var l=s,u=s,c=-s,f=-s,d=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();D(tf,function(x,S){if(x.group===i){var _=n?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(we(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=Ps.createCanvas(),m=gE(g,{renderer:n?"svg":"canvas"});if(m.resize({width:p,height:v}),n){var y="";return D(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}})),D(d,function(x){var S=new Fr({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 Jb(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return Jb(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Fh(i,r);return D(o,function(s,l){l.indexOf("Models")>=0&&D(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=Fh(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?LI(s,l,n):Tv(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;D(vxe,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Yl(s,function(p){var v=Ie(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=Y({},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)}),D(Uh,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),D(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),w1e(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&&i6(this.getDom(),zI,"");var n=this,i=n._api,a=n._model;D(n._componentsViews,function(o){o.dispose(a,i)}),D(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 tf[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[pn]&&(a==null&&(a=this[pn].silent),i=!0,this[pn]=null),this[Wr]=!0;try{i&&ic(this),zo.update.call(this,{type:"resize",animation:Y({duration:0},r&&r.animation)})}catch(o){throw this[Wr]=!1,o}this[Wr]=!1,Rd.call(this,a),Ld.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(Se(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!UT[r]){var i=UT[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=Y({},r);return n.type=Uh[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(Se(n)||(n={silent:!!n}),!!S0[r.type]&&this._model){if(this[Wr]){this._pendingActions.push(r);return}var i=n.silent;t_.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&tt.browser.weChat&&this._throttledZrFlush(),Rd.call(this,i),Ld.call(this,i)}},t.prototype.updateLabelLayout=function(){Ei.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(){ic=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),Qb(f,!0),Qb(f,!1),d.plan()},Qb=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(Qc(m))return;if(m instanceof $e&&Ime(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){mo(p,v),Zn(f)},h.prototype.leaveEmphasis=function(p,v){yo(p,v),Zn(f)},h.prototype.enterBlur=function(p){A6(p),Zn(f)},h.prototype.leaveBlur=function(p){lI(p),Zn(f)},h.prototype.enterSelect=function(p){M6(p),Zn(f)},h.prototype.leaveSelect=function(p){I6(p),Zn(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}(RW))(f)},MU=function(f){function d(h,p){for(var v=0;v=0)){hN.push(r);var a=lU.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function RU(e,t){UT[e]=t}function Txe(e,t,r){var n=exe("registerMap");n&&n(e,t,r)}var Axe=L0e;Eu(OI,i1e);Eu(Ox,a1e);Eu(Ox,o1e);Eu(OI,b1e);Eu(Ox,_1e);Eu(bU,K1e);kU(EW);DU(nxe,h0e);RU("default",s1e);Ga({type:nu,event:nu,update:nu},rr);Ga({type:Ym,event:Ym,update:Ym},rr);Ga({type:$h,event:$h,update:$h},rr);Ga({type:qm,event:qm,update:qm},rr);Ga({type:Vh,event:Vh,update:Vh},rr);BI("light",y1e);BI("dark",x1e);var pN=[],Mxe={registerPreprocessor:kU,registerProcessor:DU,registerPostInit:bxe,registerPostUpdate:_xe,registerUpdateLifecycle:FI,registerAction:Ga,registerCoordinateSystem:wxe,registerLayout:Cxe,registerVisual:Eu,registerTransform:Axe,registerLoading:RU,registerMap:Txe,registerImpl:J1e,PRIORITY:dxe,ComponentModel:et,ComponentView:jt,SeriesModel:zt,ChartView:Tt,registerComponentModel:function(e){et.registerClass(e)},registerComponentView:function(e){jt.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){Yve(e,t)}};function Fe(e){if(q(e)){D(e,function(t){Fe(t)});return}ze(pN,e)>=0||(pN.push(e),me(e)&&(e={install:e}),e.install(Mxe))}function Ed(e){return e==null?0:e.length||1}function vN(e){return e}var Ixe=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||vN,this._newKeyGetter=i||vN,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 Od=Se,Bo=Z,Oxe=typeof Int32Array>"u"?Array:Int32Array,Nxe="e\0\0",gN=-1,zxe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Bxe=["_approximateExtent"],mN,Gg,Nd,zd,i_,Hg,a_,Fxe=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;EU(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===Mi;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),q(a)?a=a.slice():Od(a)&&(a=Y({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Od(r)?Y(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Od(t)?Y(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?Y(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;wT(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){D(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Bo(this.dimensions,this._getDimInfo,this),this.hostModel)),i_(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];me(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(U2(arguments)))})},e.internalField=function(){mN=function(t){var r=t._invertedIndicesMap;D(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new Oxe(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),i[r]=l}}}(),e}();const sn=Fxe;function Av(e,t){TI(e)||(e=AI(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=ve(),a=[],o=Vxe(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&zU(o),l=n===e.dimensionsDefine,u=l?NU(e):OU(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=ve(c),d=new UW(o),h=0;h0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function Vxe(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return D(t,function(a){var o;Se(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function Gxe(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var Hxe=function(){function e(t){this.coordSysDims=[],this.axisMap=ve(),this.categoryAxisMap=ve(),this.coordSysName=t}return e}();function Wxe(e){var t=e.get("coordinateSystem"),r=new Hxe(t),n=Uxe[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var Uxe={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",or).models[0],a=e.getReferringComponents("yAxis",or).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),ac(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),ac(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",or).models[0];t.coordSysDims=["single"],r.set("single",i),ac(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",or).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),ac(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),ac(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();D(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];r.set(c,u),ac(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function ac(e){return e.get("type")==="category"}function jxe(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;Yxe(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(D(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;D(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 Yxe(e){return!EU(e.schema)}function Ls(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function BU(e,t){return Ls(e,t)?e.getCalculationInfo("stackResultDimension"):t}function qxe(e,t){var r=e.get("coordinateSystem"),n=Cv.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=_0(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function Xxe(e,t,r){var n,i;return r&&D(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 Ao(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=AI(e)):(i=n.getSource(),a=i.sourceFormat===Mi);var o=Wxe(t),s=qxe(t,o),l=r.useEncodeDefaulter,u=me(l)?l:l?Pe(AW,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=Av(i,c),d=Xxe(f.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(f),p=jxe(t,{schema:f,store:h}),v=new sn(f,t);v.setCalculationInfo(p);var g=d!=null&&Zxe(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 Zxe(e){if(e.sourceFormat===Mi){var t=Kxe(e.data||[]);return!q(Hf(t))}}function Kxe(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}();px(FU);const Mo=FU;var Qxe=0,Jxe=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Qxe}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&Z(n,eSe);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=ve(this.categories))},e}();function eSe(e){return Se(e)&&e.value!=null?e.value:e+""}const YT=Jxe;function qT(e){return e.type==="interval"||e.type==="log"}function tSe(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=ZH(a/t,!0);r!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=$U(o),l=i.niceTickExtent=[Xt(Math.ceil(e[0]/o)*o,s),Xt(Math.floor(e[1]/o)*o,s)];return rSe(l,e),i}function o_(e){var t=Math.pow(10,eI(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Xt(r*t)}function $U(e){return Sa(e)+2}function yN(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function rSe(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),yN(e,0,t),yN(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function Nx(e,t){return e>=t[0]&&e<=t[1]}function zx(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Bx(e,t){return e*(t[1]-t[0])+t[0]}var VU=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 YT({})),q(i)&&(i=new YT({categories:Z(i,function(a){return Se(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),Nx(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),zx(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(Bx(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}(Mo);Mo.registerClass(VU);const VI=VU;var dl=Xt,GU=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 Nx(r,this._extent)},t.prototype.normalize=function(r){return zx(r,this._extent)},t.prototype.scale=function(r){return Bx(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=$U(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:dl(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 UU(e){var t=aSe(e),r=[];return D(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")||(ZU(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:GI(n)})}),jU(r)}function jU(e){var t={};D(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 D(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=He(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),D(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;D(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;D(a,function(m,y){r[i][y]=r[i][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+c)})}),r}function oSe(e,t,r){if(e&&t){var n=e[HI(t)];return n!=null&&r!=null?n[GI(r)]:n}}function YU(e,t){var r=WU(e,t),n=UU(r);D(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=GI(i),u=n[HI(s)][l],c=u.offset,f=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function qU(e){return{seriesType:e,plan:Jf(),reset:function(t){if(XU(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=Ls(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=a.isHorizontal(),h=sSe(i,a),p=ZU(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&&_a(_*3),w=p&&l&&_a(_*3),C=p&&_a(_),A=n.master.getRect(),T=d?A.width:A.height,M,I=S.getStore(),P=0;(M=x.next())!=null;){var k=I.get(f?g:o,M),R=I.get(s,M),z=h,$=void 0;f&&($=+k-I.get(o,M));var N=void 0,V=void 0,L=void 0,G=void 0;if(d){var U=n.dataToPoint([k,R]);if(f){var B=n.dataToPoint([$,R]);z=B[0]}N=z,V=U[1]+y,L=U[0]-z,G=m,Math.abs(L)>>1;e[i][1]i&&(this._approxInterval=i);var s=Wg.length,l=Math.min(lSe(Wg,this._approxInterval,0,s),s-1);this._interval=Wg[l][1],this._minLevelUnit=Wg[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return nt(r)?r:+Ba(r)},t.prototype.contain=function(r){return Nx(this.parse(r),this._extent)},t.prototype.normalize=function(r){return zx(this.parse(r),this._extent)},t.prototype.scale=function(r){return Bx(r,this._extent)},t.type="time",t}(Es),Wg=[["second",yI],["minute",xI],["hour",Hh],["quarter-day",Hh*6],["half-day",Hh*12],["day",pi*1.2],["half-week",pi*3.5],["week",pi*7],["month",pi*31],["quarter",pi*95],["half-year",lO/2],["year",lO]];function uSe(e,t,r,n){var i=Ba(t),a=Ba(r),o=function(p){return cO(i,p,n)===cO(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 cSe(e,t){return e/=pi,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function fSe(e){var t=30*pi;return e/=t,e>6?6:e>3?3:e>2?2:1}function dSe(e){return e/=Hh,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function xN(e,t){return e/=t?xI:yI,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function hSe(e){return ZH(e,!0)}function pSe(e,t,r){var n=new Date(e);switch(Jc(t)){case"year":case"month":n[fW(r)](0);case"day":n[dW(r)](1);case"hour":n[hW(r)](0);case"minute":n[pW(r)](0);case"second":n[vW(r)](0),n[gW(r)](0)}return n.getTime()}function vSe(e,t,r,n){var i=1e4,a=uW,o=0;function s(T,M,I,P,k,R,z){for(var $=new Date(M),N=M,V=$[P]();N1&&R===0&&I.unshift({value:I[0].value-N})}}for(var R=0;R=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(ySe(n[0]/a)*a),Xt(mSe(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){jh.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=Di(r)/Di(this.base),Nx(r,this._extent)},t.prototype.normalize=function(r){return r=Di(r)/Di(this.base),zx(r,this._extent)},t.prototype.scale=function(r){return r=Bx(r,this._extent),Ug(this.base,r)},t.type="log",t}(Mo),JU=WI.prototype;JU.getMinorTicks=jh.getMinorTicks;JU.getLabel=jh.getLabel;function jg(e,t){return gSe(e,Sa(t))}Mo.registerClass(WI);const xSe=WI;var SSe=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[_Se[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=bSe[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),bSe={min:"_determinedMin",max:"_determinedMax"},_Se={min:"_dataMin",max:"_dataMax"};function ej(e,t,r){var n=e.rawExtentInfo;return n||(n=new SSe(e,t,r),e.rawExtentInfo=n,n)}function Yg(e,t){return t==null?null:Tp(t)?NaN:e.parse(t)}function tj(e,t){var r=e.type,n=ej(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&r==="time"){var s=WU("bar",o),l=!1;if(D(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=UU(s),c=wSe(i,a,t,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function wSe(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=oSe(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;D(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;D(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 bf(e,t){var r=t,n=tj(e,r),i=n.extent,a=r.get("splitNumber");e instanceof xSe&&(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 Fx(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new VI({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new QU({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Mo.getClass(t)||Es)}}function CSe(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function Mv(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):me(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(UI(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function UI(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function TSe(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof VI?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=Mv(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;ce[1]&&(e[1]=i[1])})}var Iv=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),ISe=1e-8;function bN(e,t){return Math.abs(e-t)i&&(n=o,i=l)}if(n)return kSe(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 D(o,function(s){s.type==="polygon"?_N(s.exterior,i,a,r):D(s.points,function(l){_N(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 LSe(e,t){return e=RSe(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 wN(o[0],o.slice(1)));break;case"MultiPolygon":D(i.coordinates,function(l){l[0]&&a.push(new wN(l[0],l.slice(1)))});break;case"LineString":a.push(new CN([i.coordinates]));break;case"MultiLineString":a.push(new CN(i.coordinates))}var s=new ij(n[t||"name"],a,n.cp);return s.properties=n,s})}var Vp=Je();function ESe(e){return e.type==="category"?NSe(e):BSe(e)}function OSe(e,t){return e.type==="category"?zSe(e,t):{ticks:Z(e.scale.getTicks(),function(r){return r.value})}}function NSe(e){var t=e.getLabelModel(),r=oj(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function oj(e,t){var r=sj(e,"labels"),n=jI(t),i=lj(r,n);if(i)return i;var a,o;return me(n)?a=fj(e,n):(o=n==="auto"?FSe(e):n,a=cj(e,o)),uj(r,n,{labels:a,labelCategoryInterval:o})}function zSe(e,t){var r=sj(e,"ticks"),n=jI(t),i=lj(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),me(n))a=fj(e,n,!0);else if(n==="auto"){var s=oj(e,e.getLabelModel());o=s.labelCategoryInterval,a=Z(s.labels,function(l){return l.tickValue})}else o=n,a=cj(e,o,!0);return uj(r,n,{ticks:a,tickCategoryInterval:o})}function BSe(e){var t=e.scale.getTicks(),r=Mv(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 sj(e,t){return Vp(e)[t]||(Vp(e)[t]=[])}function lj(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=mv(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=Vp(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 VSe(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 cj(e,t,r){var n=Mv(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=rj(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 fj(e,t,r){var n=e.scale,i=Mv(e),a=[];return D(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 TN=[0,1],GSe=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return t>=n&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return qH(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),AN(n,i.count())),ct(t,TN,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),AN(n,i.count()));var a=ct(t,n,TN,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=OSe(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 HSe(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 ESe(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 $Se(this)},e}();function AN(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function HSe(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;D(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+=Bd);var h=Math.atan2(s,o);if(h<0&&(h+=Bd),h>=n&&h<=i||h+Bd>=n&&h+Bd<=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,Vi.fromArray(e[0]),bt.fromArray(e[1]),tr.fromArray(e[2]),Le.sub(wa,Vi,bt),Le.sub(ga,tr,bt);var r=wa.len(),n=ga.len();if(!(r<.001||n<.001)){wa.scale(1/r),ga.scale(1/n);var i=wa.dot(ga),a=Math.cos(t);if(a1&&Le.copy(nn,tr),nn.toArray(e[1])}}}}function XSe(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,Vi.fromArray(e[0]),bt.fromArray(e[1]),tr.fromArray(e[2]),Le.sub(wa,bt,Vi),Le.sub(ga,tr,bt);var n=wa.len(),i=ga.len();if(!(n<.001||i<.001)){wa.scale(1/n),ga.scale(1/i);var a=wa.dot(t),o=Math.cos(r);if(a=l)Le.copy(nn,tr);else{nn.scaleAndAdd(ga,s/Math.tan(Math.PI/2-c));var f=tr.x!==bt.x?(nn.x-bt.x)/(tr.x-bt.x):(nn.y-bt.y)/(tr.y-bt.y);if(isNaN(f))return;f<0?Le.copy(nn,bt):f>1&&Le.copy(nn,tr)}nn.toArray(e[1])}}}}function IN(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 ZSe(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=Jo(n[0],n[1]),a=Jo(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=$m([],n[1],n[0],o/i),l=$m([],n[1],n[2],o/a),u=$m([],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 I=M+C;I<0&&b(-I*T,1)}else b(-C*T,1)}}function _(C,A,T){C!==0&&(u=!0);for(var M=A;M0)for(var I=0;I0;I--){var z=T[I-1]*R;_(-z,I,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 KSe(e,t,r,n){return vj(e,"x","width",t,r,n)}function gj(e,t,r,n){return vj(e,"y","height",t,r,n)}function mj(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)),it(n,u,r,l)}else if(n.attr(u),!Yf(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={};qg(h,u,Xg),qg(h,n.states.select,Xg)}if(n.states.emphasis){var p=a.oldLayoutEmphasis={};qg(p,u,Xg),qg(p,n.states.emphasis,Xg)}iW(n,l,c,r,r)}if(i&&!i.ignore&&!i.invisible){var a=ebe(i),o=a.oldLayout,v={points:i.shape.points};o?(i.attr({shape:o}),it(i,{shape:v},r)):(i.setShape(v),i.style.strokePercent=0,Lt(i,{style:{strokePercent:1}},r)),a.oldLayout=v}},e}();const rbe=tbe;var c_=Je();function nbe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=c_(r).labelManager;i||(i=c_(r).labelManager=new rbe),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 f_=Math.sin,d_=Math.cos,yj=Math.PI,pl=Math.PI*2,ibe=180/yj,abe=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=is(f-pl)||(c?u>=pl:-u>=pl),h=u>0?u%pl:u%pl+pl,p=!1;d?p=!0:is(f)?p=!1:p=h>=yj==!!c;var v=t+n*d_(o),g=r+i*f_(o);this._start&&this._add("M",v,g);var m=Math.round(a*ibe);if(d){var y=1/this._p,x=(c?1:-1)*(pl-y);this._add("A",n,i,m,1,+c,t+n*d_(o+x),r+i*f_(o+x)),y>.01&&this._add("A",n,i,m,0,+c,v,g)}else{var S=t+n*d_(s),_=r+i*f_(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 pbe(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 hbe(o,s)+(o!=="style"?mn(l):l||"")+(a?""+r+Z(a,function(u){return n(u)}).join(r)+r:"")+pbe(o)}return n(e)}function vbe(e,t,r){r=r||{};var n=r.newline?` -`:"",i=" {"+n,a=n+"}",o=Z(He(e),function(l){return l+i+Z(He(e[l]),function(u){return u+":"+e[l][u]+";"}).join(n)+a}).join(n),s=Z(He(t),function(l){return"@keyframes "+l+i+Z(He(t[l]),function(u){return u+i+Z(He(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 KT(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function kN(e,t,r,n){return mr("svg","root",{width:e,height:t,xmlns:Sj,"xmlns:xlink":bj,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+e+" "+t:!1},r)}var DN={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"},wl="transform-origin";function gbe(e,t,r){var n=Y({},e.shape);Y(n,t),e.buildPath(r,n);var i=new xj;return i.reset(zH(e)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function mbe(e,t){var r=t.originX,n=t.originY;(r||n)&&(e[wl]=r+"px "+n+"px")}var ybe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function wj(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function xbe(e,t,r){var n=e.shape.paths,i={},a,o;if(D(n,function(l){var u=KT(r.zrId);u.animation=!0,$x(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=He(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=wj(i,r);return a.replace(o,s)}}function RN(e){return oe(e)?DN[e]?"cubic-bezier("+DN[e]+")":Z2(e)?e:"":""}function $x(e,t,r,n){var i=e.animators,a=i.length,o=[];if(e instanceof hI){var s=xbe(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=wj(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 Gp=Math.round;function Cj(e){return e&&oe(e.src)}function Tj(e){return e&&me(e.toDataURL)}function ZI(e,t,r,n){cbe(function(i,a){var o=i==="fill"||i==="stroke";o&&NH(a)?Mj(t,e,i,n):o&&K2(a)?Ij(r,e,i,n):e[i]=a},t,r,!1),Abe(r,e,n)}function LN(e){return is(e[0]-1)&&is(e[1])&&is(e[2])&&is(e[3]-1)}function Sbe(e){return is(e[4])&&is(e[5])}function KI(e,t,r){if(t&&!(Sbe(t)&&LN(t))){var n=r?10:1e4;e.transform=LN(t)?"translate("+Gp(t[4]*n)/n+" "+Gp(t[5]*n)/n+")":pve(t)}}function EN(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.";ln(d,g),ln(h,g)}else if(d==null||h==null){var m=function(T,M){if(T){var I=T.elm,P=d||M.width,k=h||M.height;T.tag==="pattern"&&(u?(k=1,P/=a.width):c&&(P=1,k/=a.height)),T.attrs.width=P,T.attrs.height=k,I&&(I.setAttribute("width",P),I.setAttribute("height",k))}},y=iI(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=mr("image","img",{href:p,width:d,height:h}),o.width=d,o.height=h}else i.svgElement&&(f=we(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=mr("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]=mr("pattern",A,o,[f])),t[r]=dx(A)}}function Mbe(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]=mr("clipPath",a,o,[Aj(e,r)])}t["clip-path"]=dx(a)}function zN(e){return document.createTextNode(e)}function Rl(e,t,r){e.insertBefore(t,r)}function BN(e,t){e.removeChild(t)}function FN(e,t){e.appendChild(t)}function Pj(e){return e.parentNode}function kj(e){return e.nextSibling}function h_(e,t){e.textContent=t}var $N=58,Ibe=120,Pbe=mr("","");function QT(e){return e===void 0}function ua(e){return e!==void 0}function kbe(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 ch(e,t){var r=e.key===t.key,n=e.tag===t.tag;return n&&r}function Hp(e){var t,r=e.children,n=e.tag;if(ua(n)){var i=e.elm=_j(n);if(QI(Pbe,e),q(r))for(t=0;ta?(p=r[l+1]==null?null:r[l+1].elm,Dj(e,p,r,i,l)):A0(e,t,n,a))}function Sc(e,t){var r=t.elm=e.elm,n=e.children,i=t.children;e!==t&&(QI(e,t),QT(t.text)?ua(n)&&ua(i)?n!==i&&Dbe(r,n,i):ua(i)?(ua(e.text)&&h_(r,""),Dj(r,null,i,0,i.length-1)):ua(n)?A0(r,n,0,n.length-1):ua(e.text)&&h_(r,""):e.text!==t.text&&(ua(n)&&A0(r,n,0,n.length-1),h_(r,t.text)))}function Rbe(e,t){if(ch(e,t))Sc(e,t);else{var r=e.elm,n=Pj(r);Hp(t),n!==null&&(Rl(n,t.elm,kj(r)),A0(n,[e],0,0))}return t}var Lbe=0,Ebe=function(){function e(t,r,n){if(this.type="svg",this.refreshHover=VN(),this.configLayer=VN(),this.storage=r,this._opts=n=Y({},n),this.root=t,this._id="zr"+Lbe++,this._oldVNode=kN(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=_j("svg");QI(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",Rbe(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return NN(t,KT(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=KT(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress;var o=[],s=this._bgVNode=Obe(n,i,this._backgroundColor,a);s&&o.push(s);var l=t.compress?null:this._mainVNode=mr("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=Z(He(a.defs),function(d){return a.defs[d]});if(u.length&&o.push(mr("defs","defs",{},u)),t.animation){var c=vbe(a.cssNodes,a.cssAnims,{newline:!0});if(c){var f=mr("style","stl",{},[],c);o.push(f)}}return kN(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}}k.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?Zg:0),this._needsManuallyCompositing),c.__builtin__||H2("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&Nn&&!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,D(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 jbe=Ube;function _f(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=xf(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 Ybe=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=sr(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=qbe,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(){mo(this.childAt(0))},t.prototype.downplay=function(){yo(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):it(d,h,s,n),Zi(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=yr(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 _=Lu(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 Fr){var C=s.style;s.useStyle(Y({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},b))}else s.__isEmptyBrush?s.useStyle(Y({},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:I,inheritColor:w,defaultOpacity:b.opacity});function I(R){return M?r.getName(R):_f(r,R)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var P=s.ensureState("emphasis");P.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var k=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;P.scaleX=this._sizeX*k,P.scaleY=this._sizeY*k,this.setSymbolScale(1),Ut(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=Ie(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&Ds(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Ds(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return td(r.getItemVisual(n,"symbolSize"))},t}(Ae);function qbe(e,t){this.parent.drift(e,t)}const Pv=Ybe;function v_(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 WN(e){return e!=null&&!Se(e)&&(e={isIgnore:e}),e||{}}function UN(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:yr(t),cursorStyle:t.get("cursor")}}var Xbe=function(){function e(t){this.group=new Ae,this._SymbolCtor=t||Pv}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=WN(r);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=UN(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(v_(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(!v_(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):it(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=UN(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=WN(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 Ej(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 Kbe(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 Qbe(e,t,r,n,i,a,o,s){for(var l=Kbe(e,t),u=[],c=[],f=[],d=[],h=[],p=[],v=[],g=Lj(i,t,o),m=e.getLayout("points")||[],y=t.getLayout("points")||[],x=0;x=i||v<0)break;if(su(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||su(b,w))h=m,p=y;else{T=b-u,M=w-c;var k=m-u,R=b-m,z=y-c,$=w-y,N=void 0,V=void 0;if(s==="x"){N=Math.abs(k),V=Math.abs(R);var L=T>0?1:-1;h=m-L*N*o,p=y,I=m+L*V*o,P=y}else if(s==="y"){N=Math.abs(z),V=Math.abs($);var G=M>0?1:-1;h=m,p=y-G*N*o,I=m,P=y+G*V*o}else N=Math.sqrt(k*k+z*z),V=Math.sqrt(R*R+$*$),A=V/(V+N),h=m-T*o*(1-A),p=y-M*o*(1-A),I=m+T*o*A,P=y+M*o*A,I=Fo(I,$o(b,m)),P=Fo(P,$o(w,y)),I=$o(I,Fo(b,m)),P=$o(P,Fo(w,y)),T=I-m,M=P-y,h=m-T*N/V,p=y-M*N/V,h=Fo(h,$o(u,m)),p=Fo(p,$o(c,y)),h=$o(h,Fo(u,m)),p=$o(p,Fo(c,y)),T=m-h,M=y-p,I=m+T*V/N,P=y+M*V/N}e.bezierCurveTo(f,d,h,p,m,y),f=I,d=P}else e.lineTo(m,y)}u=m,c=y,v+=a}return g}var Oj=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),Jbe=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 Oj},t.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&su(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?Jy(s,h,v,m,r,c):Jy(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?vr(l,p,g,y,w):vr(s,h,v,m,w);return u?[r,S]:[S,r]}}s=m,l=y;break}}},t}($e),e_e=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Oj),Nj=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 e_e},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&&su(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 n_e(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=r_e(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";D(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 Sv(0,0,0,0,d,!0);return y[i]=v,y[i+"2"]=g,y}}}function i_e(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&a_e(a,t))){var o=t.mapDimension(a.dim),s={};return D(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function a_e(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 o_e(e,t){return isNaN(e)||isNaN(t)}function s_e(e){for(var t=e.length/2;t>0&&o_e(e[t*2-2],e[t*2-1]);t--);return t-1}function ZN(e,t){return[e[t*2],e[t*2+1]]}function l_e(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 Fj(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var L=v.getState("emphasis").style;L.lineWidth=+v.style.lineWidth+1}Ie(v).seriesIndex=r.seriesIndex,Ut(v,$,N,V);var G=XN(r.get("smooth")),U=r.get("smoothMonotone");if(v.setShape({smooth:G,smoothMonotone:U,connectNulls:C}),g){var B=l.getCalculationInfo("stackedOnSeries"),j=0;g.useStyle(xe(c.getAreaStyle(),{fill:P,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),B&&(j=XN(B.get("smooth"))),g.setShape({smooth:G,stackedOnSmooth:j,smoothMonotone:U,connectNulls:C}),zr(g,r,"areaStyle"),Ie(g).seriesIndex=r.seriesIndex,Ut(g,$,N,V)}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){Ie(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=yu(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 Pv(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=yu(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;s0(this._polyline,r),n&&s0(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new Jbe({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 Nj({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");me(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=me(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=me(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(Fj(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=s_e(l);c>=0&&(Br(s,yr(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?Rj(o,h):_f(o,f)},enableTextSetter:!0},u_e(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=l_e(f,S,w),A=C.range,T=A[1]-A[0],M=void 0;if(T>=1){if(T>1&&!h){var I=ZN(f,A[0]);u.attr({x:I[0]+_,y:I[1]+b}),o&&(M=d.getRawValue(A[0]))}else{var I=c.getPointOn(S,w);I&&u.attr({x:I[0]+_,y:I[1]+b});var P=d.getRawValue(A[0]),k=d.getRawValue(A[1]);o&&(M=a6(i,p,P,k,C.t))}a.lastFrameIndex=A[0]}else{var R=r===1||a.lastFrameIndex>0?A[0]:0,I=ZN(f,R);o&&(M=d.getRawValue(R)),u.attr({x:I[0]+_,y:I[1]+b})}if(o){var z=Yf(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=Qbe(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=Vo(d.current,i,o,l),p=Vo(d.stackedOnCurrent,i,o,l),v=Vo(d.next,i,o,l),g=Vo(d.stackedOnNext,i,o,l)),qN(h,v)>3e3||c&&qN(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(),it(u,m,f),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),it(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=d_e[a]:me(a)&&(p=a),p&&t.setData(i.downSample(i.mapDimension(u.dim),1/h,p,h_e))}}}}}function p_e(e){e.registerChartView(f_e),e.registerSeriesModel(jbe),e.registerLayout(Dv("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,$j("line"))}var Vj=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 Ao(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)D(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(Vj);const M0=Vj;var v_e=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 Ao(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=Ws(M0.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}(M0);const g_e=v_e;var m_e=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),y_e=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 m_e},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,f=n.endAngle,d=n.clockwise,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){Lp(a,r,Ie(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),KN={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=m_(t.x,e.x),s=y_(t.x+t.width,i),l=m_(t.y,e.y),u=y_(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=y_(t.r,e.r),a=m_(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}},QN={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new Qe({shape:Y({},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?I0:In,c=new u({shape:n,z2:1});c.name="item";var f=Gj(i);if(c.calculateTextPosition=x_e(f,{isRoundCap:u===I0}),a){var d=c.shape,h=i?"r":"endAngle",p={};d[h]=i?n.r0:n.startAngle,p[h]=n[h],(s?it:Lt)(c,{shape:p},a)}return c}};function w_e(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function JN(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?it:Lt)(r,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(o?it:Lt)(r,{shape:u},c,i)}function ez(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 A_e(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function Gj(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 rz(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=Zl(n.getModel("itemStyle"),c,!0);Y(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=yr(n);Br(e,p,{labelFetcher:a,labelDataIndex:r,defaultText:_f(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,S_e(e,g==="outside"?h:g,Gj(o),n.get(["label","rotate"]))}nW(v,p,a.getRawValue(r),function(y){return Rj(t,y)});var m=n.getModel(["emphasis"]);Ut(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),zr(e,n),A_e(i)&&(e.style.fill="none",e.style.stroke="none",D(e.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function M_e(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var I_e=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 I_e},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?r:null},30,!1);function P_e(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=a.length/3;c=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function Hj(e,t,r){if(Ou(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 k_e(e,t,r){var n=e.type==="polar"?In:Qe;return new n({shape:Hj(t,r,e),silent:!0,z2:0})}const D_e=__e;function R_e(e){e.registerChartView(D_e),e.registerSeriesModel(g_e),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Pe(YU,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,qU("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,$j("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 em=Math.PI*2,oz=Math.PI/180;function Wj(e,t){return hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Uj(e,t){var r=Wj(e,t),n=e.get("center"),i=e.get("radius");q(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 q(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 L_e(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=Wj(n,r),s=Uj(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 _=em,b=0,w=d,C=m?1:-1;if(i.setLayout({viewRect:o,r:c}),i.each(a,function(T,M){var I;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"?I=v===0&&x?g:T*g:I=em/p,Ir?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 x_(e){return e.position==="center"}function N_e(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*E_e,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),I=M.getModel("label"),P=I.get("position")||M.get(["emphasis","label","position"]),k=I.get("distanceToLabelLine"),R=I.get("alignTo"),z=ne(I.get("edgeDistance"),u),$=I.get("bleedMargin"),N=M.getModel("labelLine"),V=N.get("length");V=ne(V,u);var L=N.get("length2");if(L=ne(L,u),Math.abs(C.endAngle-C.startAngle)0?"right":"left":U>0?"left":"right"}var ke=Math.PI,We=0,Ge=I.get("rotate");if(nt(Ge))We=Ge*(ke/180);else if(P==="center")We=0;else if(Ge==="radial"||Ge===!0){var at=U<0?-G+ke:-G;We=at}else if(Ge==="tangential"&&P!=="outside"&&P!=="outer"){var ot=Math.atan2(U,B);ot<0&&(ot=ke*2+ot);var It=B>0;It&&(ot=ke+ot),We=ot-ke}if(a=!!We,A.x=j,A.y=X,A.rotation=We,A.setStyle({verticalAlign:"middle"}),te){A.setStyle({align:ee});var Yt=A.states.select;Yt&&(Yt.x+=A.x,Yt.y+=A.y)}else{var Be=A.getBoundingRect().clone();Be.applyTransform(A.getComputedTransform());var Pt=(A.style.margin||0)+2.1;Be.y-=Pt/2,Be.height+=Pt,r.push({label:A,labelLine:T,position:P,len:V,len2:L,minTurnAngle:N.get("minTurnAngle"),maxSurfaceAngle:N.get("maxSurfaceAngle"),surfaceNormal:new Le(U,B),linePoints:W,textAlign:ee,labelDistance:k,labelAlignTo:R,edgeDistance:z,bleedMargin:$,rect:Be,unconstrainedWidth:Be.width,labelStyleWidth:A.style.width})}w.setTextConfig({inside:te})}}),!a&&e.get("avoidLabelOverlap")&&O_e(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 F_e=B_e;function rd(e,t,r){t=q(t)&&{coordDimensions:t}||Y({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=Av(n,t).dimensions,a=new sn(i,e);return a.initData(n,r),a}var $_e=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 Lv=$_e;var V_e=Je(),G_e=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 Lv(ue(this.getData,this),ue(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return rd(this,{coordDimensions:["value"],encodeDefaulter:Pe(_I,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=V_e(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=Zve(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){mu(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 H_e=G_e;function W_e(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(nt(o)&&!isNaN(o)&&o<0)})}}}function U_e(e){e.registerChartView(F_e),e.registerSeriesModel(H_e),fU("pie",e.registerAction),e.registerLayout(Pe(L_e,"pie")),e.registerProcessor(Rv("pie")),e.registerProcessor(W_e("pie"))}var j_e=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 Ao(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 Y_e=j_e;var Yj=4,q_e=function(){function e(){}return e}(),X_e=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 q_e},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(r,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&a[0]=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 K_e=Z_e;var Q_e=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=Dv("").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 K_e:new kv,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 J_e=Q_e;var ewe=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 twe=ewe;var eA=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",or).models[0]},t.type="cartesian2dAxis",t}(et);lr(eA,Iv);var qj={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)"]}}},rwe=Oe({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},qj),JI=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}}},qj),nwe=Oe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},JI),iwe=xe({logBase:10},JI);const Xj={category:rwe,value:JI,time:nwe,log:iwe};var awe={value:1,category:1,time:1,log:1};function wf(e,t,r,n){D(awe,function(i,a){var o=Oe(Oe({},Xj[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=Np(this),h=d?Zf(c):{},p=f.getTheme();Oe(c,p.get(a+"Axis")),Oe(c,this.getDefaultOption()),c.type=lz(c),d&&Rs(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=YT.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",lz)}function lz(e){return e.type||(e.data?"category":"value")}var owe=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 swe=owe;var tA=["x","y"];function uz(e){return e.type==="interval"||e.type==="time"}var lwe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=tA,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!uz(r)||!uz(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=Gf([],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}(swe),uwe=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}(Qi);const cwe=uwe;function rA(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 cz(e){return e.get("coordinateSystem")==="cartesian2d"}function fz(e){var t={xAxisModel:null,yAxisModel:null};return D(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,or).models[0];t[n]=a}),t}var S_=Math.log;function Zj(e,t,r){var n=Es.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=tj(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=S_(e.base);u=[S_(u[0])/d,S_(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=o_(p),v=u[1]-p*o;else{var m=e.getTicks().length-1;m>o&&(p=o_(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 fwe=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=tA,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=He(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;qT(v)&&p.get("alignTicks")&&p.get("interval")==null?c.push(h):(bf(v,p),qT(v)&&(s=h))}c.length&&(s||(s=c.pop(),bf(s.scale,s.model)),D(c,function(g){Zj(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};D(n.x,function(o){dz(n,"y",o,a)}),D(n.y,function(o){dz(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=hr(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(D(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=TSe(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()),D(this._coordsList,function(u){u.calcAffineTransform()});function l(){D(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]),dwe(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]}Se(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):a0(i-as)?(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}(),pz={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=Y({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});yf(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=Lu(t.get(["axisLine","symbolOffset"])||0,h),v=h[0],g=h[1];D([{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=sr(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=gwe(r,n,t,e),a=ywe(r,n,t,e);if(vwe(t,a,i),mwe(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=pj(Z(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));mj(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,gz(a)?e.labelOffset+o*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*as/180);var p;gz(a)?d=lu.innerTextLayout(e.rotation,h??e.rotation,o):(d=pwe(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:lu.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(jf({el:x,componentModel:t,itemName:i}),x.__fullText=i,x.anid="name",t.get("triggerEvent")){var S=lu.makeAxisEventDataBase(t);S.targetType="axisName",S.name=i,Ie(x).eventData=S}n.add(x),x.updateTransform(),r.add(x),x.decomposeTransform()}}};function pwe(e,t,r,n){var i=XH(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return a0(i-as/2)?(o=l?"bottom":"top",a="center"):a0(i-as*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",ias/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function vwe(e,t,r){if(!rj(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?(Kn(a),Kn(u)):vz(a,o)&&(n?(Kn(o),Kn(c)):(Kn(a),Kn(u))),i===!1?(Kn(s),Kn(f)):vz(l,s)&&(i?(Kn(l),Kn(d)):(Kn(s),Kn(f)))}}function Kn(e){e&&(e.ignore=!0)}function vz(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=fx([]);return Du(i,i,-e.rotation),r.applyTransform(no([],i,e.getLocalTransform())),n.applyTransform(no([],i,t.getLocalTransform())),r.intersect(n)}}function gz(e){return e==="middle"||e==="center"}function Kj(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l=0||e===t}function Cwe(e){var t=eP(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=nA(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=xe({color:p.color},l));var g=Oe(we(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 me(c)&&(g.name=c(g.name,g));var y=new wt(g,null,this.ecModel);return lr(y,Iv.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"}},Fd.axisLine),axisLabel:tm(Fd.axisLabel,!1),axisTick:tm(Fd.axisTick,!1),splitLine:tm(Fd.splitLine,!0),splitArea:tm(Fd.splitArea,!0),indicator:[]},t}(et);const $we=Fwe;var Vwe=["axisLine","axisTickLabel","axisName"],Gwe=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 So(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});D(a,function(o){D(Vwe,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=q(d)?d:[d],v=q(h)?h:[h],g=[],m=[];function y(R,z,$){var N=$%z.length;return R[N]=R[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;w_(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);w_(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!_z(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;w_(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(Ai);function w_(e,t,r,n,i){e.pointerChecker&&e.pointerChecker(n,i.originX,i.originY)&&(vo(n.event),n8(e,t,r,n,i))}function n8(e,t,r,n,i){i.isAvailableBehavior=ue(ey,null,r,n),e.trigger(t,i)}function ey(e,t,r){var n=r[e];return!e||n&&(!oe(n)||t.event[n+"Key"])}const Ev=Qwe;function rP(e,t,r){var n=e.target;n.x+=t,n.y+=r,n.dirty()}function nP(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 Jwe={axisPointer:1,tooltip:1,brush:1};function Gx(e,t,r){var n=t.getComponentByElement(e.topTarget),i=n&&n.coordinateSystem;return n&&n!==r&&!Jwe.hasOwnProperty(n.mainType)&&i&&i.model!==r}function i8(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 C_,P0={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"},wz=He(P0),k0={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Cz=He(k0),eCe=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,r){r=r||{};var n=i8(t);this._defsUsePending=[];var i=new Ae;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),Dn(n,i,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;nCe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var d=Hx(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=o8(c,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var h=i;i=new Ae,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=C_[s];if(c&&ce(C_,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=Tz[s];if(h&&ce(Tz,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 kp({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Qn(r,n),Dn(t,n,this._defsUsePending,!1,!1),tCe(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(){C_={g:function(t,r){var n=new Ae;return Qn(r,n),Dn(t,n,this._defsUsePending,!1,!1),n},rect:function(t,r){var n=new Qe;return Qn(r,n),Dn(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 $a;return Qn(r,n),Dn(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 Qn(r,n),Dn(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 fI;return Qn(r,n),Dn(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=Iz(n));var a=new Pn({shape:{points:i||[]},silent:!0});return Qn(r,a),Dn(t,a,this._defsUsePending,!1,!1),a},polyline:function(t,r){var n=t.getAttribute("points"),i;n&&(i=Iz(n));var a=new kn({shape:{points:i||[]},silent:!0});return Qn(r,a),Dn(t,a,this._defsUsePending,!1,!1),a},image:function(t,r){var n=new Fr;return Qn(r,n),Dn(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 Ae;return Qn(r,s),Dn(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 Ae;return Qn(r,s),Dn(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=O6(n);return Qn(r,i),Dn(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),e}(),Tz={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 Sv(t,r,n,i);return Az(e,a),Mz(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 q6(t,r,n);return Az(e,i),Mz(e,i),i}};function Az(e,t){var r=e.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(t.global=!0)}function Mz(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={};a8(r,a,a);var o=a.stopColor||r.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}r=r.nextSibling}}function Qn(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),xe(t.__inheritedStyle,e.__inheritedStyle))}function Iz(e){for(var t=Hx(e),r=[],n=0;n0;a-=2){var o=n[a],s=n[a-1],l=Hx(o);switch(i=i||_i(),s){case"translate":Na(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":X2(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Du(i,i,-parseFloat(l[0])*T_);break;case"skewX":var u=Math.tan(parseFloat(l[0])*T_);no(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*T_);no(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 kz=/([^\s:;]+)\s*:\s*([^:;]+)/g;function a8(e,t,r){var n=e.getAttribute("style");if(n){kz.lastIndex=0;for(var i;(i=kz.exec(n))!=null;){var a=i[1],o=ce(P0,a)?P0[a]:null;o&&(t[o]=i[2]);var s=ce(k0,a)?k0[a]:null;s&&(r[s]=i[2])}}}function sCe(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=ve(),n=ve(),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,yr(n),{labelFetcher:d,labelDataIndex:f,defaultText:r},h);var p=t.getTextContent();if(p&&(s8(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 Oz(e,t,r,n,i,a){e.data?e.data.setItemGraphicEl(a,t):Ie(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:r,region:n&&n.option||{}}}function Nz(e,t,r,n,i){e.data||jf({el:t,componentModel:i,itemName:r,itemTooltipOption:n.get("tooltip")})}function zz(e,t,r,n,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var a=n.getModel("emphasis"),o=a.get("focus");return Ut(t,o,a.get("blurScope"),a.get("disabled")),e.isGeo&&Ame(t,i,r),o}function Bz(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(),D(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 PCe=ICe;function kCe(e,t){var r={};return D(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=hr(_,{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 OCe(e,t){D(t.get("geoCoord"),function(r,n){e.addGeoCoord(n,r)})}var NCe=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 Gz(l+s,l,Y({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=Hz,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)}}),D(a,function(o,s){var l=Z(o,function(c){return c.get("nameMap")}),u=new Gz(s,s,Y({nameMap:W2(l)},i(o[0])));u.zoomLimit=Cr.apply(null,Z(o,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=Hz,u.resize(o[0],r),D(o,function(c){c.coordinateSystem=u,OCe(u,c)})}),n},e.prototype.getFilledRegions=function(t,r,n,i){for(var a=(t||[]).slice(),o=ve(),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 UCe(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){qCe(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=XCe(e,i,e.parentNode.hierNode.defaultAncestor||n[0],t)}function jCe(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function Uz(e){return arguments.length?e:QCe}function fh(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function YCe(e,t){return hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function qCe(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 XCe(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=A_(s),a=M_(a),s&&a;){i=A_(i),o=M_(o),i.hierNode.ancestor=e;var d=s.hierNode.prelim+f-a.hierNode.prelim-u+n(s,a);d>0&&(KCe(ZCe(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&&!A_(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=f-l),a&&!M_(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,r=e)}return r}function A_(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function M_(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function ZCe(e,t,r){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:r}function KCe(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 QCe(e,t){return e.parentNode===t.parentNode?1:2}var JCe=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),eTe=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 JCe},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 I=s.get(["emphasis","focus"]),P=I==="relative"?Ky(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;P&&(Ie(r).focus=P),rTe(i,o,c,r,p,h,v,n),r.__edge&&(r.onHoverStateChange=function(k){if(k!=="blur"){var R=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===xv||s0(r.__edge,k)}})}function rTe(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 bx({shape:oA(c,f,d,i,i)})),it(v,{shape:oA(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 g8(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function lP(e,t){var r=g8(e);return ze(r,t)>=0}function Wx(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 hTe=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=sP.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 xr("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=Wx(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 pTe=hTe;function vTe(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 gTe(e,t){e.eachSeriesByType("tree",function(r){mTe(r,t)})}function mTe(e,t){var r=YCe(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=Uz(function(x,S){return(x.parentNode===S.parentNode?1:2)/x.depth})):(i=r.width,a=r.height,o=Uz());var s=e.getData().tree.root,l=s.children[0];if(l){WCe(s),vTe(l,UCe,o),s.hierNode.modifier=-l.hierNode.prelim,Vd(l,jCe);var u=l,c=l,f=l;Vd(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),Vd(l,function(x){g=(x.getLayout().x+h)*p,m=(x.depth-1)*v;var S=fh(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),Vd(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),Vd(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 yTe(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");Y(s,o)})})}function xTe(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=aP(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function STe(e){e.registerChartView(nTe),e.registerSeriesModel(pTe),e.registerLayout(gTe),e.registerVisual(yTe),xTe(e)}var Zz=["treemapZoomToNode","treemapRender","treemapMove"];function bTe(e){for(var t=0;t1;)a=a.parentNode;var o=ET(e.ecModel,a.name||a.dataIndex+"",n);i.setVisual("decal",o)})}var _Te=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};y8(i);var a=r.levels||[],o=this.designatedVisualItemStyle={},s=new wt({itemStyle:o},this,n);a=r.levels=wTe(a,n);var l=Z(a||[],function(f){return new wt(f,s,n)},this),u=sP.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 xr("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=Wx(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},Y(this.layoutInfo,r)},t.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=ve(),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(){m8(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 y8(e){var t=0;D(e.children,function(n){y8(n);var i=n.value;q(i)&&(i=i[0]),t+=i});var r=e.value;q(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),q(e.value)?e.value[0]=r:e.value=r}function wTe(e,t){var r=pt(t.get("color")),n=pt(t.get(["aria","decal","decals"]));if(r){e=e||[];var i,a;D(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 CTe=_Te;var TTe=8,Kz=8,I_=5,ATe=function(){function e(t){this.group=new Ae,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),Dx(o,f.pos,f.box)}},e.prototype._prepare=function(t,r,n){for(var i=t;i;i=i.parentNode){var a=dr(i.getModel().get("name"),""),o=n.getTextRect(a),s=Math.max(o.width+TTe*2,r.emptyItemWidth);r.totalWidth+=s+Kz,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=Oye(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 Pn({shape:{points:MTe(l,0,y,c,v===h.length-1,v===0)},style:xe(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new rt({style:_t(a,{text:x})}),textConfig:{position:"inside"},z2:Wf*1e4,onclick:Pe(s,m)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=_t(o,{text:x}),S.ensureState("emphasis").style=p,Ut(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),ITe(S,t,m),l+=y+Kz}},e.prototype.remove=function(){this.group.removeAll()},e}();function MTe(e,t,r,n,i,a){var o=[[i?e:e-I_,t],[e+r,t],[e+r,t+n],[i?e:e-I_,t+n]];return!a&&o.splice(2,0,[e+r+I_,t+n/2]),!i&&o.push([e,t+n/2]),o}function ITe(e,t,r){Ie(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&&Wx(r,t)}}const PTe=ATe;var kTe=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;iJz||Math.abs(r.dy)>Jz)){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=_i();Na(u,u,[-n,-i]),X2(u,u,[r.scale,r.scale]),Na(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&&h0(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 PTe(this.group))).render(r,n,i.node,function(o){a._state!=="animating"&&(lP(r.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Gd(),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 Gd(){return{nodeGroup:[],background:[],content:[]}}function NTe(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=j("nodeGroup",sA);if(!M)return;if(l.add(M),M.x=c.x||0,M.y=c.y||0,M.markRedraw(),D0(M).nodeWidth=h,D0(M).nodeHeight=p,c.isAboveViewRoot)return M;var I=j("background",Qz,u,LTe);I&&V(M,I,_&&c.upperLabelHeight);var P=d.getModel("emphasis"),k=P.get("focus"),R=P.get("blurScope"),z=P.get("disabled"),$=k==="ancestor"?o.getAncestorsIndices():k==="descendant"?o.getDescendantIndices():k;if(_)Rp(M)&&Ul(M,!1),I&&(Ul(I,!z),f.setItemGraphicEl(o.dataIndex,I),AT(I,$,R));else{var N=j("content",Qz,u,ETe);N&&L(M,N),I.disableMorphing=!0,I&&Rp(I)&&Ul(I,!1),Ul(M,!z),f.setItemGraphicEl(o.dataIndex,M),AT(M,$,R)}return M;function V(ee,te,ie){var re=Ie(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,fe=rB(b);fe.fill=J;var de=Tl(w);de.fill=w.get("borderColor");var ke=Tl(C);ke.fill=C.get("borderColor");var We=Tl(A);if(We.fill=A.get("borderColor"),ie){var Ge=h-2*v;U(te,J,Q.opacity,{x:v,y:0,width:Ge,height:S})}else te.removeTextContent();te.setStyle(fe),te.ensureState("emphasis").style=de,te.ensureState("blur").style=ke,te.ensureState("select").style=We,Su(te)}ee.add(te)}function L(ee,te){var ie=Ie(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"),fe=J.fill,de=rB(b);de.fill=fe,de.decal=J.decal;var ke=Tl(w),We=Tl(C),Ge=Tl(A);U(te,fe,J.opacity,null),te.setStyle(de),te.ensureState("emphasis").style=ke,te.ensureState("blur").style=We,te.ensureState("select").style=Ge,Su(te)}ee.add(te)}function G(ee){!ee.invisible&&a.push(ee)}function U(ee,te,ie,re){var Q=d.getModel(re?tB:eB),J=dr(d.get("name"),null),fe=Q.getShallow("show");Br(ee,yr(d,re?tB:eB),{defaultText:fe?J:null,inheritColor:te,defaultOpacity:ie,labelFetcher:e,labelDataIndex:o.dataIndex});var de=ee.getTextContent();if(de){var ke=de.style,We=j2(ke.padding||0);re&&(ee.setTextConfig({layoutRect:re}),de.disableLabelLayout=!0),de.beforeUpdate=function(){var at=Math.max((re?re.width:ee.shape.width)-We[1]-We[3],0),ot=Math.max((re?re.height:ee.shape.height)-We[0]-We[2],0);(ke.width!==at||ke.height!==ot)&&de.setStyle({width:at,height:ot})},ke.truncateMinChar=2,ke.lineOverflow="truncate",B(ke,re,c);var Ge=de.getState("emphasis");B(Ge?Ge.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 j(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 wi&&(Q.z2=zTe(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=Y({},te.shape)}function W(ee,te){var ie=ee[m]={},re=o.parentNode,Q=te instanceof Ae;if(re&&(!n||n.direction==="drillDown")){var J=0,fe=0,de=i.background[re.getRawIndex()];!n&&de&&de.oldShape&&(J=de.oldShape.width,fe=de.oldShape.height),Q?(ie.oldX=0,ie.oldY=fe):ie.oldShape={x:J,y:fe,width:0,height:0}}ie.fadein=!Q}}function zTe(e,t){return e*RTe+t}const BTe=OTe;var jp=D,FTe=Se,R0=-1,uP=function(){function e(t){var r=t.mappingMethod,n=t.type,i=this.option=we(t);this.type=n,this.mappingMethod=r,this._normalizeData=GTe[r];var a=e.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[r],r==="piecewise"?(P_(i),$Te(i)):r==="category"?i.categories?VTe(i):P_(i,!0):(ln(r!=="linear"||i.dataExtent),P_(i))}return e.prototype.mapValueToVisual=function(t){var r=this._normalizeData(t);return this._normalizedToVisual(r,t)},e.prototype.getNormalizer=function(){return ue(this._normalizeData,this)},e.listVisualTypes=function(){return He(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,r,n){Se(t)?D(t,r,n):r.call(n,t)},e.mapVisual=function(t,r,n){var i,a=q(t)?[]:Se(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&&jp(e.visualHandlers,function(i,a){t.hasOwnProperty(a)&&(r[a]=t[a],n=!0)}),n?r:null},e.prepareVisualTypes=function(t){if(q(t))t=t.slice();else if(FTe(t)){var r=[];jp(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 P_(e,t){var r=e.visual,n=[];Se(r)?jp(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]),x8(e,n)}function nm(e){return{applyVisual:function(t,r,n){var i=this.mapValueToVisual(t);n("color",e(r("color"),i))},_normalizedToVisual:lA([0,1])}}function nB(e){var t=this.option.visual;return t[Math.round(ct(e,[0,1],[0,t.length-1],!0))]||{}}function Hd(e){return function(t,r,n){n(e,this.mapValueToVisual(t))}}function dh(e){var t=this.option.visual;return t[this.option.loop&&e!==R0?e%t.length:e]}function Al(){return this.option.visual[0]}function lA(e){return{linear:function(t){return ct(t,e,this.option.visual,!0)},category:dh,piecewise:function(t,r){var n=uA.call(this,r);return n==null&&(n=ct(t,e,this.option.visual,!0)),n},fixed:Al}}function uA(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var n=uP.findPieceIndex(e,r),i=r[n];if(i&&i.visual)return i.visual[this.type]}}function x8(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=Z(t,function(r){var n=Vn(r);return n||[0,0,0,1]})),t}var GTe={linear:function(e){return ct(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,r=uP.findPieceIndex(e,t,!0);if(r!=null)return ct(r,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??R0},fixed:rr};function im(e,t,r){return e?t<=r:t=r.length||v===r[v.depth]){var m=qTe(i,l,v,g,p,n);b8(v,m,r,n)}})}}}function UTe(e,t,r){var n=Y({},t),i=r.designatedVisualItemStyle;return D(["color","colorAlpha","colorSaturation"],function(a){i[a]=t[a];var o=e.get(a);i[a]=null,o!=null&&(n[a]=o)}),n}function iB(e){var t=k_(e,"color");if(t){var r=k_(e,"colorAlpha"),n=k_(e,"colorSaturation");return n&&(t=Nh(t,null,null,n)),r&&(t=e0(t,r)),t}}function jTe(e,t){return t!=null?Nh(t,null,null,e):null}function k_(e,t){var r=e[t];if(r!=null&&r!=="none")return r}function YTe(e,t,r,n,i,a){if(!(!a||!a.length)){var o=D_(t,"color")||i.color!=null&&i.color!=="none"&&(D_(t,"colorAlpha")||D_(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 S8(d).drColorMappingBy=c,d}}}function D_(e,t){var r=e.get(t);return q(r)&&r.length?{name:t,range:r}:null}function qTe(e,t,r,n,i,a){var o=Y({},t);if(i){var s=i.type,l=s==="color"&&S8(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 Yp=Math.max,L0=Math.min,aB=Cr,cP=D,_8=["itemStyle","borderWidth"],XTe=["itemStyle","gapWidth"],ZTe=["upperLabel","show"],KTe=["upperLabel","height"];const QTe={seriesType:"treemap",reset:function(e,t,r,n){var i=r.getWidth(),a=r.getHeight(),o=e.option,s=hr(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],u=ne(aB(s.width,l[0]),i),c=ne(aB(s.height,l[1]),a),f=n&&n.type,d=["treemapZoomToNode","treemapRootToNode"],h=Up(n,d,e),p=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,v=e.getViewRoot(),g=g8(v);if(f!=="treemapMove"){var m=f==="treemapZoomToNode"?iAe(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),w8(v,x,!1,0),S=v.getLayout(),cP(g,function(b,w){var C=(g[w+1]||v).getValue();b.setLayout(Y({dataExtent:[C,C],borderWidth:0,upperHeight:0},S))})}var _=e.getData().tree.root;_.setLayout(aAe(s,p,h),!0),e.setLayoutInfo(s),C8(_,new Ne(-s.x,-s.y,i,a),g,v,0)}};function w8(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(_8),u=s.get(XTe)/2,c=T8(s),f=Math.max(l,c),d=l-u,h=f-u;e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),i=Yp(i-2*d,0),a=Yp(a-d-h,0);var p=i*a,v=JTe(e,s,p,t,r,n);if(v.length){var g={x:d,y:h,width:i,height:a},m=L0(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=nAe(x,m,t.squareRatio);w<=y?(S++,y=w):(x.area-=x.pop().getLayout().area,oB(x,m,g,u,!1),m=L0(g.width,g.height),x.length=x.area=0,y=1/0)}if(x.length&&oB(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 nAe(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?Yp(u*n/l,l/(u*i)):1/0}function oB(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;fyE&&(u=yE),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}(Ae);const pP=CAe;var TAe=function(){function e(t){this.group=new Ae,this._LineCtor=t||pP}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=dB(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=dB(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!AAe(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0}function dB(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:yr(t)}}function hB(e){return isNaN(e[0])||isNaN(e[1])}function N_(e){return e&&!hB(e[0])&&!hB(e[1])}const vP=TAe;var z_=[],B_=[],F_=[],lc=_r,$_=eu,pB=Math.abs;function vB(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){z_[0]=lc(n[0],i[0],a[0],c),z_[1]=lc(n[1],i[1],a[1],c);var f=pB($_(z_,t)-l);f=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function V_(e,t){var r=[],n=Ap,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=[ro(u[0]),ro(u[1])],u[2]&&u.__original.push(ro(u[2])));var d=u.__original;if(u[2]!=null){if(en(i[0],d[0]),en(i[1],d[2]),en(i[2],d[1]),c&&c!=="none"){var h=ph(s.node1),p=vB(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=ph(s.node2),p=vB(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]}en(u[0],i[0]),en(u[1],i[2]),en(u[2],i[1])}else{if(en(a[0],d[0]),en(a[1],d[1]),Hl(o,a[1],a[0]),Vf(o,o),c&&c!=="none"){var h=ph(s.node1);QC(a[0],a[0],o,h*t)}if(f&&f!=="none"){var h=ph(s.node2);QC(a[1],a[1],o,-h*t)}en(u[0],a[0]),en(u[1],a[1])}})}function gB(e){return e.type==="view"}var MAe=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 kv,a=new vP,o=this.group;this._controller=new Ev(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(gB(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):it(u,c,r)}V_(r.getGraph(),hh(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),hP(r,"symbolSize",x,[A.offsetX,A.offsetY]),a.updateLayout(r);break;case"none":default:f.setItemLayout(S,[_.x,_.y]),dP(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"&&(Ie(_).focus=x.getAdjacentDataIndices())}}),f.graph.eachEdge(function(x){var S=x.getGraphicEl(),_=x.getModel().get(["emphasis","focus"]);S&&_==="adjacency"&&(Ie(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){P8(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)&&!Gx(u,i,r)}),!gB(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){rP(s,u.dx,u.dy),i.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){nP(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(),V_(r.getGraph(),hh(r)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),i=hh(r);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},t.prototype.updateLayout=function(r){V_(r.getGraph(),hh(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 IAe=MAe;function uc(e){return"_EC_"+e}var PAe=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[uc(t)]){var i=new Ml(t,r);return i.hostGraph=this,this.nodes.push(i),n[uc(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[uc(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 Ml||(t=i[uc(t)]),r instanceof Ml||(r=i[uc(r)]),!(!t||!r)){var o=t.id+"-"+r.id,s=new D8(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 Ml&&(t=t.id),r instanceof Ml&&(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 Ml||(r=this._nodesMap[uc(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)}}}lr(Ml,R8("hostGraph","data"));lr(D8,R8("hostGraph","edgeData"));const kAe=PAe;function L8(e,t,r,n,i){for(var a=new kAe(n),o=0;o "+d)),u++)}var h=r.get("coordinateSystem"),p;if(h==="cartesian2d"||h==="polar")p=Ao(e,r);else{var v=Cv.get(h),g=v?v.dimensions||[]:[];ze(g,"value")<0&&g.concat(["value"]);var m=Av(e,{coordDimensions:g,encodeDefine:r.getEncode()}).dimensions;p=new sn(m,r),p.initData(e)}var y=new sn(["value"],r);return y.initData(l,s),i&&i(p,y),p8({mainData:p,struct:a,structAttr:"graph",datas:{node:p,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var DAe=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 Lv(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),mu(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){dAe(this);var s=L8(a,i,this,!0,l);return D(s.edges,function(u){hAe(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),xr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=tU({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:Y({value:0},i)}),n=new sn(["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 RAe=DAe;var LAe={type:"graphRoam",event:"graphRoam",update:"none"};function EAe(e){e.registerChartView(IAe),e.registerSeriesModel(RAe),e.registerProcessor(sAe),e.registerVisual(lAe),e.registerVisual(uAe),e.registerLayout(pAe),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,gAe),e.registerLayout(yAe),e.registerCoordinateSystem("graphView",{dimensions:Ov.dimensions,create:SAe}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},rr),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},rr),e.registerAction(LAe,function(t,r,n){r.eachComponent({mainType:"series",query:t},function(i){var a=i.coordinateSystem,o=aP(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var OAe=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),NAe=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 OAe},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}($e);const zAe=NAe;function BAe(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 om(e,t){var r=e==null?"":e+"";return t&&(oe(t)?r=t.replace("{value}",r):me(t)&&(r=t(e))),r}var FAe=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=BAe(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?I0:In,p=f.get("show"),v=f.getModel("lineStyle"),g=v.get("width"),m=[u,c];f6(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&&(j+=Math.PI)):B==="tangential"?j=-C-Math.PI/2:nt(B)&&(j=B*Math.PI/180),j===0?f.add(new rt({style:_t(x,{text:V,x:G,y:U,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:k<-.4?"left":k>.4?"right":"center"},{inheritColor:L}),silent:!0})):f.add(new rt({style:_t(x,{text:V,x:G,y:U,verticalAlign:"middle",align:"center"},{inheritColor:L}),silent:!0,originX:G,originY:U,rotation:j}))}if(y.get("show")&&z!==S){var $=y.get("distance");$=$?$+c:c;for(var X=0;X<=_;X++){k=Math.cos(C),R=Math.sin(C);var W=new Tr({shape:{x1:k*(p-$)+d,y1:R*(p-$)+h,x2:k*(p-w-$)+d,y2:R*(p-w-$)+h},silent:!0,style:I});I.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 I=y.getItemModel(T),P=I.getModel("pointer"),k=ne(P.get("width"),o.r),R=ne(P.get("length"),o.r),z=r.get(["pointer","icon"]),$=P.get("offsetCenter"),N=ne($[0],o.r),V=ne($[1],o.r),L=P.get("keepAspect"),G;return z?G=sr(z,N-k/2,V-R,k,R,null,L):G=new zAe({shape:{angle:-Math.PI/2,width:k,r:R,x:N,y:V}}),G.rotation=-(M+Math.PI/2),G.x=o.cx,G.y=o.cy,G}function A(T,M){var I=g.get("roundCap"),P=I?I0:In,k=g.get("overlap"),R=k?g.get("width"):c/y.count(),z=k?o.r-R:o.r-(T+1)*R,$=k?o.r:o.r-T*R,N=new P({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:z,r:$}});return k&&(N.z2=_-y.get(x,T)%_),N}(m||v)&&(y.diff(d).add(function(T){var M=y.get(x,T);if(v){var I=C(T,s);Lt(I,{rotation:-((isNaN(+M)?w[0]:ct(M,b,w,!0))+Math.PI/2)},r),f.add(I),y.setItemGraphicEl(T,I)}if(m){var P=A(T,s),k=g.get("clip");Lt(P,{shape:{endAngle:ct(M,b,w,k)}},r),f.add(P),wT(r.seriesIndex,y.dataType,T,P),p[T]=P}}).update(function(T,M){var I=y.get(x,T);if(v){var P=d.getItemGraphicEl(M),k=P?P.rotation:s,R=C(T,k);R.rotation=k,it(R,{rotation:-((isNaN(+I)?w[0]:ct(I,b,w,!0))+Math.PI/2)},r),f.add(R),y.setItemGraphicEl(T,R)}if(m){var z=h[M],$=z?z.shape.endAngle:s,N=A(T,$),V=g.get("clip");it(N,{shape:{endAngle:ct(I,b,w,V)}},r),f.add(N),wT(r.seriesIndex,y.dataType,T,N),p[T]=N}}).execute(),y.each(function(T){var M=y.getItemModel(T),I=M.getModel("emphasis"),P=I.get("focus"),k=I.get("blurScope"),R=I.get("disabled");if(v){var z=y.getItemGraphicEl(T),$=y.getItemVisual(T,"style"),N=$.fill;if(z instanceof Fr){var V=z.style;z.useStyle(Y({image:V.image,x:V.x,y:V.y,width:V.width,height:V.height},$))}else z.useStyle($),z.type!=="pointer"&&z.setColor(N);z.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),z.style.fill==="auto"&&z.setStyle("fill",a(ct(y.get(x,T),b,[0,1],!0))),z.z2EmphasisLift=0,zr(z,M),Ut(z,P,k,R)}if(m){var L=p[T];L.useStyle(y.getItemVisual(T,"style")),L.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),L.z2EmphasisLift=0,zr(L,M),Ut(L,P,k,R)}}),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=sr(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 Ae,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 Ae,_=a(ct(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 I=M.get("offsetCenter"),P=o.cx+ne(I[0],o.r),k=o.cy+ne(I[1],o.r),R=ne(M.get("width"),o.r),z=ne(M.get("height"),o.r),$=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:P,y:k,text:om(x,N),width:isNaN(R)?null:R,height:isNaN(z)?null:z,align:"center",verticalAlign:"middle"},{inheritColor:$})}),nW(T,{normal:M},x,function(L){return om(L,N)}),v&&iW(T,m,l,r,{getFormattedLabel:function(L,G,U,B,j,X){return om(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 $Ae=FAe;var VAe=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 rd(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 GAe=VAe;function HAe(e){e.registerChartView($Ae),e.registerSeriesModel(GAe)}var WAe=["itemStyle","opacity"],UAe=function(e){H(t,e);function t(r,n){var i=e.call(this)||this,a=i,o=new kn,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(WAe);c=c??1,i||Zi(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)):it(a,{style:{opacity:c},shape:{points:l.points}},o,n),zr(a,s),this._updateLabel(r,n),Ut(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,yr(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},it(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),YI(i,qI(l),{stroke:d})},t}(Pn),jAe=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 UAe(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);Lp(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 YAe=jAe;var qAe=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 Lv(ue(this.getData,this),ue(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.getInitialData=function(r,n){return rd(this,{coordDimensions:["value"],encodeDefaulter:Pe(_I,this)})},t.prototype._defaultLabelLine=function(r){mu(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 XAe=qAe;function ZAe(e,t){return hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function KAe(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();ogMe)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||!H_(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 H_(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}const xMe=mMe;var SMe=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){D(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){r.hasOwnProperty(n)&&(this.option[n]=r[n])},this)},t.prototype._initDimensions=function(){var r=this.dimensions=[],n=this.parallelAxisIndex=[],i=dt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);D(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 bMe=SMe;var _Me=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}(Qi);const wMe=_Me;function zu(e,t,r,n,i,a){e=e||0;var o=r[1]-r[0];if(i!=null&&(i=cc(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=cc(s,[0,o]),i=a=cc(s,[i,a]),n=0}t[0]=cc(t[0],r),t[1]=cc(t[1],r);var l=W_(t,n);t[n]+=e;var u=i||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=cc(t[n],c);var f;return f=W_(t,n),i!=null&&(f.sign!==l.sign||f.spana&&(t[1-n]=t[n]+f.sign*a),t}function W_(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 cc(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var U_=D,O8=Math.min,N8=Math.max,xB=Math.floor,CMe=Math.ceil,SB=Xt,TMe=Math.PI,AMe=function(){function e(t,r,n){this.type="parallel",this._axesMap=ve(),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;U_(i,function(o,s){var l=a[s],u=r.getComponent("parallelAxis",l),c=this._axesMap.set(o,new wMe(o,Fx(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();U_(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),bf(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,r){this._rect=hr(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=sm(t.get("axisExpandWidth"),l),f=sm(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=sm(h[1]-h[0],l),h[1]=h[0]+p;else{p=sm(c*(f-1),l);var v=t.get("axisExpandCenter")||xB(u/2);h=[c*v-p/2],h[1]=h[0]+p}var g=(s-p)/(u-f);g<3&&(g=0);var m=[xB(SB(h[0]/c,1))+1,CMe(SB(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])}),U_(n,function(o,s){var l=(i.axisExpandable?IMe:MMe)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:TMe/2,vertical:0},f=[u[a].x+t.x,u[a].y+t.y],d=c[a],h=_i();Du(h,h,d),Na(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=[];D(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=[N8(0,p-h/2)],i[1]=O8(o[1],i[0]+h),i[0]=i[1]-h}return{axisExpandWindow:i,behavior:u}},e}();function sm(e,t){return O8(N8(e,t[0]),t[1])}function MMe(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function IMe(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--)gi(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;aOMe}function H8(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function W8(e,t,r,n){var i=new Ae;return i.add(new Qe({name:"main",style:xP(r),silent:!0,draggable:!0,cursor:"move",drift:Pe(CB,e,t,i,["n","s","w","e"]),ondragend:Pe(wu,t,{isEnd:!0})})),D(n,function(a){i.add(new Qe({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Pe(CB,e,t,i,a),ondragend:Pe(wu,t,{isEnd:!0})}))}),i}function U8(e,t,r,n){var i=n.brushStyle.lineWidth||0,a=Cf(i,NMe),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;Ua(e,t,"main",o,s,p,v),n.transformable&&(Ua(e,t,"w",l,u,a,m),Ua(e,t,"e",d,u,a,m),Ua(e,t,"n",l,u,g,a),Ua(e,t,"s",l,h,g,a),Ua(e,t,"nw",l,u,a,a),Ua(e,t,"ne",d,u,a,a),Ua(e,t,"sw",l,h,a,a),Ua(e,t,"se",d,h,a,a))}function pA(e,t){var r=t.__brushOption,n=r.transformable,i=t.childAt(0);i.useStyle(xP(r)),i.attr({silent:!n,cursor:n?"move":"default"}),D([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?vA(e,a[0]):HMe(e,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?BMe[s]+"-resize":null})})}function Ua(e,t,r,n,i,a,o){var s=t.childOfName(r);s&&s.setShape(UMe(SP(e,t,[[n,i],[n+a,i+o]])))}function xP(e){return xe({strokeNoScale:!0},e.brushStyle)}function j8(e,t,r,n){var i=[Xp(e,r),Xp(t,n)],a=[Cf(e,r),Cf(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function GMe(e){return au(e.group)}function vA(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=Cx(r[t],GMe(e));return n[i]}function HMe(e,t){var r=[vA(e,t[0]),vA(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function CB(e,t,r,n,i,a){var o=r.__brushOption,s=e.toRectRange(o.range),l=Y8(t,i,a);D(n,function(u){var c=zMe[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(j8(s[0][0],s[1][0],s[0][1],s[1][1])),gP(t,r),wu(t,{isEnd:!1})}function WMe(e,t,r,n){var i=t.__brushOption.range,a=Y8(e,r,n);D(i,function(o){o[0]+=a[0],o[1]+=a[1]}),gP(e,t),wu(e,{isEnd:!1})}function Y8(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 SP(e,t,r){var n=G8(e,t);return n&&n!==_u?n.clipPath(r,e._transform):we(r)}function UMe(e){var t=Xp(e[0][0],e[1][0]),r=Xp(e[0][1],e[1][1]),n=Cf(e[0][0],e[1][0]),i=Cf(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:i-r}}function jMe(e,t,r){if(!(!e._brushType||qMe(e,t.offsetX,t.offsetY))){var n=e._zr,i=e._covers,a=yP(e,t,r);if(!e._dragging)for(var o=0;on.getWidth()||r<0||r>n.getHeight()}var jx={lineX:MB(0),lineY:MB(1),rect:{createCover:function(e,t){function r(n){return n}return W8({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=H8(e);return j8(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){U8(e,t,r,n)},updateCommon:pA,contain:mA},polygon:{createCover:function(e,t){var r=new Ae;return r.add(new kn({name:"main",style:xP(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Pn({name:"main",draggable:!0,drift:Pe(WMe,e,t),ondragend:Pe(wu,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:SP(e,t,r)})},updateCommon:pA,contain:mA}};function MB(e){return{createCover:function(t,r){return W8({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=H8(t),n=Xp(r[0][e],r[1][e]),i=Cf(r[0][e],r[1][e]);return[n,i]},updateCoverShape:function(t,r,n,i){var a,o=G8(t,r);if(o!==_u&&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(),U8(t,r,l,i)},updateCommon:pA,contain:mA}}const bP=$Me;function X8(e){return e=_P(e),function(t){return J6(t,e)}}function Z8(e,t){return e=_P(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 K8(e,t,r){var n=_P(e);return function(i,a){return n.contain(a[0],a[1])&&!Gx(i,t,r)}}function _P(e){return Ne.create(e)}var XMe=["axisLine","axisTickLabel","axisName"],ZMe=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 bP(n.getZr())).on("brush",ue(this._onBrush,this))},t.prototype.render=function(r,n,i,a){if(!KMe(r,n,a)){this.axisModel=r,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ae,this.group.add(this._axisGroup),!!r.get("show")){var s=JMe(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),c=u.width,f=r.axis.dim,d=l.getAxisLayout(f),h=Y({strokeContainThreshold:c},d),p=new So(r,h);D(XMe,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(h,u,r,s,c,i),bv(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:X8(f),isTargetByCursor:K8(f,s,a),getLinearBrushOtherExtent:Z8(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(QMe(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}(jt);function KMe(e,t,r){return r&&r.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function QMe(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 JMe(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}const e2e=ZMe;var t2e={type:"axisAreaSelect",event:"axisAreaSelected"};function r2e(e){e.registerAction(t2e,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 n2e={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Q8(e){e.registerComponentView(xMe),e.registerComponentModel(bMe),e.registerCoordinateSystem("parallel",RMe),e.registerPreprocessor(hMe),e.registerComponentModel(bB),e.registerComponentView(e2e),wf(e,"parallel",bB,n2e),r2e(e)}function i2e(e){Fe(Q8),e.registerChartView(aMe),e.registerSeriesModel(uMe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,dMe)}var a2e=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}(),o2e=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new a2e},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(){mo(this)},t.prototype.downplay=function(){yo(this)},t}($e),s2e=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 o2e,g=Ie(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"),I=p.getLayout(),P,k,R,z,$,N,V,L;v.shape.extent=Math.max(1,I.dy),v.shape.orient=h,h==="vertical"?(P=(b!=null?b*u:S.x)+I.sy,k=(w!=null?w*c:S.y)+S.dy,R=(T!=null?T*u:C.x)+I.ty,z=M!=null?M*c:C.y,$=P,N=k*(1-x)+z*x,V=R,L=k*x+z*(1-x)):(P=(b!=null?b*u:S.x)+S.dx,k=(w!=null?w*c:S.y)+I.sy,R=T!=null?T*u:C.x,z=(M!=null?M*c:C.y)+I.ty,$=P*(1-x)+R*x,N=k,V=P*x+R*(1-x),L=z),v.setShape({x1:P,y1:k,x2:R,y2:z,cpx1:$,cpy1:N,cpx2:V,cpy2:L}),v.useStyle(y.getItemStyle()),IB(v.style,h,p);var G=""+m.get("value"),U=yr(m,"edgeLabel");Br(v,U,{labelFetcher:{getFormattedLabel:function(X,W,ee,te,ie,re){return r.getFormattedLabel(X,W,"edge",te,Pa(ie,U.normal&&U.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 IB(W,h,p),W}),s.add(v),d.setItemGraphicEl(p.dataIndex,v);var j=B.get("focus");Ut(v,j==="adjacency"?p.getAdjacentDataIndices():j==="trajectory"?p.getTrajectoryDataIndices():j,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,yr(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),Ie(S).dataType="node";var _=x.get("focus");Ut(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(l2e(s.getBoundingRect(),r,function(){s.removeClipPath()})),this._data=r.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(Tt);function IB(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 Sv(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:i,offset:1}]))}}function l2e(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 u2e=s2e;var c2e=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=L8(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 xr("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 xr("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 f2e=c2e;function d2e(e,t){e.eachSeriesByType("sankey",function(r){var n=r.get("nodeWidth"),i=r.get("nodeGap"),a=h2e(r,t);r.layoutInfo=a;var o=a.width,s=a.height,l=r.getGraph(),u=l.nodes,c=l.edges;v2e(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");p2e(u,c,n,i,o,s,d,h,p)})}function h2e(e,t){return hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function p2e(e,t,r,n,i,a,o,s,l){g2e(e,t,r,i,a,s,l),S2e(e,t,a,i,n,o,s),P2e(e,s)}function v2e(e){D(e,function(t){var r=bs(t.outEdges,E0),n=bs(t.inEdges,E0),i=t.getValue()||0,a=Math.max(r,n,i);t.setLayout({value:a},!0)})}function g2e(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"&&m2e(e,o,a,w);var C=a==="vertical"?(i-r)/w:(n-r)/w;x2e(e,C,a)}function J8(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function m2e(e,t,r,n){if(t==="right"){for(var i=[],a=e,o=0;a.length;){for(var s=0;s0;a--)l*=.99,w2e(s,l,o),j_(s,i,r,n,o),I2e(s,l,o),j_(s,i,r,n,o)}function b2e(e,t){var r=[],n=t==="vertical"?"y":"x",i=xT(e,function(a){return a.getLayout()[n]});return i.keys.sort(function(a,o){return a-o}),D(i.keys,function(a){r.push(i.buckets.get(a))}),r}function _2e(e,t,r,n,i,a){var o=1/0;D(e,function(s){var l=s.length,u=0;D(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 w2e(e,t,r){D(e.slice().reverse(),function(n){D(n,function(i){if(i.outEdges.length){var a=bs(i.outEdges,C2e,r)/bs(i.outEdges,E0);if(isNaN(a)){var o=i.outEdges.length;a=o?bs(i.outEdges,T2e,r)/o:0}if(r==="vertical"){var s=i.getLayout().x+(a-Os(i,r))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-Os(i,r))*t;i.setLayout({y:l},!0)}}})})}function C2e(e,t){return Os(e.node2,t)*e.getValue()}function T2e(e,t){return Os(e.node2,t)}function A2e(e,t){return Os(e.node1,t)*e.getValue()}function M2e(e,t){return Os(e.node1,t)}function Os(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function E0(e){return e.getValue()}function bs(e,t,r){for(var n=0,i=e.length,a=-1;++ao&&(o=l)}),D(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&&D(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function D2e(e){e.registerChartView(u2e),e.registerSeriesModel(f2e),e.registerLayout(d2e),e.registerVisual(k2e),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){n.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var e9=function(){function e(){}return e.prototype.getInitialData=function(t,r){var n,i=r.getComponent("xAxis",this.get("xAxisIndex")),a=r.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=a.get("type"),l;o==="category"?(t.layout="horizontal",n=i.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",n=a.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],d=u[1-c],h=[i,a],p=h[c].get("type"),v=h[1-c].get("type"),g=t.data;if(g&&l){var m=[];D(g,function(S,_){var b;q(S)?(b=S.slice(),S.unshift(_)):q(S.value)?(b=Y({},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:_0(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:_0(v),dimsDef:y.slice()}];return rd(this,{coordDimensions:x,dimensionsCount:y.length+1,encodeDefaulter:Pe(AW,x,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),t9=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);lr(t9,e9,!0);const R2e=t9;var L2e=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=PB(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?(Zi(f),r9(d,f,a,u)):f=PB(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),E2e=function(){function e(){}return e}(),O2e=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 E2e},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 H2e={type:"echarts:boxplot",transform:function(t){var r=t.upstream;if(r.sourceFormat!==Kr){var n="";st(n)}var i=G2e(r.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function W2e(e){e.registerSeriesModel(R2e),e.registerChartView(z2e),e.registerLayout(B2e),e.registerTransform(H2e)}var U2e=["color","borderColor"],j2e=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){Hs(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&&kB(u,f))return;var d=Y_(f,c,!0);Lt(d,{shape:{points:f.ends}},r,c),q_(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&&kB(u,h)){a.remove(d);return}d?(it(d,{shape:{points:h.ends}},r,c),Zi(d)):d=Y_(h),q_(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(),DB(r,this.group);var n=r.get("clip",!0)?Vx(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=Y_(s);q_(l,i,o,a),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(r,n){DB(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),Y2e=function(){function e(){}return e}(),q2e=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 Y2e},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}($e);function Y_(e,t,r){var n=e.ends;return new q2e({shape:{points:r?X2e(n,e):n},z2:100})}function kB(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(U2e);t.useStyle(a),t.style.fill=null,t.style.stroke=i}const K2e=j2e;var n9=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);lr(n9,e9,!0);const Q2e=n9;function J2e(e){!e||!q(e.series)||D(e.series,function(t){Se(t)&&t.type==="k"&&(t.type="candlestick")})}var eIe=["itemStyle","borderColor"],tIe=["itemStyle","borderColor0"],rIe=["itemStyle","borderColorDoji"],nIe=["itemStyle","color"],iIe=["itemStyle","color0"],aIe={seriesType:"candlestick",plan:Jf(),performRawSeries:!0,reset:function(e,t){function r(a,o){return o.get(a>0?nIe:iIe)}function n(a,o){return o.get(a===0?rIe:a>0?eIe:tIe)}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");Y(f,c)}}}}}};const oIe=aIe;var sIe={seriesType:"candlestick",plan:Jf(),reset:function(e){var t=e.coordinateSystem,r=e.getData(),n=lIe(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=$(C,x),M=$(A,x),I=$(b,x),P=$(w,x),k=[];N(k,M,0),N(k,T,1),k.push(L(P),L(M),L(I),L(T));var R=g.getItemModel(m),z=!!R.get(["itemStyle","borderColorDoji"]);g.setItemLayout(m,{sign:RB(y,m,S,_,c,z),initBaseline:S>_?M[a]:T[a],ends:k,brushRect:V(b,w,x)})}function $(G,U){var B=[];return B[i]=U,B[a]=G,isNaN(U)||isNaN(G)?[NaN,NaN]:t.dataToPoint(B)}function N(G,U,B){var j=U.slice(),X=U.slice();j[i]=Xm(j[i]+n/2,1,!1),X[i]=Xm(X[i]-n/2,1,!0),B?G.push(j,X):G.push(X,j)}function V(G,U,B){var j=$(G,B),X=$(U,B);return j[i]-=n/2,X[i]-=n/2,{x:j[0],y:j[1],width:n,height:X[1]-j[1]}}function L(G){return G[i]=Xm(G[i],1),G}}function p(v,g){for(var m=_a(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),I=w.get(f,b),P=w.get(d,b);if(isNaN(A)||isNaN(I)||isNaN(P)){m[y++]=NaN,y+=3;continue}m[y++]=RB(w,b,T,M,c,C),S[i]=A,S[a]=I,x=t.dataToPoint(S,null,_),m[y++]=x?x[0]:NaN,m[y++]=x?x[1]:NaN,S[a]=P,x=t.dataToPoint(S,null,_),m[y++]=x?x[1]:NaN}g.setLayout("largePoints",m)}}};function RB(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 lIe(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 uIe=sIe;function cIe(e){e.registerChartView(K2e),e.registerSeriesModel(Q2e),e.registerPreprocessor(J2e),e.registerVisual(oIe),e.registerLayout(uIe)}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 fIe=function(e){H(t,e);function t(r,n){var i=e.call(this)||this,a=new Pv(r,n),o=new Ae;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;me(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 Jo(r.__p1,r.__cp1)+Jo(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=_r,c=oT;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}(i9);const bIe=SIe;var _Ie=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),wIe=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 _Ie},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(d6(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 TIe=CIe;var AIe={seriesType:"lines",plan:Jf(),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)&&Vx(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=o9.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 TIe:new vP(o?a?bIe:a9:a?i9:pP),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 IIe=MIe;var PIe=typeof Uint32Array>"u"?Array:Uint32Array,kIe=typeof Float64Array>"u"?Array:Float64Array;function EB(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),W2([i,r[0],r[1]])}))}var DIe=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||[],EB(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(EB(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=Ky(this._flatCoords,n.flatCoords),this._flatCoordsOffset=Ky(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 RIe=DIe;function lm(e){return e instanceof Array||(e=[e,e]),e}var LIe={seriesType:"lines",reset:function(e){var t=lm(e.get("symbol")),r=lm(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=lm(s.getShallow("symbol",!0)),u=lm(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 EIe=LIe;function OIe(e){e.registerChartView(IIe),e.registerSeriesModel(RIe),e.registerLayout(o9),e.registerVisual(EIe)}var NIe=256,zIe=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Ps.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 I=o(x)?l:u;x>0&&(x=x*T+C),_[b++]=I[M],_[b++]=I[M+1],_[b++]=I[M+2],_[b++]=I[M+3]*x*256}else b+=4}return d.putImageData(S,0,0),f},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Ps.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 BIe=zIe;function FIe(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 OB(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var VIe=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()):OB(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&&(OB(o)?this.render(n,i,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,a,r.start,r.end,!0)))},t.prototype.eachRendered=function(r){Hs(this._progressiveEls||this.group,r)},t.prototype._renderOnCartesianAndCalendar=function(r,n,i,a,o){var s=r.coordinateSystem,l=Ou(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"]),_=yr(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]||Rd[1])continue;var z=s.dataToPoint([k,R]);I=new Qe({shape:{x:z[0]-u/2,y:z[1]-c/2,width:u,height:c},style:P})}else{if(isNaN(g.get(T[1],M)))continue;I=new Qe({z2:1,shape:s.dataToRect([g.get(T[0],M)]).contentShape,style:P})}if(g.hasItemOption){var $=g.getItemModel(M),N=$.getModel("emphasis");m=N.getModel("itemStyle").getItemStyle(),y=$.getModel(["blur","itemStyle"]).getItemStyle(),x=$.getModel(["select","itemStyle"]).getItemStyle(),S=$.get(["itemStyle","borderRadius"]),w=N.get("focus"),C=N.get("blurScope"),A=N.get("disabled"),_=yr($)}I.shape.r=S;var V=r.getRawValue(M),L="-";V&&V[2]!=null&&(L=V[2]+""),Br(I,_,{labelFetcher:r,labelDataIndex:M,defaultOpacity:P.opacity,defaultText:L}),I.ensureState("emphasis").style=m,I.ensureState("blur").style=y,I.ensureState("select").style=x,Ut(I,w,C,A),I.incremental=o,o&&(I.states.emphasis.hoverLayer=!0),v.add(I),g.setItemGraphicEl(M,I),this._progressiveEls&&this._progressiveEls.push(I)}},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 BIe;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"?$Ie(S,i.option.range):FIe(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 Fr({style:{width:g,height:m,x:d,y:h,image:u.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t}(Tt);const GIe=VIe;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){return Ao(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var r=Cv.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 WIe=HIe;function UIe(e){e.registerChartView(GIe),e.registerSeriesModel(WIe)}var jIe=["itemStyle","borderWidth"],NB=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],K_=new $a,YIe=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:NB[+c],categoryDim:NB[1-+c]};return o.diff(s).add(function(h){if(o.hasValue(h)){var p=BB(o,h),v=zB(o,h,p,d),g=FB(o,d,v);o.setItemGraphicEl(h,g),a.add(g),VB(g,d,v)}}).update(function(h,p){var v=s.getItemGraphicEl(p);if(!o.hasValue(h)){a.remove(v);return}var g=BB(o,h),m=zB(o,h,g,d),y=d9(o,m);v&&y!==v.__pictorialShapeStr&&(a.remove(v),o.setItemGraphicEl(h,null),v=null),v?ePe(v,d,m):v=FB(o,d,m,!0),o.setItemGraphicEl(h,v),v.__pictorialSymbolMeta=m,a.add(v),VB(v,d,m)}).remove(function(h){var p=s.getItemGraphicEl(h);p&&$B(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){$B(a,Ie(o).dataIndex,r,o)}):i.removeAll()},t.type="pictorialBar",t}(Tt);function zB(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};qIe(r,a,i,n,d),XIe(e,t,i,a,o,d.boundingLength,d.pxSign,c,n,d),ZIe(r,d.symbolScale,u,n,d);var h=d.symbolSize,p=Lu(r.get("symbolOffset"),h);return KIe(r,h,i,a,o,p,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,n,d),d}function qIe(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(q(o)){var f=[Q_(s,o[0])-l,Q_(s,o[1])-l];f[1]0?1:-1}function Q_(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function XIe(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;q(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 ZIe(e,t,r,n,i){var a=e.get(jIe)||0;a&&(K_.attr({scaleX:t[0],scaleY:t[1],rotation:r}),K_.updateTransform(),a/=K_.getLineScale(),a*=t[n.valueDim.index]),i.valueLineWidth=a||0}function KIe(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=KH(n),C=w?n:GB((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?GB((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 I=f.bundlePosition=[];I[d.index]=r[d.xy],I[h.index]=r[h.xy];var P=f.barRectShape=Y({},r);P[h.wh]=p*Math.max(Math.abs(r[h.wh]),Math.abs(M[h.index]+T)),P[d.wh]=r[d.wh];var k=f.clipShape={};k[d.xy]=-r[d.xy],k[d.wh]=c.ecSize[d.wh],k[h.xy]=0,k[h.wh]=r[h.wh]}function s9(e){var t=e.symbolPatternSize,r=sr(e.symbolType,-t/2,-t/2,t,t);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function l9(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(wP(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 u9(e,t,r,n){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?rf(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=s9(r),i.add(a),rf(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 c9(e,t,r){var n=Y({},t.barRectShape),i=e.__pictorialBarRect;i?rf(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 f9(e,t,r,n){if(r.symbolClip){var i=e.__pictorialClipPath,a=Y({},r.clipShape),o=t.valueDim,s=r.animationModel,l=r.dataIndex;if(i)it(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],wv[n?"updateProps":"initProps"](i,{shape:u},s,l)}}}function BB(e,t){var r=e.getItemModel(t);return r.getAnimationDelayParams=QIe,r.isAnimationEnabled=JIe,r}function QIe(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function JIe(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function FB(e,t,r,n){var i=new Ae,a=new Ae;return i.add(a),i.__pictorialBundle=a,a.x=r.bundlePosition[0],a.y=r.bundlePosition[1],r.symbolRepeat?l9(i,t,r):u9(i,t,r),c9(i,r,n),f9(i,t,r,n),i.__pictorialShapeStr=d9(e,r),i.__pictorialSymbolMeta=r,i}function ePe(e,t,r){var n=r.animationModel,i=r.dataIndex,a=e.__pictorialBundle;it(a,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,i),r.symbolRepeat?l9(e,t,r,!0):u9(e,t,r,!0),c9(e,r,!0),f9(e,t,r,!0)}function $B(e,t,r,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var a=[];wP(n,function(o){a.push(o)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),D(a,function(o){Ds(o,{scaleX:0,scaleY:0},r,t,function(){n.parent&&n.parent.remove(n)})}),e.setItemGraphicEl(t,null)}function d9(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function wP(e,t,r){D(e.__pictorialBundle.children(),function(n){n!==e.__pictorialBarRect&&t.call(r,n)})}function rf(e,t,r,n,i,a){t&&e.attr(t),n.symbolClip&&!i?r&&e.attr(r):r&&wv[i?"updateProps":"initProps"](e,r,n.animationModel,n.dataIndex,a)}function VB(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");wP(e,function(v){if(v instanceof Fr){var g=v.style;v.useStyle(Y({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,yr(i),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:_f(t.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:h}),Ut(e,c,f,a.get("disabled"))}function GB(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}const tPe=YIe;var rPe=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=Ws(M0.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}(M0);const nPe=rPe;function iPe(e){e.registerChartView(tPe),e.registerSeriesModel(nPe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Pe(YU,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,qU("pictorialBar"))}var aPe=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 xo(this._layersSeries||[],l,d,d),p=[];h.add(ue(v,this,"add")).update(ue(v,this,"update")).remove(ue(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 dPe(e){e.registerChartView(sPe),e.registerSeriesModel(uPe),e.registerLayout(cPe),e.registerProcessor(Rv("themeRiver"))}var hPe=2,pPe=4,vPe=function(e){H(t,e);function t(r,n,i,a){var o=e.call(this)||this;o.z2=hPe,o.textConfig={inside:!0},Ie(o).seriesIndex=n.seriesIndex;var s=new rt({z2:pPe,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;Ie(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),f=Y({},c);f.label=null;var d=n.getVisual("style");d.lineJoin="bevel";var h=n.getVisual("decal");h&&(d.decal=Sf(h,o));var p=Zl(l.getModel("itemStyle"),f,!0);Y(f,p),D(un,function(y){var x=s.ensureState(y),S=l.getModel([y,"itemStyle"]);x.style=S.getItemStyle();var _=Zl(S,f);_&&(x.shape=_)}),r?(s.setShape(f),s.shape.r=c.r0,Lt(s,{shape:{r:c.r}},i,n.dataIndex)):(it(s,{shape:f},i),Zi(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;Ut(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"):!I||I==="center"?(s===2*Math.PI&&o.r0===0?T=0:T=(o.r+o.r0)/2,I="center"):I==="left"?(T=o.r0+M,l>Math.PI/2&&(I="right")):I==="right"&&(T=o.r-M,l>Math.PI/2&&(I="left")),S.style.align=I,S.style.verticalAlign=g(y,"verticalAlign")||"middle",S.x=T*u+o.cx,S.y=T*c+o.cy;var P=g(y,"rotate"),k=0;P==="radial"?(k=$i(-l),k>Math.PI/2&&kMath.PI/2?k-=Math.PI:k<-Math.PI/2&&(k+=Math.PI)):nt(P)&&(k=P*Math.PI/180),S.rotation=$i(k)});function g(m,y){var x=m.get(y);return x??a.get(y)}d.dirtyStyle()},t}(In);const WB=vPe;var yA="sunburstRootToNode",UB="sunburstHighlight",gPe="sunburstUnhighlight";function mPe(e){e.registerAction({type:yA,update:"updateView"},function(t,r){r.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(i,a){var o=Up(t,[yA],i);if(o){var s=i.getViewRoot();s&&(t.direction=lP(s,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}}),e.registerAction({type:UB,update:"none"},function(t,r,n){t=Y({},t),r.eachComponent({mainType:"series",subType:"sunburst",query:t},i);function i(a){var o=Up(t,[UB],a);o&&(t.dataIndex=o.node.dataIndex)}n.dispatchAction(Y(t,{type:"highlight"}))}),e.registerAction({type:gPe,update:"updateView"},function(t,r,n){t=Y({},t),n.dispatchAction(Y(t,{type:"downplay"}))})}var yPe=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 xo(x,y,S,S).add(_).update(_).remove(Pe(_,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";h0(u,c)}}i=!0}})})},t.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:yA,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 xPe=yPe;var SPe=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};h9(i);var a=this._levelModels=Z(r.levels||[],function(l){return new wt(l,this,n)},this),o=sP.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=Wx(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(){m8(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 h9(e){var t=0;D(e.children,function(n){h9(n);var i=n.value;q(i)&&(i=i[0]),t+=i});var r=e.value;q(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),q(e.value)?e.value[0]=r:e.value=r}const bPe=SPe;var jB=Math.PI/180;function _Pe(e,t,r){t.eachSeriesByType(e,function(n){var i=n.get("center"),a=n.get("radius");q(a)||(a=[0,a]),q(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")*jB,p=n.get("minAngle")*jB,v=n.getData().tree.root,g=n.getViewRoot(),m=g.depth,y=n.get("sort");y!=null&&p9(g,y);var x=0;D(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,I=function(z,$){if(z){var N=$;if(z!==v){var V=z.getValue(),L=S===0&&T?_:V*_;L1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&oe(s)&&(s=uT(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");Y(u,l)})})}function TPe(e){e.registerChartView(xPe),e.registerSeriesModel(bPe),e.registerLayout(Pe(_Pe,"sunburst")),e.registerProcessor(Pe(Rv,"sunburst")),e.registerVisual(CPe),mPe(e)}var YB={color:"fill",borderColor:"stroke"},APe={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},ao=Je(),MPe=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 Ao(null,this)},t.prototype.getDataParams=function(r,n,i){var a=e.prototype.getDataParams.call(this,r,n);return i&&(a.info=ao(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 IPe=MPe;function PPe(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 kPe(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:ue(PPe,e)}}}function DPe(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 RPe(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:ue(DPe,e)}}}function LPe(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 EPe(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:ue(LPe,e)}}}function OPe(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 NPe(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:ue(OPe,e)}}}function zPe(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 v9(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||ce(e,"text")))}function g9(e,t,r){var n=e,i,a,o;if(t==="text")o=n;else{o={},ce(n,"text")&&(o.text=n.text),ce(n,"rich")&&(o.rich=n.rich),ce(n,"textFill")&&(o.fill=n.textFill),ce(n,"textStroke")&&(o.stroke=n.textStroke),ce(n,"fontFamily")&&(o.fontFamily=n.fontFamily),ce(n,"fontSize")&&(o.fontSize=n.fontSize),ce(n,"fontStyle")&&(o.fontStyle=n.fontStyle),ce(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=ce(n,"textPosition");r?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),ce(n,"textPosition")&&(i.position=n.textPosition),ce(n,"textOffset")&&(i.offset=n.textOffset),ce(n,"textRotation")&&(i.rotation=n.textRotation),ce(n,"textDistance")&&(i.distance=n.textDistance)}return qB(o,e),D(o.rich,function(l){qB(l,l)}),{textConfig:i,textContent:a}}function qB(e,t){t&&(t.font=t.textFont||t.font,ce(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),ce(t,"textAlign")&&(e.align=t.textAlign),ce(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),ce(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),ce(t,"textWidth")&&(e.width=t.textWidth),ce(t,"textHeight")&&(e.height=t.textHeight),ce(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),ce(t,"textPadding")&&(e.padding=t.textPadding),ce(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),ce(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),ce(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),ce(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),ce(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),ce(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),ce(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function XB(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";ZB(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,D(t.rich,function(s){ZB(s,s)}),n}function ZB(e,t){t&&(ce(t,"fill")&&(e.textFill=t.fill),ce(t,"stroke")&&(e.textStroke=t.fill),ce(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),ce(t,"font")&&(e.font=t.font),ce(t,"fontStyle")&&(e.fontStyle=t.fontStyle),ce(t,"fontWeight")&&(e.fontWeight=t.fontWeight),ce(t,"fontSize")&&(e.fontSize=t.fontSize),ce(t,"fontFamily")&&(e.fontFamily=t.fontFamily),ce(t,"align")&&(e.textAlign=t.align),ce(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),ce(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),ce(t,"width")&&(e.textWidth=t.width),ce(t,"height")&&(e.textHeight=t.height),ce(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),ce(t,"padding")&&(e.textPadding=t.padding),ce(t,"borderColor")&&(e.textBorderColor=t.borderColor),ce(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),ce(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),ce(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),ce(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),ce(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),ce(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),ce(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),ce(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),ce(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),ce(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var m9={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},KB=He(m9);Oa(za,function(e,t){return e[t]=1,e},{});za.join(", ");var O0=["","style","shape","extra"],Tf=Je();function CP(e,t,r,n,i){var a=e+"Animation",o=Uf(e,n,i)||{},s=Tf(t).userDuring;return o.duration>0&&(o.during=s?ue(GPe,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),Y(o,r[a]),o}function ty(e,t,r,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=Tf(e),u=t.style;l.userDuring=t.during;var c={},f={};if(WPe(e,t,f),JB("shape",t,f),JB("extra",t,f),!a&&s&&(HPe(e,t,c),QB("shape",e,t,c),QB("extra",e,t,c),UPe(e,t,u,c)),f.style=u,BPe(e,f,o),$Pe(e,t),s)if(a){var d={};D(O0,function(p){var v=p?t[p]:t;v&&v.enterFrom&&(p&&(d[p]=d[p]||{}),Y(p?d[p]:d,v.enterFrom))});var h=CP("enter",e,t,r,i);h.duration>0&&e.animateFrom(d,h)}else FPe(e,t,i||0,r,c);y9(e,t),u?e.dirty():e.markRedraw()}function y9(e,t){for(var r=Tf(e).leaveToProps,n=0;n0&&e.animateFrom(i,a)}}function $Pe(e,t){ce(t,"silent")&&(e.silent=t.silent),ce(t,"ignore")&&(e.ignore=t.ignore),e instanceof wi&&ce(t,"invisible")&&(e.invisible=t.invisible),e instanceof $e&&ce(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var aa={},VPe={setTransform:function(e,t){return aa.el[e]=t,this},getTransform:function(e){return aa.el[e]},setShape:function(e,t){var r=aa.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){var t=aa.el.shape;if(t)return t[e]},setStyle:function(e,t){var r=aa.el,n=r.style;return n&&(n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){var t=aa.el.style;if(t)return t[e]},setExtra:function(e,t){var r=aa.el.extra||(aa.el.extra={});return r[e]=t,this},getExtra:function(e){var t=aa.el.extra;if(t)return t[e]}};function GPe(){var e=this,t=e.el;if(t){var r=Tf(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}aa.el=t,n(VPe)}}function QB(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]={}),uu(l))Y(o,a);else for(var u=pt(l),c=0;c=0){!o&&(o=n[e]={});for(var h=He(a),c=0;c=0)){var d=e.getAnimationStyleProps(),h=d?d.style:null;if(h){!a&&(a=n.style={});for(var p=He(r),u=0;u=0?t.getStore().get($,R):void 0}var N=t.get(z.name,R),V=z&&z.ordinalMeta;return V?V.categories[N]:N}function b(k,R){R==null&&(R=u);var z=t.getItemVisual(R,"style"),$=z&&z.fill,N=z&&z.opacity,V=y(R,os).getItemStyle();$!=null&&(V.fill=$),N!=null&&(V.opacity=N);var L={inheritColor:oe($)?$:"#000"},G=x(R,os),U=_t(G,null,L,!1,!0);U.text=G.getShallow("show")?Ee(e.getFormattedLabel(R,os),_f(t,R)):null;var B=f0(G,L,!1);return A(k,V),V=XB(V,U,B),k&&C(V,k),V.legacy=!0,V}function w(k,R){R==null&&(R=u);var z=y(R,oo).getItemStyle(),$=x(R,oo),N=_t($,null,null,!0,!0);N.text=$.getShallow("show")?Pa(e.getFormattedLabel(R,oo),e.getFormattedLabel(R,os),_f(t,R)):null;var V=f0($,null,!0);return A(k,z),z=XB(z,N,V),k&&C(z,k),z.legacy=!0,z}function C(k,R){for(var z in R)ce(R,z)&&(k[z]=R[z])}function A(k,R){k&&(k.textFill&&(R.textFill=k.textFill),k.textPosition&&(R.textPosition=k.textPosition))}function T(k,R){if(R==null&&(R=u),ce(YB,k)){var z=t.getItemVisual(R,"style");return z?z[YB[k]]:null}if(ce(APe,k))return t.getItemVisual(R,k)}function M(k){if(a.type==="cartesian2d"){var R=a.getBaseAxis();return iSe(xe({axis:R},k))}}function I(){return r.getCurrentSeriesIndices()}function P(k){return rW(k,r)}}function rke(e){var t={};return D(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 rw(e,t,r,n,i,a,o){if(!n){a.remove(t);return}var s=PP(e,t,r,n,i,a);return s&&o.setItemGraphicEl(r,s),s&&Ut(s,n.focus,n.blurScope,n.emphasisDisabled),s}function PP(e,t,r,n,i,a){var o=-1,s=t;t&&_9(t,n,i)&&(o=ze(a.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=MP(n),s&&KPe(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Jn.normal.cfg=Jn.normal.conOpt=Jn.emphasis.cfg=Jn.emphasis.conOpt=Jn.blur.cfg=Jn.blur.conOpt=Jn.select.cfg=Jn.select.conOpt=null,Jn.isLegacy=!1,ike(u,r,n,i,l,Jn),nke(u,r,n,i,l),IP(e,u,r,n,Jn,i,l),ce(n,"info")&&(ao(u).info=n.info);for(var c=0;c=0?a.replaceAt(u,o):a.add(u),u}function _9(e,t,r){var n=ao(e),i=t.type,a=t.shape,o=t.style;return r.isUniversalTransitionEnabled()||i!=null&&i!==n.customGraphicType||i==="path"&&uke(a)&&w9(a)!==n.customPathData||i==="image"&&ce(o,"image")&&o.image!==n.customImagePath}function nke(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&&_9(o,a,n)&&(o=null),o||(o=MP(a),e.setClipPath(o)),IP(null,o,t,a,null,n,i)}}function ike(e,t,r,n,i,a){if(!e.isGroup){t5(r,null,a),t5(r,oo,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=MP(o),e.setTextContent(c)),IP(null,c,t,o,null,n,i);for(var f=o&&o.style,d=0;d=c;h--){var p=t.childAt(h);oke(t,p,i)}}}function oke(e,t,r){t&&Yx(t,ao(e).option,r)}function ske(e){new xo(e.oldChildren,e.newChildren,r5,r5,e).add(n5).update(n5).remove(lke).execute()}function r5(e,t){var r=e&&e.name;return r??XPe+t}function n5(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,i=t!=null?r.oldChildren[t]:null;PP(r.api,i,r.dataIndex,n,r.seriesModel,r.group)}function lke(e){var t=this.context,r=t.oldChildren[e];r&&Yx(r,ao(r).option,t.seriesModel)}function w9(e){return e&&(e.pathData||e.d)}function uke(e){return e&&(ce(e,"pathData")||ce(e,"d"))}function cke(e){e.registerChartView(JPe),e.registerSeriesModel(IPe)}var Ll=Je(),i5=we,nw=ue,fke=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 Ae,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var d=Pe(a5,r,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,r)}s5(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=eP(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=Ll(t).pointerEl=new wv[a.type](i5(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=Ll(t).labelEl=new rt(i5(r.label));t.add(a),o5(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=Ll(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=Ll(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),o5(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=_v(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){vo(u.event)},onmousedown:nw(this._onHandleDragMove,this,0,0),drift:nw(this._onHandleDragMove,this),ondragend:nw(this._onHandleDragEnd,this)}),n.add(i)),s5(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");q(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,ed(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){a5(this._axisPointerModel,!r&&this._moveAnimation,this._handle,iw(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(iw(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(iw(i)),Ll(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),Bp(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 a5(e,t,r,n){C9(Ll(r).lastProp,n)||(Ll(r).lastProp=n,t?it(r,n,e):(r.stopAnimation(),r.attr(n)))}function C9(e,t){if(Se(e)&&Se(t)){var r=!0;return D(t,function(n,i){r=r&&C9(e[i],n)}),!!r}else return e===t}function o5(e,t){e[t.get(["label","show"])?"show":"hide"]()}function iw(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function s5(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 DP=fke;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 T9(e,t,r,n,i){var a=r.get("value"),o=A9(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Xf(s.get("padding")||0),u=s.getFont(),c=mv(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),dke(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 dke(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 A9(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:UI(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};D(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):me(o)&&(a=o(s))}return a}function LP(e,t,r){var n=_i();return Du(n,n,r.rotation),Na(n,n,r.position),Ui([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function M9(e,t,r,n,i,a){var o=So.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),T9(t,n,i,a,{position:LP(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function EP(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function I9(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function l5(e,t,r,n,i,a){return{cx:e,cy:t,r0:r,r:n,startAngle:i,endAngle:a,clockwise:!0}}var hke=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=u5(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var d=RP(a),h=pke[u](s,f,c);h.style=d,r.graphicKey=h.type,r.pointer=h}var p=rA(l.model,i);M9(n,r,p,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=rA(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=LP(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=u5(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}(DP);function u5(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var pke={line:function(e,t,r){var n=EP([t,r[0]],[t,r[1]],c5(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:I9([t-n/2,r[0]],[n,i],c5(e))}}};function c5(e){return e.dim==="x"?0:1}const vke=hke;var gke=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 mke=gke;var eo=Je(),yke=D;function P9(e,t,r){if(!tt.node){var n=t.getZr();eo(n).records||(eo(n).records={}),xke(n,t);var i=eo(n).records[e]||(eo(n).records[e]={});i.handler=r}}function xke(e,t){if(eo(e).initialized)return;eo(e).initialized=!0,r("click",Pe(f5,"click")),r("mousemove",Pe(f5,"mousemove")),r("globalout",bke);function r(n,i){e.on(n,function(a){var o=_ke(t);yke(eo(e).records,function(s){s&&i(s,a,o.dispatchAction)}),Ske(o.pendings,t)})}}function Ske(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 bke(e,t,r){e.handler("leave",null,r)}function f5(e,t,r,n){t.handler(e,r,n)}function _ke(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 bA(e,t){if(!tt.node){var r=t.getZr(),n=(eo(r).records||{})[e];n&&(eo(r).records[e]=null)}}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.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";P9("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){bA("axisPointer",n)},t.prototype.dispose=function(r,n){bA("axisPointer",n)},t.type="axisPointer",t}(jt);const Cke=wke;function k9(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=yu(a,e);if(o==null||o<0||q(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 d5=Je();function Tke(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||ue(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){ry(i)&&(i=k9({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=ry(i),u=a.axesInfo,c=s.axesInfo,f=n==="leave"||ry(i),d={},h={},p={list:[],map:{}},v={showPointer:Pe(Mke,h),showTooltip:Pe(Ike,p)};D(s.coordSysMap,function(m,y){var x=l||m.containPoint(i);D(s.coordSysAxesInfo[y],function(S,_){var b=S.axis,w=Rke(u,S);if(!f&&x&&(!u||w)){var C=w&&w.value;C==null&&!l&&(C=b.pointToData(i)),C!=null&&h5(S,C,v,!1,d)}})});var g={};return D(c,function(m,y){var x=m.linkGroup;x&&!h[y]&&D(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,p5(S),p5(m)))),g[m.key]=w}})}),D(g,function(m,y){h5(c[y],m,v,!0,d)}),Pke(h,c,d),kke(p,i,e,o),Dke(c,o,r),d}}function h5(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=Ake(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&Y(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function Ake(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return D(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),D(d,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function Mke(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function Ike(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=Wp(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 Pke(e,t,r){var n=r.axesInfo=[];D(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 kke(e,t,r,n){if(ry(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 Dke(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=d5(n)[i]||{},o=d5(n)[i]={};D(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&D(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];D(a,function(u,c){!o[c]&&l.push(u)}),D(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 Rke(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 p5(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 ry(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Nv(e){Nu.registerAxisPointerClass("CartesianAxisPointer",vke),e.registerComponentModel(mke),e.registerComponentView(Cke),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!q(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=xwe(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Tke)}function Lke(e){Fe(r8),Fe(Nv)}var Eke=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=Nke[d](s,l,f,c);p.style=h,r.graphicKey=p.type,r.pointer=p}var v=a.get(["label","margin"]),g=Oke(n,i,a,l,v);T9(r,i,a,o,g)},t}(DP);function Oke(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=_i();Du(d,d,s),Na(d,d,[n.cx,n.cy]),u=Ui([o,-i],d);var h=t.getModel("axisLabel").get("rotate")||0,p=So.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 Nke={line:function(e,t,r,n){return e.dim==="angle"?{type:"Line",shape:EP(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:l5(t.cx,t.cy,n[0],n[1],(-r-i/2)*a,(-r+i/2)*a)}:{type:"Sector",shape:l5(t.cx,t.cy,r-i/2,r+i/2,0,Math.PI*2)}}};const zke=Eke;var Bke=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 Fke=Bke;var OP=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",or).models[0]},t.type="polarAxis",t}(et);lr(OP,Iv);var $ke=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}(OP),Vke=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}(OP),NP=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}(Qi);NP.prototype.dataToRadius=Qi.prototype.dataToCoord;NP.prototype.radiusToData=Qi.prototype.coordToData;const Gke=NP;var Hke=Je(),zP=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=mv(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=Hke(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}(Qi);zP.prototype.dataToAngle=Qi.prototype.dataToCoord;zP.prototype.angleToData=Qi.prototype.coordToData;const Wke=zP;var D9=["radius","angle"],Uke=function(){function e(t){this.dimensions=D9,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Gke,this._angleAxis=new Wke,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=v5(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=v5(r);return i===this?this.pointToData(n):null},e}();function v5(e){var t=e.seriesModel,r=e.polarModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}const jke=Uke;function Yke(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%"]:q(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 qke(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();D(w0(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),D(w0(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),bf(n.scale,n.model),bf(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 Xke(e){return e.mainType==="angleAxis"}function g5(e,t){if(e.type=t.get("type"),e.scale=Fx(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),Xke(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 Zke={dimensions:D9,create:function(e,t){var r=[];return e.eachComponent("polar",function(n,i){var a=new jke(i+"");a.update=qke;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");g5(o,l),g5(s,u),Yke(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",or).models[0];n.coordinateSystem=i.coordinateSystem}}),r}};const Kke=Zke;var Qke=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function um(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 cm(e){var t=e.getRadiusAxis();return t.inverse?0:1}function m5(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 Jke=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=we(c);var f=i.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(d),c});m5(u),m5(s),D(Qke,function(c){r.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&eDe[c](this.group,r,a,s,l,o,u)},this)}},t.type="angleAxis",t}(Nu),eDe={axisLine:function(e,t,r,n,i,a){var o=t.getModel(["axisLine","lineStyle"]),s=cm(r),l=s?0:1,u;a[l]===0?u=new $a({shape:{cx:r.cx,cy:r.cy,r:a[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new Sx({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[cm(r)],u=Z(n,function(c){return new Tr({shape:um(r,[l,l+s],c.coord)})});e.add(hi(u,{style:xe(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[cm(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];Se(_)&&_.textStyle&&(h=new wt(_.textStyle,l,l.ecModel))}var b=new rt({silent:So.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=So.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=f.rawLabel,Ie(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",P=w;_&&(n[c][M]||(n[c][M]={p:w,n:w}),P=n[c][M][I]);var k=void 0,R=void 0,z=void 0,$=void 0;if(p.dim==="radius"){var N=p.dataToCoord(T)-w,V=l.dataToCoord(M);Math.abs(N)=$})}}})}function uDe(e){var t={};D(e,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=L9(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=R9(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 D(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),D(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=y5(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=y5(r);return i===this?this.pointToData(n):null},e}();function y5(e){var t=e.seriesModel,r=e.singleAxisModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function _De(e,t){var r=[];return e.eachComponent("singleAxis",function(n,i){var a=new bDe(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",or).models[0];n.coordinateSystem=i&&i.coordinateSystem}}),r}var wDe={create:_De,dimensions:O9};const CDe=wDe;var x5=["x","y"],TDe=["width","height"],ADe=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=ow(l,1-B0(s)),c=l.dataToPoint(n)[0],f=a.get("type");if(f&&f!=="none"){var d=RP(a),h=MDe[f](s,c,u);h.style=d,r.graphicKey=h.type,r.pointer=h}var p=_A(i);M9(n,r,p,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=_A(n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=LP(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=B0(o),u=ow(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=ow(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}(DP),MDe={line:function(e,t,r){var n=EP([t,r[0]],[t,r[1]],B0(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:I9([t-n/2,r[0]],[n,i],B0(e))}}};function B0(e){return e.isHorizontal()?0:1}function ow(e,t){var r=e.getRect();return[r[x5[t]],r[x5[t]]+r[TDe[t]]]}const IDe=ADe;var 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.type="single",t}(jt);function kDe(e){Fe(Nv),Nu.registerAxisPointerClass("SingleAxisPointer",IDe),e.registerComponentView(PDe),e.registerComponentView(yDe),e.registerComponentModel(aw),wf(e,"single",aw,aw.defaultOption),e.registerCoordinateSystem("single",CDe)}var 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.init=function(r,n,i){var a=Zf(r);e.prototype.init.apply(this,arguments),S5(r,a)},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),S5(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 S5(e,t){var r=e.cellSize,n;q(r)?n=r:n=e.cellSize=[r,r],n.length===1&&(n[1]=n[0]);var i=Z([0,1],function(a){return Nye(t,a)&&(n[a]="auto"),n[a]!=null&&n[a]!=="auto"});Rs(e,t,{type:"box",ignoreSize:i})}const RDe=DDe;var LDe=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 kn({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?Lye(r,n):me(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=DT(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/sw)-Math.floor(r[0].time/sw)+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 b5(e){var t=e.calendarModel,r=e.seriesModel,n=t?t.coordinateSystem:r?r.coordinateSystem:null;return n}const NDe=ODe;function zDe(e){e.registerComponentModel(RDe),e.registerComponentView(EDe),e.registerCoordinateSystem("calendar",NDe)}function BDe(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 _5(e,t){var r;return D(t,function(n){e[n]!=null&&e[n]!=="auto"&&(r=!0)}),r}function FDe(e,t,r){var n=Y({},r),i=e[t],a=r.$action||"merge";a==="merge"?i?(Oe(i,n,!0),Rs(i,n,{ignoreSize:!0}),bW(r,i),fm(r,i),fm(r,i,"shape"),fm(r,i,"style"),fm(r,i,"extra"),r.clipPath=i.clipPath):e[t]=n:a==="replace"?e[t]=n:a==="remove"&&i&&(e[t]=null)}var N9=["transition","enterFrom","leaveTo"],$De=N9.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function fm(e,t,r){if(r&&(!e[r]&&t[r]&&(e[r]={}),e=e[r],t=t[r]),!(!e||!t))for(var n=r?N9:$De,i=0;i=0;c--){var f=i[c],d=dr(f.id,null),h=d!=null?o.get(d):null;if(h){var p=h.parent,m=ii(p),y=p===a?{width:s,height:l}:{width:m.width,height:m.height},x={},S=Dx(h,f,y,null,{hv:f.hv,boundingMode:f.bounding},x);if(!ii(h).isNew&&S){for(var _=f.transition,b={},w=0;w=0)?b[C]=A:h[C]=A}it(h,b,r,0)}else h.attr(x)}}},t.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(i){ny(i,ii(i).option,n,r._lastGraphicModel)}),this._elMap=ve()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(jt);function wA(e){var t=ce(w5,e)?w5[e]:vI(e),r=new t({});return ii(r).type=e,r}function C5(e,t,r,n){var i=wA(r);return t.add(i),n.set(e,i),ii(i).id=e,ii(i).isNew=!0,i}function ny(e,t,r,n){var i=e&&e.parent;i&&(e.type==="group"&&e.traverse(function(a){ny(a,t,r,n)}),Yx(e,t,n),r.removeKey(ii(e).id))}function T5(e,t,r,n){e.isGroup||D([["cursor",wi.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(i){var a=i[0];ce(t,a)?e[a]=Ee(t[a],i[1]):e[a]==null&&(e[a]=i[1])}),D(He(t),function(i){if(i.indexOf("on")===0){var a=t[i];e[i]=me(a)?a:null}}),ce(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function WDe(e){return e=Y({},e),D(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(SW),function(t){delete e[t]}),e}function UDe(e,t,r){var n=Ie(e).eventData;!e.silent&&!e.ignore&&!n&&(n=Ie(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=r.info)}function jDe(e){e.registerComponentModel(GDe),e.registerComponentView(HDe),e.registerPreprocessor(function(t){var r=t.graphic;q(r)?!r[0]||!r[0].elements?t.graphic=[{elements:r}]:t.graphic=[t.graphic[0]]:r&&!r.elements&&(t.graphic=[{elements:[r]}])})}var A5=["x","y","radius","angle","single"],YDe=["cartesian2d","polar","singleAxis"];function qDe(e){var t=e.get("coordinateSystem");return ze(YDe,t)>=0}function ss(e){return e+"Axis"}function XDe(e,t){var r=ve(),n=[],i=ve();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 z9(e){var t=e.ecModel,r={infoList:[],infoMap:ve()};return e.eachTargetAxis(function(n,i){var a=t.getComponent(ss(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 lw=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}(),ZDe=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=M5(r);this.settledOption=a,this.mergeDefaultAndTheme(r,i),this._doInit(a)},t.prototype.mergeOption=function(r){var n=M5(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;D([["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=ve(),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 D(A5,function(i){var a=this.getReferringComponents(ss(i),dge);if(a.specified){n=!0;var o=new lw;D(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 lw;if(d.add(f.componentIndex),r.set(c,d),a=!1,c==="x"||c==="y"){var h=f.getReferringComponents("grid",or).models[0];h&&D(u,function(p){f.componentIndex!==p.componentIndex&&h===p.getReferringComponents("grid",or).models[0]&&d.add(p.componentIndex)})}}}a&&D(A5,function(u){if(a){var c=i.findComponents({mainType:ss(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new lw;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");D([["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(ss(n),i))},this),r},t.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(i,a){D(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(ss(r),n)},t.prototype.setRawRange=function(r){var n=this.option,i=this.settledOption;D([["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;D(["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 bc(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)}});bc(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;bc(["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=ct(n[0]+o,n,[0,100],!0):a!=null&&(o=ct(a,[0,100],n,!0)-n[0]),t[i+"Span"]=a,t[i+"ValueSpan"]=o},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),r=this._percentWindow,n=this._valueWindow;if(r){var i=qH(n,[0,500]);i=Math.min(i,20);var a=t.axis.scale.rawExtentInfo;r[0]!==0&&a.setDeterminedMinMax("min",+n[0].toFixed(i)),r[1]!==100&&a.setDeterminedMinMax("max",+n[1].toFixed(i)),a.freeze()}},e}();function nRe(e,t,r){var n=[1/0,-1/0];bc(r,function(o){MSe(n,o.getData(),t)});var i=e.getAxisModel(),a=ej(i.axis.scale,i,n).calculate();return[a.min,a.max]}const iRe=rRe;var aRe={getTargetSeries:function(e){function t(i){e.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=e.getComponent(ss(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 iRe(i,a,s,e),r.push(o.__dzAxisProxy))});var n=ve();return D(r,function(i){D(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 oRe=aRe;function sRe(e){e.registerAction("dataZoom",function(t,r){var n=XDe(r,t);D(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var P5=!1;function FP(e){P5||(P5=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,oRe),sRe(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function lRe(e){e.registerComponentModel(QDe),e.registerComponentView(tRe),FP(e)}var di=function(){function e(){}return e}(),B9={};function _c(e,t){B9[e]=t}function F9(e){return B9[e]}var uRe=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;D(this.option.feature,function(n,i){var a=F9(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 cRe=uRe;function fRe(e,t,r){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:r.getWidth(),height:r.getHeight()},o=hr(n,a,i);ou(t.get("orient"),e,t.get("itemGap"),o.width,o.height),Dx(e,n,a,i)}function $9(e,t){var r=Xf(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 dRe=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=[];D(u,function(p,v){f.push(v)}),new xo(this._featureNames||[],f).add(d).update(d).remove(Pe(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(hRe(g))S={onclick:x.option.onclick,featureName:g};else{var _=F9(g);if(!_)return;S=new _}c[g]=S}else if(S=c[m],!S)return;S.uid=qf("toolbox-feature"),S.model=x,S.ecModel=n,S.api=i;var b=S instanceof di;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"?mo:yo)(T[w])},S instanceof di&&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 di&&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={};D(_,function(C,A){var T=_v(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 I=new rt({style:{text:b[A],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null},ignore:!0});T.setTextContent(I),jf({el:T,componentModel:r,itemName:A,formatterParamsExtra:{title:b[A]}}),T.__title=b[A],T.on("mouseover",function(){var P=y.getItemStyle(),k=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:y.get("textFill")||P.fill||P.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),T.setTextConfig({position:y.get("textPosition")||k}),I.ignore=!r.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",A])!=="emphasis"&&i.leaveEmphasis(this),I.hide()}),(p.get(["iconStatus",A])==="emphasis"?mo:yo)(T),o.add(T),T.on("click",ue(v.onclick,v,n,i,A)),w[A]=T})}fRe(o,r,i),o.add($9(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&&!me(x)&&v){var S=x.style||(x.style={}),_=mv(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){D(this._features,function(o){o instanceof di&&o.updateView&&o.updateView(o.model,n,i,a)})},t.prototype.remove=function(r,n){D(this._features,function(i){i instanceof di&&i.remove&&i.remove(r,n)}),this.group.removeAll()},t.prototype.dispose=function(r,n){D(this._features,function(i){i instanceof di&&i.dispose&&i.dispose(r,n)})},t.type="toolbox",t}(jt);function hRe(e){return e.indexOf("my")===0}const pRe=dRe;var vRe=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(me(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}(di);const gRe=vRe;var k5="__ec_magicType_stack__",mRe=[["line","bar"],["stack"]],yRe=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 D(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(D5[i]){var s={series:[]},l=function(f){var d=f.subType,h=f.id,p=D5[i](d,h,f,a);p&&(xe(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,or).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"}}};D(mRe,function(f){ze(f,i)>=0&&D(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}(di),D5={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")===k5;if(e==="line"||e==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),Oe({id:t,stack:i?"":k5},n.get(["option","stack"])||{},!0)}};Ga({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});const xRe=yRe;var qx=new Array(60).join("-"),Af=" ";function SRe(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 bRe(e){var t=[];return D(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()];D(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(Af)],c=0;c1||r>0&&!e.noHeader;return D(e.blocks,function(i){var a=KW(i);a>=t&&(t=a+ +(n&&(!a||zT(i)&&!i.noHeader)))}),t}return 0}function G0e(e,t,r,n){var i=t.noHeader,a=W0e(KW(t)),o=[],s=t.blocks||[];ln(!s||q(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ce(u,l)){var c=new HW(u[l],null);s.sort(function(p,v){return c.evaluate(p.sortParam,v.sortParam)})}else l==="seriesDesc"&&s.reverse()}D(s,function(p,v){var g=t.valueFormatter,m=ZW(p)(g?Y(Y({},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):BT(o.join(""),i?r:a.html);if(i)return f;var d=RT(t.header,"ordinal",e.useUTC),h=XW(n,e.renderMode).nameStyle;return e.renderMode==="richText"?QW(e,d,h)+a.richText+f:BT('
'+mn(d)+"
"+f,r)}function H0e(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=q(S)?S:[S],Z(S,function(_,b){return RT(_,q(h)?h[b]:h,u)})};if(!(a&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),d=a?"":RT(l,"ordinal",u),h=t.valueType,p=o?[]:c(t.value),v=!s||!a,g=!s&&a,m=XW(n,i),y=m.nameStyle,x=m.valueStyle;return i==="richText"?(s?"":f)+(a?"":QW(e,d,y))+(o?"":Y0e(e,p,v,g,x)):BT((s?"":f)+(a?"":U0e(d,!s,y))+(o?"":j0e(p,v,g,x)),r)}}function OO(e,t,r,n,i,a){if(e){var o=ZW(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function W0e(e){return{html:$0e[e],richText:V0e[e]}}function BT(e,t){var r='
',n="margin: "+t+"px 0 0";return'
'+e+r+"
"}function U0e(e,t,r){var n=t?"margin-left:2px":"";return''+mn(e)+""}function j0e(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=q(e)?e:[e],''+Z(e,function(o){return mn(o)}).join("  ")+""}function QW(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function Y0e(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(q(t)?t.join(" "):t,a)}function JW(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return bu(n)}function eU(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var qb=function(){function e(){this.richTextStyles={},this._nextStyleNameId=QH()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=Oye({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={};q(r)?D(r,function(a){return Y(n,a)}):Y(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function tU(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=q(s),u=JW(t,r),c,f,d,h;if(o>1||l&&!o){var p=q0e(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=xf(i,r,a[0]),f=v.type}else h=c=l?s[0]:s;var g=tI(t),m=g&&t.name||"",y=i.getName(r),x=n?m:y;return xr("section",{header:m,noHeader:n||!g,sortParam:h,blocks:[xr("nameValue",{markerType:"item",markerColor:u,name:x,noName:!Fi(x),value:c,valueType:f})].concat(d||[])})}function q0e(e,t,r,n,i){var a=t.getData(),o=Oa(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?D(n,function(f){c(xf(a,r,f),f)}):D(e,c);function c(f,d){var h=a.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(xr("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 No=Je();function Ng(e,t){return e.getName(t)||e.getId(t)}var Qm="__universalTransitionEnabled",Ex=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=Wh({count:Z0e,reset:K0e}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=No(this).sourceManager=new YW(this);a.prepareSource();var o=this.getInitialData(r,i);zO(o,this),this.dataTask.context.data=o,No(this).dataBeforeProcessed=o,NO(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Np(this),a=i?Zf(r):{},o=this.subType;et.hasClass(o)&&(o+="Series"),Oe(r,n.getTheme().get(this.subType)),Oe(r,this.getDefaultOption()),mu(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Rs(r,a,i)},t.prototype.mergeOption=function(r,n){r=Oe(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Np(this);i&&Rs(this.option,r,i);var a=No(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);zO(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,No(this).dataBeforeProcessed=o,NO(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!Un(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=CI.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[Ng(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Qm])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"){Se(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);lr(Ex,II);lr(Ex,CI);s6(Ex,et);function NO(e){var t=e.name;tI(e)||(e.name=X0e(e)||t)}function X0e(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return D(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function Z0e(e){return e.model.getRawData().count()}function K0e(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Q0e}function Q0e(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function zO(e,t){D(Ky(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Pe(J0e,t))})}function J0e(e,t){var r=FT(e);return r&&r.setOutputEnd((t||this).count()),t}function FT(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=Ex;var kI=function(){function e(){this.group=new Ae,this.uid=qf("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}();nI(kI);px(kI);const jt=kI;function Jf(){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 rU=Je(),e1e=Jf(),DI=function(){function e(){this.group=new Ae,this.uid=qf("viewChart"),this.renderTask=Wh({plan:t1e,reset:r1e}),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&&FO(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&FO(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){Hs(this.group,t)},e.markUpdateMethod=function(t,r){rU(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function BO(e,t,r){e&&Rp(e)&&(t==="emphasis"?mo:yo)(e,r)}function FO(e,t,r){var n=yu(e,t),i=t&&t.highlightKey!=null?Ime(t.highlightKey):null;n!=null?D(pt(n),function(a){BO(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){BO(a,r,i)})}nI(DI);px(DI);function t1e(e){return e1e(e.model)}function r1e(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&rU(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),n1e[l]}var n1e={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=DI;var p0="\0__throttleOriginMethod",$O="\0__throttleRate",VO="\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 ed(e,t,r,n){var i=e[t];if(i){var a=i[p0]||i,o=i[VO],s=i[$O];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=RI(a,r,n==="debounce"),i[p0]=a,i[VO]=n,i[$O]=r}return i}}function Bp(e,t){var r=e[t];r&&r[p0]&&(r.clear&&r.clear(),e[t]=r[p0])}var GO=Je(),HO={itemStyle:xu(oW,!0),lineStyle:xu(aW,!0)},i1e={lineStyle:"stroke",itemStyle:"fill"};function nU(e,t){var r=e.visualStyleMapper||HO[t];return r||(console.warn("Unknown style type '"+t+"'."),HO.itemStyle)}function iU(e,t){var r=e.visualDrawType||i1e[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var a1e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=nU(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=iU(e,n),u=o[l],c=me(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"||me(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||me(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=Y({},o);g[l]=c(v),h.setItemVisual(p,"style",g)}}}},Dd=new wt,o1e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=nU(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Dd.option=l[n];var u=i(Dd),c=o.ensureUniqueItemVisual(s,"style");Y(c,u),Dd.option.decal&&(o.setItemVisual(s,"decal",Dd.option.decal),Dd.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},s1e={performRawSeries:!0,overallReset:function(e){var t=ve();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)),GO(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=GO(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=iU(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)}})}})}},zg=Math.PI;function l1e(e,t){t=t||{},xe(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 Ae,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 dI({shape:{startAngle:-zg/2,endAngle:-zg/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:zg*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:zg*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 u1e=function(){function e(t,r,n,i){this._stageTaskMap=ve(),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=ve();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;D(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";ln(!(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;D(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=ve(),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)||Wh({plan:p1e,reset:v1e,count:m1e}));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||Wh({reset:c1e});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=ve(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,h="";ln(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,p):c?c(n,i).each(p):(f=!1,D(n.getSeries(),p));function p(v){var g=v.uid,m=l.set(g,s&&s.get(g)||(d=!0,Wh({reset:f1e,onDirty:h1e})));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 me(t)&&(t={overallReset:t,seriesType:y1e(t)}),t.uid=qf("stageHandler"),r&&(t.visualType=r),t},e}();function c1e(e){e.overallReset(e.ecModel,e.api,e.payload)}function f1e(e){return e.overallProgress&&d1e}function d1e(){this.agent.dirty(),this.getDownstream().dirty()}function h1e(){this.agent&&this.agent.dirty()}function p1e(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function v1e(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 aU(n)}):g1e}var g1e=aU(0);function aU(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}(),$T=["symbol","symbolSize","symbolRotate","symbolOffset"],YO=$T.concat(["symbolKeepAspect"]),_1e={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<$T.length;o++){var s=$T[o],l=e.get(s);me(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(Y({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=He(i);function c(f,d){for(var h=e.getRawValue(d),p=e.getDataParams(d),v=0;v=0&&ql(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function VT(e,t,r){for(var n=t.type==="radial"?B1e(e,t,r):z1e(e,t,r),i=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:nt(e)?[e]:q(e)?e:null}function EI(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&$1e(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 V1e=new Fa(!0);function m0(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function qO(e){return typeof e=="string"&&e!=="none"}function y0(e){var t=e.fill;return t!=null&&t!=="none"}function XO(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 ZO(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 GT(e,t,r){var n=iI(t.image,t.__image,r);if(vx(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)*Bm),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function G1e(e,t,r,n){var i,a=m0(r),o=y0(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||V1e,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?VT(e,d,b):t.__canvasFillGradient,t.__canvasFillGradient=y),v&&(x=f?VT(e,h,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=x),g&&(S=f||!t.__canvasFillPattern?GT(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=S),m&&(_=f||!t.__canvasStrokePattern?GT(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=EI(t),C=i[0],A=i[1]);var T=!0;(u||f&yc)&&(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&&ZO(e,r),o&&XO(e,r)):(o&&XO(e,r),a&&ZO(e,r))),C&&e.setLineDash([])}function H1e(e,t,r){var n=t.__image=iI(r.image,t.__image,t,t.onload);if(!(!n||!vx(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 W1e(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||Is,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=EI(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(m0(r)&&e.strokeText(i,r.x,r.y),y0(r)&&e.fillText(i,r.x,r.y)):(y0(r)&&e.fillText(i,r.x,r.y),m0(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var KO=["shadowBlur","shadowOffsetX","shadowOffsetY"],QO=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function dU(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){Sn(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?ru.opacity:o}(n||t.blend!==r.blend)&&(a||(Sn(e,i),a=!0),e.globalCompositeOperation=t.blend||ru.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(Se(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 o0e(this._api),u=this._theme,c=this._model=new DW;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},WT);var f={seriesTransition:s,optionChanged:!0};if(i)this[pn]={silent:a,updateParams:f},this[Wr]=!1,this.getZr().wakeUp();else{try{ic(this),zo.update.call(this,null,f)}catch(d){throw this[pn]=null,this[Wr]=!1,d}this._ssr||this._zr.flush(),this[pn]=null,this[Wr]=!1,Rd.call(this,a),Ld.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 D(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;D(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 D(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(jT[i]){var l=s,u=s,c=-s,f=-s,d=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();D(tf,function(x,S){if(x.group===i){var _=n?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(we(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=Ps.createCanvas(),m=gE(g,{renderer:n?"svg":"canvas"});if(m.resize({width:p,height:v}),n){var y="";return D(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}})),D(d,function(x){var S=new Fr({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 Jb(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return Jb(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Fh(i,r);return D(o,function(s,l){l.indexOf("Models")>=0&&D(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=Fh(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?LI(s,l,n):Tv(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;D(gxe,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Yl(s,function(p){var v=Ie(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=Y({},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)}),D(Uh,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),D(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),C1e(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&&i6(this.getDom(),zI,"");var n=this,i=n._api,a=n._model;D(n._componentsViews,function(o){o.dispose(a,i)}),D(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 tf[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[pn]&&(a==null&&(a=this[pn].silent),i=!0,this[pn]=null),this[Wr]=!0;try{i&&ic(this),zo.update.call(this,{type:"resize",animation:Y({duration:0},r&&r.animation)})}catch(o){throw this[Wr]=!1,o}this[Wr]=!1,Rd.call(this,a),Ld.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(Se(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!UT[r]){var i=UT[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=Y({},r);return n.type=Uh[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(Se(n)||(n={silent:!!n}),!!S0[r.type]&&this._model){if(this[Wr]){this._pendingActions.push(r);return}var i=n.silent;t_.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&tt.browser.weChat&&this._throttledZrFlush(),Rd.call(this,i),Ld.call(this,i)}},t.prototype.updateLabelLayout=function(){Ei.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(){ic=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),Qb(f,!0),Qb(f,!1),d.plan()},Qb=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(Qc(m))return;if(m instanceof $e&&Pme(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){mo(p,v),Zn(f)},h.prototype.leaveEmphasis=function(p,v){yo(p,v),Zn(f)},h.prototype.enterBlur=function(p){A6(p),Zn(f)},h.prototype.leaveBlur=function(p){lI(p),Zn(f)},h.prototype.enterSelect=function(p){M6(p),Zn(f)},h.prototype.leaveSelect=function(p){I6(p),Zn(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}(RW))(f)},MU=function(f){function d(h,p){for(var v=0;v=0)){hN.push(r);var a=lU.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function RU(e,t){UT[e]=t}function Axe(e,t,r){var n=txe("registerMap");n&&n(e,t,r)}var Mxe=E0e;Eu(OI,a1e);Eu(Ox,o1e);Eu(Ox,s1e);Eu(OI,_1e);Eu(Ox,w1e);Eu(bU,Q1e);kU(EW);DU(ixe,p0e);RU("default",l1e);Ga({type:nu,event:nu,update:nu},rr);Ga({type:Ym,event:Ym,update:Ym},rr);Ga({type:$h,event:$h,update:$h},rr);Ga({type:qm,event:qm,update:qm},rr);Ga({type:Vh,event:Vh,update:Vh},rr);BI("light",x1e);BI("dark",S1e);var pN=[],Ixe={registerPreprocessor:kU,registerProcessor:DU,registerPostInit:_xe,registerPostUpdate:wxe,registerUpdateLifecycle:FI,registerAction:Ga,registerCoordinateSystem:Cxe,registerLayout:Txe,registerVisual:Eu,registerTransform:Mxe,registerLoading:RU,registerMap:Axe,registerImpl:exe,PRIORITY:hxe,ComponentModel:et,ComponentView:jt,SeriesModel:zt,ChartView:Tt,registerComponentModel:function(e){et.registerClass(e)},registerComponentView:function(e){jt.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){qve(e,t)}};function Fe(e){if(q(e)){D(e,function(t){Fe(t)});return}ze(pN,e)>=0||(pN.push(e),me(e)&&(e={install:e}),e.install(Ixe))}function Ed(e){return e==null?0:e.length||1}function vN(e){return e}var Pxe=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||vN,this._newKeyGetter=i||vN,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 Od=Se,Bo=Z,Nxe=typeof Int32Array>"u"?Array:Int32Array,zxe="e\0\0",gN=-1,Bxe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Fxe=["_approximateExtent"],mN,Gg,Nd,zd,i_,Hg,a_,$xe=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;EU(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===Mi;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),q(a)?a=a.slice():Od(a)&&(a=Y({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Od(r)?Y(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Od(t)?Y(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?Y(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;wT(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){D(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Bo(this.dimensions,this._getDimInfo,this),this.hostModel)),i_(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];me(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(U2(arguments)))})},e.internalField=function(){mN=function(t){var r=t._invertedIndicesMap;D(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new Nxe(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),i[r]=l}}}(),e}();const sn=$xe;function Av(e,t){TI(e)||(e=AI(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=ve(),a=[],o=Gxe(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&zU(o),l=n===e.dimensionsDefine,u=l?NU(e):OU(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=ve(c),d=new UW(o),h=0;h0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function Gxe(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return D(t,function(a){var o;Se(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function Hxe(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 Wxe=function(){function e(t){this.coordSysDims=[],this.axisMap=ve(),this.categoryAxisMap=ve(),this.coordSysName=t}return e}();function Uxe(e){var t=e.get("coordinateSystem"),r=new Wxe(t),n=jxe[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var jxe={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",or).models[0],a=e.getReferringComponents("yAxis",or).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),ac(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),ac(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",or).models[0];t.coordSysDims=["single"],r.set("single",i),ac(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",or).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),ac(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),ac(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();D(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];r.set(c,u),ac(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function ac(e){return e.get("type")==="category"}function Yxe(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;qxe(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(D(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;D(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 qxe(e){return!EU(e.schema)}function Ls(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function BU(e,t){return Ls(e,t)?e.getCalculationInfo("stackResultDimension"):t}function Xxe(e,t){var r=e.get("coordinateSystem"),n=Cv.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=_0(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function Zxe(e,t,r){var n,i;return r&&D(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 Ao(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=AI(e)):(i=n.getSource(),a=i.sourceFormat===Mi);var o=Uxe(t),s=Xxe(t,o),l=r.useEncodeDefaulter,u=me(l)?l:l?Pe(AW,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=Av(i,c),d=Zxe(f.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(f),p=Yxe(t,{schema:f,store:h}),v=new sn(f,t);v.setCalculationInfo(p);var g=d!=null&&Kxe(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 Kxe(e){if(e.sourceFormat===Mi){var t=Qxe(e.data||[]);return!q(Hf(t))}}function Qxe(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}();px(FU);const Mo=FU;var Jxe=0,eSe=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Jxe}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&Z(n,tSe);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=ve(this.categories))},e}();function tSe(e){return Se(e)&&e.value!=null?e.value:e+""}const YT=eSe;function qT(e){return e.type==="interval"||e.type==="log"}function rSe(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=ZH(a/t,!0);r!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=$U(o),l=i.niceTickExtent=[Xt(Math.ceil(e[0]/o)*o,s),Xt(Math.floor(e[1]/o)*o,s)];return nSe(l,e),i}function o_(e){var t=Math.pow(10,eI(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Xt(r*t)}function $U(e){return Sa(e)+2}function yN(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function nSe(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),yN(e,0,t),yN(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function Nx(e,t){return e>=t[0]&&e<=t[1]}function zx(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Bx(e,t){return e*(t[1]-t[0])+t[0]}var VU=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 YT({})),q(i)&&(i=new YT({categories:Z(i,function(a){return Se(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),Nx(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),zx(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(Bx(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}(Mo);Mo.registerClass(VU);const VI=VU;var dl=Xt,GU=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 Nx(r,this._extent)},t.prototype.normalize=function(r){return zx(r,this._extent)},t.prototype.scale=function(r){return Bx(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=$U(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:dl(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 UU(e){var t=oSe(e),r=[];return D(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")||(ZU(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:GI(n)})}),jU(r)}function jU(e){var t={};D(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 D(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=He(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),D(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;D(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;D(a,function(m,y){r[i][y]=r[i][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+c)})}),r}function sSe(e,t,r){if(e&&t){var n=e[HI(t)];return n!=null&&r!=null?n[GI(r)]:n}}function YU(e,t){var r=WU(e,t),n=UU(r);D(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=GI(i),u=n[HI(s)][l],c=u.offset,f=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function qU(e){return{seriesType:e,plan:Jf(),reset:function(t){if(XU(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=Ls(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=a.isHorizontal(),h=lSe(i,a),p=ZU(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&&_a(_*3),w=p&&l&&_a(_*3),C=p&&_a(_),A=n.master.getRect(),T=d?A.width:A.height,M,I=S.getStore(),P=0;(M=x.next())!=null;){var k=I.get(f?g:o,M),R=I.get(s,M),z=h,$=void 0;f&&($=+k-I.get(o,M));var N=void 0,V=void 0,L=void 0,G=void 0;if(d){var U=n.dataToPoint([k,R]);if(f){var B=n.dataToPoint([$,R]);z=B[0]}N=z,V=U[1]+y,L=U[0]-z,G=m,Math.abs(L)>>1;e[i][1]i&&(this._approxInterval=i);var s=Wg.length,l=Math.min(uSe(Wg,this._approxInterval,0,s),s-1);this._interval=Wg[l][1],this._minLevelUnit=Wg[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return nt(r)?r:+Ba(r)},t.prototype.contain=function(r){return Nx(this.parse(r),this._extent)},t.prototype.normalize=function(r){return zx(this.parse(r),this._extent)},t.prototype.scale=function(r){return Bx(r,this._extent)},t.type="time",t}(Es),Wg=[["second",yI],["minute",xI],["hour",Hh],["quarter-day",Hh*6],["half-day",Hh*12],["day",pi*1.2],["half-week",pi*3.5],["week",pi*7],["month",pi*31],["quarter",pi*95],["half-year",lO/2],["year",lO]];function cSe(e,t,r,n){var i=Ba(t),a=Ba(r),o=function(p){return cO(i,p,n)===cO(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 fSe(e,t){return e/=pi,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function dSe(e){var t=30*pi;return e/=t,e>6?6:e>3?3:e>2?2:1}function hSe(e){return e/=Hh,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function xN(e,t){return e/=t?xI:yI,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function pSe(e){return ZH(e,!0)}function vSe(e,t,r){var n=new Date(e);switch(Jc(t)){case"year":case"month":n[fW(r)](0);case"day":n[dW(r)](1);case"hour":n[hW(r)](0);case"minute":n[pW(r)](0);case"second":n[vW(r)](0),n[gW(r)](0)}return n.getTime()}function gSe(e,t,r,n){var i=1e4,a=uW,o=0;function s(T,M,I,P,k,R,z){for(var $=new Date(M),N=M,V=$[P]();N1&&R===0&&I.unshift({value:I[0].value-N})}}for(var R=0;R=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(xSe(n[0]/a)*a),Xt(ySe(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){jh.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=Di(r)/Di(this.base),Nx(r,this._extent)},t.prototype.normalize=function(r){return r=Di(r)/Di(this.base),zx(r,this._extent)},t.prototype.scale=function(r){return r=Bx(r,this._extent),Ug(this.base,r)},t.type="log",t}(Mo),JU=WI.prototype;JU.getMinorTicks=jh.getMinorTicks;JU.getLabel=jh.getLabel;function jg(e,t){return mSe(e,Sa(t))}Mo.registerClass(WI);const SSe=WI;var bSe=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[wSe[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=_Se[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),_Se={min:"_determinedMin",max:"_determinedMax"},wSe={min:"_dataMin",max:"_dataMax"};function ej(e,t,r){var n=e.rawExtentInfo;return n||(n=new bSe(e,t,r),e.rawExtentInfo=n,n)}function Yg(e,t){return t==null?null:Tp(t)?NaN:e.parse(t)}function tj(e,t){var r=e.type,n=ej(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&r==="time"){var s=WU("bar",o),l=!1;if(D(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=UU(s),c=CSe(i,a,t,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function CSe(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=sSe(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;D(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;D(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 bf(e,t){var r=t,n=tj(e,r),i=n.extent,a=r.get("splitNumber");e instanceof SSe&&(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 Fx(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new VI({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new QU({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Mo.getClass(t)||Es)}}function TSe(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function Mv(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):me(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(UI(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function UI(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function ASe(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof VI?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=Mv(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;ce[1]&&(e[1]=i[1])})}var Iv=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),PSe=1e-8;function bN(e,t){return Math.abs(e-t)i&&(n=o,i=l)}if(n)return DSe(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 D(o,function(s){s.type==="polygon"?_N(s.exterior,i,a,r):D(s.points,function(l){_N(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 ESe(e,t){return e=LSe(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 wN(o[0],o.slice(1)));break;case"MultiPolygon":D(i.coordinates,function(l){l[0]&&a.push(new wN(l[0],l.slice(1)))});break;case"LineString":a.push(new CN([i.coordinates]));break;case"MultiLineString":a.push(new CN(i.coordinates))}var s=new ij(n[t||"name"],a,n.cp);return s.properties=n,s})}var Vp=Je();function OSe(e){return e.type==="category"?zSe(e):FSe(e)}function NSe(e,t){return e.type==="category"?BSe(e,t):{ticks:Z(e.scale.getTicks(),function(r){return r.value})}}function zSe(e){var t=e.getLabelModel(),r=oj(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function oj(e,t){var r=sj(e,"labels"),n=jI(t),i=lj(r,n);if(i)return i;var a,o;return me(n)?a=fj(e,n):(o=n==="auto"?$Se(e):n,a=cj(e,o)),uj(r,n,{labels:a,labelCategoryInterval:o})}function BSe(e,t){var r=sj(e,"ticks"),n=jI(t),i=lj(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),me(n))a=fj(e,n,!0);else if(n==="auto"){var s=oj(e,e.getLabelModel());o=s.labelCategoryInterval,a=Z(s.labels,function(l){return l.tickValue})}else o=n,a=cj(e,o,!0);return uj(r,n,{ticks:a,tickCategoryInterval:o})}function FSe(e){var t=e.scale.getTicks(),r=Mv(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 sj(e,t){return Vp(e)[t]||(Vp(e)[t]=[])}function lj(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=mv(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=Vp(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 GSe(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 cj(e,t,r){var n=Mv(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=rj(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 fj(e,t,r){var n=e.scale,i=Mv(e),a=[];return D(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 TN=[0,1],HSe=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return t>=n&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return qH(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),AN(n,i.count())),ct(t,TN,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),AN(n,i.count()));var a=ct(t,n,TN,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=NSe(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 WSe(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 OSe(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 VSe(this)},e}();function AN(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function WSe(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;D(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+=Bd);var h=Math.atan2(s,o);if(h<0&&(h+=Bd),h>=n&&h<=i||h+Bd>=n&&h+Bd<=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,Vi.fromArray(e[0]),bt.fromArray(e[1]),tr.fromArray(e[2]),Le.sub(wa,Vi,bt),Le.sub(ga,tr,bt);var r=wa.len(),n=ga.len();if(!(r<.001||n<.001)){wa.scale(1/r),ga.scale(1/n);var i=wa.dot(ga),a=Math.cos(t);if(a1&&Le.copy(nn,tr),nn.toArray(e[1])}}}}function ZSe(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,Vi.fromArray(e[0]),bt.fromArray(e[1]),tr.fromArray(e[2]),Le.sub(wa,bt,Vi),Le.sub(ga,tr,bt);var n=wa.len(),i=ga.len();if(!(n<.001||i<.001)){wa.scale(1/n),ga.scale(1/i);var a=wa.dot(t),o=Math.cos(r);if(a=l)Le.copy(nn,tr);else{nn.scaleAndAdd(ga,s/Math.tan(Math.PI/2-c));var f=tr.x!==bt.x?(nn.x-bt.x)/(tr.x-bt.x):(nn.y-bt.y)/(tr.y-bt.y);if(isNaN(f))return;f<0?Le.copy(nn,bt):f>1&&Le.copy(nn,tr)}nn.toArray(e[1])}}}}function IN(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 KSe(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=Jo(n[0],n[1]),a=Jo(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=$m([],n[1],n[0],o/i),l=$m([],n[1],n[2],o/a),u=$m([],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 I=M+C;I<0&&b(-I*T,1)}else b(-C*T,1)}}function _(C,A,T){C!==0&&(u=!0);for(var M=A;M0)for(var I=0;I0;I--){var z=T[I-1]*R;_(-z,I,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 QSe(e,t,r,n){return vj(e,"x","width",t,r,n)}function gj(e,t,r,n){return vj(e,"y","height",t,r,n)}function mj(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)),it(n,u,r,l)}else if(n.attr(u),!Yf(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={};qg(h,u,Xg),qg(h,n.states.select,Xg)}if(n.states.emphasis){var p=a.oldLayoutEmphasis={};qg(p,u,Xg),qg(p,n.states.emphasis,Xg)}iW(n,l,c,r,r)}if(i&&!i.ignore&&!i.invisible){var a=tbe(i),o=a.oldLayout,v={points:i.shape.points};o?(i.attr({shape:o}),it(i,{shape:v},r)):(i.setShape(v),i.style.strokePercent=0,Lt(i,{style:{strokePercent:1}},r)),a.oldLayout=v}},e}();const nbe=rbe;var c_=Je();function ibe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=c_(r).labelManager;i||(i=c_(r).labelManager=new nbe),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 f_=Math.sin,d_=Math.cos,yj=Math.PI,pl=Math.PI*2,abe=180/yj,obe=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=is(f-pl)||(c?u>=pl:-u>=pl),h=u>0?u%pl:u%pl+pl,p=!1;d?p=!0:is(f)?p=!1:p=h>=yj==!!c;var v=t+n*d_(o),g=r+i*f_(o);this._start&&this._add("M",v,g);var m=Math.round(a*abe);if(d){var y=1/this._p,x=(c?1:-1)*(pl-y);this._add("A",n,i,m,1,+c,t+n*d_(o+x),r+i*f_(o+x)),y>.01&&this._add("A",n,i,m,0,+c,v,g)}else{var S=t+n*d_(s),_=r+i*f_(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 vbe(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 pbe(o,s)+(o!=="style"?mn(l):l||"")+(a?""+r+Z(a,function(u){return n(u)}).join(r)+r:"")+vbe(o)}return n(e)}function gbe(e,t,r){r=r||{};var n=r.newline?` +`:"",i=" {"+n,a=n+"}",o=Z(He(e),function(l){return l+i+Z(He(e[l]),function(u){return u+":"+e[l][u]+";"}).join(n)+a}).join(n),s=Z(He(t),function(l){return"@keyframes "+l+i+Z(He(t[l]),function(u){return u+i+Z(He(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 KT(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function kN(e,t,r,n){return mr("svg","root",{width:e,height:t,xmlns:Sj,"xmlns:xlink":bj,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+e+" "+t:!1},r)}var DN={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"},wl="transform-origin";function mbe(e,t,r){var n=Y({},e.shape);Y(n,t),e.buildPath(r,n);var i=new xj;return i.reset(zH(e)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function ybe(e,t){var r=t.originX,n=t.originY;(r||n)&&(e[wl]=r+"px "+n+"px")}var xbe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function wj(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function Sbe(e,t,r){var n=e.shape.paths,i={},a,o;if(D(n,function(l){var u=KT(r.zrId);u.animation=!0,$x(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=He(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=wj(i,r);return a.replace(o,s)}}function RN(e){return oe(e)?DN[e]?"cubic-bezier("+DN[e]+")":Z2(e)?e:"":""}function $x(e,t,r,n){var i=e.animators,a=i.length,o=[];if(e instanceof hI){var s=Sbe(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=wj(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 Gp=Math.round;function Cj(e){return e&&oe(e.src)}function Tj(e){return e&&me(e.toDataURL)}function ZI(e,t,r,n){fbe(function(i,a){var o=i==="fill"||i==="stroke";o&&NH(a)?Mj(t,e,i,n):o&&K2(a)?Ij(r,e,i,n):e[i]=a},t,r,!1),Mbe(r,e,n)}function LN(e){return is(e[0]-1)&&is(e[1])&&is(e[2])&&is(e[3]-1)}function bbe(e){return is(e[4])&&is(e[5])}function KI(e,t,r){if(t&&!(bbe(t)&&LN(t))){var n=r?10:1e4;e.transform=LN(t)?"translate("+Gp(t[4]*n)/n+" "+Gp(t[5]*n)/n+")":vve(t)}}function EN(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.";ln(d,g),ln(h,g)}else if(d==null||h==null){var m=function(T,M){if(T){var I=T.elm,P=d||M.width,k=h||M.height;T.tag==="pattern"&&(u?(k=1,P/=a.width):c&&(P=1,k/=a.height)),T.attrs.width=P,T.attrs.height=k,I&&(I.setAttribute("width",P),I.setAttribute("height",k))}},y=iI(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=mr("image","img",{href:p,width:d,height:h}),o.width=d,o.height=h}else i.svgElement&&(f=we(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=mr("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]=mr("pattern",A,o,[f])),t[r]=dx(A)}}function Ibe(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]=mr("clipPath",a,o,[Aj(e,r)])}t["clip-path"]=dx(a)}function zN(e){return document.createTextNode(e)}function Rl(e,t,r){e.insertBefore(t,r)}function BN(e,t){e.removeChild(t)}function FN(e,t){e.appendChild(t)}function Pj(e){return e.parentNode}function kj(e){return e.nextSibling}function h_(e,t){e.textContent=t}var $N=58,Pbe=120,kbe=mr("","");function QT(e){return e===void 0}function ua(e){return e!==void 0}function Dbe(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 ch(e,t){var r=e.key===t.key,n=e.tag===t.tag;return n&&r}function Hp(e){var t,r=e.children,n=e.tag;if(ua(n)){var i=e.elm=_j(n);if(QI(kbe,e),q(r))for(t=0;ta?(p=r[l+1]==null?null:r[l+1].elm,Dj(e,p,r,i,l)):A0(e,t,n,a))}function Sc(e,t){var r=t.elm=e.elm,n=e.children,i=t.children;e!==t&&(QI(e,t),QT(t.text)?ua(n)&&ua(i)?n!==i&&Rbe(r,n,i):ua(i)?(ua(e.text)&&h_(r,""),Dj(r,null,i,0,i.length-1)):ua(n)?A0(r,n,0,n.length-1):ua(e.text)&&h_(r,""):e.text!==t.text&&(ua(n)&&A0(r,n,0,n.length-1),h_(r,t.text)))}function Lbe(e,t){if(ch(e,t))Sc(e,t);else{var r=e.elm,n=Pj(r);Hp(t),n!==null&&(Rl(n,t.elm,kj(r)),A0(n,[e],0,0))}return t}var Ebe=0,Obe=function(){function e(t,r,n){if(this.type="svg",this.refreshHover=VN(),this.configLayer=VN(),this.storage=r,this._opts=n=Y({},n),this.root=t,this._id="zr"+Ebe++,this._oldVNode=kN(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=_j("svg");QI(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",Lbe(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return NN(t,KT(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=KT(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress;var o=[],s=this._bgVNode=Nbe(n,i,this._backgroundColor,a);s&&o.push(s);var l=t.compress?null:this._mainVNode=mr("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=Z(He(a.defs),function(d){return a.defs[d]});if(u.length&&o.push(mr("defs","defs",{},u)),t.animation){var c=gbe(a.cssNodes,a.cssAnims,{newline:!0});if(c){var f=mr("style","stl",{},[],c);o.push(f)}}return kN(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}}k.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?Zg:0),this._needsManuallyCompositing),c.__builtin__||H2("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&Nn&&!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,D(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 Ybe=jbe;function _f(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=xf(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 qbe=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=sr(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=Xbe,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(){mo(this.childAt(0))},t.prototype.downplay=function(){yo(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):it(d,h,s,n),Zi(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=yr(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 _=Lu(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 Fr){var C=s.style;s.useStyle(Y({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},b))}else s.__isEmptyBrush?s.useStyle(Y({},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:I,inheritColor:w,defaultOpacity:b.opacity});function I(R){return M?r.getName(R):_f(r,R)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var P=s.ensureState("emphasis");P.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var k=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;P.scaleX=this._sizeX*k,P.scaleY=this._sizeY*k,this.setSymbolScale(1),Ut(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=Ie(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&Ds(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Ds(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return td(r.getItemVisual(n,"symbolSize"))},t}(Ae);function Xbe(e,t){this.parent.drift(e,t)}const Pv=qbe;function v_(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 WN(e){return e!=null&&!Se(e)&&(e={isIgnore:e}),e||{}}function UN(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:yr(t),cursorStyle:t.get("cursor")}}var Zbe=function(){function e(t){this.group=new Ae,this._SymbolCtor=t||Pv}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=WN(r);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=UN(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(v_(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(!v_(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):it(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=UN(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=WN(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 Ej(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 Qbe(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 Jbe(e,t,r,n,i,a,o,s){for(var l=Qbe(e,t),u=[],c=[],f=[],d=[],h=[],p=[],v=[],g=Lj(i,t,o),m=e.getLayout("points")||[],y=t.getLayout("points")||[],x=0;x=i||v<0)break;if(su(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||su(b,w))h=m,p=y;else{T=b-u,M=w-c;var k=m-u,R=b-m,z=y-c,$=w-y,N=void 0,V=void 0;if(s==="x"){N=Math.abs(k),V=Math.abs(R);var L=T>0?1:-1;h=m-L*N*o,p=y,I=m+L*V*o,P=y}else if(s==="y"){N=Math.abs(z),V=Math.abs($);var G=M>0?1:-1;h=m,p=y-G*N*o,I=m,P=y+G*V*o}else N=Math.sqrt(k*k+z*z),V=Math.sqrt(R*R+$*$),A=V/(V+N),h=m-T*o*(1-A),p=y-M*o*(1-A),I=m+T*o*A,P=y+M*o*A,I=Fo(I,$o(b,m)),P=Fo(P,$o(w,y)),I=$o(I,Fo(b,m)),P=$o(P,Fo(w,y)),T=I-m,M=P-y,h=m-T*N/V,p=y-M*N/V,h=Fo(h,$o(u,m)),p=Fo(p,$o(c,y)),h=$o(h,Fo(u,m)),p=$o(p,Fo(c,y)),T=m-h,M=y-p,I=m+T*V/N,P=y+M*V/N}e.bezierCurveTo(f,d,h,p,m,y),f=I,d=P}else e.lineTo(m,y)}u=m,c=y,v+=a}return g}var Oj=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),e_e=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 Oj},t.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&su(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?Jy(s,h,v,m,r,c):Jy(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?vr(l,p,g,y,w):vr(s,h,v,m,w);return u?[r,S]:[S,r]}}s=m,l=y;break}}},t}($e),t_e=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Oj),Nj=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 t_e},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&&su(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 i_e(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=n_e(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";D(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 Sv(0,0,0,0,d,!0);return y[i]=v,y[i+"2"]=g,y}}}function a_e(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&o_e(a,t))){var o=t.mapDimension(a.dim),s={};return D(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function o_e(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 s_e(e,t){return isNaN(e)||isNaN(t)}function l_e(e){for(var t=e.length/2;t>0&&s_e(e[t*2-2],e[t*2-1]);t--);return t-1}function ZN(e,t){return[e[t*2],e[t*2+1]]}function u_e(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 Fj(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var L=v.getState("emphasis").style;L.lineWidth=+v.style.lineWidth+1}Ie(v).seriesIndex=r.seriesIndex,Ut(v,$,N,V);var G=XN(r.get("smooth")),U=r.get("smoothMonotone");if(v.setShape({smooth:G,smoothMonotone:U,connectNulls:C}),g){var B=l.getCalculationInfo("stackedOnSeries"),j=0;g.useStyle(xe(c.getAreaStyle(),{fill:P,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),B&&(j=XN(B.get("smooth"))),g.setShape({smooth:G,stackedOnSmooth:j,smoothMonotone:U,connectNulls:C}),zr(g,r,"areaStyle"),Ie(g).seriesIndex=r.seriesIndex,Ut(g,$,N,V)}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){Ie(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=yu(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 Pv(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=yu(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;s0(this._polyline,r),n&&s0(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new e_e({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 Nj({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");me(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=me(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=me(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(Fj(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=l_e(l);c>=0&&(Br(s,yr(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?Rj(o,h):_f(o,f)},enableTextSetter:!0},c_e(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=u_e(f,S,w),A=C.range,T=A[1]-A[0],M=void 0;if(T>=1){if(T>1&&!h){var I=ZN(f,A[0]);u.attr({x:I[0]+_,y:I[1]+b}),o&&(M=d.getRawValue(A[0]))}else{var I=c.getPointOn(S,w);I&&u.attr({x:I[0]+_,y:I[1]+b});var P=d.getRawValue(A[0]),k=d.getRawValue(A[1]);o&&(M=a6(i,p,P,k,C.t))}a.lastFrameIndex=A[0]}else{var R=r===1||a.lastFrameIndex>0?A[0]:0,I=ZN(f,R);o&&(M=d.getRawValue(R)),u.attr({x:I[0]+_,y:I[1]+b})}if(o){var z=Yf(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=Jbe(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=Vo(d.current,i,o,l),p=Vo(d.stackedOnCurrent,i,o,l),v=Vo(d.next,i,o,l),g=Vo(d.stackedOnNext,i,o,l)),qN(h,v)>3e3||c&&qN(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(),it(u,m,f),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),it(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=h_e[a]:me(a)&&(p=a),p&&t.setData(i.downSample(i.mapDimension(u.dim),1/h,p,p_e))}}}}}function v_e(e){e.registerChartView(d_e),e.registerSeriesModel(Ybe),e.registerLayout(Dv("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,$j("line"))}var Vj=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 Ao(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)D(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(Vj);const M0=Vj;var g_e=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 Ao(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=Ws(M0.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}(M0);const m_e=g_e;var y_e=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),x_e=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 y_e},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,f=n.endAngle,d=n.clockwise,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){Lp(a,r,Ie(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),KN={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=m_(t.x,e.x),s=y_(t.x+t.width,i),l=m_(t.y,e.y),u=y_(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=y_(t.r,e.r),a=m_(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}},QN={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new Qe({shape:Y({},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?I0:In,c=new u({shape:n,z2:1});c.name="item";var f=Gj(i);if(c.calculateTextPosition=S_e(f,{isRoundCap:u===I0}),a){var d=c.shape,h=i?"r":"endAngle",p={};d[h]=i?n.r0:n.startAngle,p[h]=n[h],(s?it:Lt)(c,{shape:p},a)}return c}};function C_e(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function JN(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?it:Lt)(r,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(o?it:Lt)(r,{shape:u},c,i)}function ez(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 M_e(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function Gj(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 rz(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=Zl(n.getModel("itemStyle"),c,!0);Y(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=yr(n);Br(e,p,{labelFetcher:a,labelDataIndex:r,defaultText:_f(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,b_e(e,g==="outside"?h:g,Gj(o),n.get(["label","rotate"]))}nW(v,p,a.getRawValue(r),function(y){return Rj(t,y)});var m=n.getModel(["emphasis"]);Ut(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),zr(e,n),M_e(i)&&(e.style.fill="none",e.style.stroke="none",D(e.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function I_e(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var P_e=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 P_e},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?r:null},30,!1);function k_e(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=a.length/3;c=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function Hj(e,t,r){if(Ou(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 D_e(e,t,r){var n=e.type==="polar"?In:Qe;return new n({shape:Hj(t,r,e),silent:!0,z2:0})}const R_e=w_e;function L_e(e){e.registerChartView(R_e),e.registerSeriesModel(m_e),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Pe(YU,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,qU("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,$j("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 em=Math.PI*2,oz=Math.PI/180;function Wj(e,t){return hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Uj(e,t){var r=Wj(e,t),n=e.get("center"),i=e.get("radius");q(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 q(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 E_e(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=Wj(n,r),s=Uj(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 _=em,b=0,w=d,C=m?1:-1;if(i.setLayout({viewRect:o,r:c}),i.each(a,function(T,M){var I;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"?I=v===0&&x?g:T*g:I=em/p,Ir?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 x_(e){return e.position==="center"}function z_e(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*O_e,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),I=M.getModel("label"),P=I.get("position")||M.get(["emphasis","label","position"]),k=I.get("distanceToLabelLine"),R=I.get("alignTo"),z=ne(I.get("edgeDistance"),u),$=I.get("bleedMargin"),N=M.getModel("labelLine"),V=N.get("length");V=ne(V,u);var L=N.get("length2");if(L=ne(L,u),Math.abs(C.endAngle-C.startAngle)0?"right":"left":U>0?"left":"right"}var ke=Math.PI,We=0,Ge=I.get("rotate");if(nt(Ge))We=Ge*(ke/180);else if(P==="center")We=0;else if(Ge==="radial"||Ge===!0){var at=U<0?-G+ke:-G;We=at}else if(Ge==="tangential"&&P!=="outside"&&P!=="outer"){var ot=Math.atan2(U,B);ot<0&&(ot=ke*2+ot);var It=B>0;It&&(ot=ke+ot),We=ot-ke}if(a=!!We,A.x=j,A.y=X,A.rotation=We,A.setStyle({verticalAlign:"middle"}),te){A.setStyle({align:ee});var Yt=A.states.select;Yt&&(Yt.x+=A.x,Yt.y+=A.y)}else{var Be=A.getBoundingRect().clone();Be.applyTransform(A.getComputedTransform());var Pt=(A.style.margin||0)+2.1;Be.y-=Pt/2,Be.height+=Pt,r.push({label:A,labelLine:T,position:P,len:V,len2:L,minTurnAngle:N.get("minTurnAngle"),maxSurfaceAngle:N.get("maxSurfaceAngle"),surfaceNormal:new Le(U,B),linePoints:W,textAlign:ee,labelDistance:k,labelAlignTo:R,edgeDistance:z,bleedMargin:$,rect:Be,unconstrainedWidth:Be.width,labelStyleWidth:A.style.width})}w.setTextConfig({inside:te})}}),!a&&e.get("avoidLabelOverlap")&&N_e(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 $_e=F_e;function rd(e,t,r){t=q(t)&&{coordDimensions:t}||Y({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=Av(n,t).dimensions,a=new sn(i,e);return a.initData(n,r),a}var V_e=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 Lv=V_e;var G_e=Je(),H_e=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 Lv(ue(this.getData,this),ue(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return rd(this,{coordDimensions:["value"],encodeDefaulter:Pe(_I,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=G_e(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=Kve(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){mu(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 W_e=H_e;function U_e(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(nt(o)&&!isNaN(o)&&o<0)})}}}function j_e(e){e.registerChartView($_e),e.registerSeriesModel(W_e),fU("pie",e.registerAction),e.registerLayout(Pe(E_e,"pie")),e.registerProcessor(Rv("pie")),e.registerProcessor(U_e("pie"))}var Y_e=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 Ao(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 q_e=Y_e;var Yj=4,X_e=function(){function e(){}return e}(),Z_e=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 X_e},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(r,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&a[0]=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 Q_e=K_e;var J_e=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=Dv("").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 Q_e:new kv,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 ewe=J_e;var twe=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 rwe=twe;var eA=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",or).models[0]},t.type="cartesian2dAxis",t}(et);lr(eA,Iv);var qj={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)"]}}},nwe=Oe({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},qj),JI=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}}},qj),iwe=Oe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},JI),awe=xe({logBase:10},JI);const Xj={category:nwe,value:JI,time:iwe,log:awe};var owe={value:1,category:1,time:1,log:1};function wf(e,t,r,n){D(owe,function(i,a){var o=Oe(Oe({},Xj[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=Np(this),h=d?Zf(c):{},p=f.getTheme();Oe(c,p.get(a+"Axis")),Oe(c,this.getDefaultOption()),c.type=lz(c),d&&Rs(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=YT.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",lz)}function lz(e){return e.type||(e.data?"category":"value")}var swe=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 lwe=swe;var tA=["x","y"];function uz(e){return e.type==="interval"||e.type==="time"}var uwe=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=tA,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!uz(r)||!uz(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=Gf([],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}(lwe),cwe=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}(Qi);const fwe=cwe;function rA(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 cz(e){return e.get("coordinateSystem")==="cartesian2d"}function fz(e){var t={xAxisModel:null,yAxisModel:null};return D(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,or).models[0];t[n]=a}),t}var S_=Math.log;function Zj(e,t,r){var n=Es.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=tj(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=S_(e.base);u=[S_(u[0])/d,S_(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=o_(p),v=u[1]-p*o;else{var m=e.getTicks().length-1;m>o&&(p=o_(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 dwe=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=tA,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=He(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;qT(v)&&p.get("alignTicks")&&p.get("interval")==null?c.push(h):(bf(v,p),qT(v)&&(s=h))}c.length&&(s||(s=c.pop(),bf(s.scale,s.model)),D(c,function(g){Zj(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};D(n.x,function(o){dz(n,"y",o,a)}),D(n.y,function(o){dz(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=hr(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(D(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=ASe(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()),D(this._coordsList,function(u){u.calcAffineTransform()});function l(){D(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]),hwe(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]}Se(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):a0(i-as)?(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}(),pz={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=Y({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});yf(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=Lu(t.get(["axisLine","symbolOffset"])||0,h),v=h[0],g=h[1];D([{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=sr(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=mwe(r,n,t,e),a=xwe(r,n,t,e);if(gwe(t,a,i),ywe(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=pj(Z(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));mj(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,gz(a)?e.labelOffset+o*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*as/180);var p;gz(a)?d=lu.innerTextLayout(e.rotation,h??e.rotation,o):(d=vwe(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:lu.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(jf({el:x,componentModel:t,itemName:i}),x.__fullText=i,x.anid="name",t.get("triggerEvent")){var S=lu.makeAxisEventDataBase(t);S.targetType="axisName",S.name=i,Ie(x).eventData=S}n.add(x),x.updateTransform(),r.add(x),x.decomposeTransform()}}};function vwe(e,t,r,n){var i=XH(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return a0(i-as/2)?(o=l?"bottom":"top",a="center"):a0(i-as*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",ias/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function gwe(e,t,r){if(!rj(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?(Kn(a),Kn(u)):vz(a,o)&&(n?(Kn(o),Kn(c)):(Kn(a),Kn(u))),i===!1?(Kn(s),Kn(f)):vz(l,s)&&(i?(Kn(l),Kn(d)):(Kn(s),Kn(f)))}}function Kn(e){e&&(e.ignore=!0)}function vz(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=fx([]);return Du(i,i,-e.rotation),r.applyTransform(no([],i,e.getLocalTransform())),n.applyTransform(no([],i,t.getLocalTransform())),r.intersect(n)}}function gz(e){return e==="middle"||e==="center"}function Kj(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l=0||e===t}function Twe(e){var t=eP(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=nA(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=xe({color:p.color},l));var g=Oe(we(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 me(c)&&(g.name=c(g.name,g));var y=new wt(g,null,this.ecModel);return lr(y,Iv.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"}},Fd.axisLine),axisLabel:tm(Fd.axisLabel,!1),axisTick:tm(Fd.axisTick,!1),splitLine:tm(Fd.splitLine,!0),splitArea:tm(Fd.splitArea,!0),indicator:[]},t}(et);const Vwe=$we;var Gwe=["axisLine","axisTickLabel","axisName"],Hwe=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 So(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});D(a,function(o){D(Gwe,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=q(d)?d:[d],v=q(h)?h:[h],g=[],m=[];function y(R,z,$){var N=$%z.length;return R[N]=R[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;w_(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);w_(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!_z(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;w_(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(Ai);function w_(e,t,r,n,i){e.pointerChecker&&e.pointerChecker(n,i.originX,i.originY)&&(vo(n.event),n8(e,t,r,n,i))}function n8(e,t,r,n,i){i.isAvailableBehavior=ue(ey,null,r,n),e.trigger(t,i)}function ey(e,t,r){var n=r[e];return!e||n&&(!oe(n)||t.event[n+"Key"])}const Ev=Jwe;function rP(e,t,r){var n=e.target;n.x+=t,n.y+=r,n.dirty()}function nP(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 eCe={axisPointer:1,tooltip:1,brush:1};function Gx(e,t,r){var n=t.getComponentByElement(e.topTarget),i=n&&n.coordinateSystem;return n&&n!==r&&!eCe.hasOwnProperty(n.mainType)&&i&&i.model!==r}function i8(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 C_,P0={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"},wz=He(P0),k0={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Cz=He(k0),tCe=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,r){r=r||{};var n=i8(t);this._defsUsePending=[];var i=new Ae;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),Dn(n,i,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;iCe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var d=Hx(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=o8(c,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var h=i;i=new Ae,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=C_[s];if(c&&ce(C_,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=Tz[s];if(h&&ce(Tz,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 kp({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Qn(r,n),Dn(t,n,this._defsUsePending,!1,!1),rCe(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(){C_={g:function(t,r){var n=new Ae;return Qn(r,n),Dn(t,n,this._defsUsePending,!1,!1),n},rect:function(t,r){var n=new Qe;return Qn(r,n),Dn(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 $a;return Qn(r,n),Dn(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 Qn(r,n),Dn(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 fI;return Qn(r,n),Dn(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=Iz(n));var a=new Pn({shape:{points:i||[]},silent:!0});return Qn(r,a),Dn(t,a,this._defsUsePending,!1,!1),a},polyline:function(t,r){var n=t.getAttribute("points"),i;n&&(i=Iz(n));var a=new kn({shape:{points:i||[]},silent:!0});return Qn(r,a),Dn(t,a,this._defsUsePending,!1,!1),a},image:function(t,r){var n=new Fr;return Qn(r,n),Dn(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 Ae;return Qn(r,s),Dn(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 Ae;return Qn(r,s),Dn(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=O6(n);return Qn(r,i),Dn(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),e}(),Tz={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 Sv(t,r,n,i);return Az(e,a),Mz(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 q6(t,r,n);return Az(e,i),Mz(e,i),i}};function Az(e,t){var r=e.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(t.global=!0)}function Mz(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={};a8(r,a,a);var o=a.stopColor||r.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}r=r.nextSibling}}function Qn(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),xe(t.__inheritedStyle,e.__inheritedStyle))}function Iz(e){for(var t=Hx(e),r=[],n=0;n0;a-=2){var o=n[a],s=n[a-1],l=Hx(o);switch(i=i||_i(),s){case"translate":Na(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":X2(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Du(i,i,-parseFloat(l[0])*T_);break;case"skewX":var u=Math.tan(parseFloat(l[0])*T_);no(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*T_);no(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 kz=/([^\s:;]+)\s*:\s*([^:;]+)/g;function a8(e,t,r){var n=e.getAttribute("style");if(n){kz.lastIndex=0;for(var i;(i=kz.exec(n))!=null;){var a=i[1],o=ce(P0,a)?P0[a]:null;o&&(t[o]=i[2]);var s=ce(k0,a)?k0[a]:null;s&&(r[s]=i[2])}}}function lCe(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=ve(),n=ve(),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,yr(n),{labelFetcher:d,labelDataIndex:f,defaultText:r},h);var p=t.getTextContent();if(p&&(s8(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 Oz(e,t,r,n,i,a){e.data?e.data.setItemGraphicEl(a,t):Ie(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:r,region:n&&n.option||{}}}function Nz(e,t,r,n,i){e.data||jf({el:t,componentModel:i,itemName:r,itemTooltipOption:n.get("tooltip")})}function zz(e,t,r,n,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var a=n.getModel("emphasis"),o=a.get("focus");return Ut(t,o,a.get("blurScope"),a.get("disabled")),e.isGeo&&Mme(t,i,r),o}function Bz(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(),D(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 kCe=PCe;function DCe(e,t){var r={};return D(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=hr(_,{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 NCe(e,t){D(t.get("geoCoord"),function(r,n){e.addGeoCoord(n,r)})}var zCe=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 Gz(l+s,l,Y({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=Hz,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)}}),D(a,function(o,s){var l=Z(o,function(c){return c.get("nameMap")}),u=new Gz(s,s,Y({nameMap:W2(l)},i(o[0])));u.zoomLimit=Cr.apply(null,Z(o,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=Hz,u.resize(o[0],r),D(o,function(c){c.coordinateSystem=u,NCe(u,c)})}),n},e.prototype.getFilledRegions=function(t,r,n,i){for(var a=(t||[]).slice(),o=ve(),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 jCe(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){XCe(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=ZCe(e,i,e.parentNode.hierNode.defaultAncestor||n[0],t)}function YCe(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function Uz(e){return arguments.length?e:JCe}function fh(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function qCe(e,t){return hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function XCe(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 ZCe(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=A_(s),a=M_(a),s&&a;){i=A_(i),o=M_(o),i.hierNode.ancestor=e;var d=s.hierNode.prelim+f-a.hierNode.prelim-u+n(s,a);d>0&&(QCe(KCe(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&&!A_(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=f-l),a&&!M_(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,r=e)}return r}function A_(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function M_(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function KCe(e,t,r){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:r}function QCe(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 JCe(e,t){return e.parentNode===t.parentNode?1:2}var eTe=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),tTe=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 eTe},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 I=s.get(["emphasis","focus"]),P=I==="relative"?Ky(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;P&&(Ie(r).focus=P),nTe(i,o,c,r,p,h,v,n),r.__edge&&(r.onHoverStateChange=function(k){if(k!=="blur"){var R=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===xv||s0(r.__edge,k)}})}function nTe(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 bx({shape:oA(c,f,d,i,i)})),it(v,{shape:oA(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 g8(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function lP(e,t){var r=g8(e);return ze(r,t)>=0}function Wx(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 pTe=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=sP.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 xr("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=Wx(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 vTe=pTe;function gTe(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 mTe(e,t){e.eachSeriesByType("tree",function(r){yTe(r,t)})}function yTe(e,t){var r=qCe(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=Uz(function(x,S){return(x.parentNode===S.parentNode?1:2)/x.depth})):(i=r.width,a=r.height,o=Uz());var s=e.getData().tree.root,l=s.children[0];if(l){UCe(s),gTe(l,jCe,o),s.hierNode.modifier=-l.hierNode.prelim,Vd(l,YCe);var u=l,c=l,f=l;Vd(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),Vd(l,function(x){g=(x.getLayout().x+h)*p,m=(x.depth-1)*v;var S=fh(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),Vd(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),Vd(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 xTe(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");Y(s,o)})})}function STe(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=aP(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function bTe(e){e.registerChartView(iTe),e.registerSeriesModel(vTe),e.registerLayout(mTe),e.registerVisual(xTe),STe(e)}var Zz=["treemapZoomToNode","treemapRender","treemapMove"];function _Te(e){for(var t=0;t1;)a=a.parentNode;var o=ET(e.ecModel,a.name||a.dataIndex+"",n);i.setVisual("decal",o)})}var wTe=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};y8(i);var a=r.levels||[],o=this.designatedVisualItemStyle={},s=new wt({itemStyle:o},this,n);a=r.levels=CTe(a,n);var l=Z(a||[],function(f){return new wt(f,s,n)},this),u=sP.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 xr("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=Wx(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},Y(this.layoutInfo,r)},t.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=ve(),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(){m8(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 y8(e){var t=0;D(e.children,function(n){y8(n);var i=n.value;q(i)&&(i=i[0]),t+=i});var r=e.value;q(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),q(e.value)?e.value[0]=r:e.value=r}function CTe(e,t){var r=pt(t.get("color")),n=pt(t.get(["aria","decal","decals"]));if(r){e=e||[];var i,a;D(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 TTe=wTe;var ATe=8,Kz=8,I_=5,MTe=function(){function e(t){this.group=new Ae,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),Dx(o,f.pos,f.box)}},e.prototype._prepare=function(t,r,n){for(var i=t;i;i=i.parentNode){var a=dr(i.getModel().get("name"),""),o=n.getTextRect(a),s=Math.max(o.width+ATe*2,r.emptyItemWidth);r.totalWidth+=s+Kz,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=Nye(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 Pn({shape:{points:ITe(l,0,y,c,v===h.length-1,v===0)},style:xe(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new rt({style:_t(a,{text:x})}),textConfig:{position:"inside"},z2:Wf*1e4,onclick:Pe(s,m)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=_t(o,{text:x}),S.ensureState("emphasis").style=p,Ut(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),PTe(S,t,m),l+=y+Kz}},e.prototype.remove=function(){this.group.removeAll()},e}();function ITe(e,t,r,n,i,a){var o=[[i?e:e-I_,t],[e+r,t],[e+r,t+n],[i?e:e-I_,t+n]];return!a&&o.splice(2,0,[e+r+I_,t+n/2]),!i&&o.push([e,t+n/2]),o}function PTe(e,t,r){Ie(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&&Wx(r,t)}}const kTe=MTe;var DTe=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;iJz||Math.abs(r.dy)>Jz)){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=_i();Na(u,u,[-n,-i]),X2(u,u,[r.scale,r.scale]),Na(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&&h0(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 kTe(this.group))).render(r,n,i.node,function(o){a._state!=="animating"&&(lP(r.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Gd(),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 Gd(){return{nodeGroup:[],background:[],content:[]}}function zTe(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=j("nodeGroup",sA);if(!M)return;if(l.add(M),M.x=c.x||0,M.y=c.y||0,M.markRedraw(),D0(M).nodeWidth=h,D0(M).nodeHeight=p,c.isAboveViewRoot)return M;var I=j("background",Qz,u,ETe);I&&V(M,I,_&&c.upperLabelHeight);var P=d.getModel("emphasis"),k=P.get("focus"),R=P.get("blurScope"),z=P.get("disabled"),$=k==="ancestor"?o.getAncestorsIndices():k==="descendant"?o.getDescendantIndices():k;if(_)Rp(M)&&Ul(M,!1),I&&(Ul(I,!z),f.setItemGraphicEl(o.dataIndex,I),AT(I,$,R));else{var N=j("content",Qz,u,OTe);N&&L(M,N),I.disableMorphing=!0,I&&Rp(I)&&Ul(I,!1),Ul(M,!z),f.setItemGraphicEl(o.dataIndex,M),AT(M,$,R)}return M;function V(ee,te,ie){var re=Ie(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,fe=rB(b);fe.fill=J;var de=Tl(w);de.fill=w.get("borderColor");var ke=Tl(C);ke.fill=C.get("borderColor");var We=Tl(A);if(We.fill=A.get("borderColor"),ie){var Ge=h-2*v;U(te,J,Q.opacity,{x:v,y:0,width:Ge,height:S})}else te.removeTextContent();te.setStyle(fe),te.ensureState("emphasis").style=de,te.ensureState("blur").style=ke,te.ensureState("select").style=We,Su(te)}ee.add(te)}function L(ee,te){var ie=Ie(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"),fe=J.fill,de=rB(b);de.fill=fe,de.decal=J.decal;var ke=Tl(w),We=Tl(C),Ge=Tl(A);U(te,fe,J.opacity,null),te.setStyle(de),te.ensureState("emphasis").style=ke,te.ensureState("blur").style=We,te.ensureState("select").style=Ge,Su(te)}ee.add(te)}function G(ee){!ee.invisible&&a.push(ee)}function U(ee,te,ie,re){var Q=d.getModel(re?tB:eB),J=dr(d.get("name"),null),fe=Q.getShallow("show");Br(ee,yr(d,re?tB:eB),{defaultText:fe?J:null,inheritColor:te,defaultOpacity:ie,labelFetcher:e,labelDataIndex:o.dataIndex});var de=ee.getTextContent();if(de){var ke=de.style,We=j2(ke.padding||0);re&&(ee.setTextConfig({layoutRect:re}),de.disableLabelLayout=!0),de.beforeUpdate=function(){var at=Math.max((re?re.width:ee.shape.width)-We[1]-We[3],0),ot=Math.max((re?re.height:ee.shape.height)-We[0]-We[2],0);(ke.width!==at||ke.height!==ot)&&de.setStyle({width:at,height:ot})},ke.truncateMinChar=2,ke.lineOverflow="truncate",B(ke,re,c);var Ge=de.getState("emphasis");B(Ge?Ge.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 j(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 wi&&(Q.z2=BTe(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=Y({},te.shape)}function W(ee,te){var ie=ee[m]={},re=o.parentNode,Q=te instanceof Ae;if(re&&(!n||n.direction==="drillDown")){var J=0,fe=0,de=i.background[re.getRawIndex()];!n&&de&&de.oldShape&&(J=de.oldShape.width,fe=de.oldShape.height),Q?(ie.oldX=0,ie.oldY=fe):ie.oldShape={x:J,y:fe,width:0,height:0}}ie.fadein=!Q}}function BTe(e,t){return e*LTe+t}const FTe=NTe;var jp=D,$Te=Se,R0=-1,uP=function(){function e(t){var r=t.mappingMethod,n=t.type,i=this.option=we(t);this.type=n,this.mappingMethod=r,this._normalizeData=HTe[r];var a=e.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[r],r==="piecewise"?(P_(i),VTe(i)):r==="category"?i.categories?GTe(i):P_(i,!0):(ln(r!=="linear"||i.dataExtent),P_(i))}return e.prototype.mapValueToVisual=function(t){var r=this._normalizeData(t);return this._normalizedToVisual(r,t)},e.prototype.getNormalizer=function(){return ue(this._normalizeData,this)},e.listVisualTypes=function(){return He(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,r,n){Se(t)?D(t,r,n):r.call(n,t)},e.mapVisual=function(t,r,n){var i,a=q(t)?[]:Se(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&&jp(e.visualHandlers,function(i,a){t.hasOwnProperty(a)&&(r[a]=t[a],n=!0)}),n?r:null},e.prepareVisualTypes=function(t){if(q(t))t=t.slice();else if($Te(t)){var r=[];jp(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 P_(e,t){var r=e.visual,n=[];Se(r)?jp(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]),x8(e,n)}function nm(e){return{applyVisual:function(t,r,n){var i=this.mapValueToVisual(t);n("color",e(r("color"),i))},_normalizedToVisual:lA([0,1])}}function nB(e){var t=this.option.visual;return t[Math.round(ct(e,[0,1],[0,t.length-1],!0))]||{}}function Hd(e){return function(t,r,n){n(e,this.mapValueToVisual(t))}}function dh(e){var t=this.option.visual;return t[this.option.loop&&e!==R0?e%t.length:e]}function Al(){return this.option.visual[0]}function lA(e){return{linear:function(t){return ct(t,e,this.option.visual,!0)},category:dh,piecewise:function(t,r){var n=uA.call(this,r);return n==null&&(n=ct(t,e,this.option.visual,!0)),n},fixed:Al}}function uA(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var n=uP.findPieceIndex(e,r),i=r[n];if(i&&i.visual)return i.visual[this.type]}}function x8(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=Z(t,function(r){var n=Vn(r);return n||[0,0,0,1]})),t}var HTe={linear:function(e){return ct(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,r=uP.findPieceIndex(e,t,!0);if(r!=null)return ct(r,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??R0},fixed:rr};function im(e,t,r){return e?t<=r:t=r.length||v===r[v.depth]){var m=XTe(i,l,v,g,p,n);b8(v,m,r,n)}})}}}function jTe(e,t,r){var n=Y({},t),i=r.designatedVisualItemStyle;return D(["color","colorAlpha","colorSaturation"],function(a){i[a]=t[a];var o=e.get(a);i[a]=null,o!=null&&(n[a]=o)}),n}function iB(e){var t=k_(e,"color");if(t){var r=k_(e,"colorAlpha"),n=k_(e,"colorSaturation");return n&&(t=Nh(t,null,null,n)),r&&(t=e0(t,r)),t}}function YTe(e,t){return t!=null?Nh(t,null,null,e):null}function k_(e,t){var r=e[t];if(r!=null&&r!=="none")return r}function qTe(e,t,r,n,i,a){if(!(!a||!a.length)){var o=D_(t,"color")||i.color!=null&&i.color!=="none"&&(D_(t,"colorAlpha")||D_(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 S8(d).drColorMappingBy=c,d}}}function D_(e,t){var r=e.get(t);return q(r)&&r.length?{name:t,range:r}:null}function XTe(e,t,r,n,i,a){var o=Y({},t);if(i){var s=i.type,l=s==="color"&&S8(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 Yp=Math.max,L0=Math.min,aB=Cr,cP=D,_8=["itemStyle","borderWidth"],ZTe=["itemStyle","gapWidth"],KTe=["upperLabel","show"],QTe=["upperLabel","height"];const JTe={seriesType:"treemap",reset:function(e,t,r,n){var i=r.getWidth(),a=r.getHeight(),o=e.option,s=hr(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],u=ne(aB(s.width,l[0]),i),c=ne(aB(s.height,l[1]),a),f=n&&n.type,d=["treemapZoomToNode","treemapRootToNode"],h=Up(n,d,e),p=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,v=e.getViewRoot(),g=g8(v);if(f!=="treemapMove"){var m=f==="treemapZoomToNode"?aAe(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),w8(v,x,!1,0),S=v.getLayout(),cP(g,function(b,w){var C=(g[w+1]||v).getValue();b.setLayout(Y({dataExtent:[C,C],borderWidth:0,upperHeight:0},S))})}var _=e.getData().tree.root;_.setLayout(oAe(s,p,h),!0),e.setLayoutInfo(s),C8(_,new Ne(-s.x,-s.y,i,a),g,v,0)}};function w8(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(_8),u=s.get(ZTe)/2,c=T8(s),f=Math.max(l,c),d=l-u,h=f-u;e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),i=Yp(i-2*d,0),a=Yp(a-d-h,0);var p=i*a,v=eAe(e,s,p,t,r,n);if(v.length){var g={x:d,y:h,width:i,height:a},m=L0(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=iAe(x,m,t.squareRatio);w<=y?(S++,y=w):(x.area-=x.pop().getLayout().area,oB(x,m,g,u,!1),m=L0(g.width,g.height),x.length=x.area=0,y=1/0)}if(x.length&&oB(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 iAe(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?Yp(u*n/l,l/(u*i)):1/0}function oB(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;fyE&&(u=yE),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}(Ae);const pP=TAe;var AAe=function(){function e(t){this.group=new Ae,this._LineCtor=t||pP}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=dB(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=dB(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!MAe(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0}function dB(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:yr(t)}}function hB(e){return isNaN(e[0])||isNaN(e[1])}function N_(e){return e&&!hB(e[0])&&!hB(e[1])}const vP=AAe;var z_=[],B_=[],F_=[],lc=_r,$_=eu,pB=Math.abs;function vB(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){z_[0]=lc(n[0],i[0],a[0],c),z_[1]=lc(n[1],i[1],a[1],c);var f=pB($_(z_,t)-l);f=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function V_(e,t){var r=[],n=Ap,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=[ro(u[0]),ro(u[1])],u[2]&&u.__original.push(ro(u[2])));var d=u.__original;if(u[2]!=null){if(en(i[0],d[0]),en(i[1],d[2]),en(i[2],d[1]),c&&c!=="none"){var h=ph(s.node1),p=vB(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=ph(s.node2),p=vB(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]}en(u[0],i[0]),en(u[1],i[2]),en(u[2],i[1])}else{if(en(a[0],d[0]),en(a[1],d[1]),Hl(o,a[1],a[0]),Vf(o,o),c&&c!=="none"){var h=ph(s.node1);QC(a[0],a[0],o,h*t)}if(f&&f!=="none"){var h=ph(s.node2);QC(a[1],a[1],o,-h*t)}en(u[0],a[0]),en(u[1],a[1])}})}function gB(e){return e.type==="view"}var IAe=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 kv,a=new vP,o=this.group;this._controller=new Ev(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(gB(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):it(u,c,r)}V_(r.getGraph(),hh(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),hP(r,"symbolSize",x,[A.offsetX,A.offsetY]),a.updateLayout(r);break;case"none":default:f.setItemLayout(S,[_.x,_.y]),dP(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"&&(Ie(_).focus=x.getAdjacentDataIndices())}}),f.graph.eachEdge(function(x){var S=x.getGraphicEl(),_=x.getModel().get(["emphasis","focus"]);S&&_==="adjacency"&&(Ie(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){P8(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)&&!Gx(u,i,r)}),!gB(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){rP(s,u.dx,u.dy),i.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){nP(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(),V_(r.getGraph(),hh(r)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),i=hh(r);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},t.prototype.updateLayout=function(r){V_(r.getGraph(),hh(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 PAe=IAe;function uc(e){return"_EC_"+e}var kAe=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[uc(t)]){var i=new Ml(t,r);return i.hostGraph=this,this.nodes.push(i),n[uc(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[uc(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 Ml||(t=i[uc(t)]),r instanceof Ml||(r=i[uc(r)]),!(!t||!r)){var o=t.id+"-"+r.id,s=new D8(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 Ml&&(t=t.id),r instanceof Ml&&(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 Ml||(r=this._nodesMap[uc(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)}}}lr(Ml,R8("hostGraph","data"));lr(D8,R8("hostGraph","edgeData"));const DAe=kAe;function L8(e,t,r,n,i){for(var a=new DAe(n),o=0;o "+d)),u++)}var h=r.get("coordinateSystem"),p;if(h==="cartesian2d"||h==="polar")p=Ao(e,r);else{var v=Cv.get(h),g=v?v.dimensions||[]:[];ze(g,"value")<0&&g.concat(["value"]);var m=Av(e,{coordDimensions:g,encodeDefine:r.getEncode()}).dimensions;p=new sn(m,r),p.initData(e)}var y=new sn(["value"],r);return y.initData(l,s),i&&i(p,y),p8({mainData:p,struct:a,structAttr:"graph",datas:{node:p,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var RAe=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 Lv(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),mu(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){hAe(this);var s=L8(a,i,this,!0,l);return D(s.edges,function(u){pAe(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),xr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=tU({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:Y({value:0},i)}),n=new sn(["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 LAe=RAe;var EAe={type:"graphRoam",event:"graphRoam",update:"none"};function OAe(e){e.registerChartView(PAe),e.registerSeriesModel(LAe),e.registerProcessor(lAe),e.registerVisual(uAe),e.registerVisual(cAe),e.registerLayout(vAe),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,mAe),e.registerLayout(xAe),e.registerCoordinateSystem("graphView",{dimensions:Ov.dimensions,create:bAe}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},rr),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},rr),e.registerAction(EAe,function(t,r,n){r.eachComponent({mainType:"series",query:t},function(i){var a=i.coordinateSystem,o=aP(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var NAe=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),zAe=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 NAe},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}($e);const BAe=zAe;function FAe(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 om(e,t){var r=e==null?"":e+"";return t&&(oe(t)?r=t.replace("{value}",r):me(t)&&(r=t(e))),r}var $Ae=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=FAe(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?I0:In,p=f.get("show"),v=f.getModel("lineStyle"),g=v.get("width"),m=[u,c];f6(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&&(j+=Math.PI)):B==="tangential"?j=-C-Math.PI/2:nt(B)&&(j=B*Math.PI/180),j===0?f.add(new rt({style:_t(x,{text:V,x:G,y:U,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:k<-.4?"left":k>.4?"right":"center"},{inheritColor:L}),silent:!0})):f.add(new rt({style:_t(x,{text:V,x:G,y:U,verticalAlign:"middle",align:"center"},{inheritColor:L}),silent:!0,originX:G,originY:U,rotation:j}))}if(y.get("show")&&z!==S){var $=y.get("distance");$=$?$+c:c;for(var X=0;X<=_;X++){k=Math.cos(C),R=Math.sin(C);var W=new Tr({shape:{x1:k*(p-$)+d,y1:R*(p-$)+h,x2:k*(p-w-$)+d,y2:R*(p-w-$)+h},silent:!0,style:I});I.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 I=y.getItemModel(T),P=I.getModel("pointer"),k=ne(P.get("width"),o.r),R=ne(P.get("length"),o.r),z=r.get(["pointer","icon"]),$=P.get("offsetCenter"),N=ne($[0],o.r),V=ne($[1],o.r),L=P.get("keepAspect"),G;return z?G=sr(z,N-k/2,V-R,k,R,null,L):G=new BAe({shape:{angle:-Math.PI/2,width:k,r:R,x:N,y:V}}),G.rotation=-(M+Math.PI/2),G.x=o.cx,G.y=o.cy,G}function A(T,M){var I=g.get("roundCap"),P=I?I0:In,k=g.get("overlap"),R=k?g.get("width"):c/y.count(),z=k?o.r-R:o.r-(T+1)*R,$=k?o.r:o.r-T*R,N=new P({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:z,r:$}});return k&&(N.z2=_-y.get(x,T)%_),N}(m||v)&&(y.diff(d).add(function(T){var M=y.get(x,T);if(v){var I=C(T,s);Lt(I,{rotation:-((isNaN(+M)?w[0]:ct(M,b,w,!0))+Math.PI/2)},r),f.add(I),y.setItemGraphicEl(T,I)}if(m){var P=A(T,s),k=g.get("clip");Lt(P,{shape:{endAngle:ct(M,b,w,k)}},r),f.add(P),wT(r.seriesIndex,y.dataType,T,P),p[T]=P}}).update(function(T,M){var I=y.get(x,T);if(v){var P=d.getItemGraphicEl(M),k=P?P.rotation:s,R=C(T,k);R.rotation=k,it(R,{rotation:-((isNaN(+I)?w[0]:ct(I,b,w,!0))+Math.PI/2)},r),f.add(R),y.setItemGraphicEl(T,R)}if(m){var z=h[M],$=z?z.shape.endAngle:s,N=A(T,$),V=g.get("clip");it(N,{shape:{endAngle:ct(I,b,w,V)}},r),f.add(N),wT(r.seriesIndex,y.dataType,T,N),p[T]=N}}).execute(),y.each(function(T){var M=y.getItemModel(T),I=M.getModel("emphasis"),P=I.get("focus"),k=I.get("blurScope"),R=I.get("disabled");if(v){var z=y.getItemGraphicEl(T),$=y.getItemVisual(T,"style"),N=$.fill;if(z instanceof Fr){var V=z.style;z.useStyle(Y({image:V.image,x:V.x,y:V.y,width:V.width,height:V.height},$))}else z.useStyle($),z.type!=="pointer"&&z.setColor(N);z.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),z.style.fill==="auto"&&z.setStyle("fill",a(ct(y.get(x,T),b,[0,1],!0))),z.z2EmphasisLift=0,zr(z,M),Ut(z,P,k,R)}if(m){var L=p[T];L.useStyle(y.getItemVisual(T,"style")),L.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),L.z2EmphasisLift=0,zr(L,M),Ut(L,P,k,R)}}),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=sr(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 Ae,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 Ae,_=a(ct(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 I=M.get("offsetCenter"),P=o.cx+ne(I[0],o.r),k=o.cy+ne(I[1],o.r),R=ne(M.get("width"),o.r),z=ne(M.get("height"),o.r),$=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:P,y:k,text:om(x,N),width:isNaN(R)?null:R,height:isNaN(z)?null:z,align:"center",verticalAlign:"middle"},{inheritColor:$})}),nW(T,{normal:M},x,function(L){return om(L,N)}),v&&iW(T,m,l,r,{getFormattedLabel:function(L,G,U,B,j,X){return om(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 VAe=$Ae;var GAe=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 rd(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 HAe=GAe;function WAe(e){e.registerChartView(VAe),e.registerSeriesModel(HAe)}var UAe=["itemStyle","opacity"],jAe=function(e){H(t,e);function t(r,n){var i=e.call(this)||this,a=i,o=new kn,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(UAe);c=c??1,i||Zi(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)):it(a,{style:{opacity:c},shape:{points:l.points}},o,n),zr(a,s),this._updateLabel(r,n),Ut(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,yr(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},it(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),YI(i,qI(l),{stroke:d})},t}(Pn),YAe=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 jAe(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);Lp(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 qAe=YAe;var XAe=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 Lv(ue(this.getData,this),ue(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.getInitialData=function(r,n){return rd(this,{coordDimensions:["value"],encodeDefaulter:Pe(_I,this)})},t.prototype._defaultLabelLine=function(r){mu(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 ZAe=XAe;function KAe(e,t){return hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function QAe(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();omMe)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||!H_(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 H_(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}const SMe=yMe;var bMe=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){D(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){r.hasOwnProperty(n)&&(this.option[n]=r[n])},this)},t.prototype._initDimensions=function(){var r=this.dimensions=[],n=this.parallelAxisIndex=[],i=dt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);D(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 _Me=bMe;var wMe=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}(Qi);const CMe=wMe;function zu(e,t,r,n,i,a){e=e||0;var o=r[1]-r[0];if(i!=null&&(i=cc(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=cc(s,[0,o]),i=a=cc(s,[i,a]),n=0}t[0]=cc(t[0],r),t[1]=cc(t[1],r);var l=W_(t,n);t[n]+=e;var u=i||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=cc(t[n],c);var f;return f=W_(t,n),i!=null&&(f.sign!==l.sign||f.spana&&(t[1-n]=t[n]+f.sign*a),t}function W_(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 cc(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var U_=D,O8=Math.min,N8=Math.max,xB=Math.floor,TMe=Math.ceil,SB=Xt,AMe=Math.PI,MMe=function(){function e(t,r,n){this.type="parallel",this._axesMap=ve(),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;U_(i,function(o,s){var l=a[s],u=r.getComponent("parallelAxis",l),c=this._axesMap.set(o,new CMe(o,Fx(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();U_(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),bf(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,r){this._rect=hr(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=sm(t.get("axisExpandWidth"),l),f=sm(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=sm(h[1]-h[0],l),h[1]=h[0]+p;else{p=sm(c*(f-1),l);var v=t.get("axisExpandCenter")||xB(u/2);h=[c*v-p/2],h[1]=h[0]+p}var g=(s-p)/(u-f);g<3&&(g=0);var m=[xB(SB(h[0]/c,1))+1,TMe(SB(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])}),U_(n,function(o,s){var l=(i.axisExpandable?PMe:IMe)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:AMe/2,vertical:0},f=[u[a].x+t.x,u[a].y+t.y],d=c[a],h=_i();Du(h,h,d),Na(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=[];D(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=[N8(0,p-h/2)],i[1]=O8(o[1],i[0]+h),i[0]=i[1]-h}return{axisExpandWindow:i,behavior:u}},e}();function sm(e,t){return O8(N8(e,t[0]),t[1])}function IMe(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function PMe(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--)gi(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;aNMe}function H8(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function W8(e,t,r,n){var i=new Ae;return i.add(new Qe({name:"main",style:xP(r),silent:!0,draggable:!0,cursor:"move",drift:Pe(CB,e,t,i,["n","s","w","e"]),ondragend:Pe(wu,t,{isEnd:!0})})),D(n,function(a){i.add(new Qe({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Pe(CB,e,t,i,a),ondragend:Pe(wu,t,{isEnd:!0})}))}),i}function U8(e,t,r,n){var i=n.brushStyle.lineWidth||0,a=Cf(i,zMe),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;Ua(e,t,"main",o,s,p,v),n.transformable&&(Ua(e,t,"w",l,u,a,m),Ua(e,t,"e",d,u,a,m),Ua(e,t,"n",l,u,g,a),Ua(e,t,"s",l,h,g,a),Ua(e,t,"nw",l,u,a,a),Ua(e,t,"ne",d,u,a,a),Ua(e,t,"sw",l,h,a,a),Ua(e,t,"se",d,h,a,a))}function pA(e,t){var r=t.__brushOption,n=r.transformable,i=t.childAt(0);i.useStyle(xP(r)),i.attr({silent:!n,cursor:n?"move":"default"}),D([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?vA(e,a[0]):WMe(e,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?FMe[s]+"-resize":null})})}function Ua(e,t,r,n,i,a,o){var s=t.childOfName(r);s&&s.setShape(jMe(SP(e,t,[[n,i],[n+a,i+o]])))}function xP(e){return xe({strokeNoScale:!0},e.brushStyle)}function j8(e,t,r,n){var i=[Xp(e,r),Xp(t,n)],a=[Cf(e,r),Cf(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function HMe(e){return au(e.group)}function vA(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=Cx(r[t],HMe(e));return n[i]}function WMe(e,t){var r=[vA(e,t[0]),vA(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function CB(e,t,r,n,i,a){var o=r.__brushOption,s=e.toRectRange(o.range),l=Y8(t,i,a);D(n,function(u){var c=BMe[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(j8(s[0][0],s[1][0],s[0][1],s[1][1])),gP(t,r),wu(t,{isEnd:!1})}function UMe(e,t,r,n){var i=t.__brushOption.range,a=Y8(e,r,n);D(i,function(o){o[0]+=a[0],o[1]+=a[1]}),gP(e,t),wu(e,{isEnd:!1})}function Y8(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 SP(e,t,r){var n=G8(e,t);return n&&n!==_u?n.clipPath(r,e._transform):we(r)}function jMe(e){var t=Xp(e[0][0],e[1][0]),r=Xp(e[0][1],e[1][1]),n=Cf(e[0][0],e[1][0]),i=Cf(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:i-r}}function YMe(e,t,r){if(!(!e._brushType||XMe(e,t.offsetX,t.offsetY))){var n=e._zr,i=e._covers,a=yP(e,t,r);if(!e._dragging)for(var o=0;on.getWidth()||r<0||r>n.getHeight()}var jx={lineX:MB(0),lineY:MB(1),rect:{createCover:function(e,t){function r(n){return n}return W8({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=H8(e);return j8(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){U8(e,t,r,n)},updateCommon:pA,contain:mA},polygon:{createCover:function(e,t){var r=new Ae;return r.add(new kn({name:"main",style:xP(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Pn({name:"main",draggable:!0,drift:Pe(UMe,e,t),ondragend:Pe(wu,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:SP(e,t,r)})},updateCommon:pA,contain:mA}};function MB(e){return{createCover:function(t,r){return W8({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=H8(t),n=Xp(r[0][e],r[1][e]),i=Cf(r[0][e],r[1][e]);return[n,i]},updateCoverShape:function(t,r,n,i){var a,o=G8(t,r);if(o!==_u&&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(),U8(t,r,l,i)},updateCommon:pA,contain:mA}}const bP=VMe;function X8(e){return e=_P(e),function(t){return J6(t,e)}}function Z8(e,t){return e=_P(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 K8(e,t,r){var n=_P(e);return function(i,a){return n.contain(a[0],a[1])&&!Gx(i,t,r)}}function _P(e){return Ne.create(e)}var ZMe=["axisLine","axisTickLabel","axisName"],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,n){e.prototype.init.apply(this,arguments),(this._brushController=new bP(n.getZr())).on("brush",ue(this._onBrush,this))},t.prototype.render=function(r,n,i,a){if(!QMe(r,n,a)){this.axisModel=r,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ae,this.group.add(this._axisGroup),!!r.get("show")){var s=e2e(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),c=u.width,f=r.axis.dim,d=l.getAxisLayout(f),h=Y({strokeContainThreshold:c},d),p=new So(r,h);D(ZMe,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(h,u,r,s,c,i),bv(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:X8(f),isTargetByCursor:K8(f,s,a),getLinearBrushOtherExtent:Z8(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(JMe(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}(jt);function QMe(e,t,r){return r&&r.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function JMe(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 e2e(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}const t2e=KMe;var r2e={type:"axisAreaSelect",event:"axisAreaSelected"};function n2e(e){e.registerAction(r2e,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 i2e={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Q8(e){e.registerComponentView(SMe),e.registerComponentModel(_Me),e.registerCoordinateSystem("parallel",LMe),e.registerPreprocessor(pMe),e.registerComponentModel(bB),e.registerComponentView(t2e),wf(e,"parallel",bB,i2e),n2e(e)}function a2e(e){Fe(Q8),e.registerChartView(oMe),e.registerSeriesModel(cMe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,hMe)}var o2e=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}(),s2e=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new o2e},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(){mo(this)},t.prototype.downplay=function(){yo(this)},t}($e),l2e=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 s2e,g=Ie(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"),I=p.getLayout(),P,k,R,z,$,N,V,L;v.shape.extent=Math.max(1,I.dy),v.shape.orient=h,h==="vertical"?(P=(b!=null?b*u:S.x)+I.sy,k=(w!=null?w*c:S.y)+S.dy,R=(T!=null?T*u:C.x)+I.ty,z=M!=null?M*c:C.y,$=P,N=k*(1-x)+z*x,V=R,L=k*x+z*(1-x)):(P=(b!=null?b*u:S.x)+S.dx,k=(w!=null?w*c:S.y)+I.sy,R=T!=null?T*u:C.x,z=(M!=null?M*c:C.y)+I.ty,$=P*(1-x)+R*x,N=k,V=P*x+R*(1-x),L=z),v.setShape({x1:P,y1:k,x2:R,y2:z,cpx1:$,cpy1:N,cpx2:V,cpy2:L}),v.useStyle(y.getItemStyle()),IB(v.style,h,p);var G=""+m.get("value"),U=yr(m,"edgeLabel");Br(v,U,{labelFetcher:{getFormattedLabel:function(X,W,ee,te,ie,re){return r.getFormattedLabel(X,W,"edge",te,Pa(ie,U.normal&&U.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 IB(W,h,p),W}),s.add(v),d.setItemGraphicEl(p.dataIndex,v);var j=B.get("focus");Ut(v,j==="adjacency"?p.getAdjacentDataIndices():j==="trajectory"?p.getTrajectoryDataIndices():j,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,yr(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),Ie(S).dataType="node";var _=x.get("focus");Ut(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(u2e(s.getBoundingRect(),r,function(){s.removeClipPath()})),this._data=r.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(Tt);function IB(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 Sv(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:i,offset:1}]))}}function u2e(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 c2e=l2e;var f2e=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=L8(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 xr("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 xr("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 d2e=f2e;function h2e(e,t){e.eachSeriesByType("sankey",function(r){var n=r.get("nodeWidth"),i=r.get("nodeGap"),a=p2e(r,t);r.layoutInfo=a;var o=a.width,s=a.height,l=r.getGraph(),u=l.nodes,c=l.edges;g2e(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");v2e(u,c,n,i,o,s,d,h,p)})}function p2e(e,t){return hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function v2e(e,t,r,n,i,a,o,s,l){m2e(e,t,r,i,a,s,l),b2e(e,t,a,i,n,o,s),k2e(e,s)}function g2e(e){D(e,function(t){var r=bs(t.outEdges,E0),n=bs(t.inEdges,E0),i=t.getValue()||0,a=Math.max(r,n,i);t.setLayout({value:a},!0)})}function m2e(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"&&y2e(e,o,a,w);var C=a==="vertical"?(i-r)/w:(n-r)/w;S2e(e,C,a)}function J8(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function y2e(e,t,r,n){if(t==="right"){for(var i=[],a=e,o=0;a.length;){for(var s=0;s0;a--)l*=.99,C2e(s,l,o),j_(s,i,r,n,o),P2e(s,l,o),j_(s,i,r,n,o)}function _2e(e,t){var r=[],n=t==="vertical"?"y":"x",i=xT(e,function(a){return a.getLayout()[n]});return i.keys.sort(function(a,o){return a-o}),D(i.keys,function(a){r.push(i.buckets.get(a))}),r}function w2e(e,t,r,n,i,a){var o=1/0;D(e,function(s){var l=s.length,u=0;D(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 C2e(e,t,r){D(e.slice().reverse(),function(n){D(n,function(i){if(i.outEdges.length){var a=bs(i.outEdges,T2e,r)/bs(i.outEdges,E0);if(isNaN(a)){var o=i.outEdges.length;a=o?bs(i.outEdges,A2e,r)/o:0}if(r==="vertical"){var s=i.getLayout().x+(a-Os(i,r))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-Os(i,r))*t;i.setLayout({y:l},!0)}}})})}function T2e(e,t){return Os(e.node2,t)*e.getValue()}function A2e(e,t){return Os(e.node2,t)}function M2e(e,t){return Os(e.node1,t)*e.getValue()}function I2e(e,t){return Os(e.node1,t)}function Os(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function E0(e){return e.getValue()}function bs(e,t,r){for(var n=0,i=e.length,a=-1;++ao&&(o=l)}),D(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&&D(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function R2e(e){e.registerChartView(c2e),e.registerSeriesModel(d2e),e.registerLayout(h2e),e.registerVisual(D2e),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){n.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var e9=function(){function e(){}return e.prototype.getInitialData=function(t,r){var n,i=r.getComponent("xAxis",this.get("xAxisIndex")),a=r.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=a.get("type"),l;o==="category"?(t.layout="horizontal",n=i.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",n=a.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],d=u[1-c],h=[i,a],p=h[c].get("type"),v=h[1-c].get("type"),g=t.data;if(g&&l){var m=[];D(g,function(S,_){var b;q(S)?(b=S.slice(),S.unshift(_)):q(S.value)?(b=Y({},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:_0(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:_0(v),dimsDef:y.slice()}];return rd(this,{coordDimensions:x,dimensionsCount:y.length+1,encodeDefaulter:Pe(AW,x,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),t9=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);lr(t9,e9,!0);const L2e=t9;var E2e=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=PB(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?(Zi(f),r9(d,f,a,u)):f=PB(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),O2e=function(){function e(){}return e}(),N2e=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 O2e},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 W2e={type:"echarts:boxplot",transform:function(t){var r=t.upstream;if(r.sourceFormat!==Kr){var n="";st(n)}var i=H2e(r.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function U2e(e){e.registerSeriesModel(L2e),e.registerChartView(B2e),e.registerLayout(F2e),e.registerTransform(W2e)}var j2e=["color","borderColor"],Y2e=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){Hs(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&&kB(u,f))return;var d=Y_(f,c,!0);Lt(d,{shape:{points:f.ends}},r,c),q_(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&&kB(u,h)){a.remove(d);return}d?(it(d,{shape:{points:h.ends}},r,c),Zi(d)):d=Y_(h),q_(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(),DB(r,this.group);var n=r.get("clip",!0)?Vx(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=Y_(s);q_(l,i,o,a),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(r,n){DB(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),q2e=function(){function e(){}return e}(),X2e=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 q2e},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}($e);function Y_(e,t,r){var n=e.ends;return new X2e({shape:{points:r?Z2e(n,e):n},z2:100})}function kB(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(j2e);t.useStyle(a),t.style.fill=null,t.style.stroke=i}const Q2e=Y2e;var n9=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);lr(n9,e9,!0);const J2e=n9;function eIe(e){!e||!q(e.series)||D(e.series,function(t){Se(t)&&t.type==="k"&&(t.type="candlestick")})}var tIe=["itemStyle","borderColor"],rIe=["itemStyle","borderColor0"],nIe=["itemStyle","borderColorDoji"],iIe=["itemStyle","color"],aIe=["itemStyle","color0"],oIe={seriesType:"candlestick",plan:Jf(),performRawSeries:!0,reset:function(e,t){function r(a,o){return o.get(a>0?iIe:aIe)}function n(a,o){return o.get(a===0?nIe:a>0?tIe:rIe)}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");Y(f,c)}}}}}};const sIe=oIe;var lIe={seriesType:"candlestick",plan:Jf(),reset:function(e){var t=e.coordinateSystem,r=e.getData(),n=uIe(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=$(C,x),M=$(A,x),I=$(b,x),P=$(w,x),k=[];N(k,M,0),N(k,T,1),k.push(L(P),L(M),L(I),L(T));var R=g.getItemModel(m),z=!!R.get(["itemStyle","borderColorDoji"]);g.setItemLayout(m,{sign:RB(y,m,S,_,c,z),initBaseline:S>_?M[a]:T[a],ends:k,brushRect:V(b,w,x)})}function $(G,U){var B=[];return B[i]=U,B[a]=G,isNaN(U)||isNaN(G)?[NaN,NaN]:t.dataToPoint(B)}function N(G,U,B){var j=U.slice(),X=U.slice();j[i]=Xm(j[i]+n/2,1,!1),X[i]=Xm(X[i]-n/2,1,!0),B?G.push(j,X):G.push(X,j)}function V(G,U,B){var j=$(G,B),X=$(U,B);return j[i]-=n/2,X[i]-=n/2,{x:j[0],y:j[1],width:n,height:X[1]-j[1]}}function L(G){return G[i]=Xm(G[i],1),G}}function p(v,g){for(var m=_a(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),I=w.get(f,b),P=w.get(d,b);if(isNaN(A)||isNaN(I)||isNaN(P)){m[y++]=NaN,y+=3;continue}m[y++]=RB(w,b,T,M,c,C),S[i]=A,S[a]=I,x=t.dataToPoint(S,null,_),m[y++]=x?x[0]:NaN,m[y++]=x?x[1]:NaN,S[a]=P,x=t.dataToPoint(S,null,_),m[y++]=x?x[1]:NaN}g.setLayout("largePoints",m)}}};function RB(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 uIe(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 cIe=lIe;function fIe(e){e.registerChartView(Q2e),e.registerSeriesModel(J2e),e.registerPreprocessor(eIe),e.registerVisual(sIe),e.registerLayout(cIe)}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 dIe=function(e){H(t,e);function t(r,n){var i=e.call(this)||this,a=new Pv(r,n),o=new Ae;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;me(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 Jo(r.__p1,r.__cp1)+Jo(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=_r,c=oT;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}(i9);const _Ie=bIe;var wIe=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),CIe=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 wIe},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(d6(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 AIe=TIe;var MIe={seriesType:"lines",plan:Jf(),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)&&Vx(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=o9.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 AIe:new vP(o?a?_Ie:a9:a?i9:pP),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 PIe=IIe;var kIe=typeof Uint32Array>"u"?Array:Uint32Array,DIe=typeof Float64Array>"u"?Array:Float64Array;function EB(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),W2([i,r[0],r[1]])}))}var RIe=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||[],EB(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(EB(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=Ky(this._flatCoords,n.flatCoords),this._flatCoordsOffset=Ky(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 LIe=RIe;function lm(e){return e instanceof Array||(e=[e,e]),e}var EIe={seriesType:"lines",reset:function(e){var t=lm(e.get("symbol")),r=lm(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=lm(s.getShallow("symbol",!0)),u=lm(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 OIe=EIe;function NIe(e){e.registerChartView(PIe),e.registerSeriesModel(LIe),e.registerLayout(o9),e.registerVisual(OIe)}var zIe=256,BIe=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Ps.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 I=o(x)?l:u;x>0&&(x=x*T+C),_[b++]=I[M],_[b++]=I[M+1],_[b++]=I[M+2],_[b++]=I[M+3]*x*256}else b+=4}return d.putImageData(S,0,0),f},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Ps.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 FIe=BIe;function $Ie(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 OB(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var GIe=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()):OB(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&&(OB(o)?this.render(n,i,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,a,r.start,r.end,!0)))},t.prototype.eachRendered=function(r){Hs(this._progressiveEls||this.group,r)},t.prototype._renderOnCartesianAndCalendar=function(r,n,i,a,o){var s=r.coordinateSystem,l=Ou(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"]),_=yr(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]||Rd[1])continue;var z=s.dataToPoint([k,R]);I=new Qe({shape:{x:z[0]-u/2,y:z[1]-c/2,width:u,height:c},style:P})}else{if(isNaN(g.get(T[1],M)))continue;I=new Qe({z2:1,shape:s.dataToRect([g.get(T[0],M)]).contentShape,style:P})}if(g.hasItemOption){var $=g.getItemModel(M),N=$.getModel("emphasis");m=N.getModel("itemStyle").getItemStyle(),y=$.getModel(["blur","itemStyle"]).getItemStyle(),x=$.getModel(["select","itemStyle"]).getItemStyle(),S=$.get(["itemStyle","borderRadius"]),w=N.get("focus"),C=N.get("blurScope"),A=N.get("disabled"),_=yr($)}I.shape.r=S;var V=r.getRawValue(M),L="-";V&&V[2]!=null&&(L=V[2]+""),Br(I,_,{labelFetcher:r,labelDataIndex:M,defaultOpacity:P.opacity,defaultText:L}),I.ensureState("emphasis").style=m,I.ensureState("blur").style=y,I.ensureState("select").style=x,Ut(I,w,C,A),I.incremental=o,o&&(I.states.emphasis.hoverLayer=!0),v.add(I),g.setItemGraphicEl(M,I),this._progressiveEls&&this._progressiveEls.push(I)}},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 FIe;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"?VIe(S,i.option.range):$Ie(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 Fr({style:{width:g,height:m,x:d,y:h,image:u.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t}(Tt);const HIe=GIe;var WIe=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 Ao(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var r=Cv.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 UIe=WIe;function jIe(e){e.registerChartView(HIe),e.registerSeriesModel(UIe)}var YIe=["itemStyle","borderWidth"],NB=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],K_=new $a,qIe=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:NB[+c],categoryDim:NB[1-+c]};return o.diff(s).add(function(h){if(o.hasValue(h)){var p=BB(o,h),v=zB(o,h,p,d),g=FB(o,d,v);o.setItemGraphicEl(h,g),a.add(g),VB(g,d,v)}}).update(function(h,p){var v=s.getItemGraphicEl(p);if(!o.hasValue(h)){a.remove(v);return}var g=BB(o,h),m=zB(o,h,g,d),y=d9(o,m);v&&y!==v.__pictorialShapeStr&&(a.remove(v),o.setItemGraphicEl(h,null),v=null),v?tPe(v,d,m):v=FB(o,d,m,!0),o.setItemGraphicEl(h,v),v.__pictorialSymbolMeta=m,a.add(v),VB(v,d,m)}).remove(function(h){var p=s.getItemGraphicEl(h);p&&$B(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){$B(a,Ie(o).dataIndex,r,o)}):i.removeAll()},t.type="pictorialBar",t}(Tt);function zB(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};XIe(r,a,i,n,d),ZIe(e,t,i,a,o,d.boundingLength,d.pxSign,c,n,d),KIe(r,d.symbolScale,u,n,d);var h=d.symbolSize,p=Lu(r.get("symbolOffset"),h);return QIe(r,h,i,a,o,p,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,n,d),d}function XIe(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(q(o)){var f=[Q_(s,o[0])-l,Q_(s,o[1])-l];f[1]0?1:-1}function Q_(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function ZIe(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;q(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 KIe(e,t,r,n,i){var a=e.get(YIe)||0;a&&(K_.attr({scaleX:t[0],scaleY:t[1],rotation:r}),K_.updateTransform(),a/=K_.getLineScale(),a*=t[n.valueDim.index]),i.valueLineWidth=a||0}function QIe(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=KH(n),C=w?n:GB((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?GB((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 I=f.bundlePosition=[];I[d.index]=r[d.xy],I[h.index]=r[h.xy];var P=f.barRectShape=Y({},r);P[h.wh]=p*Math.max(Math.abs(r[h.wh]),Math.abs(M[h.index]+T)),P[d.wh]=r[d.wh];var k=f.clipShape={};k[d.xy]=-r[d.xy],k[d.wh]=c.ecSize[d.wh],k[h.xy]=0,k[h.wh]=r[h.wh]}function s9(e){var t=e.symbolPatternSize,r=sr(e.symbolType,-t/2,-t/2,t,t);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function l9(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(wP(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 u9(e,t,r,n){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?rf(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=s9(r),i.add(a),rf(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 c9(e,t,r){var n=Y({},t.barRectShape),i=e.__pictorialBarRect;i?rf(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 f9(e,t,r,n){if(r.symbolClip){var i=e.__pictorialClipPath,a=Y({},r.clipShape),o=t.valueDim,s=r.animationModel,l=r.dataIndex;if(i)it(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],wv[n?"updateProps":"initProps"](i,{shape:u},s,l)}}}function BB(e,t){var r=e.getItemModel(t);return r.getAnimationDelayParams=JIe,r.isAnimationEnabled=ePe,r}function JIe(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function ePe(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function FB(e,t,r,n){var i=new Ae,a=new Ae;return i.add(a),i.__pictorialBundle=a,a.x=r.bundlePosition[0],a.y=r.bundlePosition[1],r.symbolRepeat?l9(i,t,r):u9(i,t,r),c9(i,r,n),f9(i,t,r,n),i.__pictorialShapeStr=d9(e,r),i.__pictorialSymbolMeta=r,i}function tPe(e,t,r){var n=r.animationModel,i=r.dataIndex,a=e.__pictorialBundle;it(a,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,i),r.symbolRepeat?l9(e,t,r,!0):u9(e,t,r,!0),c9(e,r,!0),f9(e,t,r,!0)}function $B(e,t,r,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var a=[];wP(n,function(o){a.push(o)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),D(a,function(o){Ds(o,{scaleX:0,scaleY:0},r,t,function(){n.parent&&n.parent.remove(n)})}),e.setItemGraphicEl(t,null)}function d9(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function wP(e,t,r){D(e.__pictorialBundle.children(),function(n){n!==e.__pictorialBarRect&&t.call(r,n)})}function rf(e,t,r,n,i,a){t&&e.attr(t),n.symbolClip&&!i?r&&e.attr(r):r&&wv[i?"updateProps":"initProps"](e,r,n.animationModel,n.dataIndex,a)}function VB(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");wP(e,function(v){if(v instanceof Fr){var g=v.style;v.useStyle(Y({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,yr(i),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:_f(t.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:h}),Ut(e,c,f,a.get("disabled"))}function GB(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}const rPe=qIe;var nPe=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=Ws(M0.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}(M0);const iPe=nPe;function aPe(e){e.registerChartView(rPe),e.registerSeriesModel(iPe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Pe(YU,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,qU("pictorialBar"))}var oPe=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 xo(this._layersSeries||[],l,d,d),p=[];h.add(ue(v,this,"add")).update(ue(v,this,"update")).remove(ue(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 hPe(e){e.registerChartView(lPe),e.registerSeriesModel(cPe),e.registerLayout(fPe),e.registerProcessor(Rv("themeRiver"))}var pPe=2,vPe=4,gPe=function(e){H(t,e);function t(r,n,i,a){var o=e.call(this)||this;o.z2=pPe,o.textConfig={inside:!0},Ie(o).seriesIndex=n.seriesIndex;var s=new rt({z2:vPe,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;Ie(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),f=Y({},c);f.label=null;var d=n.getVisual("style");d.lineJoin="bevel";var h=n.getVisual("decal");h&&(d.decal=Sf(h,o));var p=Zl(l.getModel("itemStyle"),f,!0);Y(f,p),D(un,function(y){var x=s.ensureState(y),S=l.getModel([y,"itemStyle"]);x.style=S.getItemStyle();var _=Zl(S,f);_&&(x.shape=_)}),r?(s.setShape(f),s.shape.r=c.r0,Lt(s,{shape:{r:c.r}},i,n.dataIndex)):(it(s,{shape:f},i),Zi(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;Ut(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"):!I||I==="center"?(s===2*Math.PI&&o.r0===0?T=0:T=(o.r+o.r0)/2,I="center"):I==="left"?(T=o.r0+M,l>Math.PI/2&&(I="right")):I==="right"&&(T=o.r-M,l>Math.PI/2&&(I="left")),S.style.align=I,S.style.verticalAlign=g(y,"verticalAlign")||"middle",S.x=T*u+o.cx,S.y=T*c+o.cy;var P=g(y,"rotate"),k=0;P==="radial"?(k=$i(-l),k>Math.PI/2&&kMath.PI/2?k-=Math.PI:k<-Math.PI/2&&(k+=Math.PI)):nt(P)&&(k=P*Math.PI/180),S.rotation=$i(k)});function g(m,y){var x=m.get(y);return x??a.get(y)}d.dirtyStyle()},t}(In);const WB=gPe;var yA="sunburstRootToNode",UB="sunburstHighlight",mPe="sunburstUnhighlight";function yPe(e){e.registerAction({type:yA,update:"updateView"},function(t,r){r.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(i,a){var o=Up(t,[yA],i);if(o){var s=i.getViewRoot();s&&(t.direction=lP(s,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}}),e.registerAction({type:UB,update:"none"},function(t,r,n){t=Y({},t),r.eachComponent({mainType:"series",subType:"sunburst",query:t},i);function i(a){var o=Up(t,[UB],a);o&&(t.dataIndex=o.node.dataIndex)}n.dispatchAction(Y(t,{type:"highlight"}))}),e.registerAction({type:mPe,update:"updateView"},function(t,r,n){t=Y({},t),n.dispatchAction(Y(t,{type:"downplay"}))})}var xPe=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 xo(x,y,S,S).add(_).update(_).remove(Pe(_,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";h0(u,c)}}i=!0}})})},t.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:yA,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 SPe=xPe;var bPe=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};h9(i);var a=this._levelModels=Z(r.levels||[],function(l){return new wt(l,this,n)},this),o=sP.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=Wx(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(){m8(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 h9(e){var t=0;D(e.children,function(n){h9(n);var i=n.value;q(i)&&(i=i[0]),t+=i});var r=e.value;q(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),q(e.value)?e.value[0]=r:e.value=r}const _Pe=bPe;var jB=Math.PI/180;function wPe(e,t,r){t.eachSeriesByType(e,function(n){var i=n.get("center"),a=n.get("radius");q(a)||(a=[0,a]),q(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")*jB,p=n.get("minAngle")*jB,v=n.getData().tree.root,g=n.getViewRoot(),m=g.depth,y=n.get("sort");y!=null&&p9(g,y);var x=0;D(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,I=function(z,$){if(z){var N=$;if(z!==v){var V=z.getValue(),L=S===0&&T?_:V*_;L1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&oe(s)&&(s=uT(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");Y(u,l)})})}function APe(e){e.registerChartView(SPe),e.registerSeriesModel(_Pe),e.registerLayout(Pe(wPe,"sunburst")),e.registerProcessor(Pe(Rv,"sunburst")),e.registerVisual(TPe),yPe(e)}var YB={color:"fill",borderColor:"stroke"},MPe={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},ao=Je(),IPe=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 Ao(null,this)},t.prototype.getDataParams=function(r,n,i){var a=e.prototype.getDataParams.call(this,r,n);return i&&(a.info=ao(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 PPe=IPe;function kPe(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 DPe(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:ue(kPe,e)}}}function RPe(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 LPe(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:ue(RPe,e)}}}function EPe(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 OPe(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:ue(EPe,e)}}}function NPe(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 zPe(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:ue(NPe,e)}}}function BPe(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 v9(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||ce(e,"text")))}function g9(e,t,r){var n=e,i,a,o;if(t==="text")o=n;else{o={},ce(n,"text")&&(o.text=n.text),ce(n,"rich")&&(o.rich=n.rich),ce(n,"textFill")&&(o.fill=n.textFill),ce(n,"textStroke")&&(o.stroke=n.textStroke),ce(n,"fontFamily")&&(o.fontFamily=n.fontFamily),ce(n,"fontSize")&&(o.fontSize=n.fontSize),ce(n,"fontStyle")&&(o.fontStyle=n.fontStyle),ce(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=ce(n,"textPosition");r?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),ce(n,"textPosition")&&(i.position=n.textPosition),ce(n,"textOffset")&&(i.offset=n.textOffset),ce(n,"textRotation")&&(i.rotation=n.textRotation),ce(n,"textDistance")&&(i.distance=n.textDistance)}return qB(o,e),D(o.rich,function(l){qB(l,l)}),{textConfig:i,textContent:a}}function qB(e,t){t&&(t.font=t.textFont||t.font,ce(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),ce(t,"textAlign")&&(e.align=t.textAlign),ce(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),ce(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),ce(t,"textWidth")&&(e.width=t.textWidth),ce(t,"textHeight")&&(e.height=t.textHeight),ce(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),ce(t,"textPadding")&&(e.padding=t.textPadding),ce(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),ce(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),ce(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),ce(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),ce(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),ce(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),ce(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function XB(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";ZB(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,D(t.rich,function(s){ZB(s,s)}),n}function ZB(e,t){t&&(ce(t,"fill")&&(e.textFill=t.fill),ce(t,"stroke")&&(e.textStroke=t.fill),ce(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),ce(t,"font")&&(e.font=t.font),ce(t,"fontStyle")&&(e.fontStyle=t.fontStyle),ce(t,"fontWeight")&&(e.fontWeight=t.fontWeight),ce(t,"fontSize")&&(e.fontSize=t.fontSize),ce(t,"fontFamily")&&(e.fontFamily=t.fontFamily),ce(t,"align")&&(e.textAlign=t.align),ce(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),ce(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),ce(t,"width")&&(e.textWidth=t.width),ce(t,"height")&&(e.textHeight=t.height),ce(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),ce(t,"padding")&&(e.textPadding=t.padding),ce(t,"borderColor")&&(e.textBorderColor=t.borderColor),ce(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),ce(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),ce(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),ce(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),ce(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),ce(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),ce(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),ce(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),ce(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),ce(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var m9={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},KB=He(m9);Oa(za,function(e,t){return e[t]=1,e},{});za.join(", ");var O0=["","style","shape","extra"],Tf=Je();function CP(e,t,r,n,i){var a=e+"Animation",o=Uf(e,n,i)||{},s=Tf(t).userDuring;return o.duration>0&&(o.during=s?ue(HPe,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),Y(o,r[a]),o}function ty(e,t,r,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=Tf(e),u=t.style;l.userDuring=t.during;var c={},f={};if(UPe(e,t,f),JB("shape",t,f),JB("extra",t,f),!a&&s&&(WPe(e,t,c),QB("shape",e,t,c),QB("extra",e,t,c),jPe(e,t,u,c)),f.style=u,FPe(e,f,o),VPe(e,t),s)if(a){var d={};D(O0,function(p){var v=p?t[p]:t;v&&v.enterFrom&&(p&&(d[p]=d[p]||{}),Y(p?d[p]:d,v.enterFrom))});var h=CP("enter",e,t,r,i);h.duration>0&&e.animateFrom(d,h)}else $Pe(e,t,i||0,r,c);y9(e,t),u?e.dirty():e.markRedraw()}function y9(e,t){for(var r=Tf(e).leaveToProps,n=0;n0&&e.animateFrom(i,a)}}function VPe(e,t){ce(t,"silent")&&(e.silent=t.silent),ce(t,"ignore")&&(e.ignore=t.ignore),e instanceof wi&&ce(t,"invisible")&&(e.invisible=t.invisible),e instanceof $e&&ce(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var aa={},GPe={setTransform:function(e,t){return aa.el[e]=t,this},getTransform:function(e){return aa.el[e]},setShape:function(e,t){var r=aa.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){var t=aa.el.shape;if(t)return t[e]},setStyle:function(e,t){var r=aa.el,n=r.style;return n&&(n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){var t=aa.el.style;if(t)return t[e]},setExtra:function(e,t){var r=aa.el.extra||(aa.el.extra={});return r[e]=t,this},getExtra:function(e){var t=aa.el.extra;if(t)return t[e]}};function HPe(){var e=this,t=e.el;if(t){var r=Tf(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}aa.el=t,n(GPe)}}function QB(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]={}),uu(l))Y(o,a);else for(var u=pt(l),c=0;c=0){!o&&(o=n[e]={});for(var h=He(a),c=0;c=0)){var d=e.getAnimationStyleProps(),h=d?d.style:null;if(h){!a&&(a=n.style={});for(var p=He(r),u=0;u=0?t.getStore().get($,R):void 0}var N=t.get(z.name,R),V=z&&z.ordinalMeta;return V?V.categories[N]:N}function b(k,R){R==null&&(R=u);var z=t.getItemVisual(R,"style"),$=z&&z.fill,N=z&&z.opacity,V=y(R,os).getItemStyle();$!=null&&(V.fill=$),N!=null&&(V.opacity=N);var L={inheritColor:oe($)?$:"#000"},G=x(R,os),U=_t(G,null,L,!1,!0);U.text=G.getShallow("show")?Ee(e.getFormattedLabel(R,os),_f(t,R)):null;var B=f0(G,L,!1);return A(k,V),V=XB(V,U,B),k&&C(V,k),V.legacy=!0,V}function w(k,R){R==null&&(R=u);var z=y(R,oo).getItemStyle(),$=x(R,oo),N=_t($,null,null,!0,!0);N.text=$.getShallow("show")?Pa(e.getFormattedLabel(R,oo),e.getFormattedLabel(R,os),_f(t,R)):null;var V=f0($,null,!0);return A(k,z),z=XB(z,N,V),k&&C(z,k),z.legacy=!0,z}function C(k,R){for(var z in R)ce(R,z)&&(k[z]=R[z])}function A(k,R){k&&(k.textFill&&(R.textFill=k.textFill),k.textPosition&&(R.textPosition=k.textPosition))}function T(k,R){if(R==null&&(R=u),ce(YB,k)){var z=t.getItemVisual(R,"style");return z?z[YB[k]]:null}if(ce(MPe,k))return t.getItemVisual(R,k)}function M(k){if(a.type==="cartesian2d"){var R=a.getBaseAxis();return aSe(xe({axis:R},k))}}function I(){return r.getCurrentSeriesIndices()}function P(k){return rW(k,r)}}function nke(e){var t={};return D(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 rw(e,t,r,n,i,a,o){if(!n){a.remove(t);return}var s=PP(e,t,r,n,i,a);return s&&o.setItemGraphicEl(r,s),s&&Ut(s,n.focus,n.blurScope,n.emphasisDisabled),s}function PP(e,t,r,n,i,a){var o=-1,s=t;t&&_9(t,n,i)&&(o=ze(a.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=MP(n),s&&QPe(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Jn.normal.cfg=Jn.normal.conOpt=Jn.emphasis.cfg=Jn.emphasis.conOpt=Jn.blur.cfg=Jn.blur.conOpt=Jn.select.cfg=Jn.select.conOpt=null,Jn.isLegacy=!1,ake(u,r,n,i,l,Jn),ike(u,r,n,i,l),IP(e,u,r,n,Jn,i,l),ce(n,"info")&&(ao(u).info=n.info);for(var c=0;c=0?a.replaceAt(u,o):a.add(u),u}function _9(e,t,r){var n=ao(e),i=t.type,a=t.shape,o=t.style;return r.isUniversalTransitionEnabled()||i!=null&&i!==n.customGraphicType||i==="path"&&cke(a)&&w9(a)!==n.customPathData||i==="image"&&ce(o,"image")&&o.image!==n.customImagePath}function ike(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&&_9(o,a,n)&&(o=null),o||(o=MP(a),e.setClipPath(o)),IP(null,o,t,a,null,n,i)}}function ake(e,t,r,n,i,a){if(!e.isGroup){t5(r,null,a),t5(r,oo,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=MP(o),e.setTextContent(c)),IP(null,c,t,o,null,n,i);for(var f=o&&o.style,d=0;d=c;h--){var p=t.childAt(h);ske(t,p,i)}}}function ske(e,t,r){t&&Yx(t,ao(e).option,r)}function lke(e){new xo(e.oldChildren,e.newChildren,r5,r5,e).add(n5).update(n5).remove(uke).execute()}function r5(e,t){var r=e&&e.name;return r??ZPe+t}function n5(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,i=t!=null?r.oldChildren[t]:null;PP(r.api,i,r.dataIndex,n,r.seriesModel,r.group)}function uke(e){var t=this.context,r=t.oldChildren[e];r&&Yx(r,ao(r).option,t.seriesModel)}function w9(e){return e&&(e.pathData||e.d)}function cke(e){return e&&(ce(e,"pathData")||ce(e,"d"))}function fke(e){e.registerChartView(eke),e.registerSeriesModel(PPe)}var Ll=Je(),i5=we,nw=ue,dke=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 Ae,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var d=Pe(a5,r,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,r)}s5(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=eP(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=Ll(t).pointerEl=new wv[a.type](i5(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=Ll(t).labelEl=new rt(i5(r.label));t.add(a),o5(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=Ll(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=Ll(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),o5(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=_v(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){vo(u.event)},onmousedown:nw(this._onHandleDragMove,this,0,0),drift:nw(this._onHandleDragMove,this),ondragend:nw(this._onHandleDragEnd,this)}),n.add(i)),s5(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");q(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,ed(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){a5(this._axisPointerModel,!r&&this._moveAnimation,this._handle,iw(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(iw(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(iw(i)),Ll(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),Bp(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 a5(e,t,r,n){C9(Ll(r).lastProp,n)||(Ll(r).lastProp=n,t?it(r,n,e):(r.stopAnimation(),r.attr(n)))}function C9(e,t){if(Se(e)&&Se(t)){var r=!0;return D(t,function(n,i){r=r&&C9(e[i],n)}),!!r}else return e===t}function o5(e,t){e[t.get(["label","show"])?"show":"hide"]()}function iw(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function s5(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 DP=dke;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 T9(e,t,r,n,i){var a=r.get("value"),o=A9(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Xf(s.get("padding")||0),u=s.getFont(),c=mv(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),hke(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 hke(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 A9(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:UI(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};D(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):me(o)&&(a=o(s))}return a}function LP(e,t,r){var n=_i();return Du(n,n,r.rotation),Na(n,n,r.position),Ui([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function M9(e,t,r,n,i,a){var o=So.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),T9(t,n,i,a,{position:LP(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function EP(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function I9(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function l5(e,t,r,n,i,a){return{cx:e,cy:t,r0:r,r:n,startAngle:i,endAngle:a,clockwise:!0}}var pke=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=u5(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var d=RP(a),h=vke[u](s,f,c);h.style=d,r.graphicKey=h.type,r.pointer=h}var p=rA(l.model,i);M9(n,r,p,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=rA(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=LP(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=u5(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}(DP);function u5(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var vke={line:function(e,t,r){var n=EP([t,r[0]],[t,r[1]],c5(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:I9([t-n/2,r[0]],[n,i],c5(e))}}};function c5(e){return e.dim==="x"?0:1}const gke=pke;var mke=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 yke=mke;var eo=Je(),xke=D;function P9(e,t,r){if(!tt.node){var n=t.getZr();eo(n).records||(eo(n).records={}),Ske(n,t);var i=eo(n).records[e]||(eo(n).records[e]={});i.handler=r}}function Ske(e,t){if(eo(e).initialized)return;eo(e).initialized=!0,r("click",Pe(f5,"click")),r("mousemove",Pe(f5,"mousemove")),r("globalout",_ke);function r(n,i){e.on(n,function(a){var o=wke(t);xke(eo(e).records,function(s){s&&i(s,a,o.dispatchAction)}),bke(o.pendings,t)})}}function bke(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 _ke(e,t,r){e.handler("leave",null,r)}function f5(e,t,r,n){t.handler(e,r,n)}function wke(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 bA(e,t){if(!tt.node){var r=t.getZr(),n=(eo(r).records||{})[e];n&&(eo(r).records[e]=null)}}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.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";P9("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){bA("axisPointer",n)},t.prototype.dispose=function(r,n){bA("axisPointer",n)},t.type="axisPointer",t}(jt);const Tke=Cke;function k9(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=yu(a,e);if(o==null||o<0||q(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 d5=Je();function Ake(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||ue(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){ry(i)&&(i=k9({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=ry(i),u=a.axesInfo,c=s.axesInfo,f=n==="leave"||ry(i),d={},h={},p={list:[],map:{}},v={showPointer:Pe(Ike,h),showTooltip:Pe(Pke,p)};D(s.coordSysMap,function(m,y){var x=l||m.containPoint(i);D(s.coordSysAxesInfo[y],function(S,_){var b=S.axis,w=Lke(u,S);if(!f&&x&&(!u||w)){var C=w&&w.value;C==null&&!l&&(C=b.pointToData(i)),C!=null&&h5(S,C,v,!1,d)}})});var g={};return D(c,function(m,y){var x=m.linkGroup;x&&!h[y]&&D(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,p5(S),p5(m)))),g[m.key]=w}})}),D(g,function(m,y){h5(c[y],m,v,!0,d)}),kke(h,c,d),Dke(p,i,e,o),Rke(c,o,r),d}}function h5(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=Mke(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&Y(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function Mke(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return D(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),D(d,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function Ike(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function Pke(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=Wp(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 kke(e,t,r){var n=r.axesInfo=[];D(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 Dke(e,t,r,n){if(ry(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 Rke(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=d5(n)[i]||{},o=d5(n)[i]={};D(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&D(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];D(a,function(u,c){!o[c]&&l.push(u)}),D(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 Lke(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 p5(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 ry(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Nv(e){Nu.registerAxisPointerClass("CartesianAxisPointer",gke),e.registerComponentModel(yke),e.registerComponentView(Tke),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!q(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=Swe(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Ake)}function Eke(e){Fe(r8),Fe(Nv)}var Oke=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=zke[d](s,l,f,c);p.style=h,r.graphicKey=p.type,r.pointer=p}var v=a.get(["label","margin"]),g=Nke(n,i,a,l,v);T9(r,i,a,o,g)},t}(DP);function Nke(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=_i();Du(d,d,s),Na(d,d,[n.cx,n.cy]),u=Ui([o,-i],d);var h=t.getModel("axisLabel").get("rotate")||0,p=So.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 zke={line:function(e,t,r,n){return e.dim==="angle"?{type:"Line",shape:EP(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:l5(t.cx,t.cy,n[0],n[1],(-r-i/2)*a,(-r+i/2)*a)}:{type:"Sector",shape:l5(t.cx,t.cy,r-i/2,r+i/2,0,Math.PI*2)}}};const Bke=Oke;var Fke=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 $ke=Fke;var OP=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",or).models[0]},t.type="polarAxis",t}(et);lr(OP,Iv);var Vke=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}(OP),Gke=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}(OP),NP=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}(Qi);NP.prototype.dataToRadius=Qi.prototype.dataToCoord;NP.prototype.radiusToData=Qi.prototype.coordToData;const Hke=NP;var Wke=Je(),zP=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=mv(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=Wke(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}(Qi);zP.prototype.dataToAngle=Qi.prototype.dataToCoord;zP.prototype.angleToData=Qi.prototype.coordToData;const Uke=zP;var D9=["radius","angle"],jke=function(){function e(t){this.dimensions=D9,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Hke,this._angleAxis=new Uke,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=v5(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=v5(r);return i===this?this.pointToData(n):null},e}();function v5(e){var t=e.seriesModel,r=e.polarModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}const Yke=jke;function qke(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%"]:q(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 Xke(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();D(w0(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),D(w0(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),bf(n.scale,n.model),bf(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 Zke(e){return e.mainType==="angleAxis"}function g5(e,t){if(e.type=t.get("type"),e.scale=Fx(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),Zke(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 Kke={dimensions:D9,create:function(e,t){var r=[];return e.eachComponent("polar",function(n,i){var a=new Yke(i+"");a.update=Xke;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");g5(o,l),g5(s,u),qke(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",or).models[0];n.coordinateSystem=i.coordinateSystem}}),r}};const Qke=Kke;var Jke=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function um(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 cm(e){var t=e.getRadiusAxis();return t.inverse?0:1}function m5(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 eDe=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=we(c);var f=i.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(d),c});m5(u),m5(s),D(Jke,function(c){r.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&tDe[c](this.group,r,a,s,l,o,u)},this)}},t.type="angleAxis",t}(Nu),tDe={axisLine:function(e,t,r,n,i,a){var o=t.getModel(["axisLine","lineStyle"]),s=cm(r),l=s?0:1,u;a[l]===0?u=new $a({shape:{cx:r.cx,cy:r.cy,r:a[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new Sx({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[cm(r)],u=Z(n,function(c){return new Tr({shape:um(r,[l,l+s],c.coord)})});e.add(hi(u,{style:xe(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[cm(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];Se(_)&&_.textStyle&&(h=new wt(_.textStyle,l,l.ecModel))}var b=new rt({silent:So.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=So.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=f.rawLabel,Ie(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",P=w;_&&(n[c][M]||(n[c][M]={p:w,n:w}),P=n[c][M][I]);var k=void 0,R=void 0,z=void 0,$=void 0;if(p.dim==="radius"){var N=p.dataToCoord(T)-w,V=l.dataToCoord(M);Math.abs(N)=$})}}})}function cDe(e){var t={};D(e,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=L9(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=R9(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 D(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),D(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=y5(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=y5(r);return i===this?this.pointToData(n):null},e}();function y5(e){var t=e.seriesModel,r=e.singleAxisModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function wDe(e,t){var r=[];return e.eachComponent("singleAxis",function(n,i){var a=new _De(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",or).models[0];n.coordinateSystem=i&&i.coordinateSystem}}),r}var CDe={create:wDe,dimensions:O9};const TDe=CDe;var x5=["x","y"],ADe=["width","height"],MDe=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=ow(l,1-B0(s)),c=l.dataToPoint(n)[0],f=a.get("type");if(f&&f!=="none"){var d=RP(a),h=IDe[f](s,c,u);h.style=d,r.graphicKey=h.type,r.pointer=h}var p=_A(i);M9(n,r,p,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=_A(n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=LP(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=B0(o),u=ow(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=ow(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}(DP),IDe={line:function(e,t,r){var n=EP([t,r[0]],[t,r[1]],B0(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:I9([t-n/2,r[0]],[n,i],B0(e))}}};function B0(e){return e.isHorizontal()?0:1}function ow(e,t){var r=e.getRect();return[r[x5[t]],r[x5[t]]+r[ADe[t]]]}const PDe=MDe;var kDe=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}(jt);function DDe(e){Fe(Nv),Nu.registerAxisPointerClass("SingleAxisPointer",PDe),e.registerComponentView(kDe),e.registerComponentView(xDe),e.registerComponentModel(aw),wf(e,"single",aw,aw.defaultOption),e.registerCoordinateSystem("single",TDe)}var RDe=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=Zf(r);e.prototype.init.apply(this,arguments),S5(r,a)},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),S5(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 S5(e,t){var r=e.cellSize,n;q(r)?n=r:n=e.cellSize=[r,r],n.length===1&&(n[1]=n[0]);var i=Z([0,1],function(a){return zye(t,a)&&(n[a]="auto"),n[a]!=null&&n[a]!=="auto"});Rs(e,t,{type:"box",ignoreSize:i})}const LDe=RDe;var EDe=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 kn({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?Eye(r,n):me(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=DT(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/sw)-Math.floor(r[0].time/sw)+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 b5(e){var t=e.calendarModel,r=e.seriesModel,n=t?t.coordinateSystem:r?r.coordinateSystem:null;return n}const zDe=NDe;function BDe(e){e.registerComponentModel(LDe),e.registerComponentView(ODe),e.registerCoordinateSystem("calendar",zDe)}function FDe(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 _5(e,t){var r;return D(t,function(n){e[n]!=null&&e[n]!=="auto"&&(r=!0)}),r}function $De(e,t,r){var n=Y({},r),i=e[t],a=r.$action||"merge";a==="merge"?i?(Oe(i,n,!0),Rs(i,n,{ignoreSize:!0}),bW(r,i),fm(r,i),fm(r,i,"shape"),fm(r,i,"style"),fm(r,i,"extra"),r.clipPath=i.clipPath):e[t]=n:a==="replace"?e[t]=n:a==="remove"&&i&&(e[t]=null)}var N9=["transition","enterFrom","leaveTo"],VDe=N9.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function fm(e,t,r){if(r&&(!e[r]&&t[r]&&(e[r]={}),e=e[r],t=t[r]),!(!e||!t))for(var n=r?N9:VDe,i=0;i=0;c--){var f=i[c],d=dr(f.id,null),h=d!=null?o.get(d):null;if(h){var p=h.parent,m=ii(p),y=p===a?{width:s,height:l}:{width:m.width,height:m.height},x={},S=Dx(h,f,y,null,{hv:f.hv,boundingMode:f.bounding},x);if(!ii(h).isNew&&S){for(var _=f.transition,b={},w=0;w=0)?b[C]=A:h[C]=A}it(h,b,r,0)}else h.attr(x)}}},t.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(i){ny(i,ii(i).option,n,r._lastGraphicModel)}),this._elMap=ve()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(jt);function wA(e){var t=ce(w5,e)?w5[e]:vI(e),r=new t({});return ii(r).type=e,r}function C5(e,t,r,n){var i=wA(r);return t.add(i),n.set(e,i),ii(i).id=e,ii(i).isNew=!0,i}function ny(e,t,r,n){var i=e&&e.parent;i&&(e.type==="group"&&e.traverse(function(a){ny(a,t,r,n)}),Yx(e,t,n),r.removeKey(ii(e).id))}function T5(e,t,r,n){e.isGroup||D([["cursor",wi.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(i){var a=i[0];ce(t,a)?e[a]=Ee(t[a],i[1]):e[a]==null&&(e[a]=i[1])}),D(He(t),function(i){if(i.indexOf("on")===0){var a=t[i];e[i]=me(a)?a:null}}),ce(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function UDe(e){return e=Y({},e),D(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(SW),function(t){delete e[t]}),e}function jDe(e,t,r){var n=Ie(e).eventData;!e.silent&&!e.ignore&&!n&&(n=Ie(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=r.info)}function YDe(e){e.registerComponentModel(HDe),e.registerComponentView(WDe),e.registerPreprocessor(function(t){var r=t.graphic;q(r)?!r[0]||!r[0].elements?t.graphic=[{elements:r}]:t.graphic=[t.graphic[0]]:r&&!r.elements&&(t.graphic=[{elements:[r]}])})}var A5=["x","y","radius","angle","single"],qDe=["cartesian2d","polar","singleAxis"];function XDe(e){var t=e.get("coordinateSystem");return ze(qDe,t)>=0}function ss(e){return e+"Axis"}function ZDe(e,t){var r=ve(),n=[],i=ve();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 z9(e){var t=e.ecModel,r={infoList:[],infoMap:ve()};return e.eachTargetAxis(function(n,i){var a=t.getComponent(ss(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 lw=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}(),KDe=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=M5(r);this.settledOption=a,this.mergeDefaultAndTheme(r,i),this._doInit(a)},t.prototype.mergeOption=function(r){var n=M5(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;D([["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=ve(),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 D(A5,function(i){var a=this.getReferringComponents(ss(i),hge);if(a.specified){n=!0;var o=new lw;D(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 lw;if(d.add(f.componentIndex),r.set(c,d),a=!1,c==="x"||c==="y"){var h=f.getReferringComponents("grid",or).models[0];h&&D(u,function(p){f.componentIndex!==p.componentIndex&&h===p.getReferringComponents("grid",or).models[0]&&d.add(p.componentIndex)})}}}a&&D(A5,function(u){if(a){var c=i.findComponents({mainType:ss(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new lw;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");D([["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(ss(n),i))},this),r},t.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(i,a){D(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(ss(r),n)},t.prototype.setRawRange=function(r){var n=this.option,i=this.settledOption;D([["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;D(["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 bc(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)}});bc(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;bc(["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=ct(n[0]+o,n,[0,100],!0):a!=null&&(o=ct(a,[0,100],n,!0)-n[0]),t[i+"Span"]=a,t[i+"ValueSpan"]=o},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),r=this._percentWindow,n=this._valueWindow;if(r){var i=qH(n,[0,500]);i=Math.min(i,20);var a=t.axis.scale.rawExtentInfo;r[0]!==0&&a.setDeterminedMinMax("min",+n[0].toFixed(i)),r[1]!==100&&a.setDeterminedMinMax("max",+n[1].toFixed(i)),a.freeze()}},e}();function iRe(e,t,r){var n=[1/0,-1/0];bc(r,function(o){ISe(n,o.getData(),t)});var i=e.getAxisModel(),a=ej(i.axis.scale,i,n).calculate();return[a.min,a.max]}const aRe=nRe;var oRe={getTargetSeries:function(e){function t(i){e.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=e.getComponent(ss(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 aRe(i,a,s,e),r.push(o.__dzAxisProxy))});var n=ve();return D(r,function(i){D(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 sRe=oRe;function lRe(e){e.registerAction("dataZoom",function(t,r){var n=ZDe(r,t);D(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var P5=!1;function FP(e){P5||(P5=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,sRe),lRe(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function uRe(e){e.registerComponentModel(JDe),e.registerComponentView(rRe),FP(e)}var di=function(){function e(){}return e}(),B9={};function _c(e,t){B9[e]=t}function F9(e){return B9[e]}var cRe=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;D(this.option.feature,function(n,i){var a=F9(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 fRe=cRe;function dRe(e,t,r){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:r.getWidth(),height:r.getHeight()},o=hr(n,a,i);ou(t.get("orient"),e,t.get("itemGap"),o.width,o.height),Dx(e,n,a,i)}function $9(e,t){var r=Xf(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 hRe=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=[];D(u,function(p,v){f.push(v)}),new xo(this._featureNames||[],f).add(d).update(d).remove(Pe(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(pRe(g))S={onclick:x.option.onclick,featureName:g};else{var _=F9(g);if(!_)return;S=new _}c[g]=S}else if(S=c[m],!S)return;S.uid=qf("toolbox-feature"),S.model=x,S.ecModel=n,S.api=i;var b=S instanceof di;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"?mo:yo)(T[w])},S instanceof di&&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 di&&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={};D(_,function(C,A){var T=_v(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 I=new rt({style:{text:b[A],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null},ignore:!0});T.setTextContent(I),jf({el:T,componentModel:r,itemName:A,formatterParamsExtra:{title:b[A]}}),T.__title=b[A],T.on("mouseover",function(){var P=y.getItemStyle(),k=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:y.get("textFill")||P.fill||P.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),T.setTextConfig({position:y.get("textPosition")||k}),I.ignore=!r.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",A])!=="emphasis"&&i.leaveEmphasis(this),I.hide()}),(p.get(["iconStatus",A])==="emphasis"?mo:yo)(T),o.add(T),T.on("click",ue(v.onclick,v,n,i,A)),w[A]=T})}dRe(o,r,i),o.add($9(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&&!me(x)&&v){var S=x.style||(x.style={}),_=mv(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){D(this._features,function(o){o instanceof di&&o.updateView&&o.updateView(o.model,n,i,a)})},t.prototype.remove=function(r,n){D(this._features,function(i){i instanceof di&&i.remove&&i.remove(r,n)}),this.group.removeAll()},t.prototype.dispose=function(r,n){D(this._features,function(i){i instanceof di&&i.dispose&&i.dispose(r,n)})},t.type="toolbox",t}(jt);function pRe(e){return e.indexOf("my")===0}const vRe=hRe;var gRe=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(me(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}(di);const mRe=gRe;var k5="__ec_magicType_stack__",yRe=[["line","bar"],["stack"]],xRe=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 D(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(D5[i]){var s={series:[]},l=function(f){var d=f.subType,h=f.id,p=D5[i](d,h,f,a);p&&(xe(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,or).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"}}};D(yRe,function(f){ze(f,i)>=0&&D(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}(di),D5={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")===k5;if(e==="line"||e==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),Oe({id:t,stack:i?"":k5},n.get(["option","stack"])||{},!0)}};Ga({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});const SRe=xRe;var qx=new Array(60).join("-"),Af=" ";function bRe(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 _Re(e){var t=[];return D(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()];D(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(Af)],c=0;c=0)return!0}var CA=new RegExp("["+Af+"]+","g");function TRe(e){for(var t=e.split(/\n+/g),r=F0(t.shift()).split(CA),n=[],i=Z(r,function(l){return{name:l,data:[]}}),a=0;a=0)return!0}var CA=new RegExp("["+Af+"]+","g");function ARe(e){for(var t=e.split(/\n+/g),r=F0(t.shift()).split(CA),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 RRe(e){var t=$P(e),r=t[t.length-1];t.length>1&&t.pop();var n={};return V9(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 LRe(e){G9(e).snapshots=null}function ERe(e){return $P(e).length}function $P(e){var t=G9(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var ORe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){LRe(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}(di);Ga({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});const NRe=ORe;var zRe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],BRe=function(){function e(t,r,n){var i=this;this._targetInfoList=[];var a=R5(r,t);D(FRe,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=uw[n.brushType](0,a,i);n.__rangeOffset={offset:N5[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,r,n){D(t,function(i){var a=this.findTargetInfo(i,r);a&&a!==!0&&D(a.coordSyses,function(o){var s=uw[i.brushType](1,o,i.range,!0);n(i,s.values,o,r)})},this)},e.prototype.setInputRanges=function(t,r){D(t,function(n){var i=this.findTargetInfo(n,r);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=uw[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?N5[n.brushType](a.values,o.offset,$Re(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:X8(i),isTargetByCursor:K8(i,t,n.coordSysModel),getLinearBrushOtherExtent:Z8(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=R5(r,t),a=0;ae[1]&&e.reverse(),e}function R5(e,t){return Fh(e,t,{includeMainTypes:zRe})}var FRe={grid:function(e,t){var r=e.xAxisModels,n=e.yAxisModels,i=e.gridModels,a=ve(),o={},s={};!r&&!n&&!i||(D(r,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),D(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),D(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=[];D(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:E5.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){D(e.geoModels,function(r){var n=r.coordinateSystem;t.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:E5.geo})})}},L5=[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}],E5={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(au(e)),t}},uw={lineX:Pe(O5,0),lineY:Pe(O5,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=[TA([i[0],a[0]]),TA([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 O5(e,t,r,n){var i=r.getAxis(["x","y"][e]),a=TA(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 N5={lineX:Pe(z5,0),lineY:Pe(z5,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 z5(e,t,r,n){return[t[0]-n[e]*r[0],t[1]-n[e]*r[1]]}function $Re(e,t){var r=B5(e),n=B5(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 B5(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}const VP=BRe;var AA=D,VRe=sge("toolbox-dataZoom_"),GRe=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 bP(i.getZr()),this._brushController.on("brush",ue(this._onBrush,this)).mount()),URe(r,n,this,a,i),WRe(r,n)},t.prototype.onclick=function(r,n,i){HRe[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 VP(GP(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)}}),DRe(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=[];AA(r,function(i,a){n.push(we(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}(di),HRe={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(RRe(this.ecModel))}};function GP(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 WRe(e,t){e.setIconStatus("back",ERe(t)>1?"emphasis":"normal")}function URe(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 VP(GP(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)}Gye("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=GP(n),o=Fh(e,a);AA(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),AA(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:VRe+u+f};d[c]=f,i.push(d)}return i});const jRe=GRe;function YRe(e){e.registerComponentModel(cRe),e.registerComponentView(pRe),_c("saveAsImage",gRe),_c("magicType",xRe),_c("dataView",kRe),_c("dataZoom",jRe),_c("restore",NRe),Fe(lRe)}var qRe=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 XRe=qRe;function H9(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function W9(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 rLe(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),QRe+":"+i}function F5(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],[U9,o]]}function nLe(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),D(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function iLe(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=eU(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+d),t&&i&&n.push(rLe(i,r)),a&&n.push("background-color:"+a),D(["width","color","radius"],function(h){var p="border-"+h,v=yW(p),g=e.get(v);g!=null&&n.push(p+":"+g+(h==="color"?"":"px"))}),n.push(nLe(c)),f!=null&&n.push("padding:"+Xf(f).join("px ")+"px"),n.join(";")+";"}function $5(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&Rpe(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 aLe=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;$5(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();ti(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=KRe(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=JRe+iLe(t,!this._firstShow,this._longHide)+F5(a[0],a[1],!0)+("border-color:"+bu(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"&&!H9(n)&&(s=tLe(n,i,a)),oe(t))o.innerHTML=t+s;else if(t){o.innerHTML="",q(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=H5(a,i);this._ticket="";var s=a.dataByCoordSys,l=pLe(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=uLe;c.x=a.x,c.y=a.y,c.update(),Ie(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=k9(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(H5(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=Wd([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;Yl(i,function(u){if(Ie(u).dataIndex!=null)return s=u,!0;if(Ie(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=ue(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=Wd([n.tooltipOption],a),l=this._renderMode,u=[],c=xr("section",{blocks:[],noHeader:!0}),f=[],d=new qb;D(r,function(y){D(y.dataByAxis,function(x){var S=i.getComponent(x.axisDim+"Axis",x.axisIndex),_=x.value;if(!(!S||_==null)){var b=A9(_,S.axis,i,x.seriesDataIndices,x.valueLabelOpt),w=xr("section",{header:b,noHeader:!Fi(b),sortBlocks:!0,blocks:[]});c.blocks.push(w),D(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=UI(S.axis,{value:_}),M.axisValueLabel=b,M.marker=d.makeTooltipMarker("item",bu(M.color),l);var I=PO(A.formatTooltip(T,!0,null)),P=I.frag;if(P){var k=Wd([A],a).get("valueFormatter");w.blocks.push(k?Y({valueFormatter:k},P):P)}I.text&&f.push(I.text),u.push(M)}})}})}),c.blocks.reverse(),f.reverse();var h=n.position,p=s.get("order"),v=OO(c,d,l,p,i.get("useUTC"),s.get("textStyle"));v&&f.unshift(v);var g=l==="richText"?` +*`,"g")),n={series:[]};return D(r,function(i,a){if(TRe(i)){var o=ARe(i),s=t[a],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=MRe(i);n.series.push(o)}}),n}var PRe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var i=n.getDom(),a=this.model;this._dom&&i.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=a.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=a.get("lang")||[];s.innerHTML=l[0]||a.get("title"),s.style.cssText="margin:10px 20px",s.style.color=a.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var f=a.get("optionToContent"),d=a.get("contentToOption"),h=CRe(r);if(me(f)){var p=f(n.getOption());oe(p)?u.innerHTML=p:Cp(p)&&u.appendChild(p)}else{c.readOnly=a.get("readOnly");var v=c.style;v.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",v.color=a.get("textColor"),v.borderColor=a.get("textareaBorderColor"),v.backgroundColor=a.get("textareaColor"),c.value=h.value,u.appendChild(c)}var g=h.meta,m=document.createElement("div");m.style.cssText="position:absolute;bottom:5px;left:0;right:0";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",x=document.createElement("div"),S=document.createElement("div");y+=";background-color:"+a.get("buttonColor"),y+=";color:"+a.get("buttonTextColor");var _=this;function b(){i.removeChild(o),_._dom=null}iT(x,"click",b),iT(S,"click",function(){if(d==null&&f!=null||d!=null&&f==null){b();return}var w;try{me(d)?w=d(u,n.getOption()):w=IRe(c.value,g)}catch(C){throw b(),new Error("Data view format error "+C)}w&&n.dispatchAction({type:"changeDataView",newOption:w}),b()}),x.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=x.style.cssText=y,!a.get("readOnly")&&m.appendChild(S),m.appendChild(x),o.appendChild(s),o.appendChild(u),o.appendChild(m),u.style.height=i.clientHeight-80+"px",i.appendChild(o),this._dom=o},t.prototype.remove=function(r,n){this._dom&&n.getDom().removeChild(this._dom)},t.prototype.dispose=function(r,n){this.remove(r,n)},t.getDefaultOption=function(r){var n={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:r.getLocaleModel().get(["toolbox","dataView","title"]),lang:r.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return n},t}(di);function kRe(e,t){return Z(e,function(r,n){var i=t&&t[n];if(Se(i)&&!q(i)){var a=Se(r)&&!q(r);a||(r={value:r});var o=i.name!=null&&r.name==null;return r=xe(r,i),o&&delete r.name,r}else return r})}Ga({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var r=[];D(e.newOption.series,function(n){var i=t.getSeriesByName(n.name)[0];if(!i)r.push(Y({type:"scatter"},n));else{var a=i.get("data");r.push({name:n.name,data:kRe(n.data,a)})}}),t.mergeOption(xe({series:r},e.newOption))});const DRe=PRe;var V9=D,G9=Je();function RRe(e,t){var r=$P(e);V9(t,function(n,i){for(var a=r.length-1;a>=0;a--){var o=r[a];if(o[i])break}if(a<0){var s=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();r[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),r.push(t)}function LRe(e){var t=$P(e),r=t[t.length-1];t.length>1&&t.pop();var n={};return V9(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 ERe(e){G9(e).snapshots=null}function ORe(e){return $P(e).length}function $P(e){var t=G9(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var NRe=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){ERe(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}(di);Ga({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});const zRe=NRe;var BRe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],FRe=function(){function e(t,r,n){var i=this;this._targetInfoList=[];var a=R5(r,t);D($Re,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=uw[n.brushType](0,a,i);n.__rangeOffset={offset:N5[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,r,n){D(t,function(i){var a=this.findTargetInfo(i,r);a&&a!==!0&&D(a.coordSyses,function(o){var s=uw[i.brushType](1,o,i.range,!0);n(i,s.values,o,r)})},this)},e.prototype.setInputRanges=function(t,r){D(t,function(n){var i=this.findTargetInfo(n,r);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=uw[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?N5[n.brushType](a.values,o.offset,VRe(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:X8(i),isTargetByCursor:K8(i,t,n.coordSysModel),getLinearBrushOtherExtent:Z8(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=R5(r,t),a=0;ae[1]&&e.reverse(),e}function R5(e,t){return Fh(e,t,{includeMainTypes:BRe})}var $Re={grid:function(e,t){var r=e.xAxisModels,n=e.yAxisModels,i=e.gridModels,a=ve(),o={},s={};!r&&!n&&!i||(D(r,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),D(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),D(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=[];D(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:E5.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){D(e.geoModels,function(r){var n=r.coordinateSystem;t.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:E5.geo})})}},L5=[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}],E5={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(au(e)),t}},uw={lineX:Pe(O5,0),lineY:Pe(O5,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=[TA([i[0],a[0]]),TA([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 O5(e,t,r,n){var i=r.getAxis(["x","y"][e]),a=TA(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 N5={lineX:Pe(z5,0),lineY:Pe(z5,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 z5(e,t,r,n){return[t[0]-n[e]*r[0],t[1]-n[e]*r[1]]}function VRe(e,t){var r=B5(e),n=B5(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 B5(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}const VP=FRe;var AA=D,GRe=lge("toolbox-dataZoom_"),HRe=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 bP(i.getZr()),this._brushController.on("brush",ue(this._onBrush,this)).mount()),jRe(r,n,this,a,i),URe(r,n)},t.prototype.onclick=function(r,n,i){WRe[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 VP(GP(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)}}),RRe(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=[];AA(r,function(i,a){n.push(we(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}(di),WRe={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(LRe(this.ecModel))}};function GP(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 URe(e,t){e.setIconStatus("back",ORe(t)>1?"emphasis":"normal")}function jRe(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 VP(GP(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)}Hye("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=GP(n),o=Fh(e,a);AA(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),AA(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:GRe+u+f};d[c]=f,i.push(d)}return i});const YRe=HRe;function qRe(e){e.registerComponentModel(fRe),e.registerComponentView(vRe),_c("saveAsImage",mRe),_c("magicType",SRe),_c("dataView",DRe),_c("dataZoom",YRe),_c("restore",zRe),Fe(uRe)}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="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 ZRe=XRe;function H9(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function W9(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 nLe(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),JRe+":"+i}function F5(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],[U9,o]]}function iLe(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),D(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function aLe(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=eU(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+d),t&&i&&n.push(nLe(i,r)),a&&n.push("background-color:"+a),D(["width","color","radius"],function(h){var p="border-"+h,v=yW(p),g=e.get(v);g!=null&&n.push(p+":"+g+(h==="color"?"":"px"))}),n.push(iLe(c)),f!=null&&n.push("padding:"+Xf(f).join("px ")+"px"),n.join(";")+";"}function $5(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&Lpe(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 oLe=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;$5(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();ti(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=QRe(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=eLe+aLe(t,!this._firstShow,this._longHide)+F5(a[0],a[1],!0)+("border-color:"+bu(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"&&!H9(n)&&(s=rLe(n,i,a)),oe(t))o.innerHTML=t+s;else if(t){o.innerHTML="",q(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=H5(a,i);this._ticket="";var s=a.dataByCoordSys,l=vLe(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=cLe;c.x=a.x,c.y=a.y,c.update(),Ie(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=k9(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(H5(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=Wd([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;Yl(i,function(u){if(Ie(u).dataIndex!=null)return s=u,!0;if(Ie(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=ue(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=Wd([n.tooltipOption],a),l=this._renderMode,u=[],c=xr("section",{blocks:[],noHeader:!0}),f=[],d=new qb;D(r,function(y){D(y.dataByAxis,function(x){var S=i.getComponent(x.axisDim+"Axis",x.axisIndex),_=x.value;if(!(!S||_==null)){var b=A9(_,S.axis,i,x.seriesDataIndices,x.valueLabelOpt),w=xr("section",{header:b,noHeader:!Fi(b),sortBlocks:!0,blocks:[]});c.blocks.push(w),D(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=UI(S.axis,{value:_}),M.axisValueLabel=b,M.marker=d.makeTooltipMarker("item",bu(M.color),l);var I=PO(A.formatTooltip(T,!0,null)),P=I.frag;if(P){var k=Wd([A],a).get("valueFormatter");w.blocks.push(k?Y({valueFormatter:k},P):P)}I.text&&f.push(I.text),u.push(M)}})}})}),c.blocks.reverse(),f.reverse();var h=n.position,p=s.get("order"),v=OO(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=Ie(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=Wd([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 qb;m.marker=y.makeTooltipMarker("item",bu(m.color),h);var x=PO(u.formatTooltip(c,!1,f)),S=v.get("order"),_=v.get("valueFormatter"),b=x.frag,w=b?OO(_?Y({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=Ie(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=Wd(u,this._tooltipModel,f?{position:f}:null),h=d.get("content"),p=Math.random()+"",v=new qb;this._showOrMove(d,function(){var g=we(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=q(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=d,y&&(h=Ax(m.axisValue,h,g)),h=xW(h,i,!0)}else if(me(d)){var x=ue(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"||q(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!q(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),me(n)&&(n=n([i,a],s,o.el,p,{viewSize:[u,c],contentSize:f.slice()})),q(n))i=ne(n[0],u),a=ne(n[1],c);else if(Se(n)){var v=n;v.width=f[0],v.height=f[1];var g=hr(v,{width:u,height:c});i=g.x,a=g.y,d=null,h=null}else if(oe(n)&&l){var m=hLe(n,p,f,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=fLe(i,a,o,u,c,d?null:20,h?null:20);i=m[0],a=m[1]}if(d&&(i-=W5(d)?f[0]/2:d==="right"?f[0]:0),h&&(a-=W5(h)?f[1]/2:h==="bottom"?f[1]:0),H9(r)){var m=dLe(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&&D(i,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&D(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&&D(v,function(m,y){var x=g[y];o=o&&m.seriesIndex===x.seriesIndex&&m.dataIndex===x.dataIndex}),a&&D(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()||(Bp(this,"_updatePosition"),this._tooltipContent.dispose(),bA("itemTooltip",n))},t.type="tooltip",t}(jt);function Wd(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 H5(e,t){return e.dispatchAction||ue(t.dispatchAction,t)}function fLe(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 dLe(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 hLe(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 W5(e){return e==="center"||e==="middle"}function pLe(e,t,r){var n=rI(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=yv(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=Ie(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const vLe=cLe;function gLe(e){Fe(Nv),e.registerComponentModel(XRe),e.registerComponentView(vLe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},rr),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},rr)}var mLe=["rect","polygon","keep","clear"];function yLe(e,t){var r=pt(e?e.brush:[]);if(r.length){var n=[];D(r,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var i=e&&e.toolbox;q(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),xLe(s),t&&!s.length&&s.push.apply(s,mLe)}}function xLe(e){var t={};D(e,function(r){t[r]=1}),e.length=0,D(t,function(r,n){e.push(n)})}var U5=D;function j5(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function MA(e,t,r){var n={};return U5(t,function(a){var o=n[a]=i();U5(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=we(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 Y9(e,t,r){var n;D(r,function(i){t.hasOwnProperty(i)&&j5(t[i])&&(n=!0)}),n&&D(r,function(i){t.hasOwnProperty(i)&&j5(t[i])?e[i]=we(t[i]):delete e[i]})}function SLe(e,t,r,n,i,a){var o={};D(e,function(f){var d=Or.prepareVisualTypes(t[f]);o[f]=d});var s;function l(f){return LI(r,s,f)}function u(f,d){cU(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&&K5(t)}};function K5(e){return new Ne(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var ILe=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 bP(n.getZr())).on("brush",ue(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){q9(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:we(i),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:we(i),$from:n})},t.type="brush",t}(jt);const PLe=ILe;var kLe="#ddd",DLe=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&&Y9(i,r,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:kLe},a.hasOwnProperty("liftZ")||(a.liftZ=5)},t.prototype.setAreas=function(r){r&&(this.areas=Z(r,function(n){return Q5(this.option,n)},this))},t.prototype.setBrushOption=function(r){this.brushOption=Q5(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 Q5(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 RLe=DLe;var LLe=["rect","polygon","lineX","lineY","keep","clear"],ELe=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,D(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 D(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:LLe.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}(di);const OLe=ELe;function NLe(e){e.registerComponentView(PLe),e.registerComponentModel(RLe),e.registerPreprocessor(yLe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,wLe),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),_c("brush",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.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),BLe=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(){h0(p,"_"+r.get("target"))}),v&&h.on("click",function(){h0(v,"_"+r.get("subtarget"))}),Ie(c).eventData=Ie(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=hr(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}(jt);function FLe(e){e.registerComponentModel(zLe),e.registerComponentView(BLe)}var $Le=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=[],D(n,function(u,c){var f=dr(Hf(u),""),d;Se(u)?(d=we(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 sn([{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 J5=$Le;var X9=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=Ws(J5.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}(J5);lr(X9,II.prototype);const VLe=X9;var GLe=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}(jt);const HLe=GLe;var WLe=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}(Qi);const ULe=WLe;var fw=Math.PI,eF=Je(),jLe=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 xr("nameValue",{noName:!0,value:c})},D(["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=qLe(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:fw/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*fw/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=_i(),l=o.x,u=o.y+o.height;Na(s,s,[-l,-u]),Du(s,s,-fw/2),Na(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=YLe(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 ULe("value",o,r.axisExtent,a);return l.model=n,l},t.prototype._createGroup=function(r){var n=this[r]=new Ae;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:Y({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:xe({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=[],D(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:ue(o._changeTimeline,o,u.value)},g=tF(f,d,n,v);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),iu(g);var m=Ie(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=[],D(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:ue(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),iu(m),eF(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",ue(this._changeTimeline,this,f?"-":"+")),d(r.prevBtnPosition,"prev",ue(this._changeTimeline,this,f?"+":"-")),d(r.playPosition,c?"stop":"play",ue(this._handlePlayClick,this,!c),!0);function d(h,p,v,g){if(h){var m=Xi(Ee(a.get(["controlStyle",p+"BtnSize"]),o),o),y=[0,-m/2,m,m],x=XLe(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),iu(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=ue(u._handlePointerDrag,u),f.ondragend=ue(u._handlePointerDragend,u),rF(f,u._progressLine,s,i,a,!0)},onUpdate:function(f){rF(f,u._progressLine,s,i,a)}};this._currentPointer=tF(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=gi(a.getExtent().slice());i>o[1]&&(i=o[1]),i=0&&(o[a]=+o[a].toFixed(d)),[o,f]}var dw={min:Pe(pm,"min"),max:Pe(pm,"max"),average:Pe(pm,"average"),median:Pe(pm,"median")};function Kp(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,i=n&&n.dimensions;if(!nEe(t)&&!q(t.coord)&&q(i)){var a=K9(t,r,n,e);if(t=we(t),t.type&&dw[t.type]&&a.baseAxis&&a.valueAxis){var o=ze(i,a.baseAxis.dim),s=ze(i,a.valueAxis.dim),l=dw[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||!q(i))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)dw[u[c]]&&(u[c]=UP(r,r.mapDimension(i[c]),u[c]));return t}}function K9(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(iEe(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 iEe(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function Qp(e,t){return e&&e.containData&&t.coord&&!PA(t)?e.containData(t.coord):!0}function aEe(e,t,r){return e&&e.containZone&&t.coord&&r.coord&&!PA(t)&&!PA(r)?e.containZone(t.coord,r.coord):!0}function Q9(e,t){return e?function(r,n,i,a){var o=a<2?r.coord&&r.coord[a]:r.value;return Ss(o,t[a])}:function(r,n,i,a){return Ss(r.value,t[a])}}function UP(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 hw=Je(),oEe=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=ve()},t.prototype.render=function(r,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){hw(s).keep=!1}),n.eachSeries(function(s){var l=zs.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!hw(s).keep&&a.group.remove(s.group)})},t.prototype.markKeep=function(r){hw(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var i=this;D(r,function(a){var o=zs.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?A6(l):lI(l))})}})},t.type="marker",t}(jt);const jP=oEe;function iF(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 sEe=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=zs.getMarkerModelFromSeries(a,"markPoint");o&&(iF(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 kv),f=lEe(o,r,n);n.setData(f),iF(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(me(p)||me(v)||me(g)||me(m)){var x=n.getRawValue(d),S=n.getDataParams(d);me(p)&&(p=p(x,S)),me(v)&&(v=v(x,S)),me(g)&&(g=g(x,S)),me(m)&&(m=m(x,S))}var _=h.getModel("itemStyle").getItemStyle(),b=Tv(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){Ie(h).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markPoint",t}(jP);function lEe(e,t,r){var n;e?n=Z(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return Y(Y({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new sn(n,r),a=Z(r.get("data"),Pe(Kp,t));e&&(a=dt(a,Pe(Qp,e)));var o=Q9(!!e,n);return i.initData(a,null,o),i}const uEe=sEe;function cEe(e){e.registerComponentModel(rEe),e.registerComponentView(uEe),e.registerPreprocessor(function(t){WP(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var fEe=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}(zs);const dEe=fEe;var vm=Je(),hEe=function(e,t,r,n){var i=e.getData(),a;if(q(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=K9(n,i,t,e);s=u.valueAxis;var c=BU(i,u.valueDataDim);l=UP(i,c,o)}var f=s.dim==="x"?0:1,d=1-f,h=we(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=[Kp(e,a[0]),Kp(e,a[1]),Y({},a[2])];return g[2].type=g[2].type||null,Oe(g[2],g[0]),Oe(g[2],g[1]),g};function $0(e){return!isNaN(e)&&!isFinite(e)}function aF(e,t,r,n){var i=1-e,a=n.dimensions[e];return $0(t[i])&&$0(r[i])&&t[e]===r[e]&&n.getAxis(a).containData(t[e])}function pEe(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(aF(1,r,n,e)||aF(0,r,n,e)))return!0}return Qp(e,t[0])&&Qp(e,t[1])}function pw(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(Ou(a,"cartesian2d")){var h=a.getAxis("x"),p=a.getAxis("y"),c=a.dimensions;$0(e.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[r?0:1]):$0(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 vEe=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=zs.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=vm(o).from,u=vm(o).to;l.each(function(c){pw(l,c,!0,a,i),pw(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 vP);this.group.add(c.group);var f=gEe(o,r,n),d=f.from,h=f.to,p=f.line;vm(n).from=d,vm(n).to=h,n.setData(p);var v=n.get("symbol"),g=n.get("symbolSize"),m=n.get("symbolRotate"),y=n.get("symbolOffset");q(v)||(v=[v,v]),q(g)||(g=[g,g]),q(m)||(m=[m,m]),q(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){Ie(S).dataModel=n,S.traverse(function(_){Ie(_).dataModel=n})});function x(S,_,b){var w=S.getItemModel(_);pw(S,_,b,r,a);var C=w.getModel("itemStyle").getItemStyle();C.fill==null&&(C.fill=Tv(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}(jP);function gEe(e,t,r){var n;e?n=Z(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return Y(Y({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new sn(n,r),a=new sn(n,r),o=new sn([],r),s=Z(r.get("data"),Pe(hEe,t,e,r));e&&(s=dt(s,Pe(pEe,e)));var l=Q9(!!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 mEe=vEe;function yEe(e){e.registerComponentModel(dEe),e.registerComponentView(mEe),e.registerPreprocessor(function(t){WP(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var xEe=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}(zs);const SEe=xEe;var gm=Je(),bEe=function(e,t,r,n){var i=n[0],a=n[1];if(!(!i||!a)){var o=Kp(e,i),s=Kp(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=W2([{},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 V0(e){return!isNaN(e)&&!isFinite(e)}function oF(e,t,r,n){var i=1-e;return V0(t[i])&&V0(r[i])}function _Ee(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 Ou(e,"cartesian2d")?r&&n&&(oF(1,r,n)||oF(0,r,n))?!0:aEe(e,i,a):Qp(e,i)||Qp(e,a)}function sF(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(Ou(a,"cartesian2d")){var y=a.getAxis("x"),x=a.getAxis("y"),v=e.get(r[0],t),g=e.get(r[1],t);V0(v)?s[0]=y.toGlobalCoord(y.getExtent()[r[0]==="x0"?0:1]):V0(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 lF=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],wEe=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=zs.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Z(lF,function(f){return sF(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 Ae});this.group.add(c.group),this.markKeep(c);var f=CEe(o,r,n);n.setData(f),f.each(function(d){var h=Z(lF,function(C){return sF(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))];gi(y),gi(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 kA=IEe;var fc=Pe,DA=D,mm=Ae,PEe=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 mm),this.group.add(this._selectorGroup=new mm),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=hr(c,f,d),p=this.layoutInner(r,o,h,a,l,u),v=hr(xe({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=$9(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=ve(),f=n.get("selectedMode"),d=[];i.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),DA(n.getData(),function(h,p){var v=h.get("name");if(!this.newlineDisabled&&(v===""||v===` -`)){var g=new mm;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",fc(uF,v,null,a,d)).on("mouseover",fc(RA,m.name,null,a,d)).on("mouseout",fc(LA,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"),I=Vn(T.fill);I&&I[3]===0&&(I[3]=.2,T=Y(Y({},T),{fill:io(I,"rgba")}));var P=this._createItem(w,v,p,h,n,r,{},T,M,f,a);P.on("click",fc(uF,null,v,a,d)).on("mouseover",fc(RA,null,v,a,d)).on("mouseout",fc(LA,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();DA(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}),iu(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=kEe(c,a,l,u,h,g,d),_=new mm,b=a.getModel("textStyle");if(me(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(DEe({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??""):me(T)&&(M=T(n));var I=g?b.getTextColor():a.get("inactiveColor");_.add(new rt({style:_t(b,{text:M,x:C,y:v/2,fill:I,align:A,verticalAlign:"middle"},{inheritColor:I})}));var P=new Qe({shape:_.getBoundingRect(),invisible:!0}),k=a.getModel("tooltip");return k.get("show")&&jf({el:P,componentModel:o,itemName:n,itemTooltipOption:k.option}),_.add(P),_.eachChild(function(R){R.silent=!0}),P.silent=!f,this.getContentGroup().add(_),iu(_),_.__legendDataIndex=i,_},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ou(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){ou("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}(jt);function kEe(e,t,r,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),DA(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:Sf(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 DEe(e){var t=e.icon||"roundRect",r=sr(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 uF(e,t,r,n){LA(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),RA(e,t,r,n)}function J9(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&&it(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;D(["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=vw[o],l=gw[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}(e7);const zEe=NEe;function BEe(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 FEe(e){Fe(t7),e.registerComponentModel(OEe),e.registerComponentView(zEe),BEe(e)}function $Ee(e){Fe(t7),Fe(FEe)}var VEe=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=Ws(Zp.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Zp);const GEe=VEe;var YP=Je();function HEe(e,t,r){YP(e).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=r)})}function WEe(e,t){for(var r=YP(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 XEe(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=YP(r),i=n.coordSysRecordMap||(n.coordSysRecordMap=ve());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=z9(a);D(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,UEe(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ve());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){r7(i,a);return}var c=qEe(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),ed(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var ZEe=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(),HEe(i,r,{pan:ue(mw.pan,this),zoom:ue(mw.zoom,this),scrollMove:ue(mw.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){WEe(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(BP),mw={zoom:function(e,t,r,n){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=yw[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:dF(function(e,t,r,n,i,a){var o=yw[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:dF(function(e,t,r,n,i,a){var o=yw[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,r);return o.signal*(e[1]-e[0])*a.scrollDelta})};function dF(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 yw={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 KEe=ZEe;function n7(e){FP(e),e.registerComponentModel(GEe),e.registerComponentView(KEe),XEe(e)}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="dataZoom.slider",t.layoutMode="box",t.defaultOption=Ws(Zp.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}(Zp);const JEe=QEe;var Yd=Qe,hF=7,eOe=1,xw=30,tOe=7,qd="horizontal",pF="vertical",rOe=5,nOe=["line","bar","candlestick","scatter"],iOe={easing:"cubicOut",duration:100,delay:0},aOe=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=ue(this._onBrush,this),this._onBrushEnd=ue(this._onBrushEnd,this)},t.prototype.render=function(r,n,i,a){if(e.prototype.render.apply(this,arguments),ed(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(){Bp(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 Ae;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?tOe:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===qd?{right:s.width-o.x-o.width,top:s.height-xw-hF-a,width:o.width,height:xw}:{right:hF,top:o.y,width:xw,height:o.height},u=Zf(r.option);D(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=hr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===pF&&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===qd&&!o?{scaleY:l?1:-1,scaleX:1}:i===qd&&o?{scaleY:l?1:-1,scaleX:-1}:i===pF&&!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 Yd({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new Yd({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:ue(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==="",I=M?0:ct(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,I]),g.push([y,I]),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 Ae,I=new Pn({shape:{points:u},segmentIgnoreThreshold:1,style:T.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),P=new kn({shape:{points:c},segmentIgnoreThreshold:1,style:T.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(I),M.add(P),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();D(l,function(u){if(!i&&!(n!==!0&&ze(nOe,u.get("type"))<0)){var c=a.getComponent(ss(o),s).axis,f=oOe(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 Yd({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new Yd({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:eOe,fill:"rgba(0,0,0,0)"}})),D([0,1],function(x){var S=l.get("handleIcon");!g0[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var _=sr(S,-1,0,2,2,null,!0);_.attr({cursor:vF(this._orient),draggable:!0,drift:ue(this._onDragMove,this,x),ondragend:ue(this._onDragEnd,this),onmouseover:ue(this._showDataInfo,this,!0),onmouseout:ue(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(),iu(_);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=sr(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:vF(this._orient),drift:ue(this._onDragMove,this,"all"),ondragstart:ue(this._showDataInfo,this,!0),ondragend:ue(this._onDragEnd,this),onmouseover:ue(this._showDataInfo,this,!0),onmouseout:ue(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[ct(r[0],[0,100],n,!0),ct(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?ct(s.minSpan,l,o,!0):null,s.maxSpan!=null?ct(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=gi([ct(a[0],o,l,!0),ct(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=gi(i.slice()),o=this._size;D([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=gi([ct(i.x,o,s,!0),ct(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&&(vo(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 Yd({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?iOe:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=z9(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}(BP);function oOe(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function vF(e){return e==="vertical"?"ns-resize":"ew-resize"}const sOe=aOe;function i7(e){e.registerComponentModel(JEe),e.registerComponentView(sOe),FP(e)}function lOe(e){Fe(n7),Fe(i7)}var uOe={get:function(e,t,r){var n=we((cOe[e]||{})[t]);return r&&q(n)?n[n.length-1]:n}},cOe={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 a7=uOe;var gF=Or.mapVisual,fOe=Or.eachVisual,dOe=q,mF=D,hOe=gi,pOe=ct,vOe=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&&Y9(i,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(r){var n=this.stateList;r=ue(r,this),this.controllerVisuals=MA(this.option.controller,n,r),this.targetVisuals=MA(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){D(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||["<",">"],q(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(me(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=hOe([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){dOe(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]={},mF(p,function(g,m){if(Or.isValidType(m)){var y=a7.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";mF(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&&we(d)||(s?g:[g])),x.symbolSize==null&&(x.symbolSize=h&&we(h)||(s?y[0]:[y[0],y[0]])),x.symbol=gF(x.symbol,function(b){return b==="none"?g:b});var S=x.symbolSize;if(S!=null){var _=-1/0;fOe(S,function(b){b>_&&(_=b)}),x.symbolSize=gF(S,function(b){return pOe(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 G0=vOe;var yF=[20,140],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.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]=yF[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=yF[1])},t.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):q(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),D(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},t.prototype.getSelected=function(){var r=this.getExtent(),n=gi((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=xF(this,"outOfRange",this.getExtent()),i=xF(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 Ae(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();xOe([0,1],function(c){var f=o[c];f.setStyle("fill",n.handlesColor[c]),f.y=r[c];var d=oa(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=Ui(i.handleLabelPoints[c],au(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=oa(r,s,u,!0),g=l[0]-p/2,m={x:f.x,y:f.y};f.y=v,f.x=g;var y=Ui(c.indicatorLabelPoint,au(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||wF(i))&&(h=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var p=cge(d,h);this._dispatchHighDown("downplay",iy(p[0],i)),this._dispatchHighDown("highlight",iy(p[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(Yl(r.target,function(l){var u=Ie(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 IOe(e,t,r,n){for(var i=t.targetVisuals[n],a=Or.prepareVisualTypes(i),o={color:Tv(e.getData(),"color")},s=0,l=a.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(TOe,AOe),D(MOe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(POe))}function u7(e){e.registerComponentModel(mOe),e.registerComponentView(COe),l7(e)}var kOe=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=[],DOe[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=we(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Z(this._pieceList,function(l){return l=we(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var r=this.option,n={},i=Or.listVisualTypes(),a=this.isCategory();D(r.pieces,function(s){D(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),D(n,function(s,l){var u=!1;D(this.stateList,function(c){u=u||o(r,c,l)||o(r.target,c,l)},this),!u&&D(this.stateList,function(c){(r[c]||(r[c]={}))[l]=a7.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,D(a,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;D(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=we(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 D(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=Ws(G0.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}(G0),DOe={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 MF(e,t){var r=e.inverse;(e.orient==="vertical"?!r:r)&&t.reverse()}const ROe=kOe;var LOe=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),D(c.viewPieceList,function(h){var p=h.piece,v=new Ae;v.onclick=ue(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),ou(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:iy(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return s7(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 Ae,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(sr(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=we(i.selected),s=n.getSelectedMapKey(r);a==="single"||a===!0?(o[s]=!0,D(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(o7);const EOe=LOe;function c7(e){e.registerComponentModel(ROe),e.registerComponentView(EOe),l7(e)}function OOe(e){Fe(u7),Fe(c7)}var NOe={label:{enabled:!0},decal:{show:!1}},IF=Je(),zOe={};function BOe(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=we(NOe);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=ve();e.eachSeries(function(d){if(!d.isColorBySeries()){var h=f.get(d.type);h||(h={},f.set(d.type,h)),IF(d).scope=h}}),e.eachRawSeries(function(d){if(e.isSeriesFiltered(d))return;if(me(d.enableAriaDecal)){d.enableAriaDecal();return}var h=d.getData();if(d.isColorBySeries()){var y=ET(d.ecModel,d.name,zOe,e.getSeriesCount()),x=h.getVisual("decal");h.setVisual("decal",S(x,y))}else{var p=d.getRawData(),v={},g=IF(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=ET(d.ecModel,w,g,m),A=h.getItemVisual(b,"decal");h.setItemVisual(b,"decal",S(A,C))})}function S(_,b){var w=_?Y(Y({},b),_):b;return w.dirty=!0,w}})}}function a(){var u=e.getLocaleModel().get("aria"),c=r.getModel("label");if(c.option=xe(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",I]):c.get(["series","single",I]),T=o(T,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var P=C.getData();if(P.count()>h){var k=c.get(["data","partialData"]);T+=o(k,{displayCnt:h})}else T+=c.get(["data","allData"]);for(var R=c.get(["data","separator","middle"]),z=c.get(["data","separator","end"]),$=[],N=0;N":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},VOe=function(){function e(t){var r=this._condVal=oe(t)?new RegExp(t):bpe(t)?t:null;if(r==null){var n="";st(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}(),GOe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),HOe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r2&&n.push(i),i=[P,k]}function c(P,k,R,z){Fc(P,R)&&Fc(k,z)||i.push(P,k,R,z,R,z)}function f(P,k,R,z,$,N){var V=Math.abs(k-P),L=Math.tan(V/4)*4/3,G=kC:M2&&n.push(i),n}function OA(e,t,r,n,i,a,o,s,l,u){if(Fc(e,r)&&Fc(t,n)&&Fc(i,o)&&Fc(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=[];ks(e,r,i,o,.5,A),ks(t,n,a,s,.5,T),OA(A[0],T[0],A[1],T[1],A[2],T[2],A[3],T[3],l,u),OA(A[4],T[4],A[5],T[5],A[6],T[6],A[7],T[7],l,u)}function nNe(e,t){var r=EA(e),n=[];t=t||1;for(var i=0;i0)for(var u=0;uMath.abs(u),f=d7([l,u],c?0:1,t),d=(c?s:u)/f.length,h=0;hi,o=d7([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 oNe(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 hc(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function sNe(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),sNe(t,u,c)}function H0(e,t,r,n){if(r===1)n.push(t);else{var i=Math.floor(r/2),a=e(t);H0(e,a[0],i,n),H0(e,a[1],r-i,n)}return n}function lNe(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 j0(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:mNe(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 v7(e){return fNe(e.path,e.count)}function NA(){return{fromIndividuals:[],toIndividuals:[],count:0}}function yNe(e,t,r){var n=[];function i(_){for(var b=0;b<_.length;b++){var w=_[b];W0(w)?i(w.childrenRef()):w instanceof $e&&n.push(w)}}i(e);var a=n.length;if(!a)return NA();var o=r.dividePath||v7,s=o({path:t,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),NA();n=j0(n),s=j0(s);for(var l=r.done,u=r.during,c=r.individualDelay,f=new Ja,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 SNe={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;zF(e)&&(u=e,c=t),zF(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(W0(C))f({many:[C],one:A},!0,x,S,!0);else{var T=s?xe({delay:s(x,S)},l):l;XP(C,A,T),a(C,A,C,A,T)}}else for(var M=xe({dividePath:SNe[r],individualDelay:s&&function($,N,V,L){return s($+x,S)}},l),I=y?yNe(b,w,M):xNe(w,b,M),P=I.fromIndividuals,k=I.toIndividuals,R=P.length,z=0;zt.length,h=u?BF(c,u):BF(d?t:e,[d?e:t]),p=0,v=0;vg7))for(var i=n.getIndices(),a=_Ne(n),o=0;o0&&S.group.traverse(function(b){b instanceof $e&&!b.animators.length&&b.animateFrom({style:{opacity:0}},_)})})}function $F(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function VF(e){return q(e)?e.sort().join(","):e}function Yo(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function TNe(e,t){var r=ve(),n=ve(),i=ve();return D(e.oldSeries,function(a,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=$F(a),c=VF(u);n.set(c,{dataGroupId:s,data:l}),q(u)&&D(u,function(f){i.set(f,{key:c,dataGroupId:s,data:l})})}),D(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=$F(a),u=VF(l),c=n.get(u);if(c)r.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Yo(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Yo(s),data:s}]});else if(q(l)){var f=[];D(l,function(p){var v=n.get(p);v.data&&f.push({dataGroupId:v.dataGroupId,divide:Yo(v.data),data:v.data})}),f.length&&r.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:Yo(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:Yo(d.data)}],newSeries:[]},r.set(d.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Yo(s)})}}}}),r}function GF(e,t){for(var r=0;r=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Yo(t.oldData[s]),dim:o.dimension})}),D(pt(e.to),function(o){var s=GF(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Yo(l),dim:o.dimension})}}),i.length>0&&a.length>0&&m7(i,a,n)}function MNe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){D(pt(n.seriesTransition),function(i){D(pt(i.to),function(a){for(var o=n.updatedSeries,s=0;s({legend:{icon:"circle",inactiveColor:Zh,textStyle:{color:Zh}},title:{text:t,x:10,y:10},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)=>` +`:"
",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=Ie(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=Wd([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 qb;m.marker=y.makeTooltipMarker("item",bu(m.color),h);var x=PO(u.formatTooltip(c,!1,f)),S=v.get("order"),_=v.get("valueFormatter"),b=x.frag,w=b?OO(_?Y({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=Ie(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=Wd(u,this._tooltipModel,f?{position:f}:null),h=d.get("content"),p=Math.random()+"",v=new qb;this._showOrMove(d,function(){var g=we(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=q(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=d,y&&(h=Ax(m.axisValue,h,g)),h=xW(h,i,!0)}else if(me(d)){var x=ue(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"||q(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!q(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),me(n)&&(n=n([i,a],s,o.el,p,{viewSize:[u,c],contentSize:f.slice()})),q(n))i=ne(n[0],u),a=ne(n[1],c);else if(Se(n)){var v=n;v.width=f[0],v.height=f[1];var g=hr(v,{width:u,height:c});i=g.x,a=g.y,d=null,h=null}else if(oe(n)&&l){var m=pLe(n,p,f,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=dLe(i,a,o,u,c,d?null:20,h?null:20);i=m[0],a=m[1]}if(d&&(i-=W5(d)?f[0]/2:d==="right"?f[0]:0),h&&(a-=W5(h)?f[1]/2:h==="bottom"?f[1]:0),H9(r)){var m=hLe(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&&D(i,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&D(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&&D(v,function(m,y){var x=g[y];o=o&&m.seriesIndex===x.seriesIndex&&m.dataIndex===x.dataIndex}),a&&D(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()||(Bp(this,"_updatePosition"),this._tooltipContent.dispose(),bA("itemTooltip",n))},t.type="tooltip",t}(jt);function Wd(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 H5(e,t){return e.dispatchAction||ue(t.dispatchAction,t)}function dLe(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 hLe(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 pLe(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 W5(e){return e==="center"||e==="middle"}function vLe(e,t,r){var n=rI(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=yv(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=Ie(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const gLe=fLe;function mLe(e){Fe(Nv),e.registerComponentModel(ZRe),e.registerComponentView(gLe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},rr),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},rr)}var yLe=["rect","polygon","keep","clear"];function xLe(e,t){var r=pt(e?e.brush:[]);if(r.length){var n=[];D(r,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var i=e&&e.toolbox;q(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),SLe(s),t&&!s.length&&s.push.apply(s,yLe)}}function SLe(e){var t={};D(e,function(r){t[r]=1}),e.length=0,D(t,function(r,n){e.push(n)})}var U5=D;function j5(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function MA(e,t,r){var n={};return U5(t,function(a){var o=n[a]=i();U5(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=we(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 Y9(e,t,r){var n;D(r,function(i){t.hasOwnProperty(i)&&j5(t[i])&&(n=!0)}),n&&D(r,function(i){t.hasOwnProperty(i)&&j5(t[i])?e[i]=we(t[i]):delete e[i]})}function bLe(e,t,r,n,i,a){var o={};D(e,function(f){var d=Or.prepareVisualTypes(t[f]);o[f]=d});var s;function l(f){return LI(r,s,f)}function u(f,d){cU(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&&K5(t)}};function K5(e){return new Ne(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var PLe=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 bP(n.getZr())).on("brush",ue(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){q9(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:we(i),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:we(i),$from:n})},t.type="brush",t}(jt);const kLe=PLe;var DLe="#ddd",RLe=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&&Y9(i,r,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:DLe},a.hasOwnProperty("liftZ")||(a.liftZ=5)},t.prototype.setAreas=function(r){r&&(this.areas=Z(r,function(n){return Q5(this.option,n)},this))},t.prototype.setBrushOption=function(r){this.brushOption=Q5(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 Q5(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 LLe=RLe;var ELe=["rect","polygon","lineX","lineY","keep","clear"],OLe=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,D(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 D(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:ELe.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}(di);const NLe=OLe;function zLe(e){e.registerComponentView(kLe),e.registerComponentModel(LLe),e.registerPreprocessor(xLe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,CLe),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),_c("brush",NLe)}var BLe=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),FLe=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(){h0(p,"_"+r.get("target"))}),v&&h.on("click",function(){h0(v,"_"+r.get("subtarget"))}),Ie(c).eventData=Ie(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=hr(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}(jt);function $Le(e){e.registerComponentModel(BLe),e.registerComponentView(FLe)}var VLe=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=[],D(n,function(u,c){var f=dr(Hf(u),""),d;Se(u)?(d=we(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 sn([{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 J5=VLe;var X9=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=Ws(J5.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}(J5);lr(X9,II.prototype);const GLe=X9;var HLe=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}(jt);const WLe=HLe;var ULe=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}(Qi);const jLe=ULe;var fw=Math.PI,eF=Je(),YLe=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 xr("nameValue",{noName:!0,value:c})},D(["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=XLe(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:fw/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*fw/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=_i(),l=o.x,u=o.y+o.height;Na(s,s,[-l,-u]),Du(s,s,-fw/2),Na(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=qLe(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 jLe("value",o,r.axisExtent,a);return l.model=n,l},t.prototype._createGroup=function(r){var n=this[r]=new Ae;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:Y({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:xe({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=[],D(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:ue(o._changeTimeline,o,u.value)},g=tF(f,d,n,v);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),iu(g);var m=Ie(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=[],D(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:ue(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),iu(m),eF(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",ue(this._changeTimeline,this,f?"-":"+")),d(r.prevBtnPosition,"prev",ue(this._changeTimeline,this,f?"+":"-")),d(r.playPosition,c?"stop":"play",ue(this._handlePlayClick,this,!c),!0);function d(h,p,v,g){if(h){var m=Xi(Ee(a.get(["controlStyle",p+"BtnSize"]),o),o),y=[0,-m/2,m,m],x=ZLe(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),iu(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=ue(u._handlePointerDrag,u),f.ondragend=ue(u._handlePointerDragend,u),rF(f,u._progressLine,s,i,a,!0)},onUpdate:function(f){rF(f,u._progressLine,s,i,a)}};this._currentPointer=tF(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=gi(a.getExtent().slice());i>o[1]&&(i=o[1]),i=0&&(o[a]=+o[a].toFixed(d)),[o,f]}var dw={min:Pe(pm,"min"),max:Pe(pm,"max"),average:Pe(pm,"average"),median:Pe(pm,"median")};function Kp(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,i=n&&n.dimensions;if(!iEe(t)&&!q(t.coord)&&q(i)){var a=K9(t,r,n,e);if(t=we(t),t.type&&dw[t.type]&&a.baseAxis&&a.valueAxis){var o=ze(i,a.baseAxis.dim),s=ze(i,a.valueAxis.dim),l=dw[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||!q(i))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)dw[u[c]]&&(u[c]=UP(r,r.mapDimension(i[c]),u[c]));return t}}function K9(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(aEe(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 aEe(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function Qp(e,t){return e&&e.containData&&t.coord&&!PA(t)?e.containData(t.coord):!0}function oEe(e,t,r){return e&&e.containZone&&t.coord&&r.coord&&!PA(t)&&!PA(r)?e.containZone(t.coord,r.coord):!0}function Q9(e,t){return e?function(r,n,i,a){var o=a<2?r.coord&&r.coord[a]:r.value;return Ss(o,t[a])}:function(r,n,i,a){return Ss(r.value,t[a])}}function UP(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 hw=Je(),sEe=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=ve()},t.prototype.render=function(r,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){hw(s).keep=!1}),n.eachSeries(function(s){var l=zs.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!hw(s).keep&&a.group.remove(s.group)})},t.prototype.markKeep=function(r){hw(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var i=this;D(r,function(a){var o=zs.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?A6(l):lI(l))})}})},t.type="marker",t}(jt);const jP=sEe;function iF(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 lEe=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=zs.getMarkerModelFromSeries(a,"markPoint");o&&(iF(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 kv),f=uEe(o,r,n);n.setData(f),iF(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(me(p)||me(v)||me(g)||me(m)){var x=n.getRawValue(d),S=n.getDataParams(d);me(p)&&(p=p(x,S)),me(v)&&(v=v(x,S)),me(g)&&(g=g(x,S)),me(m)&&(m=m(x,S))}var _=h.getModel("itemStyle").getItemStyle(),b=Tv(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){Ie(h).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markPoint",t}(jP);function uEe(e,t,r){var n;e?n=Z(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return Y(Y({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new sn(n,r),a=Z(r.get("data"),Pe(Kp,t));e&&(a=dt(a,Pe(Qp,e)));var o=Q9(!!e,n);return i.initData(a,null,o),i}const cEe=lEe;function fEe(e){e.registerComponentModel(nEe),e.registerComponentView(cEe),e.registerPreprocessor(function(t){WP(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}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.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}(zs);const hEe=dEe;var vm=Je(),pEe=function(e,t,r,n){var i=e.getData(),a;if(q(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=K9(n,i,t,e);s=u.valueAxis;var c=BU(i,u.valueDataDim);l=UP(i,c,o)}var f=s.dim==="x"?0:1,d=1-f,h=we(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=[Kp(e,a[0]),Kp(e,a[1]),Y({},a[2])];return g[2].type=g[2].type||null,Oe(g[2],g[0]),Oe(g[2],g[1]),g};function $0(e){return!isNaN(e)&&!isFinite(e)}function aF(e,t,r,n){var i=1-e,a=n.dimensions[e];return $0(t[i])&&$0(r[i])&&t[e]===r[e]&&n.getAxis(a).containData(t[e])}function vEe(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(aF(1,r,n,e)||aF(0,r,n,e)))return!0}return Qp(e,t[0])&&Qp(e,t[1])}function pw(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(Ou(a,"cartesian2d")){var h=a.getAxis("x"),p=a.getAxis("y"),c=a.dimensions;$0(e.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[r?0:1]):$0(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 gEe=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=zs.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=vm(o).from,u=vm(o).to;l.each(function(c){pw(l,c,!0,a,i),pw(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 vP);this.group.add(c.group);var f=mEe(o,r,n),d=f.from,h=f.to,p=f.line;vm(n).from=d,vm(n).to=h,n.setData(p);var v=n.get("symbol"),g=n.get("symbolSize"),m=n.get("symbolRotate"),y=n.get("symbolOffset");q(v)||(v=[v,v]),q(g)||(g=[g,g]),q(m)||(m=[m,m]),q(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){Ie(S).dataModel=n,S.traverse(function(_){Ie(_).dataModel=n})});function x(S,_,b){var w=S.getItemModel(_);pw(S,_,b,r,a);var C=w.getModel("itemStyle").getItemStyle();C.fill==null&&(C.fill=Tv(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}(jP);function mEe(e,t,r){var n;e?n=Z(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return Y(Y({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new sn(n,r),a=new sn(n,r),o=new sn([],r),s=Z(r.get("data"),Pe(pEe,t,e,r));e&&(s=dt(s,Pe(vEe,e)));var l=Q9(!!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 yEe=gEe;function xEe(e){e.registerComponentModel(hEe),e.registerComponentView(yEe),e.registerPreprocessor(function(t){WP(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var SEe=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}(zs);const bEe=SEe;var gm=Je(),_Ee=function(e,t,r,n){var i=n[0],a=n[1];if(!(!i||!a)){var o=Kp(e,i),s=Kp(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=W2([{},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 V0(e){return!isNaN(e)&&!isFinite(e)}function oF(e,t,r,n){var i=1-e;return V0(t[i])&&V0(r[i])}function wEe(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 Ou(e,"cartesian2d")?r&&n&&(oF(1,r,n)||oF(0,r,n))?!0:oEe(e,i,a):Qp(e,i)||Qp(e,a)}function sF(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(Ou(a,"cartesian2d")){var y=a.getAxis("x"),x=a.getAxis("y"),v=e.get(r[0],t),g=e.get(r[1],t);V0(v)?s[0]=y.toGlobalCoord(y.getExtent()[r[0]==="x0"?0:1]):V0(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 lF=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],CEe=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=zs.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Z(lF,function(f){return sF(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 Ae});this.group.add(c.group),this.markKeep(c);var f=TEe(o,r,n);n.setData(f),f.each(function(d){var h=Z(lF,function(C){return sF(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))];gi(y),gi(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 kA=PEe;var fc=Pe,DA=D,mm=Ae,kEe=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 mm),this.group.add(this._selectorGroup=new mm),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=hr(c,f,d),p=this.layoutInner(r,o,h,a,l,u),v=hr(xe({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=$9(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=ve(),f=n.get("selectedMode"),d=[];i.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),DA(n.getData(),function(h,p){var v=h.get("name");if(!this.newlineDisabled&&(v===""||v===` +`)){var g=new mm;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",fc(uF,v,null,a,d)).on("mouseover",fc(RA,m.name,null,a,d)).on("mouseout",fc(LA,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"),I=Vn(T.fill);I&&I[3]===0&&(I[3]=.2,T=Y(Y({},T),{fill:io(I,"rgba")}));var P=this._createItem(w,v,p,h,n,r,{},T,M,f,a);P.on("click",fc(uF,null,v,a,d)).on("mouseover",fc(RA,null,v,a,d)).on("mouseout",fc(LA,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();DA(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}),iu(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=DEe(c,a,l,u,h,g,d),_=new mm,b=a.getModel("textStyle");if(me(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(REe({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??""):me(T)&&(M=T(n));var I=g?b.getTextColor():a.get("inactiveColor");_.add(new rt({style:_t(b,{text:M,x:C,y:v/2,fill:I,align:A,verticalAlign:"middle"},{inheritColor:I})}));var P=new Qe({shape:_.getBoundingRect(),invisible:!0}),k=a.getModel("tooltip");return k.get("show")&&jf({el:P,componentModel:o,itemName:n,itemTooltipOption:k.option}),_.add(P),_.eachChild(function(R){R.silent=!0}),P.silent=!f,this.getContentGroup().add(_),iu(_),_.__legendDataIndex=i,_},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ou(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){ou("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}(jt);function DEe(e,t,r,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),DA(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:Sf(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 REe(e){var t=e.icon||"roundRect",r=sr(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 uF(e,t,r,n){LA(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),RA(e,t,r,n)}function J9(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&&it(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;D(["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=vw[o],l=gw[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}(e7);const BEe=zEe;function FEe(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 $Ee(e){Fe(t7),e.registerComponentModel(NEe),e.registerComponentView(BEe),FEe(e)}function VEe(e){Fe(t7),Fe($Ee)}var GEe=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=Ws(Zp.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Zp);const HEe=GEe;var YP=Je();function WEe(e,t,r){YP(e).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=r)})}function UEe(e,t){for(var r=YP(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 ZEe(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=YP(r),i=n.coordSysRecordMap||(n.coordSysRecordMap=ve());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=z9(a);D(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,jEe(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ve());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){r7(i,a);return}var c=XEe(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),ed(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var KEe=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(),WEe(i,r,{pan:ue(mw.pan,this),zoom:ue(mw.zoom,this),scrollMove:ue(mw.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){UEe(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(BP),mw={zoom:function(e,t,r,n){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=yw[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:dF(function(e,t,r,n,i,a){var o=yw[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:dF(function(e,t,r,n,i,a){var o=yw[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,r);return o.signal*(e[1]-e[0])*a.scrollDelta})};function dF(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 yw={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 QEe=KEe;function n7(e){FP(e),e.registerComponentModel(HEe),e.registerComponentView(QEe),ZEe(e)}var JEe=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=Ws(Zp.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}(Zp);const eOe=JEe;var Yd=Qe,hF=7,tOe=1,xw=30,rOe=7,qd="horizontal",pF="vertical",nOe=5,iOe=["line","bar","candlestick","scatter"],aOe={easing:"cubicOut",duration:100,delay:0},oOe=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=ue(this._onBrush,this),this._onBrushEnd=ue(this._onBrushEnd,this)},t.prototype.render=function(r,n,i,a){if(e.prototype.render.apply(this,arguments),ed(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(){Bp(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 Ae;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?rOe:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===qd?{right:s.width-o.x-o.width,top:s.height-xw-hF-a,width:o.width,height:xw}:{right:hF,top:o.y,width:xw,height:o.height},u=Zf(r.option);D(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=hr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===pF&&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===qd&&!o?{scaleY:l?1:-1,scaleX:1}:i===qd&&o?{scaleY:l?1:-1,scaleX:-1}:i===pF&&!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 Yd({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new Yd({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:ue(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==="",I=M?0:ct(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,I]),g.push([y,I]),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 Ae,I=new Pn({shape:{points:u},segmentIgnoreThreshold:1,style:T.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),P=new kn({shape:{points:c},segmentIgnoreThreshold:1,style:T.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(I),M.add(P),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();D(l,function(u){if(!i&&!(n!==!0&&ze(iOe,u.get("type"))<0)){var c=a.getComponent(ss(o),s).axis,f=sOe(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 Yd({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new Yd({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:tOe,fill:"rgba(0,0,0,0)"}})),D([0,1],function(x){var S=l.get("handleIcon");!g0[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var _=sr(S,-1,0,2,2,null,!0);_.attr({cursor:vF(this._orient),draggable:!0,drift:ue(this._onDragMove,this,x),ondragend:ue(this._onDragEnd,this),onmouseover:ue(this._showDataInfo,this,!0),onmouseout:ue(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(),iu(_);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=sr(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:vF(this._orient),drift:ue(this._onDragMove,this,"all"),ondragstart:ue(this._showDataInfo,this,!0),ondragend:ue(this._onDragEnd,this),onmouseover:ue(this._showDataInfo,this,!0),onmouseout:ue(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[ct(r[0],[0,100],n,!0),ct(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?ct(s.minSpan,l,o,!0):null,s.maxSpan!=null?ct(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=gi([ct(a[0],o,l,!0),ct(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=gi(i.slice()),o=this._size;D([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=gi([ct(i.x,o,s,!0),ct(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&&(vo(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 Yd({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?aOe:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=z9(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}(BP);function sOe(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function vF(e){return e==="vertical"?"ns-resize":"ew-resize"}const lOe=oOe;function i7(e){e.registerComponentModel(eOe),e.registerComponentView(lOe),FP(e)}function uOe(e){Fe(n7),Fe(i7)}var cOe={get:function(e,t,r){var n=we((fOe[e]||{})[t]);return r&&q(n)?n[n.length-1]:n}},fOe={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 a7=cOe;var gF=Or.mapVisual,dOe=Or.eachVisual,hOe=q,mF=D,pOe=gi,vOe=ct,gOe=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&&Y9(i,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(r){var n=this.stateList;r=ue(r,this),this.controllerVisuals=MA(this.option.controller,n,r),this.targetVisuals=MA(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){D(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||["<",">"],q(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(me(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=pOe([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){hOe(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]={},mF(p,function(g,m){if(Or.isValidType(m)){var y=a7.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";mF(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&&we(d)||(s?g:[g])),x.symbolSize==null&&(x.symbolSize=h&&we(h)||(s?y[0]:[y[0],y[0]])),x.symbol=gF(x.symbol,function(b){return b==="none"?g:b});var S=x.symbolSize;if(S!=null){var _=-1/0;dOe(S,function(b){b>_&&(_=b)}),x.symbolSize=gF(S,function(b){return vOe(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 G0=gOe;var yF=[20,140],mOe=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]=yF[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=yF[1])},t.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):q(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),D(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},t.prototype.getSelected=function(){var r=this.getExtent(),n=gi((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=xF(this,"outOfRange",this.getExtent()),i=xF(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 Ae(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();SOe([0,1],function(c){var f=o[c];f.setStyle("fill",n.handlesColor[c]),f.y=r[c];var d=oa(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=Ui(i.handleLabelPoints[c],au(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=oa(r,s,u,!0),g=l[0]-p/2,m={x:f.x,y:f.y};f.y=v,f.x=g;var y=Ui(c.indicatorLabelPoint,au(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||wF(i))&&(h=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var p=fge(d,h);this._dispatchHighDown("downplay",iy(p[0],i)),this._dispatchHighDown("highlight",iy(p[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(Yl(r.target,function(l){var u=Ie(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 POe(e,t,r,n){for(var i=t.targetVisuals[n],a=Or.prepareVisualTypes(i),o={color:Tv(e.getData(),"color")},s=0,l=a.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(AOe,MOe),D(IOe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(kOe))}function u7(e){e.registerComponentModel(yOe),e.registerComponentView(TOe),l7(e)}var DOe=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=[],ROe[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=we(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Z(this._pieceList,function(l){return l=we(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var r=this.option,n={},i=Or.listVisualTypes(),a=this.isCategory();D(r.pieces,function(s){D(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),D(n,function(s,l){var u=!1;D(this.stateList,function(c){u=u||o(r,c,l)||o(r.target,c,l)},this),!u&&D(this.stateList,function(c){(r[c]||(r[c]={}))[l]=a7.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,D(a,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;D(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=we(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 D(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=Ws(G0.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}(G0),ROe={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 MF(e,t){var r=e.inverse;(e.orient==="vertical"?!r:r)&&t.reverse()}const LOe=DOe;var EOe=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),D(c.viewPieceList,function(h){var p=h.piece,v=new Ae;v.onclick=ue(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),ou(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:iy(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return s7(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 Ae,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(sr(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=we(i.selected),s=n.getSelectedMapKey(r);a==="single"||a===!0?(o[s]=!0,D(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(o7);const OOe=EOe;function c7(e){e.registerComponentModel(LOe),e.registerComponentView(OOe),l7(e)}function NOe(e){Fe(u7),Fe(c7)}var zOe={label:{enabled:!0},decal:{show:!1}},IF=Je(),BOe={};function FOe(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=we(zOe);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=ve();e.eachSeries(function(d){if(!d.isColorBySeries()){var h=f.get(d.type);h||(h={},f.set(d.type,h)),IF(d).scope=h}}),e.eachRawSeries(function(d){if(e.isSeriesFiltered(d))return;if(me(d.enableAriaDecal)){d.enableAriaDecal();return}var h=d.getData();if(d.isColorBySeries()){var y=ET(d.ecModel,d.name,BOe,e.getSeriesCount()),x=h.getVisual("decal");h.setVisual("decal",S(x,y))}else{var p=d.getRawData(),v={},g=IF(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=ET(d.ecModel,w,g,m),A=h.getItemVisual(b,"decal");h.setItemVisual(b,"decal",S(A,C))})}function S(_,b){var w=_?Y(Y({},b),_):b;return w.dirty=!0,w}})}}function a(){var u=e.getLocaleModel().get("aria"),c=r.getModel("label");if(c.option=xe(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",I]):c.get(["series","single",I]),T=o(T,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var P=C.getData();if(P.count()>h){var k=c.get(["data","partialData"]);T+=o(k,{displayCnt:h})}else T+=c.get(["data","allData"]);for(var R=c.get(["data","separator","middle"]),z=c.get(["data","separator","end"]),$=[],N=0;N":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},GOe=function(){function e(t){var r=this._condVal=oe(t)?new RegExp(t):_pe(t)?t:null;if(r==null){var n="";st(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}(),HOe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),WOe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r2&&n.push(i),i=[P,k]}function c(P,k,R,z){Fc(P,R)&&Fc(k,z)||i.push(P,k,R,z,R,z)}function f(P,k,R,z,$,N){var V=Math.abs(k-P),L=Math.tan(V/4)*4/3,G=kC:M2&&n.push(i),n}function OA(e,t,r,n,i,a,o,s,l,u){if(Fc(e,r)&&Fc(t,n)&&Fc(i,o)&&Fc(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=[];ks(e,r,i,o,.5,A),ks(t,n,a,s,.5,T),OA(A[0],T[0],A[1],T[1],A[2],T[2],A[3],T[3],l,u),OA(A[4],T[4],A[5],T[5],A[6],T[6],A[7],T[7],l,u)}function iNe(e,t){var r=EA(e),n=[];t=t||1;for(var i=0;i0)for(var u=0;uMath.abs(u),f=d7([l,u],c?0:1,t),d=(c?s:u)/f.length,h=0;hi,o=d7([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 sNe(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 hc(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function lNe(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),lNe(t,u,c)}function H0(e,t,r,n){if(r===1)n.push(t);else{var i=Math.floor(r/2),a=e(t);H0(e,a[0],i,n),H0(e,a[1],r-i,n)}return n}function uNe(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 j0(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:yNe(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 v7(e){return dNe(e.path,e.count)}function NA(){return{fromIndividuals:[],toIndividuals:[],count:0}}function xNe(e,t,r){var n=[];function i(_){for(var b=0;b<_.length;b++){var w=_[b];W0(w)?i(w.childrenRef()):w instanceof $e&&n.push(w)}}i(e);var a=n.length;if(!a)return NA();var o=r.dividePath||v7,s=o({path:t,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),NA();n=j0(n),s=j0(s);for(var l=r.done,u=r.during,c=r.individualDelay,f=new Ja,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 bNe={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;zF(e)&&(u=e,c=t),zF(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(W0(C))f({many:[C],one:A},!0,x,S,!0);else{var T=s?xe({delay:s(x,S)},l):l;XP(C,A,T),a(C,A,C,A,T)}}else for(var M=xe({dividePath:bNe[r],individualDelay:s&&function($,N,V,L){return s($+x,S)}},l),I=y?xNe(b,w,M):SNe(w,b,M),P=I.fromIndividuals,k=I.toIndividuals,R=P.length,z=0;zt.length,h=u?BF(c,u):BF(d?t:e,[d?e:t]),p=0,v=0;vg7))for(var i=n.getIndices(),a=wNe(n),o=0;o0&&S.group.traverse(function(b){b instanceof $e&&!b.animators.length&&b.animateFrom({style:{opacity:0}},_)})})}function $F(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function VF(e){return q(e)?e.sort().join(","):e}function Yo(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function ANe(e,t){var r=ve(),n=ve(),i=ve();return D(e.oldSeries,function(a,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=$F(a),c=VF(u);n.set(c,{dataGroupId:s,data:l}),q(u)&&D(u,function(f){i.set(f,{key:c,dataGroupId:s,data:l})})}),D(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=$F(a),u=VF(l),c=n.get(u);if(c)r.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Yo(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Yo(s),data:s}]});else if(q(l)){var f=[];D(l,function(p){var v=n.get(p);v.data&&f.push({dataGroupId:v.dataGroupId,divide:Yo(v.data),data:v.data})}),f.length&&r.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:Yo(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:Yo(d.data)}],newSeries:[]},r.set(d.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Yo(s)})}}}}),r}function GF(e,t){for(var r=0;r=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Yo(t.oldData[s]),dim:o.dimension})}),D(pt(e.to),function(o){var s=GF(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Yo(l),dim:o.dimension})}}),i.length>0&&a.length>0&&m7(i,a,n)}function INe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){D(pt(n.seriesTransition),function(i){D(pt(i.to),function(a){for(var o=n.updatedSeries,s=0;s({legend:{icon:"circle",inactiveColor:Zh,textStyle:{color:Zh}},title:{text:t,x:10,y:10},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?o:""} ${a}
${l}: ${u} - `,""):"No data",axisPointer:{animation:!0},textStyle:{color:Zh,fontSize:13},backgroundColor:"rgba(21,35,28, 0.93)",borderWidth:0,extraCssText:"z-index:1;"},xAxis:{type:"category",splitLine:{show:!1},axisLine:{lineStyle:{color:zA}},data:e.time},yAxis:{type:"value",boundaryGap:[0,"5%"],splitLine:{show:!1},axisLine:{lineStyle:{color:zA}}},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"}}}}}}),PNe=({charts:e,lines:t})=>t.map(({key:r,name:n})=>({name:n,type:"line",showSymbol:!0,data:e[r]})),kNe=e=>({symbol:"none",label:{formatter:t=>`Run #${t.dataIndex+1}`},lineStyle:{color:zA},data:(e.markers||[]).map(t=>({xAxis:t}))});function DNe({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=yxe(o.current,"locust");s.setOption(INe({charts:e,title:t,seriesData:PNe({charts:e,lines:r}),colors:n}));const l=()=>s.resize();return window.addEventListener("resize",l),s.group="swarmCharts",xxe("swarmCharts"),a(s),()=>{Sxe(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:kNe(e)}:{}}))})},[e,i,r]),E.jsx("div",{ref:o,style:{width:"100%",height:"300px"}})}const RNe=[{title:"Total Requests per Second",lines:[{name:"RPS",key:"currentRps"},{name:"Failures/s",key:"currentFailPerSec"}],colors:["#00ca5a","#ff6d6d"]},{title:"Response Times (ms)",lines:[{name:`${window.templateArgs.percentile1*100}th percentile`,key:"responseTimePercentile1"},{name:`${window.templateArgs.percentile2*100}th percentile`,key:"responseTimePercentile2"}]},{title:"Number of Users",lines:[{name:"Number of Users",key:"userCount"}]}];function y7({charts:e}){return E.jsx("div",{children:RNe.map((t,r)=>E.jsx(DNe,{...t,charts:e},`swarm-chart-${r}`))})}const LNe=({ui:{charts:e}})=>({charts:e}),ENe=Xn(LNe)(y7);function ONe(e){return(e*100).toFixed(1)+"%"}function BA({classRatio:e}){return E.jsx("ul",{children:Object.entries(e).map(([t,{ratio:r,tasks:n}])=>E.jsxs("li",{children:[`${ONe(r)} ${t}`,n&&E.jsx(BA,{classRatio:n})]},`nested-ratio-${t}`))})}function x7({ratios:{perClass:e,total:t}}){return!e&&!t?null:E.jsxs("div",{children:[e&&E.jsxs(E.Fragment,{children:[E.jsx("h3",{children:"Ratio Per Class"}),E.jsx(BA,{classRatio:e})]}),t&&E.jsxs(E.Fragment,{children:[E.jsx("h3",{children:"Total Ratio"}),E.jsx(BA,{classRatio:t})]})]})}const NNe=({ui:{ratios:e}})=>({ratios:e}),zNe=Xn(NNe)(x7),BNe=[{key:"id",title:"Worker"},{key:"state",title:"State"},{key:"userCount",title:"# users"},{key:"cpuUsage",title:"CPU usage"},{key:"memoryUsage",title:"Memory usage",formatter:Fle}];function FNe({workers:e=[]}){const{onTableHeadClick:t,sortedStats:r,currentSortField:n}=F2(e,{defaultSortKey:"worker"});return E.jsx(Ff,{currentSortField:n,onTableHeadClick:t,rows:r,structure:BNe})}const $Ne=({ui:{workers:e}})=>({workers:e}),VNe=Xn($Ne)(FNe),GNe=[{component:ipe,key:"stats",title:"Statistics"},{component:ENe,key:"charts",title:"Charts"},{component:Khe,key:"failures",title:"Failures"},{component:Yhe,key:"exceptions",title:"Exceptions"},{component:zNe,key:"ratios",title:"Current Ratio"},{component:tpe,key:"reports",title:"Download Data"},{component:Qhe,key:"logViewer",title:"Logs"}],HNe=[{component:VNe,key:"workers",title:"Workers",shouldDisplayTab:e=>e.swarm.isDistributed}],WNe=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)},UNe=()=>window.location.search?Ble(window.location.search):null,jNe={query:UNe()},S7=ui({name:"url",initialState:jNe,reducers:{setUrl:hv}}),YNe=S7.actions,qNe=S7.reducer;function XNe({hasNotification:e,title:t}){return E.jsxs(ft,{sx:{display:"flex",alignItems:"center"},children:[e&&E.jsx(CG,{color:"secondary"}),E.jsx("span",{children:t})]})}function ZNe({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}),WNe({tab:c}),n({query:{tab:c}}),o(u)};return E.jsxs(Nf,{maxWidth:"xl",children:[E.jsx(ft,{sx:{mb:2},children:E.jsx(poe,{onChange:s,value:a,children:i.map(({key:l,title:u},c)=>E.jsx(Xie,{label:E.jsx(XNe,{hasNotification:t[l],title:u})},`tab-${c}`))})}),i.map(({component:l=Whe},u)=>a===u&&E.jsx(l,{},`tabpabel-${u}`))]})}const KNe=e=>{const{notification:t,swarm:{extendedTabs:r=[]},url:{query:n}}=e,i=HNe.filter(({shouldDisplayTab:o})=>o(e)),a=[...GNe,...i,...r];return{notification:t,tabs:a,currentTabIndexFromQuery:n&&n.tab?a.findIndex(({key:o})=>o===n.tab):0}},QNe={setNotification:_G.setNotification,setUrl:YNe.setUrl},JNe=Xn(KNe,QNe)(ZNe),eze={totalRps:0,failRatio:0,stats:[],errors:[],exceptions:[],charts:Gl(window.templateArgs).history.reduce(ix,{}),ratios:{},userCount:0},tze=e=>ix(e,{currentRps:{value:null},currentFailPerSec:{value:null},responseTimePercentile1:{value:null},responseTimePercentile2:{value:null},userCount:{value:null},time:""}),b7=ui({name:"ui",initialState:eze,reducers:{setUi:hv,updateCharts:(e,{payload:t})=>({...e,charts:ix(e.charts,t)}),updateChartMarkers:(e,{payload:t})=>({...e,charts:{...tze(e.charts),markers:e.charts.markers?[...e.charts.markers,t]:[e.charts.time[0],t]}})}}),Cw=b7.actions,rze=b7.reducer,WF=2e3;function nze(){const e=$l(xG.setSwarm),t=$l(Cw.setUi),r=$l(Cw.updateCharts),n=$l(Cw.updateChartMarkers),i=Vs(({swarm:m})=>m),a=O.useRef(i.state),o=O.useRef(!1),[s,l]=O.useState(!1),{data:u,refetch:c}=$le(),{data:f,refetch:d}=Vle(),{data:h,refetch:p}=Gle(),v=i.state===En.SPAWNING||i.state==En.RUNNING,g=()=>{if(!u)return;const{extendedStats:m,stats:y,errors:x,totalRps:S,totalFailPerSec:_,failRatio:b,workers:w,currentResponseTimePercentile1:C,currentResponseTimePercentile2:A,userCount:T}=u,M=new Date().toLocaleTimeString();s&&(l(!1),n(M));const I=zm(S,2),P=zm(_,2),k=zm(b*100),R={currentRps:I,currentFailPerSec:P,responseTimePercentile1:C,responseTimePercentile2:A,userCount:T,time:M};t({extendedStats:m,stats:y,errors:x,totalRps:I,failRatio:k,workers:w,userCount:T}),r(R)};O.useEffect(()=>{u&&(u.state===En.STOPPED||u.state===En.SPAWNING)&&e({state:u.state})},[u&&u.state]),O.useEffect(()=>{u&&(o.current||g(),o.current=!0)},[u]),rh(g,WF,{shouldRunInterval:!!u&&v}),O.useEffect(()=>{f&&t({ratios:f})},[f]),O.useEffect(()=>{h&&t({exceptions:h.exceptions})},[h]),rh(c,WF,{shouldRunInterval:v}),rh(d,5e3,{shouldRunInterval:v}),rh(p,5e3,{shouldRunInterval:v}),O.useEffect(()=>{i.state===En.RUNNING&&a.current===En.STOPPED&&l(!0),a.current=i.state},[i.state,a])}const _7=e=>t2({palette:{mode:e,primary:{main:"#15803d"},success:{main:"#00C853"}}});function ize({isDarkMode:e,swarmState:t}){nze(),mue();const r=O.useMemo(()=>_7(e?Ma.DARK:Ma.LIGHT),[e]);return E.jsxs(l4,{theme:r,children:[E.jsx(s4,{}),E.jsx(cue,{children:t===En.READY?E.jsx(SG,{}):E.jsx(JNe,{})})]})}const aze=({swarm:{state:e},theme:{isDarkMode:t}})=>({isDarkMode:t,swarmState:e}),oze=Xn(aze)(ize),sze=y2({[BC.reducerPath]:BC.reducer,logViewer:gue,notification:due,swarm:tue,theme:Rse,ui:rze,url:qNe}),lze=Sse({reducer:sze}),uze=[{key:"method",title:"Method"},{key:"name",title:"Name"}];function cze({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 E.jsx(Ff,{rows:e,structure:[...uze,...t]})}const fze=_7(window.theme||U4);function dze({locustfile:e,showDownloadLink:t,startTime:r,endTime:n,charts:i,host:a,exceptionsStatistics:o,requestsStatistics:s,failuresStatistics:l,responseTimeStatistics:u,tasks:c}){return E.jsxs(l4,{theme:fze,children:[E.jsx(s4,{}),E.jsxs(Nf,{maxWidth:"lg",sx:{my:4},children:[E.jsxs(ft,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-end"},children:[E.jsx(Xe,{component:"h1",noWrap:!0,sx:{fontWeight:700},variant:"h3",children:"Locust Test Report"}),t&&E.jsx(li,{href:`?download=1&theme=${window.theme}`,children:"Download the Report"})]}),E.jsxs(ft,{sx:{my:2},children:[E.jsxs(ft,{sx:{display:"flex",columnGap:.5},children:[E.jsx(Xe,{fontWeight:600,children:"During:"}),E.jsxs(Xe,{children:[r," - ",n]})]}),E.jsxs(ft,{sx:{display:"flex",columnGap:.5},children:[E.jsx(Xe,{fontWeight:600,children:"Target Host:"}),E.jsx(Xe,{children:a||"None"})]}),E.jsxs(ft,{sx:{display:"flex",columnGap:.5},children:[E.jsx(Xe,{fontWeight:600,children:"Script:"}),E.jsx(Xe,{children:e})]})]}),E.jsxs(ft,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[E.jsxs(ft,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Request Statistics"}),E.jsx(cH,{stats:s})]}),E.jsxs(ft,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Response Time Statistics"}),E.jsx(cze,{responseTimes:u})]}),E.jsxs(ft,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Failures Statistics"}),E.jsx(uH,{errors:l})]}),!!o.length&&E.jsxs(ft,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Exceptions Statistics"}),E.jsx(lH,{exceptions:o})]}),E.jsxs(ft,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Charts"}),E.jsx(y7,{charts:i})]}),E.jsxs(ft,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Final ratio"}),E.jsx(x7,{ratios:c})]})]})]})]})}const UF=Aw.createRoot(document.getElementById("root"));if(window.templateArgs.is_report){const e=Gl(window.templateArgs),t={...e,charts:e.history.reduce(ix,{})};UF.render(E.jsx(dze,{...t}))}else UF.render(E.jsx(rZ,{store:lze,children:E.jsx(oze,{})})); + `,""):"No data",axisPointer:{animation:!0},textStyle:{color:Zh,fontSize:13},backgroundColor:"rgba(21,35,28, 0.93)",borderWidth:0,extraCssText:"z-index:1;"},xAxis:{type:"category",splitLine:{show:!1},axisLine:{lineStyle:{color:zA}},data:e.time},yAxis:{type:"value",boundaryGap:[0,"5%"],splitLine:{show:!1},axisLine:{lineStyle:{color:zA}}},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"}}}}}}),kNe=({charts:e,lines:t})=>t.map(({key:r,name:n})=>({name:n,type:"line",showSymbol:!0,data:e[r]})),DNe=e=>({symbol:"none",label:{formatter:t=>`Run #${t.dataIndex+1}`},lineStyle:{color:zA},data:(e.markers||[]).map(t=>({xAxis:t}))});function RNe({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=xxe(o.current,"locust");s.setOption(PNe({charts:e,title:t,seriesData:kNe({charts:e,lines:r}),colors:n}));const l=()=>s.resize();return window.addEventListener("resize",l),s.group="swarmCharts",Sxe("swarmCharts"),a(s),()=>{bxe(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:DNe(e)}:{}}))})},[e,i,r]),E.jsx("div",{ref:o,style:{width:"100%",height:"300px"}})}const LNe=[{title:"Total Requests per Second",lines:[{name:"RPS",key:"currentRps"},{name:"Failures/s",key:"currentFailPerSec"}],colors:["#00ca5a","#ff6d6d"]},{title:"Response Times (ms)",lines:[{name:`${window.templateArgs.percentile1*100}th percentile`,key:"responseTimePercentile1"},{name:`${window.templateArgs.percentile2*100}th percentile`,key:"responseTimePercentile2"}]},{title:"Number of Users",lines:[{name:"Number of Users",key:"userCount"}]}];function y7({charts:e}){return E.jsx("div",{children:LNe.map((t,r)=>E.jsx(RNe,{...t,charts:e},`swarm-chart-${r}`))})}const ENe=({ui:{charts:e}})=>({charts:e}),ONe=Xn(ENe)(y7);function NNe(e){return(e*100).toFixed(1)+"%"}function BA({classRatio:e}){return E.jsx("ul",{children:Object.entries(e).map(([t,{ratio:r,tasks:n}])=>E.jsxs("li",{children:[`${NNe(r)} ${t}`,n&&E.jsx(BA,{classRatio:n})]},`nested-ratio-${t}`))})}function x7({ratios:{perClass:e,total:t}}){return!e&&!t?null:E.jsxs("div",{children:[e&&E.jsxs(E.Fragment,{children:[E.jsx("h3",{children:"Ratio Per Class"}),E.jsx(BA,{classRatio:e})]}),t&&E.jsxs(E.Fragment,{children:[E.jsx("h3",{children:"Total Ratio"}),E.jsx(BA,{classRatio:t})]})]})}const zNe=({ui:{ratios:e}})=>({ratios:e}),BNe=Xn(zNe)(x7),FNe=[{key:"id",title:"Worker"},{key:"state",title:"State"},{key:"userCount",title:"# users"},{key:"cpuUsage",title:"CPU usage"},{key:"memoryUsage",title:"Memory usage",formatter:Fle}];function $Ne({workers:e=[]}){const{onTableHeadClick:t,sortedStats:r,currentSortField:n}=F2(e,{defaultSortKey:"worker"});return E.jsx(Ff,{currentSortField:n,onTableHeadClick:t,rows:r,structure:FNe})}const VNe=({ui:{workers:e}})=>({workers:e}),GNe=Xn(VNe)($Ne),HNe=[{component:ape,key:"stats",title:"Statistics"},{component:ONe,key:"charts",title:"Charts"},{component:Qhe,key:"failures",title:"Failures"},{component:qhe,key:"exceptions",title:"Exceptions"},{component:BNe,key:"ratios",title:"Current Ratio"},{component:rpe,key:"reports",title:"Download Data"},{component:Jhe,key:"logViewer",title:"Logs"}],WNe=[{component:GNe,key:"workers",title:"Workers",shouldDisplayTab:e=>e.swarm.isDistributed}],UNe=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)},jNe=()=>window.location.search?Ble(window.location.search):null,YNe={query:jNe()},S7=ui({name:"url",initialState:YNe,reducers:{setUrl:hv}}),qNe=S7.actions,XNe=S7.reducer;function ZNe({hasNotification:e,title:t}){return E.jsxs(ft,{sx:{display:"flex",alignItems:"center"},children:[e&&E.jsx(CG,{color:"secondary"}),E.jsx("span",{children:t})]})}function KNe({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}),UNe({tab:c}),n({query:{tab:c}}),o(u)};return E.jsxs(Nf,{maxWidth:"xl",children:[E.jsx(ft,{sx:{mb:2},children:E.jsx(poe,{onChange:s,value:a,children:i.map(({key:l,title:u},c)=>E.jsx(Xie,{label:E.jsx(ZNe,{hasNotification:t[l],title:u})},`tab-${c}`))})}),i.map(({component:l=Uhe},u)=>a===u&&E.jsx(l,{},`tabpabel-${u}`))]})}const QNe=e=>{const{notification:t,swarm:{extendedTabs:r=[]},url:{query:n}}=e,i=WNe.filter(({shouldDisplayTab:o})=>o(e)),a=[...HNe,...i,...r];return{notification:t,tabs:a,currentTabIndexFromQuery:n&&n.tab?a.findIndex(({key:o})=>o===n.tab):0}},JNe={setNotification:_G.setNotification,setUrl:qNe.setUrl},eze=Xn(QNe,JNe)(KNe),tze={totalRps:0,failRatio:0,stats:[],errors:[],exceptions:[],charts:Gl(window.templateArgs).history.reduce(ix,{}),ratios:{},userCount:0},rze=e=>ix(e,{currentRps:{value:null},currentFailPerSec:{value:null},responseTimePercentile1:{value:null},responseTimePercentile2:{value:null},userCount:{value:null},time:""}),b7=ui({name:"ui",initialState:tze,reducers:{setUi:hv,updateCharts:(e,{payload:t})=>({...e,charts:ix(e.charts,t)}),updateChartMarkers:(e,{payload:t})=>({...e,charts:{...rze(e.charts),markers:e.charts.markers?[...e.charts.markers,t]:[e.charts.time[0],t]}})}}),Cw=b7.actions,nze=b7.reducer,WF=2e3;function ize(){const e=$l(xG.setSwarm),t=$l(Cw.setUi),r=$l(Cw.updateCharts),n=$l(Cw.updateChartMarkers),i=Vs(({swarm:m})=>m),a=O.useRef(i.state),o=O.useRef(!1),[s,l]=O.useState(!1),{data:u,refetch:c}=$le(),{data:f,refetch:d}=Vle(),{data:h,refetch:p}=Gle(),v=i.state===En.SPAWNING||i.state==En.RUNNING,g=()=>{if(!u)return;const{extendedStats:m,stats:y,errors:x,totalRps:S,totalFailPerSec:_,failRatio:b,workers:w,currentResponseTimePercentile1:C,currentResponseTimePercentile2:A,userCount:T}=u,M=new Date().toLocaleTimeString();s&&(l(!1),n(M));const I=zm(S,2),P=zm(_,2),k=zm(b*100),R={currentRps:I,currentFailPerSec:P,responseTimePercentile1:C,responseTimePercentile2:A,userCount:T,time:M};t({extendedStats:m,stats:y,errors:x,totalRps:I,failRatio:k,workers:w,userCount:T}),r(R)};O.useEffect(()=>{u&&(u.state===En.STOPPED||u.state===En.SPAWNING)&&e({state:u.state})},[u&&u.state]),O.useEffect(()=>{u&&(o.current||g(),o.current=!0)},[u]),rh(g,WF,{shouldRunInterval:!!u&&v}),O.useEffect(()=>{f&&t({ratios:f})},[f]),O.useEffect(()=>{h&&t({exceptions:h.exceptions})},[h]),rh(c,WF,{shouldRunInterval:v}),rh(d,5e3,{shouldRunInterval:v}),rh(p,5e3,{shouldRunInterval:v}),O.useEffect(()=>{i.state===En.RUNNING&&a.current===En.STOPPED&&l(!0),a.current=i.state},[i.state,a])}const _7=e=>t2({palette:{mode:e,primary:{main:"#15803d"},success:{main:"#00C853"}}});function aze({isDarkMode:e,swarmState:t}){ize(),yue();const r=O.useMemo(()=>_7(e?Ma.DARK:Ma.LIGHT),[e]);return E.jsxs(l4,{theme:r,children:[E.jsx(s4,{}),E.jsx(cue,{children:t===En.READY?E.jsx(SG,{}):E.jsx(eze,{})})]})}const oze=({swarm:{state:e},theme:{isDarkMode:t}})=>({isDarkMode:t,swarmState:e}),sze=Xn(oze)(aze),lze=y2({[BC.reducerPath]:BC.reducer,logViewer:gue,notification:due,swarm:tue,theme:Rse,ui:nze,url:XNe}),uze=Sse({reducer:lze}),cze=[{key:"method",title:"Method"},{key:"name",title:"Name"}];function fze({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 E.jsx(Ff,{rows:e,structure:[...cze,...t]})}const dze=_7(window.theme||U4);function hze({locustfile:e,showDownloadLink:t,startTime:r,endTime:n,charts:i,host:a,exceptionsStatistics:o,requestsStatistics:s,failuresStatistics:l,responseTimeStatistics:u,tasks:c}){return E.jsxs(l4,{theme:dze,children:[E.jsx(s4,{}),E.jsxs(Nf,{maxWidth:"lg",sx:{my:4},children:[E.jsxs(ft,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-end"},children:[E.jsx(Xe,{component:"h1",noWrap:!0,sx:{fontWeight:700},variant:"h3",children:"Locust Test Report"}),t&&E.jsx(li,{href:`?download=1&theme=${window.theme}`,children:"Download the Report"})]}),E.jsxs(ft,{sx:{my:2},children:[E.jsxs(ft,{sx:{display:"flex",columnGap:.5},children:[E.jsx(Xe,{fontWeight:600,children:"During:"}),E.jsxs(Xe,{children:[r," - ",n]})]}),E.jsxs(ft,{sx:{display:"flex",columnGap:.5},children:[E.jsx(Xe,{fontWeight:600,children:"Target Host:"}),E.jsx(Xe,{children:a||"None"})]}),E.jsxs(ft,{sx:{display:"flex",columnGap:.5},children:[E.jsx(Xe,{fontWeight:600,children:"Script:"}),E.jsx(Xe,{children:e})]})]}),E.jsxs(ft,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[E.jsxs(ft,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Request Statistics"}),E.jsx(cH,{stats:s})]}),E.jsxs(ft,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Response Time Statistics"}),E.jsx(fze,{responseTimes:u})]}),E.jsxs(ft,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Failures Statistics"}),E.jsx(uH,{errors:l})]}),!!o.length&&E.jsxs(ft,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Exceptions Statistics"}),E.jsx(lH,{exceptions:o})]}),E.jsxs(ft,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Charts"}),E.jsx(y7,{charts:i})]}),E.jsxs(ft,{children:[E.jsx(Xe,{component:"h2",mb:1,noWrap:!0,variant:"h4",children:"Final ratio"}),E.jsx(x7,{ratios:c})]})]})]})]})}const UF=Aw.createRoot(document.getElementById("root"));if(window.templateArgs.is_report){const e=Gl(window.templateArgs),t={...e,charts:e.history.reduce(ix,{})};UF.render(E.jsx(hze,{...t}))}else UF.render(E.jsx(rZ,{store:uze,children:E.jsx(sze,{})})); diff --git a/locust/webui/dist/index.html b/locust/webui/dist/index.html index 21ed948cf7..494adeb6d0 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/useLogViewer.ts b/locust/webui/src/components/LogViewer/useLogViewer.ts index a8278e7946..f7f90478c5 100644 --- a/locust/webui/src/components/LogViewer/useLogViewer.ts +++ b/locust/webui/src/components/LogViewer/useLogViewer.ts @@ -1,4 +1,4 @@ -import { useEffect } from 'react'; +import { useCallback, useEffect } from 'react'; import { SWARM_STATE } from 'constants/swarm'; import useInterval from 'hooks/useInterval'; @@ -7,6 +7,9 @@ import { useGetLogsQuery } from 'redux/api/swarm'; import { useAction, useSelector } from 'redux/hooks'; import { logViewerActions } from 'redux/slice/logViewer.slice'; +const isImportantLog = (log: string) => + log.includes('WARNING') || log.includes('ERROR') || log.includes('CRITICAL'); + export default function useLogViewer() { const swarm = useSelector(({ swarm }) => swarm); const setLogs = useAction(logViewerActions.setLogs); @@ -14,10 +17,15 @@ export default function useLogViewer() { const logs = data ? data.logs : []; + const shouldNotifyLogsUpdate = useCallback( + () => logs.slice(localStorage['logViewer']).some(isImportantLog), + [logs], + ); + useInterval(refetchLogs, 5000, { shouldRunInterval: swarm.state === SWARM_STATE.SPAWNING || swarm.state == SWARM_STATE.RUNNING, }); - useNotifications(logs, { key: 'logViewer' }); + useNotifications(logs, { key: 'logViewer', shouldNotify: shouldNotifyLogsUpdate }); useEffect(() => { setLogs({ logs }); diff --git a/locust/webui/src/hooks/useNotifications.ts b/locust/webui/src/hooks/useNotifications.ts index d39f1abda0..36d5e07821 100644 --- a/locust/webui/src/hooks/useNotifications.ts +++ b/locust/webui/src/hooks/useNotifications.ts @@ -6,7 +6,7 @@ import { objectLength } from 'utils/object'; export default function useNotifications( data: any[] | Record, - { key }: { key: string }, + { key, shouldNotify }: { key: string; shouldNotify?: () => boolean }, ) { const setNotification = useAction(notificationActions.setNotification); const currentPage = useSelector(({ url: { query } }) => query && query.tab); @@ -22,7 +22,9 @@ export default function useNotifications( if ( objectLength(data) > (localStorage[storageKey] || 0) && /// don't show notifications for current page - (!currentPage || currentPage !== key) + (!currentPage || currentPage !== key) && + // allows to customize if notification should be shown + (!shouldNotify || (shouldNotify && shouldNotify())) ) { setNotification({ [key]: true }); localStorage[storageKey] = objectLength(data); From 649dbdeb4e351e3e7b82499d7485673bef39159a Mon Sep 17 00:00:00 2001 From: Andrew Baldwin Date: Tue, 5 Dec 2023 11:03:05 -0500 Subject: [PATCH 8/8] Add useNotify tests --- .../src/hooks/tests/useNotifications.test.tsx | 48 ++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/locust/webui/src/hooks/tests/useNotifications.test.tsx b/locust/webui/src/hooks/tests/useNotifications.test.tsx index d34ef979e8..9437fa29f5 100644 --- a/locust/webui/src/hooks/tests/useNotifications.test.tsx +++ b/locust/webui/src/hooks/tests/useNotifications.test.tsx @@ -8,11 +8,13 @@ import { objectLength } from 'utils/object'; function MockHook({ data, notificaitonKey, + shouldNotify, }: { data: any[] | Record; notificaitonKey: string; + shouldNotify?: () => boolean; }) { - useNotifications(data, { key: notificaitonKey }); + useNotifications(data, { key: notificaitonKey, shouldNotify }); return null; } @@ -57,6 +59,28 @@ describe('useNotifications', () => { localStorage = temp; }); + test('should set notifications when shouldNotify returns true', async () => { + const testArrayKey = 'testArray'; + const testObjectKey = 'testObject'; + + const shouldNotify = () => true; + + const { store: firstRender } = renderWithProvider( + , + ); + const { store } = renderWithProvider( + , + firstRender.getState(), + ); + + expect((store.getState() as IRootState).notification[testArrayKey]).toBeTruthy(); + expect((store.getState() as IRootState).notification[testObjectKey]).toBeTruthy(); + }); + test('should not set notifications when data is empty', async () => { const testArrayKey = 'testArray'; const testObjectKey = 'testObject'; @@ -86,4 +110,26 @@ describe('useNotifications', () => { expect((store.getState() as IRootState).notification[testKey]).toBeFalsy(); }); + + test('should not set notifications when shouldNotify is false', async () => { + const testArrayKey = 'testArray'; + const testObjectKey = 'testObject'; + + const shouldNotify = () => false; + + const { store: firstRender } = renderWithProvider( + , + ); + const { store } = renderWithProvider( + , + firstRender.getState(), + ); + + expect((store.getState() as IRootState).notification[testArrayKey]).toBeFalsy(); + expect((store.getState() as IRootState).notification[testObjectKey]).toBeFalsy(); + }); });